From a863073090878dca16f1bf450f4b91ca7f7a0a76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 05:36:37 +0000 Subject: [PATCH 01/19] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5bb2078a..0a0c76c5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 25 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-021b48afe1d6e3f54c4ebe3d0da4beb3fb8b69a6d384a4aeadbc5bab7f967603.yml -openapi_spec_hash: 2aa5b59d78c708b094acf29cc0d9a68a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d04e3c285c2f57723b288ee69b1d78b7bb928aae403203b2cdd524dd195e55b2.yml +openapi_spec_hash: e33db883d584bc8573897391f3edb105 config_hash: c7b0cdaba3b9797b77efd89e1754d803 From 7277672e289e4d8a54791a154e989ec6ba25e3b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 05:42:18 +0000 Subject: [PATCH 02/19] feat(api): manual updates --- .stats.yml | 6 +- lib/context_dev.rb | 23 + lib/context_dev/client.rb | 7 + lib/context_dev/internal/type/union.rb | 13 + lib/context_dev/models.rb | 22 + .../models/monitor_create_params.rb | 914 +++++++ .../models/monitor_create_response.rb | 1170 ++++++++ .../models/monitor_delete_params.rb | 20 + .../models/monitor_delete_response.rb | 22 + .../monitor_list_account_changes_params.rb | 93 + .../monitor_list_account_changes_response.rb | 476 ++++ .../monitor_list_account_runs_params.rb | 44 + .../monitor_list_account_runs_response.rb | 189 ++ .../models/monitor_list_changes_params.rb | 57 + .../models/monitor_list_changes_response.rb | 476 ++++ lib/context_dev/models/monitor_list_params.rb | 89 + .../models/monitor_list_response.rb | 1197 +++++++++ .../models/monitor_list_runs_params.rb | 50 + .../models/monitor_list_runs_response.rb | 189 ++ .../models/monitor_retrieve_change_params.rb | 20 + .../monitor_retrieve_change_response.rb | 571 ++++ .../models/monitor_retrieve_params.rb | 20 + .../models/monitor_retrieve_response.rb | 1172 ++++++++ lib/context_dev/models/monitor_run_params.rb | 20 + .../models/monitor_run_response.rb | 22 + .../models/monitor_update_params.rb | 355 +++ .../models/monitor_update_response.rb | 1170 ++++++++ lib/context_dev/resources/monitors.rb | 314 +++ rbi/context_dev/client.rbi | 6 + rbi/context_dev/models.rbi | 24 + .../models/monitor_create_params.rbi | 2000 ++++++++++++++ .../models/monitor_create_response.rbi | 2328 ++++++++++++++++ .../models/monitor_delete_params.rbi | 35 + .../models/monitor_delete_response.rbi | 29 + .../monitor_list_account_changes_params.rbi | 211 ++ .../monitor_list_account_changes_response.rbi | 844 ++++++ .../monitor_list_account_runs_params.rbi | 109 + .../monitor_list_account_runs_response.rbi | 385 +++ .../models/monitor_list_changes_params.rbi | 91 + .../models/monitor_list_changes_response.rbi | 844 ++++++ .../models/monitor_list_params.rbi | 199 ++ .../models/monitor_list_response.rbi | 2390 +++++++++++++++++ .../models/monitor_list_runs_params.rbi | 114 + .../models/monitor_list_runs_response.rbi | 376 +++ .../models/monitor_retrieve_change_params.rbi | 38 + .../monitor_retrieve_change_response.rbi | 950 +++++++ .../models/monitor_retrieve_params.rbi | 38 + .../models/monitor_retrieve_response.rbi | 2328 ++++++++++++++++ rbi/context_dev/models/monitor_run_params.rbi | 35 + .../models/monitor_run_response.rbi | 31 + .../models/monitor_update_params.rbi | 672 +++++ .../models/monitor_update_response.rbi | 2328 ++++++++++++++++ rbi/context_dev/resources/monitors.rbi | 239 ++ sig/context_dev/client.rbs | 2 + sig/context_dev/models.rbs | 22 + .../models/monitor_create_params.rbs | 778 ++++++ .../models/monitor_create_response.rbs | 941 +++++++ .../models/monitor_delete_params.rbs | 23 + .../models/monitor_delete_response.rbs | 15 + .../monitor_list_account_changes_params.rbs | 104 + .../monitor_list_account_changes_response.rbs | 417 +++ .../monitor_list_account_runs_params.rbs | 57 + .../monitor_list_account_runs_response.rbs | 161 ++ .../models/monitor_list_changes_params.rbs | 61 + .../models/monitor_list_changes_response.rbs | 417 +++ .../models/monitor_list_params.rbs | 104 + .../models/monitor_list_response.rbs | 968 +++++++ .../models/monitor_list_runs_params.rbs | 62 + .../models/monitor_list_runs_response.rbs | 161 ++ .../models/monitor_retrieve_change_params.rbs | 23 + .../monitor_retrieve_change_response.rbs | 472 ++++ .../models/monitor_retrieve_params.rbs | 23 + .../models/monitor_retrieve_response.rbs | 941 +++++++ sig/context_dev/models/monitor_run_params.rbs | 23 + .../models/monitor_run_response.rbs | 15 + .../models/monitor_update_params.rbs | 331 +++ .../models/monitor_update_response.rbs | 941 +++++++ sig/context_dev/resources/monitors.rbs | 91 + test/context_dev/resources/monitors_test.rb | 213 ++ 79 files changed, 32728 insertions(+), 3 deletions(-) create mode 100644 lib/context_dev/models/monitor_create_params.rb create mode 100644 lib/context_dev/models/monitor_create_response.rb create mode 100644 lib/context_dev/models/monitor_delete_params.rb create mode 100644 lib/context_dev/models/monitor_delete_response.rb create mode 100644 lib/context_dev/models/monitor_list_account_changes_params.rb create mode 100644 lib/context_dev/models/monitor_list_account_changes_response.rb create mode 100644 lib/context_dev/models/monitor_list_account_runs_params.rb create mode 100644 lib/context_dev/models/monitor_list_account_runs_response.rb create mode 100644 lib/context_dev/models/monitor_list_changes_params.rb create mode 100644 lib/context_dev/models/monitor_list_changes_response.rb create mode 100644 lib/context_dev/models/monitor_list_params.rb create mode 100644 lib/context_dev/models/monitor_list_response.rb create mode 100644 lib/context_dev/models/monitor_list_runs_params.rb create mode 100644 lib/context_dev/models/monitor_list_runs_response.rb create mode 100644 lib/context_dev/models/monitor_retrieve_change_params.rb create mode 100644 lib/context_dev/models/monitor_retrieve_change_response.rb create mode 100644 lib/context_dev/models/monitor_retrieve_params.rb create mode 100644 lib/context_dev/models/monitor_retrieve_response.rb create mode 100644 lib/context_dev/models/monitor_run_params.rb create mode 100644 lib/context_dev/models/monitor_run_response.rb create mode 100644 lib/context_dev/models/monitor_update_params.rb create mode 100644 lib/context_dev/models/monitor_update_response.rb create mode 100644 lib/context_dev/resources/monitors.rb create mode 100644 rbi/context_dev/models/monitor_create_params.rbi create mode 100644 rbi/context_dev/models/monitor_create_response.rbi create mode 100644 rbi/context_dev/models/monitor_delete_params.rbi create mode 100644 rbi/context_dev/models/monitor_delete_response.rbi create mode 100644 rbi/context_dev/models/monitor_list_account_changes_params.rbi create mode 100644 rbi/context_dev/models/monitor_list_account_changes_response.rbi create mode 100644 rbi/context_dev/models/monitor_list_account_runs_params.rbi create mode 100644 rbi/context_dev/models/monitor_list_account_runs_response.rbi create mode 100644 rbi/context_dev/models/monitor_list_changes_params.rbi create mode 100644 rbi/context_dev/models/monitor_list_changes_response.rbi create mode 100644 rbi/context_dev/models/monitor_list_params.rbi create mode 100644 rbi/context_dev/models/monitor_list_response.rbi create mode 100644 rbi/context_dev/models/monitor_list_runs_params.rbi create mode 100644 rbi/context_dev/models/monitor_list_runs_response.rbi create mode 100644 rbi/context_dev/models/monitor_retrieve_change_params.rbi create mode 100644 rbi/context_dev/models/monitor_retrieve_change_response.rbi create mode 100644 rbi/context_dev/models/monitor_retrieve_params.rbi create mode 100644 rbi/context_dev/models/monitor_retrieve_response.rbi create mode 100644 rbi/context_dev/models/monitor_run_params.rbi create mode 100644 rbi/context_dev/models/monitor_run_response.rbi create mode 100644 rbi/context_dev/models/monitor_update_params.rbi create mode 100644 rbi/context_dev/models/monitor_update_response.rbi create mode 100644 rbi/context_dev/resources/monitors.rbi create mode 100644 sig/context_dev/models/monitor_create_params.rbs create mode 100644 sig/context_dev/models/monitor_create_response.rbs create mode 100644 sig/context_dev/models/monitor_delete_params.rbs create mode 100644 sig/context_dev/models/monitor_delete_response.rbs create mode 100644 sig/context_dev/models/monitor_list_account_changes_params.rbs create mode 100644 sig/context_dev/models/monitor_list_account_changes_response.rbs create mode 100644 sig/context_dev/models/monitor_list_account_runs_params.rbs create mode 100644 sig/context_dev/models/monitor_list_account_runs_response.rbs create mode 100644 sig/context_dev/models/monitor_list_changes_params.rbs create mode 100644 sig/context_dev/models/monitor_list_changes_response.rbs create mode 100644 sig/context_dev/models/monitor_list_params.rbs create mode 100644 sig/context_dev/models/monitor_list_response.rbs create mode 100644 sig/context_dev/models/monitor_list_runs_params.rbs create mode 100644 sig/context_dev/models/monitor_list_runs_response.rbs create mode 100644 sig/context_dev/models/monitor_retrieve_change_params.rbs create mode 100644 sig/context_dev/models/monitor_retrieve_change_response.rbs create mode 100644 sig/context_dev/models/monitor_retrieve_params.rbs create mode 100644 sig/context_dev/models/monitor_retrieve_response.rbs create mode 100644 sig/context_dev/models/monitor_run_params.rbs create mode 100644 sig/context_dev/models/monitor_run_response.rbs create mode 100644 sig/context_dev/models/monitor_update_params.rbs create mode 100644 sig/context_dev/models/monitor_update_response.rbs create mode 100644 sig/context_dev/resources/monitors.rbs create mode 100644 test/context_dev/resources/monitors_test.rb diff --git a/.stats.yml b/.stats.yml index 0a0c76c5..2f86aeb8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 25 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d04e3c285c2f57723b288ee69b1d78b7bb928aae403203b2cdd524dd195e55b2.yml +configured_endpoints: 36 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8667763c416101820f5086c97d542bf13bb3bb12b57f5f604da671d9dcea0599.yml openapi_spec_hash: e33db883d584bc8573897391f3edb105 -config_hash: c7b0cdaba3b9797b77efd89e1754d803 +config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev.rb b/lib/context_dev.rb index ab592cf8..a97c18a2 100644 --- a/lib/context_dev.rb +++ b/lib/context_dev.rb @@ -76,6 +76,28 @@ require_relative "context_dev/models/industry_retrieve_naics_response" require_relative "context_dev/models/industry_retrieve_sic_params" require_relative "context_dev/models/industry_retrieve_sic_response" +require_relative "context_dev/models/monitor_create_params" +require_relative "context_dev/models/monitor_create_response" +require_relative "context_dev/models/monitor_delete_params" +require_relative "context_dev/models/monitor_delete_response" +require_relative "context_dev/models/monitor_list_account_changes_params" +require_relative "context_dev/models/monitor_list_account_changes_response" +require_relative "context_dev/models/monitor_list_account_runs_params" +require_relative "context_dev/models/monitor_list_account_runs_response" +require_relative "context_dev/models/monitor_list_changes_params" +require_relative "context_dev/models/monitor_list_changes_response" +require_relative "context_dev/models/monitor_list_params" +require_relative "context_dev/models/monitor_list_response" +require_relative "context_dev/models/monitor_list_runs_params" +require_relative "context_dev/models/monitor_list_runs_response" +require_relative "context_dev/models/monitor_retrieve_change_params" +require_relative "context_dev/models/monitor_retrieve_change_response" +require_relative "context_dev/models/monitor_retrieve_params" +require_relative "context_dev/models/monitor_retrieve_response" +require_relative "context_dev/models/monitor_run_params" +require_relative "context_dev/models/monitor_run_response" +require_relative "context_dev/models/monitor_update_params" +require_relative "context_dev/models/monitor_update_response" require_relative "context_dev/models/utility_prefetch_by_email_params" require_relative "context_dev/models/utility_prefetch_by_email_response" require_relative "context_dev/models/utility_prefetch_params" @@ -106,5 +128,6 @@ require_relative "context_dev/resources/ai" require_relative "context_dev/resources/brand" require_relative "context_dev/resources/industry" +require_relative "context_dev/resources/monitors" require_relative "context_dev/resources/utility" require_relative "context_dev/resources/web" diff --git a/lib/context_dev/client.rb b/lib/context_dev/client.rb index d8bc689a..ceedd945 100644 --- a/lib/context_dev/client.rb +++ b/lib/context_dev/client.rb @@ -33,6 +33,12 @@ class Client < ContextDev::Internal::Transport::BaseClient # @return [ContextDev::Resources::Utility] attr_reader :utility + # Monitor pages, sitemaps, and extracted website data for exact or semantic + # changes. The change.detected webhook payload is documented by the + # MonitorsChangeDetectedWebhookPayload schema. + # @return [ContextDev::Resources::Monitors] + attr_reader :monitors + # @api private # # @return [Hash{String=>String}] @@ -99,6 +105,7 @@ def initialize( @brand = ContextDev::Resources::Brand.new(client: self) @industry = ContextDev::Resources::Industry.new(client: self) @utility = ContextDev::Resources::Utility.new(client: self) + @monitors = ContextDev::Resources::Monitors.new(client: self) end end end diff --git a/lib/context_dev/internal/type/union.rb b/lib/context_dev/internal/type/union.rb index b7b45f14..784c1286 100644 --- a/lib/context_dev/internal/type/union.rb +++ b/lib/context_dev/internal/type/union.rb @@ -4,6 +4,19 @@ module ContextDev module Internal module Type # @api private + # + # @example + # # `monitor_create_response` is a `ContextDev::Models::MonitorCreateResponse` + # case monitor_create_response + # when ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor + # puts(monitor_create_response.id) + # when ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor + # puts(monitor_create_response.change_detection) + # when ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor + # puts(monitor_create_response.created_at) + # else + # puts(monitor_create_response) + # end module Union include ContextDev::Internal::Type::Converter include ContextDev::Internal::Util::SorbetRuntimeSupport diff --git a/lib/context_dev/models.rb b/lib/context_dev/models.rb index e72f9f83..f06c4897 100644 --- a/lib/context_dev/models.rb +++ b/lib/context_dev/models.rb @@ -63,6 +63,28 @@ module ContextDev IndustryRetrieveSicParams = ContextDev::Models::IndustryRetrieveSicParams + MonitorCreateParams = ContextDev::Models::MonitorCreateParams + + MonitorDeleteParams = ContextDev::Models::MonitorDeleteParams + + MonitorListAccountChangesParams = ContextDev::Models::MonitorListAccountChangesParams + + MonitorListAccountRunsParams = ContextDev::Models::MonitorListAccountRunsParams + + MonitorListChangesParams = ContextDev::Models::MonitorListChangesParams + + MonitorListParams = ContextDev::Models::MonitorListParams + + MonitorListRunsParams = ContextDev::Models::MonitorListRunsParams + + MonitorRetrieveChangeParams = ContextDev::Models::MonitorRetrieveChangeParams + + MonitorRetrieveParams = ContextDev::Models::MonitorRetrieveParams + + MonitorRunParams = ContextDev::Models::MonitorRunParams + + MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams + UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams diff --git a/lib/context_dev/models/monitor_create_params.rb b/lib/context_dev/models/monitor_create_params.rb new file mode 100644 index 00000000..b1e45d1c --- /dev/null +++ b/lib/context_dev/models/monitor_create_params.rb @@ -0,0 +1,914 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#create + class MonitorCreateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute body + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] + required :body, union: -> { ContextDev::MonitorCreateParams::Body } + + # @!method initialize(body:, request_options: {}) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams} for more details. + # + # @param body [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] Union of supported monitor creation shapes. Supported combinations are: `page + + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + module Body + extend ContextDev::Internal::Type::Union + + # Monitor a single page for exact visible text changes. + variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest } + + # Monitor a sitemap for exact URL additions and removals. + variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest } + + # Monitor a single page for semantic changes described by a natural language query. + variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest } + + # Monitor a website's extracted structured data for semantic changes described by a natural language query. + variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest } + + class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection] + required :change_detection, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule] + required :schedule, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target] + required :target, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, nil] + optional :webhook, + -> { + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook + }, + nil?: true + + # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest} + # for more details. + # + # Monitor a single page for exact visible text changes. + # + # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit] + required :unit, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # @param url [String] Webhook URL called when a change is detected. + end + end + + class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection] + required :change_detection, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule] + required :schedule, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target] + required :target, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, nil] + optional :webhook, + -> { + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook + }, + nil?: true + + # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest} + # for more details. + # + # Monitor a sitemap for exact URL additions and removals. + # + # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit] + required :unit, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type } + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type] + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # @param url [String] Webhook URL called when a change is detected. + end + end + + class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection] + required :change_detection, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule] + required :schedule, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target] + required :target, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, nil] + optional :webhook, + -> { + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook + }, + nil?: true + + # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest} + # for more details. + # + # Monitor a single page for semantic changes described by a natural language + # query. + # + # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit] + required :unit, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # @param url [String] Webhook URL called when a change is detected. + end + end + + class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection] + required :change_detection, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule] + required :schedule, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target] + required :target, + -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, nil] + optional :webhook, + -> { + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook + }, + nil?: true + + # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest} + # for more details. + # + # Monitor a website's extracted structured data for semantic changes described by + # a natural language query. + # + # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit] + required :unit, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type] + required :type, + enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type } + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target} + # for more details. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type] + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # @param url [String] Webhook URL called when a change is detected. + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest)] + end + end + end +end diff --git a/lib/context_dev/models/monitor_create_response.rb b/lib/context_dev/models/monitor_create_response.rb new file mode 100644 index 00000000..1f370499 --- /dev/null +++ b/lib/context_dev/models/monitor_create_response.rb @@ -0,0 +1,1170 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # Union of monitor response shapes. + # + # @see ContextDev::Resources::Monitors#create + module MonitorCreateResponse + extend ContextDev::Internal::Type::Union + + # A page monitor using exact change detection. + variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor } + + # A sitemap monitor using exact change detection. + variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor } + + # A page monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor } + + # An extract monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule] + required :schedule, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status] + required :status, enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor} for more + # details. + # + # A page monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor} for + # more details. + # + # A sitemap monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type } + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type] + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target] + required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor} for + # more details. + # + # A page monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target] + required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor} for + # more details. + # + # An extract monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type } + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target} + # for more details. + # + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type] + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor)] + end + end +end diff --git a/lib/context_dev/models/monitor_delete_params.rb b/lib/context_dev/models/monitor_delete_params.rb new file mode 100644 index 00000000..7ee1b550 --- /dev/null +++ b/lib/context_dev/models/monitor_delete_params.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#delete + class MonitorDeleteParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!method initialize(monitor_id:, request_options: {}) + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/context_dev/models/monitor_delete_response.rb b/lib/context_dev/models/monitor_delete_response.rb new file mode 100644 index 00000000..6e3f4fcf --- /dev/null +++ b/lib/context_dev/models/monitor_delete_response.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#delete + class MonitorDeleteResponse < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute deleted + # + # @return [Boolean] + required :deleted, ContextDev::Internal::Type::Boolean + + # @!method initialize(id:, deleted:) + # @param id [String] + # @param deleted [Boolean] + end + end +end diff --git a/lib/context_dev/models/monitor_list_account_changes_params.rb b/lib/context_dev/models/monitor_list_account_changes_params.rb new file mode 100644 index 00000000..3919e46f --- /dev/null +++ b/lib/context_dev/models/monitor_list_account_changes_params.rb @@ -0,0 +1,93 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_account_changes + class MonitorListAccountChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesParams::ChangeDetectionType, nil] + optional :change_detection_type, + enum: -> { ContextDev::MonitorListAccountChangesParams::ChangeDetectionType } + + # @!attribute cursor + # + # @return [String, nil] + optional :cursor, String + + # @!attribute limit + # + # @return [Integer, nil] + optional :limit, Integer + + # @!attribute monitor_id + # + # @return [String, nil] + optional :monitor_id, String + + # @!attribute since + # + # @return [Time, nil] + optional :since, Time + + # @!attribute tag + # Filter to items that have this tag. + # + # @return [String, nil] + optional :tag, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesParams::TargetType, nil] + optional :target_type, enum: -> { ContextDev::MonitorListAccountChangesParams::TargetType } + + # @!attribute until_ + # + # @return [Time, nil] + optional :until_, Time + + # @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, monitor_id: nil, since: nil, tag: nil, target_type: nil, until_: nil, request_options: {}) + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::ChangeDetectionType] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param monitor_id [String] + # + # @param since [Time] + # + # @param tag [String] Filter to items that have this tag. + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::TargetType] + # + # @param until_ [Time] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_account_changes_response.rb b/lib/context_dev/models/monitor_list_account_changes_response.rb new file mode 100644 index 00000000..5e9c57fb --- /dev/null +++ b/lib/context_dev/models/monitor_list_account_changes_response.rb @@ -0,0 +1,476 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_account_changes + class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel + # @!attribute data + # + # @return [Array] + required :data, + -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListAccountChangesResponse::Data] } + + # @!attribute has_more + # + # @return [Boolean] + required :has_more, ContextDev::Internal::Type::Boolean + + # @!attribute next_cursor + # + # @return [String, nil] + required :next_cursor, String, nil?: true + + # @!method initialize(data:, has_more:, next_cursor:) + # @param data [Array] + # @param has_more [Boolean] + # @param next_cursor [String, nil] + + # Union of lightweight change summaries. + module Data + extend ContextDev::Internal::Type::Union + + variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary } + + variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary } + + variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary } + + variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary } + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute added_url_count + # + # @return [Integer] + required :added_url_count, Integer + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute removed_url_count + # + # @return [Integer] + required :removed_url_count, Integer + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, added_url_count:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param added_url_count [Integer] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param monitor_id [String] + # + # @param removed_url_count [Integer] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance } + + # @!attribute matched_url_count + # + # @return [Integer] + required :matched_url_count, Integer + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, matched_url_count:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] + # + # @param matched_url_count [Integer] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary)] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_account_runs_params.rb b/lib/context_dev/models/monitor_list_account_runs_params.rb new file mode 100644 index 00000000..c07d5f83 --- /dev/null +++ b/lib/context_dev/models/monitor_list_account_runs_params.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_account_runs + class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute cursor + # + # @return [String, nil] + optional :cursor, String + + # @!attribute limit + # + # @return [Integer, nil] + optional :limit, Integer + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status, nil] + optional :status, enum: -> { ContextDev::MonitorListAccountRunsParams::Status } + + # @!method initialize(cursor: nil, limit: nil, status: nil, request_options: {}) + # @param cursor [String] + # @param limit [Integer] + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED = :queued + RUNNING = :running + COMPLETED = :completed + FAILED = :failed + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_account_runs_response.rb b/lib/context_dev/models/monitor_list_account_runs_response.rb new file mode 100644 index 00000000..034d318c --- /dev/null +++ b/lib/context_dev/models/monitor_list_account_runs_response.rb @@ -0,0 +1,189 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_account_runs + class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel + # @!attribute data + # + # @return [Array] + required :data, + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountRunsResponse::Data] } + + # @!attribute has_more + # + # @return [Boolean] + required :has_more, ContextDev::Internal::Type::Boolean + + # @!attribute next_cursor + # + # @return [String, nil] + required :next_cursor, String, nil?: true + + # @!method initialize(data:, has_more:, next_cursor:) + # @param data [Array] + # @param has_more [Boolean] + # @param next_cursor [String, nil] + + class Data < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute baseline_created + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + # + # @return [Boolean] + required :baseline_created, ContextDev::Internal::Type::Boolean + + # @!attribute change_detected + # + # @return [Boolean] + required :change_detected, ContextDev::Internal::Type::Boolean + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute run_type + # The first run after monitor creation is a baseline run. + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType] + required :run_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] + required :status, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Status } + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType] + required :target_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType } + + # @!attribute change_id + # + # @return [String, nil] + optional :change_id, String, nil?: true + + # @!attribute completed_at + # + # @return [Time, nil] + optional :completed_at, Time, nil?: true + + # @!attribute error + # + # @return [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil] + optional :error, -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Error }, nil?: true + + # @!attribute started_at + # + # @return [Time, nil] + optional :started_at, Time, nil?: true + + # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, started_at: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListAccountRunsResponse::Data} for more details. + # + # @param id [String] + # + # @param baseline_created [Boolean] True when this run established the monitor's initial baseline; baseline runs per + # + # @param change_detected [Boolean] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType] + # + # @param monitor_id [String] + # + # @param run_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType] The first run after monitor creation is a baseline run. + # + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType] + # + # @param change_id [String, nil] + # + # @param completed_at [Time, nil] + # + # @param error [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil] + # + # @param started_at [Time, nil] + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # The first run after monitor creation is a baseline run. + # + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#run_type + module RunType + extend ContextDev::Internal::Type::Enum + + BASELINE = :baseline + SCHEDULED = :scheduled + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#status + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED = :queued + RUNNING = :running + COMPLETED = :completed + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#error + class Error < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # @param code [String] + # @param message [String] + end + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_changes_params.rb b/lib/context_dev/models/monitor_list_changes_params.rb new file mode 100644 index 00000000..bfa71405 --- /dev/null +++ b/lib/context_dev/models/monitor_list_changes_params.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_changes + class MonitorListChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute cursor + # + # @return [String, nil] + optional :cursor, String + + # @!attribute limit + # + # @return [Integer, nil] + optional :limit, Integer + + # @!attribute since + # + # @return [Time, nil] + optional :since, Time + + # @!attribute tag + # Filter to items that have this tag. + # + # @return [String, nil] + optional :tag, String + + # @!attribute until_ + # + # @return [Time, nil] + optional :until_, Time + + # @!method initialize(monitor_id:, cursor: nil, limit: nil, since: nil, tag: nil, until_: nil, request_options: {}) + # @param monitor_id [String] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param since [Time] + # + # @param tag [String] Filter to items that have this tag. + # + # @param until_ [Time] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/context_dev/models/monitor_list_changes_response.rb b/lib/context_dev/models/monitor_list_changes_response.rb new file mode 100644 index 00000000..003ed2d6 --- /dev/null +++ b/lib/context_dev/models/monitor_list_changes_response.rb @@ -0,0 +1,476 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_changes + class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel + # @!attribute data + # + # @return [Array] + required :data, + -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListChangesResponse::Data] } + + # @!attribute has_more + # + # @return [Boolean] + required :has_more, ContextDev::Internal::Type::Boolean + + # @!attribute next_cursor + # + # @return [String, nil] + required :next_cursor, String, nil?: true + + # @!method initialize(data:, has_more:, next_cursor:) + # @param data [Array] + # @param has_more [Boolean] + # @param next_cursor [String, nil] + + # Union of lightweight change summaries. + module Data + extend ContextDev::Internal::Type::Union + + variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary } + + variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary } + + variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary } + + variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary } + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute added_url_count + # + # @return [Integer] + required :added_url_count, Integer + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute removed_url_count + # + # @return [Integer] + required :removed_url_count, Integer + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, added_url_count:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param added_url_count [Integer] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param monitor_id [String] + # + # @param removed_url_count [Integer] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance } + + # @!attribute matched_url_count + # + # @return [Integer] + required :matched_url_count, Integer + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, matched_url_count:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] + # + # @param matched_url_count [Integer] + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary)] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_params.rb b/lib/context_dev/models/monitor_list_params.rb new file mode 100644 index 00000000..53ecf12c --- /dev/null +++ b/lib/context_dev/models/monitor_list_params.rb @@ -0,0 +1,89 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list + class MonitorListParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType, nil] + optional :change_detection_type, enum: -> { ContextDev::MonitorListParams::ChangeDetectionType } + + # @!attribute cursor + # + # @return [String, nil] + optional :cursor, String + + # @!attribute limit + # + # @return [Integer, nil] + optional :limit, Integer + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListParams::Status, nil] + optional :status, enum: -> { ContextDev::MonitorListParams::Status } + + # @!attribute tag + # Filter to items that have this tag. + # + # @return [String, nil] + optional :tag, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListParams::TargetType, nil] + optional :target_type, enum: -> { ContextDev::MonitorListParams::TargetType } + + # @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, status: nil, tag: nil, target_type: nil, request_options: {}) + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] + # + # @param tag [String] Filter to items that have this tag. + # + # @param target_type [Symbol, ContextDev::Models::MonitorListParams::TargetType] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_response.rb b/lib/context_dev/models/monitor_list_response.rb new file mode 100644 index 00000000..173a2865 --- /dev/null +++ b/lib/context_dev/models/monitor_list_response.rb @@ -0,0 +1,1197 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list + class MonitorListResponse < ContextDev::Internal::Type::BaseModel + # @!attribute data + # + # @return [Array] + required :data, + -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListResponse::Data] } + + # @!attribute has_more + # + # @return [Boolean] + required :has_more, ContextDev::Internal::Type::Boolean + + # @!attribute next_cursor + # + # @return [String, nil] + required :next_cursor, String, nil?: true + + # @!method initialize(data:, has_more:, next_cursor:) + # @param data [Array] + # @param has_more [Boolean] + # @param next_cursor [String, nil] + + # Union of monitor response shapes. + module Data + extend ContextDev::Internal::Type::Union + + # A page monitor using exact change detection. + variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor } + + # A sitemap monitor using exact change detection. + variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor } + + # A page monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor } + + # An extract monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor} for + # more details. + # + # A page monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target] + required :target, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor} for + # more details. + # + # A sitemap monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type } + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type] + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target] + required :target, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor} for + # more details. + # + # A page monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target] + required :target, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor} + # for more details. + # + # An extract monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type } + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target} + # for more details. + # + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type] + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor)] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_runs_params.rb b/lib/context_dev/models/monitor_list_runs_params.rb new file mode 100644 index 00000000..b42c1a9b --- /dev/null +++ b/lib/context_dev/models/monitor_list_runs_params.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_runs + class MonitorListRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute cursor + # + # @return [String, nil] + optional :cursor, String + + # @!attribute limit + # + # @return [Integer, nil] + optional :limit, Integer + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListRunsParams::Status, nil] + optional :status, enum: -> { ContextDev::MonitorListRunsParams::Status } + + # @!method initialize(monitor_id:, cursor: nil, limit: nil, status: nil, request_options: {}) + # @param monitor_id [String] + # @param cursor [String] + # @param limit [Integer] + # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED = :queued + RUNNING = :running + COMPLETED = :completed + FAILED = :failed + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/context_dev/models/monitor_list_runs_response.rb b/lib/context_dev/models/monitor_list_runs_response.rb new file mode 100644 index 00000000..ab87854f --- /dev/null +++ b/lib/context_dev/models/monitor_list_runs_response.rb @@ -0,0 +1,189 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#list_runs + class MonitorListRunsResponse < ContextDev::Internal::Type::BaseModel + # @!attribute data + # + # @return [Array] + required :data, + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListRunsResponse::Data] } + + # @!attribute has_more + # + # @return [Boolean] + required :has_more, ContextDev::Internal::Type::Boolean + + # @!attribute next_cursor + # + # @return [String, nil] + required :next_cursor, String, nil?: true + + # @!method initialize(data:, has_more:, next_cursor:) + # @param data [Array] + # @param has_more [Boolean] + # @param next_cursor [String, nil] + + class Data < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute baseline_created + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + # + # @return [Boolean] + required :baseline_created, ContextDev::Internal::Type::Boolean + + # @!attribute change_detected + # + # @return [Boolean] + required :change_detected, ContextDev::Internal::Type::Boolean + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute run_type + # The first run after monitor creation is a baseline run. + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::RunType] + required :run_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::RunType } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] + required :status, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::Status } + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::TargetType] + required :target_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::TargetType } + + # @!attribute change_id + # + # @return [String, nil] + optional :change_id, String, nil?: true + + # @!attribute completed_at + # + # @return [Time, nil] + optional :completed_at, Time, nil?: true + + # @!attribute error + # + # @return [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil] + optional :error, -> { ContextDev::Models::MonitorListRunsResponse::Data::Error }, nil?: true + + # @!attribute started_at + # + # @return [Time, nil] + optional :started_at, Time, nil?: true + + # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, started_at: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListRunsResponse::Data} for more details. + # + # @param id [String] + # + # @param baseline_created [Boolean] True when this run established the monitor's initial baseline; baseline runs per + # + # @param change_detected [Boolean] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType] + # + # @param monitor_id [String] + # + # @param run_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::RunType] The first run after monitor creation is a baseline run. + # + # @param status [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::TargetType] + # + # @param change_id [String, nil] + # + # @param completed_at [Time, nil] + # + # @param error [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil] + # + # @param started_at [Time, nil] + + # @see ContextDev::Models::MonitorListRunsResponse::Data#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + # The first run after monitor creation is a baseline run. + # + # @see ContextDev::Models::MonitorListRunsResponse::Data#run_type + module RunType + extend ContextDev::Internal::Type::Enum + + BASELINE = :baseline + SCHEDULED = :scheduled + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListRunsResponse::Data#status + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED = :queued + RUNNING = :running + COMPLETED = :completed + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListRunsResponse::Data#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorListRunsResponse::Data#error + class Error < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # @param code [String] + # @param message [String] + end + end + end + end +end diff --git a/lib/context_dev/models/monitor_retrieve_change_params.rb b/lib/context_dev/models/monitor_retrieve_change_params.rb new file mode 100644 index 00000000..b08fe014 --- /dev/null +++ b/lib/context_dev/models/monitor_retrieve_change_params.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#retrieve_change + class MonitorRetrieveChangeParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute change_id + # + # @return [String] + required :change_id, String + + # @!method initialize(change_id:, request_options: {}) + # @param change_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/context_dev/models/monitor_retrieve_change_response.rb b/lib/context_dev/models/monitor_retrieve_change_response.rb new file mode 100644 index 00000000..bdebc7c4 --- /dev/null +++ b/lib/context_dev/models/monitor_retrieve_change_response.rb @@ -0,0 +1,571 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # Union of full change detail objects. + # + # @see ContextDev::Resources::Monitors#retrieve_change + module MonitorRetrieveChangeResponse + extend ContextDev::Internal::Type::Union + + variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange } + + variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange } + + variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange } + + variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange } + + class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute diff + # Text diff between the previous and current page baseline. + # + # @return [String] + required :diff, String + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute after_text_excerpt + # + # @return [String, nil] + optional :after_text_excerpt, String + + # @!attribute before_text_excerpt + # + # @return [String, nil] + optional :before_text_excerpt, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, diff:, monitor_id:, summary:, target_type:, title:, url:, after_text_excerpt: nil, before_text_excerpt: nil, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param diff [String] Text diff between the previous and current page baseline. + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param after_text_excerpt [String] + # + # @param before_text_excerpt [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute added_url_count + # + # @return [Integer] + required :added_url_count, Integer + + # @!attribute added_urls + # + # @return [Array] + required :added_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute removed_url_count + # + # @return [Integer] + required :removed_url_count, Integer + + # @!attribute removed_urls + # + # @return [Array] + required :removed_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, added_url_count:, added_urls:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, removed_urls:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param added_url_count [Integer] + # + # @param added_urls [Array] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param monitor_id [String] + # + # @param removed_url_count [Integer] + # + # @param removed_urls [Array] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute evidence + # + # @return [Array] + required :evidence, + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence] } + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, evidence:, importance:, monitor_id:, query:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param evidence [Array] + # + # @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance] + # + # @param monitor_id [String] + # + # @param query [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + class Evidence < ContextDev::Internal::Type::BaseModel + # @!attribute after + # + # @return [String] + required :after, String + + # @!attribute before + # + # @return [String] + required :before, String + + # @!method initialize(after:, before:) + # @param after [String] + # @param before [String] + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType } + + # @!attribute confidence + # + # @return [Float] + required :confidence, Float + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute evidence + # + # @return [Array] + required :evidence, + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence] } + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance] + required :importance, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance } + + # @!attribute matched_url_count + # + # @return [Integer] + required :matched_url_count, Integer + + # @!attribute matched_urls + # + # @return [Array] + required :matched_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # Root URL of the extract target. + # + # @return [String] + required :url, String + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, evidence:, importance:, matched_url_count:, matched_urls:, monitor_id:, query:, summary:, target_type:, title:, url:, tags: nil) + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType] + # + # @param confidence [Float] + # + # @param detected_at [Time] + # + # @param evidence [Array] + # + # @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance] + # + # @param matched_url_count [Integer] + # + # @param matched_urls [Array] + # + # @param monitor_id [String] + # + # @param query [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType] + # + # @param title [String] + # + # @param url [String] Root URL of the extract target. + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + + class Evidence < ContextDev::Internal::Type::BaseModel + # @!attribute after + # Snapshot of the extracted data after the change. + # + # @return [String] + required :after, String + + # @!attribute before + # Snapshot of the extracted data before the change. + # + # @return [String] + required :before, String + + # @!attribute url + # Optional URL the evidence relates to. Absent for whole-target extract diffs. + # + # @return [String, nil] + optional :url, String + + # @!method initialize(after:, before:, url: nil) + # @param after [String] Snapshot of the extracted data after the change. + # + # @param before [String] Snapshot of the extracted data before the change. + # + # @param url [String] Optional URL the evidence relates to. Absent for whole-target extract diffs. + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange)] + end + end +end diff --git a/lib/context_dev/models/monitor_retrieve_params.rb b/lib/context_dev/models/monitor_retrieve_params.rb new file mode 100644 index 00000000..fc47c9c1 --- /dev/null +++ b/lib/context_dev/models/monitor_retrieve_params.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#retrieve + class MonitorRetrieveParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!method initialize(monitor_id:, request_options: {}) + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/context_dev/models/monitor_retrieve_response.rb b/lib/context_dev/models/monitor_retrieve_response.rb new file mode 100644 index 00000000..6267c262 --- /dev/null +++ b/lib/context_dev/models/monitor_retrieve_response.rb @@ -0,0 +1,1172 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # Union of monitor response shapes. + # + # @see ContextDev::Resources::Monitors#retrieve + module MonitorRetrieveResponse + extend ContextDev::Internal::Type::Union + + # A page monitor using exact change detection. + variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor } + + # A sitemap monitor using exact change detection. + variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor } + + # A page monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor } + + # An extract monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule] + required :schedule, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor} for more + # details. + # + # A page monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor} for + # more details. + # + # A sitemap monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type } + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type] + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target] + required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor} for + # more details. + # + # A page monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target] + required :target, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor} + # for more details. + # + # An extract monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type } + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target} + # for more details. + # + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type] + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor)] + end + end +end diff --git a/lib/context_dev/models/monitor_run_params.rb b/lib/context_dev/models/monitor_run_params.rb new file mode 100644 index 00000000..dbdf3be9 --- /dev/null +++ b/lib/context_dev/models/monitor_run_params.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#run + class MonitorRunParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!method initialize(monitor_id:, request_options: {}) + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/context_dev/models/monitor_run_response.rb b/lib/context_dev/models/monitor_run_response.rb new file mode 100644 index 00000000..480ef301 --- /dev/null +++ b/lib/context_dev/models/monitor_run_response.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#run + class MonitorRunResponse < ContextDev::Internal::Type::BaseModel + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute queued + # + # @return [Boolean] + required :queued, ContextDev::Internal::Type::Boolean + + # @!method initialize(monitor_id:, queued:) + # @param monitor_id [String] + # @param queued [Boolean] + end + end +end diff --git a/lib/context_dev/models/monitor_update_params.rb b/lib/context_dev/models/monitor_update_params.rb new file mode 100644 index 00000000..52be163a --- /dev/null +++ b/lib/context_dev/models/monitor_update_params.rb @@ -0,0 +1,355 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # @see ContextDev::Resources::Monitors#update + class MonitorUpdateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute change_detection + # Discriminated union describing how changes are detected. + # + # @return [ContextDev::Models::MonitorUpdateParams::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateParams::ChangeDetection::Semantic, nil] + optional :change_detection, union: -> { ContextDev::MonitorUpdateParams::ChangeDetection } + + # @!attribute name + # + # @return [String, nil] + optional :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateParams::Schedule, nil] + optional :schedule, -> { ContextDev::MonitorUpdateParams::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateParams::Status, nil] + optional :status, enum: -> { ContextDev::MonitorUpdateParams::Status } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorUpdateParams::Target::Page, ContextDev::Models::MonitorUpdateParams::Target::Sitemap, ContextDev::Models::MonitorUpdateParams::Target::Extract, nil] + optional :target, union: -> { ContextDev::MonitorUpdateParams::Target } + + # @!attribute webhook + # Set to null to remove the webhook. + # + # @return [ContextDev::Models::MonitorUpdateParams::Webhook, nil] + optional :webhook, -> { ContextDev::MonitorUpdateParams::Webhook }, nil?: true + + # @!method initialize(monitor_id:, change_detection: nil, name: nil, schedule: nil, status: nil, tags: nil, target: nil, webhook: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateParams} for more details. + # + # @param monitor_id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateParams::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateParams::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateParams::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateParams::Status] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param target [ContextDev::Models::MonitorUpdateParams::Target::Page, ContextDev::Models::MonitorUpdateParams::Target::Sitemap, ContextDev::Models::MonitorUpdateParams::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param webhook [ContextDev::Models::MonitorUpdateParams::Webhook, nil] Set to null to remove the webhook. + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::MonitorUpdateParams::ChangeDetection::Exact } + + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::MonitorUpdateParams::ChangeDetection::Semantic } + + class Exact < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :exact] + required :type, const: :exact + + # @!method initialize(type: :exact) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, :exact] + end + + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, :semantic] + required :type, const: :semantic + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorUpdateParams::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateParams::ChangeDetection::Semantic)] + end + + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateParams::Schedule::Type] + required :type, enum: -> { ContextDev::MonitorUpdateParams::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorUpdateParams::Schedule::Unit] + required :unit, enum: -> { ContextDev::MonitorUpdateParams::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateParams::Schedule} for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateParams::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorUpdateParams::Schedule::Unit] + + # @see ContextDev::Models::MonitorUpdateParams::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateParams::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + + # @!method self.values + # @return [Array] + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + discriminator :type + + variant :page, -> { ContextDev::MonitorUpdateParams::Target::Page } + + variant :sitemap, -> { ContextDev::MonitorUpdateParams::Target::Sitemap } + + variant :extract, -> { ContextDev::MonitorUpdateParams::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :page] + required :type, const: :page + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + # + # @param type [Symbol, :page] + end + + class Sitemap < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :sitemap] + required :type, const: :sitemap + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + # + # @param type [Symbol, :sitemap] + end + + class Extract < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :extract] + required :type, const: :extract + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateParams::Target::Extract} for more details. + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + # + # @param type [Symbol, :extract] + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorUpdateParams::Target::Page, ContextDev::Models::MonitorUpdateParams::Target::Sitemap, ContextDev::Models::MonitorUpdateParams::Target::Extract)] + end + + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # Set to null to remove the webhook. + # + # @param url [String] Webhook URL called when a change is detected. + end + end + end +end diff --git a/lib/context_dev/models/monitor_update_response.rb b/lib/context_dev/models/monitor_update_response.rb new file mode 100644 index 00000000..24bfafa1 --- /dev/null +++ b/lib/context_dev/models/monitor_update_response.rb @@ -0,0 +1,1170 @@ +# frozen_string_literal: true + +module ContextDev + module Models + # Union of monitor response shapes. + # + # @see ContextDev::Resources::Monitors#update + module MonitorUpdateResponse + extend ContextDev::Internal::Type::Union + + # A page monitor using exact change detection. + variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor } + + # A sitemap monitor using exact change detection. + variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor } + + # A page monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor } + + # An extract monitor using semantic change detection. + variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule] + required :schedule, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status] + required :status, enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor} for more + # details. + # + # A page monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target] + required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor} for + # more details. + # + # A sitemap monitor using exact change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status] + # + # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + + # @!method initialize(type:) + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type } + + # @!attribute url + # Sitemap URL to monitor. + # + # @return [String] + required :url, String + + # @!attribute exclude + # URL path patterns to exclude. + # + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute include + # URL path patterns to include. + # + # @return [Array, nil] + optional :include, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute max_urls + # + # @return [Integer, nil] + optional :max_urls, Integer + + # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type] + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP = :sitemap + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target] + required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor} for + # more details. + # + # A page monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type } + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. + # + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(type:, url:, normalize_whitespace: nil) + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type] + # + # @param url [String] + # + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + PAGE = :page + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Detect meaning-level changes that match a natural language query. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] + required :change_detection, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule] + required :schedule, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status] + required :status, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status } + + # @!attribute target + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target] + required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + optional :webhook, + -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook }, + nil?: true + + # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor} for + # more details. + # + # An extract monitor using semantic change detection. + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. + # + # @param created_at [Time] + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status] + # + # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target] + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#change_detection + class ChangeDetection < ContextDev::Internal::Type::BaseModel + # @!attribute query + # + # @return [String] + required :query, String + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } + + # @!attribute confidence_threshold + # + # @return [Float, nil] + optional :confidence_threshold, Float + + # @!method initialize(query:, type:, confidence_threshold: nil) + # Detect meaning-level changes that match a natural language query. + # + # @param query [String] + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] + # @param confidence_threshold [Float] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + required :unit, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule} + # for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#status + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE = :active + PAUSED = :paused + FAILED = :failed + + # @!method self.values + # @return [Array] + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#target + class Target < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type] + required :type, + enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type } + + # @!attribute url + # Root URL to extract structured data from. + # + # @return [String] + required :url, String + + # @!attribute follow_subdomains + # + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean + + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. + # + # @return [String, nil] + optional :instructions, String + + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer + + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + # + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] + + # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target} + # for more details. + # + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type] + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target#type + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT = :extract + + # @!method self.values + # @return [Array] + end + end + + # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + # + # @return [String, nil] + optional :secret, String + end + + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook} + # for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor)] + end + end +end diff --git a/lib/context_dev/resources/monitors.rb b/lib/context_dev/resources/monitors.rb new file mode 100644 index 00000000..f2978838 --- /dev/null +++ b/lib/context_dev/resources/monitors.rb @@ -0,0 +1,314 @@ +# frozen_string_literal: true + +module ContextDev + module Resources + # Monitor pages, sitemaps, and extracted website data for exact or semantic + # changes. The change.detected webhook payload is documented by the + # MonitorsChangeDetectedWebhookPayload schema. + class Monitors + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams} for more details. + # + # Creates a monitor. The request body is a union of the supported target/change + # detection combinations. The monitor runs immediately after creation to create + # its initial baseline. + # + # @overload create(body:, request_options: {}) + # + # @param body [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] Union of supported monitor creation shapes. Supported combinations are: `page + + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor] + # + # @see ContextDev::Models::MonitorCreateParams + def create(params) + parsed, options = ContextDev::MonitorCreateParams.dump_request(params) + @client.request( + method: :post, + path: "monitors", + body: parsed[:body], + model: ContextDev::Models::MonitorCreateResponse, + options: options + ) + end + + # Get a monitor + # + # @overload retrieve(monitor_id, request_options: {}) + # + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor] + # + # @see ContextDev::Models::MonitorRetrieveParams + def retrieve(monitor_id, params = {}) + @client.request( + method: :get, + path: ["monitors/%1$s", monitor_id], + model: ContextDev::Models::MonitorRetrieveResponse, + options: params[:request_options] + ) + end + + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateParams} for more details. + # + # Updates a monitor. If `target` or `change_detection` changes, the monitor + # creates a new baseline. Unsupported target/change detection combinations are + # rejected. + # + # @overload update(monitor_id, change_detection: nil, name: nil, schedule: nil, status: nil, tags: nil, target: nil, webhook: nil, request_options: {}) + # + # @param monitor_id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateParams::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateParams::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateParams::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateParams::Status] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param target [ContextDev::Models::MonitorUpdateParams::Target::Page, ContextDev::Models::MonitorUpdateParams::Target::Sitemap, ContextDev::Models::MonitorUpdateParams::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param webhook [ContextDev::Models::MonitorUpdateParams::Webhook, nil] Set to null to remove the webhook. + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor] + # + # @see ContextDev::Models::MonitorUpdateParams + def update(monitor_id, params = {}) + parsed, options = ContextDev::MonitorUpdateParams.dump_request(params) + @client.request( + method: :patch, + path: ["monitors/%1$s", monitor_id], + body: parsed, + model: ContextDev::Models::MonitorUpdateResponse, + options: options + ) + end + + # List monitors + # + # @overload list(change_detection_type: nil, cursor: nil, limit: nil, status: nil, tag: nil, target_type: nil, request_options: {}) + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] + # + # @param tag [String] Filter to items that have this tag. + # + # @param target_type [Symbol, ContextDev::Models::MonitorListParams::TargetType] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorListResponse] + # + # @see ContextDev::Models::MonitorListParams + def list(params = {}) + parsed, options = ContextDev::MonitorListParams.dump_request(params) + query = ContextDev::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "monitors", + query: query, + model: ContextDev::Models::MonitorListResponse, + options: options + ) + end + + # Delete a monitor + # + # @overload delete(monitor_id, request_options: {}) + # + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorDeleteResponse] + # + # @see ContextDev::Models::MonitorDeleteParams + def delete(monitor_id, params = {}) + @client.request( + method: :delete, + path: ["monitors/%1$s", monitor_id], + model: ContextDev::Models::MonitorDeleteResponse, + options: params[:request_options] + ) + end + + # Returns an account-wide feed of detected changes across monitors. + # + # @overload list_account_changes(change_detection_type: nil, cursor: nil, limit: nil, monitor_id: nil, since: nil, tag: nil, target_type: nil, until_: nil, request_options: {}) + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::ChangeDetectionType] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param monitor_id [String] + # + # @param since [Time] + # + # @param tag [String] Filter to items that have this tag. + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::TargetType] + # + # @param until_ [Time] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorListAccountChangesResponse] + # + # @see ContextDev::Models::MonitorListAccountChangesParams + def list_account_changes(params = {}) + parsed, options = ContextDev::MonitorListAccountChangesParams.dump_request(params) + query = ContextDev::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "monitors/changes", + query: query.transform_keys(until_: "until"), + model: ContextDev::Models::MonitorListAccountChangesResponse, + options: options + ) + end + + # Returns an account-wide feed of monitor runs across all monitors. + # + # @overload list_account_runs(cursor: nil, limit: nil, status: nil, request_options: {}) + # + # @param cursor [String] + # @param limit [Integer] + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorListAccountRunsResponse] + # + # @see ContextDev::Models::MonitorListAccountRunsParams + def list_account_runs(params = {}) + parsed, options = ContextDev::MonitorListAccountRunsParams.dump_request(params) + query = ContextDev::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: "monitors/runs", + query: query, + model: ContextDev::Models::MonitorListAccountRunsResponse, + options: options + ) + end + + # List changes for a monitor + # + # @overload list_changes(monitor_id, cursor: nil, limit: nil, since: nil, tag: nil, until_: nil, request_options: {}) + # + # @param monitor_id [String] + # + # @param cursor [String] + # + # @param limit [Integer] + # + # @param since [Time] + # + # @param tag [String] Filter to items that have this tag. + # + # @param until_ [Time] + # + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorListChangesResponse] + # + # @see ContextDev::Models::MonitorListChangesParams + def list_changes(monitor_id, params = {}) + parsed, options = ContextDev::MonitorListChangesParams.dump_request(params) + query = ContextDev::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["monitors/%1$s/changes", monitor_id], + query: query.transform_keys(until_: "until"), + model: ContextDev::Models::MonitorListChangesResponse, + options: options + ) + end + + # List monitor runs + # + # @overload list_runs(monitor_id, cursor: nil, limit: nil, status: nil, request_options: {}) + # + # @param monitor_id [String] + # @param cursor [String] + # @param limit [Integer] + # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorListRunsResponse] + # + # @see ContextDev::Models::MonitorListRunsParams + def list_runs(monitor_id, params = {}) + parsed, options = ContextDev::MonitorListRunsParams.dump_request(params) + query = ContextDev::Internal::Util.encode_query_params(parsed) + @client.request( + method: :get, + path: ["monitors/%1$s/runs", monitor_id], + query: query, + model: ContextDev::Models::MonitorListRunsResponse, + options: options + ) + end + + # Get a change + # + # @overload retrieve_change(change_id, request_options: {}) + # + # @param change_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange] + # + # @see ContextDev::Models::MonitorRetrieveChangeParams + def retrieve_change(change_id, params = {}) + @client.request( + method: :get, + path: ["monitors/changes/%1$s", change_id], + model: ContextDev::Models::MonitorRetrieveChangeResponse, + options: params[:request_options] + ) + end + + # Triggers an immediate run of the monitor outside its normal schedule. The run is + # queued and processed asynchronously. + # + # @overload run(monitor_id, request_options: {}) + # + # @param monitor_id [String] + # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [ContextDev::Models::MonitorRunResponse] + # + # @see ContextDev::Models::MonitorRunParams + def run(monitor_id, params = {}) + @client.request( + method: :post, + path: ["monitors/%1$s/run", monitor_id], + model: ContextDev::Models::MonitorRunResponse, + options: params[:request_options] + ) + end + + # @api private + # + # @param client [ContextDev::Client] + def initialize(client:) + @client = client + end + end + end +end diff --git a/rbi/context_dev/client.rbi b/rbi/context_dev/client.rbi index f4c93b5a..ee3a64d1 100644 --- a/rbi/context_dev/client.rbi +++ b/rbi/context_dev/client.rbi @@ -28,6 +28,12 @@ module ContextDev sig { returns(ContextDev::Resources::Utility) } attr_reader :utility + # Monitor pages, sitemaps, and extracted website data for exact or semantic + # changes. The change.detected webhook payload is documented by the + # MonitorsChangeDetectedWebhookPayload schema. + sig { returns(ContextDev::Resources::Monitors) } + attr_reader :monitors + # @api private sig { override.returns(T::Hash[String, String]) } private def auth_headers diff --git a/rbi/context_dev/models.rbi b/rbi/context_dev/models.rbi index a68287c8..9c94f5ff 100644 --- a/rbi/context_dev/models.rbi +++ b/rbi/context_dev/models.rbi @@ -27,6 +27,30 @@ module ContextDev IndustryRetrieveSicParams = ContextDev::Models::IndustryRetrieveSicParams + MonitorCreateParams = ContextDev::Models::MonitorCreateParams + + MonitorDeleteParams = ContextDev::Models::MonitorDeleteParams + + MonitorListAccountChangesParams = + ContextDev::Models::MonitorListAccountChangesParams + + MonitorListAccountRunsParams = + ContextDev::Models::MonitorListAccountRunsParams + + MonitorListChangesParams = ContextDev::Models::MonitorListChangesParams + + MonitorListParams = ContextDev::Models::MonitorListParams + + MonitorListRunsParams = ContextDev::Models::MonitorListRunsParams + + MonitorRetrieveChangeParams = ContextDev::Models::MonitorRetrieveChangeParams + + MonitorRetrieveParams = ContextDev::Models::MonitorRetrieveParams + + MonitorRunParams = ContextDev::Models::MonitorRunParams + + MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams + UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams diff --git a/rbi/context_dev/models/monitor_create_params.rbi b/rbi/context_dev/models/monitor_create_params.rbi new file mode 100644 index 00000000..539fbc67 --- /dev/null +++ b/rbi/context_dev/models/monitor_create_params.rbi @@ -0,0 +1,2000 @@ +# typed: strong + +module ContextDev + module Models + class MonitorCreateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(ContextDev::MonitorCreateParams, ContextDev::Internal::AnyHash) + end + + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + sig do + returns( + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ) + ) + end + attr_accessor :body + + sig do + params( + body: + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::OrHash + ), + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + body:, + request_options: {} + ) + end + + sig do + override.returns( + { + body: + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ), + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + module Body + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ) + end + + class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, + ContextDev::Internal::AnyHash + ) + end + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::OrHash + ).void + end + attr_writer :target + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # Monitor a single page for exact visible text changes. + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::OrHash, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::OrHash, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::OrHash, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + target:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, + ContextDev::Internal::AnyHash + ) + end + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::OrHash + ).void + end + attr_writer :target + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # Monitor a sitemap for exact URL additions and removals. + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::OrHash, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::OrHash, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::OrHash, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + target:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol + ) + end + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + ).returns(T.attached_class) + end + def self.new( + type:, + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, + ContextDev::Internal::AnyHash + ) + end + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::OrHash + ).void + end + attr_writer :target + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # Monitor a single page for semantic changes described by a natural language + # query. + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::OrHash, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::OrHash, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::OrHash, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Detect meaning-level changes that match a natural language query. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + target:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest, + ContextDev::Internal::AnyHash + ) + end + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::OrHash + ).void + end + attr_writer :target + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # Monitor a website's extracted structured data for semantic changes described by + # a natural language query. + sig do + params( + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::OrHash, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::OrHash, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::OrHash, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # Detect meaning-level changes that match a natural language query. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + target:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + change_detection: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, + target: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol, + unit: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol + ) + end + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + ).returns(T.attached_class) + end + def self.new( + type:, + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ContextDev::MonitorCreateParams::Body::Variants] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_create_response.rbi b/rbi/context_dev/models/monitor_create_response.rbi new file mode 100644 index 00000000..9a1e1e44 --- /dev/null +++ b/rbi/context_dev/models/monitor_create_response.rbi @@ -0,0 +1,2328 @@ +# typed: strong + +module ContextDev + module Models + # Union of monitor response shapes. + module MonitorCreateResponse + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor + ) + end + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A sitemap monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + ).returns(T.attached_class) + end + def self.new( + type:, + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # An extract monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + ).returns(T.attached_class) + end + def self.new( + type:, + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ContextDev::Models::MonitorCreateResponse::Variants] + ) + end + def self.variants + end + end + end +end diff --git a/rbi/context_dev/models/monitor_delete_params.rbi b/rbi/context_dev/models/monitor_delete_params.rbi new file mode 100644 index 00000000..63c8ca76 --- /dev/null +++ b/rbi/context_dev/models/monitor_delete_params.rbi @@ -0,0 +1,35 @@ +# typed: strong + +module ContextDev + module Models + class MonitorDeleteParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(ContextDev::MonitorDeleteParams, ContextDev::Internal::AnyHash) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(monitor_id:, request_options: {}) + end + + sig do + override.returns( + { monitor_id: String, request_options: ContextDev::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_delete_response.rbi b/rbi/context_dev/models/monitor_delete_response.rbi new file mode 100644 index 00000000..549a324f --- /dev/null +++ b/rbi/context_dev/models/monitor_delete_response.rbi @@ -0,0 +1,29 @@ +# typed: strong + +module ContextDev + module Models + class MonitorDeleteResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorDeleteResponse, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig { returns(T::Boolean) } + attr_accessor :deleted + + sig { params(id: String, deleted: T::Boolean).returns(T.attached_class) } + def self.new(id:, deleted:) + end + + sig { override.returns({ id: String, deleted: T::Boolean }) } + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_account_changes_params.rbi b/rbi/context_dev/models/monitor_list_account_changes_params.rbi new file mode 100644 index 00000000..ebdf5a72 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_account_changes_params.rbi @@ -0,0 +1,211 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListAccountChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorListAccountChangesParams, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + T.nilable( + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::OrSymbol + ) + ) + end + attr_reader :change_detection_type + + sig do + params( + change_detection_type: + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::OrSymbol + ).void + end + attr_writer :change_detection_type + + sig { returns(T.nilable(String)) } + attr_reader :cursor + + sig { params(cursor: String).void } + attr_writer :cursor + + sig { returns(T.nilable(Integer)) } + attr_reader :limit + + sig { params(limit: Integer).void } + attr_writer :limit + + sig { returns(T.nilable(String)) } + attr_reader :monitor_id + + sig { params(monitor_id: String).void } + attr_writer :monitor_id + + sig { returns(T.nilable(Time)) } + attr_reader :since + + sig { params(since: Time).void } + attr_writer :since + + # Filter to items that have this tag. + sig { returns(T.nilable(String)) } + attr_reader :tag + + sig { params(tag: String).void } + attr_writer :tag + + sig do + returns( + T.nilable( + ContextDev::MonitorListAccountChangesParams::TargetType::OrSymbol + ) + ) + end + attr_reader :target_type + + sig do + params( + target_type: + ContextDev::MonitorListAccountChangesParams::TargetType::OrSymbol + ).void + end + attr_writer :target_type + + sig { returns(T.nilable(Time)) } + attr_reader :until_ + + sig { params(until_: Time).void } + attr_writer :until_ + + sig do + params( + change_detection_type: + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + monitor_id: String, + since: Time, + tag: String, + target_type: + ContextDev::MonitorListAccountChangesParams::TargetType::OrSymbol, + until_: Time, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + change_detection_type: nil, + cursor: nil, + limit: nil, + monitor_id: nil, + since: nil, + # Filter to items that have this tag. + tag: nil, + target_type: nil, + until_: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + change_detection_type: + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + monitor_id: String, + since: Time, + tag: String, + target_type: + ContextDev::MonitorListAccountChangesParams::TargetType::OrSymbol, + until_: Time, + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::TaggedSymbol + ) + SEMANTIC = + T.let( + :semantic, + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::MonitorListAccountChangesParams::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::MonitorListAccountChangesParams::TargetType::TaggedSymbol + ) + SITEMAP = + T.let( + :sitemap, + ContextDev::MonitorListAccountChangesParams::TargetType::TaggedSymbol + ) + EXTRACT = + T.let( + :extract, + ContextDev::MonitorListAccountChangesParams::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorListAccountChangesParams::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_account_changes_response.rbi b/rbi/context_dev/models/monitor_list_account_changes_response.rbi new file mode 100644 index 00000000..dfc33d72 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_account_changes_response.rbi @@ -0,0 +1,844 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants + ] + ) + end + attr_accessor :data + + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig do + params( + data: + T::Array[ + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::OrHash, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::OrHash, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::OrHash, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::OrHash + ) + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(data:, has_more:, next_cursor:) + end + + sig do + override.returns( + { + data: + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + } + ) + end + def to_hash + end + + # Union of lightweight change summaries. + module Data + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary + ) + end + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::OrSymbol, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig { returns(Integer) } + attr_accessor :added_url_count + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(Integer) } + attr_accessor :removed_url_count + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + added_url_count: Integer, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::OrSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + added_url_count:, + change_detection_type:, + detected_at:, + monitor_id:, + removed_url_count:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + added_url_count: Integer, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::OrSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + importance:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(Integer) } + attr_accessor :matched_url_count + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::OrSymbol, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + importance:, + matched_url_count:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants + ] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_account_runs_params.rbi b/rbi/context_dev/models/monitor_list_account_runs_params.rbi new file mode 100644 index 00000000..fd9152a5 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_account_runs_params.rbi @@ -0,0 +1,109 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorListAccountRunsParams, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(T.nilable(String)) } + attr_reader :cursor + + sig { params(cursor: String).void } + attr_writer :cursor + + sig { returns(T.nilable(Integer)) } + attr_reader :limit + + sig { params(limit: Integer).void } + attr_writer :limit + + sig do + returns( + T.nilable(ContextDev::MonitorListAccountRunsParams::Status::OrSymbol) + ) + end + attr_reader :status + + sig do + params( + status: ContextDev::MonitorListAccountRunsParams::Status::OrSymbol + ).void + end + attr_writer :status + + sig do + params( + cursor: String, + limit: Integer, + status: ContextDev::MonitorListAccountRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(cursor: nil, limit: nil, status: nil, request_options: {}) + end + + sig do + override.returns( + { + cursor: String, + limit: Integer, + status: ContextDev::MonitorListAccountRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListAccountRunsParams::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + QUEUED = + T.let( + :queued, + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ) + RUNNING = + T.let( + :running, + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ) + COMPLETED = + T.let( + :completed, + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_account_runs_response.rbi b/rbi/context_dev/models/monitor_list_account_runs_response.rbi new file mode 100644 index 00000000..bcc183a4 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_account_runs_response.rbi @@ -0,0 +1,385 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountRunsResponse, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data] + ) + end + attr_accessor :data + + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig do + params( + data: + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::OrHash + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(data:, has_more:, next_cursor:) + end + + sig do + override.returns( + { + data: + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + } + ) + end + def to_hash + end + + class Data < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountRunsResponse::Data, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + sig { returns(T::Boolean) } + attr_accessor :baseline_created + + sig { returns(T::Boolean) } + attr_accessor :change_detected + + sig do + returns( + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(String) } + attr_accessor :monitor_id + + # The first run after monitor creation is a baseline run. + sig do + returns( + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol + ) + end + attr_accessor :run_type + + sig do + returns( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(T.nilable(String)) } + attr_accessor :change_id + + sig { returns(T.nilable(Time)) } + attr_accessor :completed_at + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Error + ) + ) + end + attr_reader :error + + sig do + params( + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Error::OrHash + ) + ).void + end + attr_writer :error + + sig { returns(T.nilable(Time)) } + attr_accessor :started_at + + sig do + params( + id: String, + baseline_created: T::Boolean, + change_detected: T::Boolean, + change_detection_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::OrSymbol, + monitor_id: String, + run_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::OrSymbol, + status: + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::OrSymbol, + target_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::OrSymbol, + change_id: T.nilable(String), + completed_at: T.nilable(Time), + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Error::OrHash + ), + started_at: T.nilable(Time) + ).returns(T.attached_class) + end + def self.new( + id:, + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + baseline_created:, + change_detected:, + change_detection_type:, + monitor_id:, + # The first run after monitor creation is a baseline run. + run_type:, + status:, + target_type:, + change_id: nil, + completed_at: nil, + error: nil, + started_at: nil + ) + end + + sig do + override.returns( + { + id: String, + baseline_created: T::Boolean, + change_detected: T::Boolean, + change_detection_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol, + monitor_id: String, + run_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol, + status: + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol, + target_type: + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol, + change_id: T.nilable(String), + completed_at: T.nilable(Time), + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Error + ), + started_at: T.nilable(Time) + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + # The first run after monitor creation is a baseline run. + module RunType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + BASELINE = + T.let( + :baseline, + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol + ) + SCHEDULED = + T.let( + :scheduled, + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + QUEUED = + T.let( + :queued, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) + RUNNING = + T.let( + :running, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) + COMPLETED = + T.let( + :completed, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol + ) + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol + ) + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Error < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + sig do + params(code: String, message: String).returns(T.attached_class) + end + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_changes_params.rbi b/rbi/context_dev/models/monitor_list_changes_params.rbi new file mode 100644 index 00000000..263fc62c --- /dev/null +++ b/rbi/context_dev/models/monitor_list_changes_params.rbi @@ -0,0 +1,91 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorListChangesParams, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(T.nilable(String)) } + attr_reader :cursor + + sig { params(cursor: String).void } + attr_writer :cursor + + sig { returns(T.nilable(Integer)) } + attr_reader :limit + + sig { params(limit: Integer).void } + attr_writer :limit + + sig { returns(T.nilable(Time)) } + attr_reader :since + + sig { params(since: Time).void } + attr_writer :since + + # Filter to items that have this tag. + sig { returns(T.nilable(String)) } + attr_reader :tag + + sig { params(tag: String).void } + attr_writer :tag + + sig { returns(T.nilable(Time)) } + attr_reader :until_ + + sig { params(until_: Time).void } + attr_writer :until_ + + sig do + params( + monitor_id: String, + cursor: String, + limit: Integer, + since: Time, + tag: String, + until_: Time, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + monitor_id:, + cursor: nil, + limit: nil, + since: nil, + # Filter to items that have this tag. + tag: nil, + until_: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + monitor_id: String, + cursor: String, + limit: Integer, + since: Time, + tag: String, + until_: Time, + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_changes_response.rbi b/rbi/context_dev/models/monitor_list_changes_response.rbi new file mode 100644 index 00000000..910f5091 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_changes_response.rbi @@ -0,0 +1,844 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::Variants + ] + ) + end + attr_accessor :data + + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig do + params( + data: + T::Array[ + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::OrHash, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::OrHash, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::OrHash, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::OrHash + ) + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(data:, has_more:, next_cursor:) + end + + sig do + override.returns( + { + data: + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::Variants + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + } + ) + end + def to_hash + end + + # Union of lightweight change summaries. + module Data + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary + ) + end + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::OrSymbol, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig { returns(Integer) } + attr_accessor :added_url_count + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(Integer) } + attr_accessor :removed_url_count + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + added_url_count: Integer, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::OrSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + added_url_count:, + change_detection_type:, + detected_at:, + monitor_id:, + removed_url_count:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + added_url_count: Integer, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::OrSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + importance:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(Integer) } + attr_accessor :matched_url_count + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::OrSymbol, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + importance:, + matched_url_count:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::Variants + ] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_params.rbi b/rbi/context_dev/models/monitor_list_params.rbi new file mode 100644 index 00000000..d367934a --- /dev/null +++ b/rbi/context_dev/models/monitor_list_params.rbi @@ -0,0 +1,199 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(ContextDev::MonitorListParams, ContextDev::Internal::AnyHash) + end + + sig do + returns( + T.nilable( + ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol + ) + ) + end + attr_reader :change_detection_type + + sig do + params( + change_detection_type: + ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol + ).void + end + attr_writer :change_detection_type + + sig { returns(T.nilable(String)) } + attr_reader :cursor + + sig { params(cursor: String).void } + attr_writer :cursor + + sig { returns(T.nilable(Integer)) } + attr_reader :limit + + sig { params(limit: Integer).void } + attr_writer :limit + + sig do + returns(T.nilable(ContextDev::MonitorListParams::Status::OrSymbol)) + end + attr_reader :status + + sig do + params(status: ContextDev::MonitorListParams::Status::OrSymbol).void + end + attr_writer :status + + # Filter to items that have this tag. + sig { returns(T.nilable(String)) } + attr_reader :tag + + sig { params(tag: String).void } + attr_writer :tag + + sig do + returns(T.nilable(ContextDev::MonitorListParams::TargetType::OrSymbol)) + end + attr_reader :target_type + + sig do + params( + target_type: ContextDev::MonitorListParams::TargetType::OrSymbol + ).void + end + attr_writer :target_type + + sig do + params( + change_detection_type: + ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListParams::Status::OrSymbol, + tag: String, + target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + change_detection_type: nil, + cursor: nil, + limit: nil, + status: nil, + # Filter to items that have this tag. + tag: nil, + target_type: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + change_detection_type: + ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListParams::Status::OrSymbol, + tag: String, + target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListParams::ChangeDetectionType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol + ) + SEMANTIC = + T.let( + :semantic, + ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, ContextDev::MonitorListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let(:active, ContextDev::MonitorListParams::Status::TaggedSymbol) + PAUSED = + T.let(:paused, ContextDev::MonitorListParams::Status::TaggedSymbol) + FAILED = + T.let(:failed, ContextDev::MonitorListParams::Status::TaggedSymbol) + + sig do + override.returns( + T::Array[ContextDev::MonitorListParams::Status::TaggedSymbol] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListParams::TargetType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let(:page, ContextDev::MonitorListParams::TargetType::TaggedSymbol) + SITEMAP = + T.let( + :sitemap, + ContextDev::MonitorListParams::TargetType::TaggedSymbol + ) + EXTRACT = + T.let( + :extract, + ContextDev::MonitorListParams::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ContextDev::MonitorListParams::TargetType::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_response.rbi b/rbi/context_dev/models/monitor_list_response.rbi new file mode 100644 index 00000000..6de09ee6 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_response.rbi @@ -0,0 +1,2390 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + T::Array[ContextDev::Models::MonitorListResponse::Data::Variants] + ) + end + attr_accessor :data + + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig do + params( + data: + T::Array[ + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::OrHash, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::OrHash, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::OrHash, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::OrHash + ) + ], + has_more: T::Boolean, + next_cursor: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(data:, has_more:, next_cursor:) + end + + sig do + override.returns( + { + data: + T::Array[ContextDev::Models::MonitorListResponse::Data::Variants], + has_more: T::Boolean, + next_cursor: T.nilable(String) + } + ) + end + def to_hash + end + + # Union of monitor response shapes. + module Data + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor + ) + end + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig do + params(url: String, secret: String).returns(T.attached_class) + end + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A sitemap monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + ).returns(T.attached_class) + end + def self.new( + type:, + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig do + params(url: String, secret: String).returns(T.attached_class) + end + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig do + params(url: String, secret: String).returns(T.attached_class) + end + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # An extract monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + ).returns(T.attached_class) + end + def self.new( + type:, + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig do + params(url: String, secret: String).returns(T.attached_class) + end + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ContextDev::Models::MonitorListResponse::Data::Variants] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_runs_params.rbi b/rbi/context_dev/models/monitor_list_runs_params.rbi new file mode 100644 index 00000000..7995af2b --- /dev/null +++ b/rbi/context_dev/models/monitor_list_runs_params.rbi @@ -0,0 +1,114 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorListRunsParams, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(T.nilable(String)) } + attr_reader :cursor + + sig { params(cursor: String).void } + attr_writer :cursor + + sig { returns(T.nilable(Integer)) } + attr_reader :limit + + sig { params(limit: Integer).void } + attr_writer :limit + + sig do + returns(T.nilable(ContextDev::MonitorListRunsParams::Status::OrSymbol)) + end + attr_reader :status + + sig do + params(status: ContextDev::MonitorListRunsParams::Status::OrSymbol).void + end + attr_writer :status + + sig do + params( + monitor_id: String, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + monitor_id:, + cursor: nil, + limit: nil, + status: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + monitor_id: String, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListRunsParams::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + QUEUED = + T.let( + :queued, + ContextDev::MonitorListRunsParams::Status::TaggedSymbol + ) + RUNNING = + T.let( + :running, + ContextDev::MonitorListRunsParams::Status::TaggedSymbol + ) + COMPLETED = + T.let( + :completed, + ContextDev::MonitorListRunsParams::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::MonitorListRunsParams::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ContextDev::MonitorListRunsParams::Status::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_list_runs_response.rbi b/rbi/context_dev/models/monitor_list_runs_response.rbi new file mode 100644 index 00000000..d9666508 --- /dev/null +++ b/rbi/context_dev/models/monitor_list_runs_response.rbi @@ -0,0 +1,376 @@ +# typed: strong + +module ContextDev + module Models + class MonitorListRunsResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListRunsResponse, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns(T::Array[ContextDev::Models::MonitorListRunsResponse::Data]) + end + attr_accessor :data + + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig { returns(T.nilable(String)) } + attr_accessor :next_cursor + + sig do + params( + data: + T::Array[ContextDev::Models::MonitorListRunsResponse::Data::OrHash], + has_more: T::Boolean, + next_cursor: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(data:, has_more:, next_cursor:) + end + + sig do + override.returns( + { + data: T::Array[ContextDev::Models::MonitorListRunsResponse::Data], + has_more: T::Boolean, + next_cursor: T.nilable(String) + } + ) + end + def to_hash + end + + class Data < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListRunsResponse::Data, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + sig { returns(T::Boolean) } + attr_accessor :baseline_created + + sig { returns(T::Boolean) } + attr_accessor :change_detected + + sig do + returns( + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(String) } + attr_accessor :monitor_id + + # The first run after monitor creation is a baseline run. + sig do + returns( + ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol + ) + end + attr_accessor :run_type + + sig do + returns( + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(T.nilable(String)) } + attr_accessor :change_id + + sig { returns(T.nilable(Time)) } + attr_accessor :completed_at + + sig do + returns( + T.nilable(ContextDev::Models::MonitorListRunsResponse::Data::Error) + ) + end + attr_reader :error + + sig do + params( + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::Error::OrHash + ) + ).void + end + attr_writer :error + + sig { returns(T.nilable(Time)) } + attr_accessor :started_at + + sig do + params( + id: String, + baseline_created: T::Boolean, + change_detected: T::Boolean, + change_detection_type: + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::OrSymbol, + monitor_id: String, + run_type: + ContextDev::Models::MonitorListRunsResponse::Data::RunType::OrSymbol, + status: + ContextDev::Models::MonitorListRunsResponse::Data::Status::OrSymbol, + target_type: + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::OrSymbol, + change_id: T.nilable(String), + completed_at: T.nilable(Time), + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::Error::OrHash + ), + started_at: T.nilable(Time) + ).returns(T.attached_class) + end + def self.new( + id:, + # True when this run established the monitor's initial baseline; baseline runs + # perform no change detection. + baseline_created:, + change_detected:, + change_detection_type:, + monitor_id:, + # The first run after monitor creation is a baseline run. + run_type:, + status:, + target_type:, + change_id: nil, + completed_at: nil, + error: nil, + started_at: nil + ) + end + + sig do + override.returns( + { + id: String, + baseline_created: T::Boolean, + change_detected: T::Boolean, + change_detection_type: + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol, + monitor_id: String, + run_type: + ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol, + status: + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol, + target_type: + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol, + change_id: T.nilable(String), + completed_at: T.nilable(Time), + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::Error + ), + started_at: T.nilable(Time) + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + # The first run after monitor creation is a baseline run. + module RunType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::RunType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + BASELINE = + T.let( + :baseline, + ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol + ) + SCHEDULED = + T.let( + :scheduled, + ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + QUEUED = + T.let( + :queued, + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) + RUNNING = + T.let( + :running, + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) + COMPLETED = + T.let( + :completed, + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol + ) + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol + ) + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Error < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListRunsResponse::Data::Error, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + sig do + params(code: String, message: String).returns(T.attached_class) + end + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_retrieve_change_params.rbi b/rbi/context_dev/models/monitor_retrieve_change_params.rbi new file mode 100644 index 00000000..85b6d438 --- /dev/null +++ b/rbi/context_dev/models/monitor_retrieve_change_params.rbi @@ -0,0 +1,38 @@ +# typed: strong + +module ContextDev + module Models + class MonitorRetrieveChangeParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorRetrieveChangeParams, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :change_id + + sig do + params( + change_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(change_id:, request_options: {}) + end + + sig do + override.returns( + { change_id: String, request_options: ContextDev::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_retrieve_change_response.rbi b/rbi/context_dev/models/monitor_retrieve_change_response.rbi new file mode 100644 index 00000000..b91f6858 --- /dev/null +++ b/rbi/context_dev/models/monitor_retrieve_change_response.rbi @@ -0,0 +1,950 @@ +# typed: strong + +module ContextDev + module Models + # Union of full change detail objects. + module MonitorRetrieveChangeResponse + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange + ) + end + + class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + # Text diff between the previous and current page baseline. + sig { returns(String) } + attr_accessor :diff + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(String)) } + attr_reader :after_text_excerpt + + sig { params(after_text_excerpt: String).void } + attr_writer :after_text_excerpt + + sig { returns(T.nilable(String)) } + attr_reader :before_text_excerpt + + sig { params(before_text_excerpt: String).void } + attr_writer :before_text_excerpt + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::OrSymbol, + detected_at: Time, + diff: String, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::OrSymbol, + title: String, + url: String, + after_text_excerpt: String, + before_text_excerpt: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + # Text diff between the previous and current page baseline. + diff:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + after_text_excerpt: nil, + before_text_excerpt: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + diff: String, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol, + title: String, + url: String, + after_text_excerpt: String, + before_text_excerpt: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig { returns(Integer) } + attr_accessor :added_url_count + + sig { returns(T::Array[String]) } + attr_accessor :added_urls + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Time) } + attr_accessor :detected_at + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(Integer) } + attr_accessor :removed_url_count + + sig { returns(T::Array[String]) } + attr_accessor :removed_urls + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + added_url_count: Integer, + added_urls: T::Array[String], + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::OrSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + removed_urls: T::Array[String], + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + added_url_count:, + added_urls:, + change_detection_type:, + detected_at:, + monitor_id:, + removed_url_count:, + removed_urls:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + added_url_count: Integer, + added_urls: T::Array[String], + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + removed_urls: T::Array[String], + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence + ] + ) + end + attr_accessor :evidence + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :query + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence::OrHash + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::OrSymbol, + monitor_id: String, + query: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + evidence:, + importance:, + monitor_id:, + query:, + summary:, + target_type:, + title:, + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol, + monitor_id: String, + query: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Evidence < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :after + + sig { returns(String) } + attr_accessor :before + + sig do + params(after: String, before: String).returns(T.attached_class) + end + def self.new(after:, before:) + end + + sig { override.returns({ after: String, before: String }) } + def to_hash + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type + + sig { returns(Float) } + attr_accessor :confidence + + sig { returns(Time) } + attr_accessor :detected_at + + sig do + returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence + ] + ) + end + attr_accessor :evidence + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol + ) + end + attr_accessor :importance + + sig { returns(Integer) } + attr_accessor :matched_url_count + + sig { returns(T::Array[String]) } + attr_accessor :matched_urls + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(String) } + attr_accessor :query + + sig { returns(String) } + attr_accessor :summary + + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type + + sig { returns(String) } + attr_accessor :title + + # Root URL of the extract target. + sig { returns(String) } + attr_accessor :url + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::OrSymbol, + confidence: Float, + detected_at: Time, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence::OrHash + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::OrSymbol, + matched_url_count: Integer, + matched_urls: T::Array[String], + monitor_id: String, + query: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::OrSymbol, + title: String, + url: String, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + confidence:, + detected_at:, + evidence:, + importance:, + matched_url_count:, + matched_urls:, + monitor_id:, + query:, + summary:, + target_type:, + title:, + # Root URL of the extract target. + url:, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol, + confidence: Float, + detected_at: Time, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol, + matched_url_count: Integer, + matched_urls: T::Array[String], + monitor_id: String, + query: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol, + title: String, + url: String, + tags: T::Array[String] + } + ) + end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Evidence < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence, + ContextDev::Internal::AnyHash + ) + end + + # Snapshot of the extracted data after the change. + sig { returns(String) } + attr_accessor :after + + # Snapshot of the extracted data before the change. + sig { returns(String) } + attr_accessor :before + + # Optional URL the evidence relates to. Absent for whole-target extract diffs. + sig { returns(T.nilable(String)) } + attr_reader :url + + sig { params(url: String).void } + attr_writer :url + + sig do + params(after: String, before: String, url: String).returns( + T.attached_class + ) + end + def self.new( + # Snapshot of the extracted data after the change. + after:, + # Snapshot of the extracted data before the change. + before:, + # Optional URL the evidence relates to. Absent for whole-target extract diffs. + url: nil + ) + end + + sig do + override.returns({ after: String, before: String, url: String }) + end + def to_hash + end + end + + module Importance + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LOW = + T.let( + :low, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol + ] + ) + end + def self.values + end + end + + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + sig do + override.returns( + T::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Variants] + ) + end + def self.variants + end + end + end +end diff --git a/rbi/context_dev/models/monitor_retrieve_params.rbi b/rbi/context_dev/models/monitor_retrieve_params.rbi new file mode 100644 index 00000000..8b157d88 --- /dev/null +++ b/rbi/context_dev/models/monitor_retrieve_params.rbi @@ -0,0 +1,38 @@ +# typed: strong + +module ContextDev + module Models + class MonitorRetrieveParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorRetrieveParams, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(monitor_id:, request_options: {}) + end + + sig do + override.returns( + { monitor_id: String, request_options: ContextDev::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_retrieve_response.rbi b/rbi/context_dev/models/monitor_retrieve_response.rbi new file mode 100644 index 00000000..28645249 --- /dev/null +++ b/rbi/context_dev/models/monitor_retrieve_response.rbi @@ -0,0 +1,2328 @@ +# typed: strong + +module ContextDev + module Models + # Union of monitor response shapes. + module MonitorRetrieveResponse + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor + ) + end + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A sitemap monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + ).returns(T.attached_class) + end + def self.new( + type:, + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # An extract monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + ).returns(T.attached_class) + end + def self.new( + type:, + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ContextDev::Models::MonitorRetrieveResponse::Variants] + ) + end + def self.variants + end + end + end +end diff --git a/rbi/context_dev/models/monitor_run_params.rbi b/rbi/context_dev/models/monitor_run_params.rbi new file mode 100644 index 00000000..8acbfb40 --- /dev/null +++ b/rbi/context_dev/models/monitor_run_params.rbi @@ -0,0 +1,35 @@ +# typed: strong + +module ContextDev + module Models + class MonitorRunParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(ContextDev::MonitorRunParams, ContextDev::Internal::AnyHash) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(monitor_id:, request_options: {}) + end + + sig do + override.returns( + { monitor_id: String, request_options: ContextDev::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_run_response.rbi b/rbi/context_dev/models/monitor_run_response.rbi new file mode 100644 index 00000000..3ea367c8 --- /dev/null +++ b/rbi/context_dev/models/monitor_run_response.rbi @@ -0,0 +1,31 @@ +# typed: strong + +module ContextDev + module Models + class MonitorRunResponse < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRunResponse, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :monitor_id + + sig { returns(T::Boolean) } + attr_accessor :queued + + sig do + params(monitor_id: String, queued: T::Boolean).returns(T.attached_class) + end + def self.new(monitor_id:, queued:) + end + + sig { override.returns({ monitor_id: String, queued: T::Boolean }) } + def to_hash + end + end + end +end diff --git a/rbi/context_dev/models/monitor_update_params.rbi b/rbi/context_dev/models/monitor_update_params.rbi new file mode 100644 index 00000000..29aa7f2c --- /dev/null +++ b/rbi/context_dev/models/monitor_update_params.rbi @@ -0,0 +1,672 @@ +# typed: strong + +module ContextDev + module Models + class MonitorUpdateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(ContextDev::MonitorUpdateParams, ContextDev::Internal::AnyHash) + end + + sig { returns(String) } + attr_accessor :monitor_id + + # Discriminated union describing how changes are detected. + sig do + returns( + T.nilable( + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic + ) + ) + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact::OrHash, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic::OrHash + ) + ).void + end + attr_writer :change_detection + + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(T.nilable(ContextDev::MonitorUpdateParams::Schedule)) } + attr_reader :schedule + + sig do + params(schedule: ContextDev::MonitorUpdateParams::Schedule::OrHash).void + end + attr_writer :schedule + + sig do + returns(T.nilable(ContextDev::MonitorUpdateParams::Status::OrSymbol)) + end + attr_reader :status + + sig do + params(status: ContextDev::MonitorUpdateParams::Status::OrSymbol).void + end + attr_writer :status + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + # Discriminated union describing what the monitor watches. + sig do + returns( + T.nilable( + T.any( + ContextDev::MonitorUpdateParams::Target::Page, + ContextDev::MonitorUpdateParams::Target::Sitemap, + ContextDev::MonitorUpdateParams::Target::Extract + ) + ) + ) + end + attr_reader :target + + sig do + params( + target: + T.any( + ContextDev::MonitorUpdateParams::Target::Page::OrHash, + ContextDev::MonitorUpdateParams::Target::Sitemap::OrHash, + ContextDev::MonitorUpdateParams::Target::Extract::OrHash + ) + ).void + end + attr_writer :target + + # Set to null to remove the webhook. + sig { returns(T.nilable(ContextDev::MonitorUpdateParams::Webhook)) } + attr_reader :webhook + + sig do + params( + webhook: T.nilable(ContextDev::MonitorUpdateParams::Webhook::OrHash) + ).void + end + attr_writer :webhook + + sig do + params( + monitor_id: String, + change_detection: + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact::OrHash, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic::OrHash + ), + name: String, + schedule: ContextDev::MonitorUpdateParams::Schedule::OrHash, + status: ContextDev::MonitorUpdateParams::Status::OrSymbol, + tags: T::Array[String], + target: + T.any( + ContextDev::MonitorUpdateParams::Target::Page::OrHash, + ContextDev::MonitorUpdateParams::Target::Sitemap::OrHash, + ContextDev::MonitorUpdateParams::Target::Extract::OrHash + ), + webhook: T.nilable(ContextDev::MonitorUpdateParams::Webhook::OrHash), + request_options: ContextDev::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + monitor_id:, + # Discriminated union describing how changes are detected. + change_detection: nil, + name: nil, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule: nil, + status: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + # Discriminated union describing what the monitor watches. + target: nil, + # Set to null to remove the webhook. + webhook: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + monitor_id: String, + change_detection: + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic + ), + name: String, + schedule: ContextDev::MonitorUpdateParams::Schedule, + status: ContextDev::MonitorUpdateParams::Status::OrSymbol, + tags: T::Array[String], + target: + T.any( + ContextDev::MonitorUpdateParams::Target::Page, + ContextDev::MonitorUpdateParams::Target::Sitemap, + ContextDev::MonitorUpdateParams::Target::Extract + ), + webhook: T.nilable(ContextDev::MonitorUpdateParams::Webhook), + request_options: ContextDev::RequestOptions + } + ) + end + def to_hash + end + + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic + ) + end + + class Exact < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) + end + + sig { override.returns({ type: Symbol }) } + def to_hash + end + end + + class Semantic < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig { returns(Symbol) } + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + confidence_threshold: Float, + type: Symbol + ).returns(T.attached_class) + end + def self.new(query:, confidence_threshold: nil, type: :semantic) + end + + sig do + override.returns( + { query: String, type: Symbol, confidence_threshold: Float } + ) + end + def to_hash + end + end + + sig do + override.returns( + T::Array[ContextDev::MonitorUpdateParams::ChangeDetection::Variants] + ) + end + def self.variants + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns(ContextDev::MonitorUpdateParams::Schedule::Type::OrSymbol) + end + attr_accessor :type + + sig do + returns(ContextDev::MonitorUpdateParams::Schedule::Unit::OrSymbol) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: ContextDev::MonitorUpdateParams::Schedule::Type::OrSymbol, + unit: ContextDev::MonitorUpdateParams::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: ContextDev::MonitorUpdateParams::Schedule::Type::OrSymbol, + unit: ContextDev::MonitorUpdateParams::Schedule::Unit::OrSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorUpdateParams::Schedule::Type) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::MonitorUpdateParams::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorUpdateParams::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorUpdateParams::Schedule::Unit) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::MonitorUpdateParams::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorUpdateParams::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorUpdateParams::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::MonitorUpdateParams::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorUpdateParams::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let(:active, ContextDev::MonitorUpdateParams::Status::TaggedSymbol) + PAUSED = + T.let(:paused, ContextDev::MonitorUpdateParams::Status::TaggedSymbol) + + sig do + override.returns( + T::Array[ContextDev::MonitorUpdateParams::Status::TaggedSymbol] + ) + end + def self.values + end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Target::Page, + ContextDev::MonitorUpdateParams::Target::Sitemap, + ContextDev::MonitorUpdateParams::Target::Extract + ) + end + + class Page < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Target::Page, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + url: String, + normalize_whitespace: T::Boolean, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page + ) + end + + sig do + override.returns( + { type: Symbol, url: String, normalize_whitespace: T::Boolean } + ) + end + def to_hash + end + end + + class Sitemap < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Target::Sitemap, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap + ) + end + + sig do + override.returns( + { + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + end + + class Extract < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Target::Extract, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything], + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil, + type: :extract + ) + end + + sig do + override.returns( + { + type: Symbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + end + + sig do + override.returns( + T::Array[ContextDev::MonitorUpdateParams::Target::Variants] + ) + end + def self.variants + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorUpdateParams::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Set to null to remove the webhook. + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + end +end diff --git a/rbi/context_dev/models/monitor_update_response.rbi b/rbi/context_dev/models/monitor_update_response.rbi new file mode 100644 index 00000000..0f76323b --- /dev/null +++ b/rbi/context_dev/models/monitor_update_response.rbi @@ -0,0 +1,2328 @@ +# typed: strong + +module ContextDev + module Models + # Union of monitor response shapes. + module MonitorUpdateResponse + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor + ) + end + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A sitemap monitor using exact change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Detect exact changes. For page targets, this means visible text diffs. For + # sitemap targets, this means URL additions and removals. + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url + + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude + + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude + + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + ).returns(T.attached_class) + end + def self.new( + type:, + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # A page monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, + url: String, + normalize_whitespace: T::Boolean + ).returns(T.attached_class) + end + def self.new( + type:, + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + normalize_whitespace: T::Boolean + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAGE = + T.let( + :page, + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # Detect meaning-level changes that match a natural language query. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection + ) + end + attr_reader :change_detection + + sig do + params( + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash + ).void + end + attr_writer :change_detection + + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule + ) + end + attr_reader :schedule + + sig do + params( + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash + ).void + end + attr_writer :schedule + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target + ) + end + attr_reader :target + + sig do + params( + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::OrHash + ).void + end + attr_writer :target + + sig { returns(Time) } + attr_accessor :updated_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at + + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook + ) + ) + end + attr_reader :webhook + + sig do + params( + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).void + end + attr_writer :webhook + + # An extract monitor using semantic change detection. + sig do + params( + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::OrHash, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Detect meaning-level changes that match a natural language query. + change_detection:, + created_at:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end + + sig do + override.returns( + { + id: String, + change_detection: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, + target: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook + ) + } + ) + end + def to_hash + end + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :query + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold + + # Detect meaning-level changes that match a natural language query. + sig do + params( + query: String, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, + confidence_threshold: Float + ).returns(T.attached_class) + end + def self.new(query:, type:, confidence_threshold: nil) + end + + sig do + override.returns( + { + query: String, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, + confidence_threshold: Float + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Internal::AnyHash + ) + end + + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end + + sig do + override.returns( + { + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Unit + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Target < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Internal::AnyHash + ) + end + + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains + + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains + + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions + + sig { params(instructions: String).void } + attr_writer :instructions + + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth + + sig { params(max_depth: Integer).void } + attr_writer :max_depth + + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages + + sig { params(max_pages: Integer).void } + attr_writer :max_pages + + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema + + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + + sig do + params( + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + ).returns(T.attached_class) + end + def self.new( + type:, + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, + # Optional maximum link depth from the starting URL (0 = only the starting page). + max_depth: nil, + # Maximum number of pages to analyze during extraction. + max_pages: nil, + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + schema: nil + ) + end + + sig do + override.returns( + { + type: + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything] + } + ) + end + def to_hash + end + + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + secret: nil + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ContextDev::Models::MonitorUpdateResponse::Variants] + ) + end + def self.variants + end + end + end +end diff --git a/rbi/context_dev/resources/monitors.rbi b/rbi/context_dev/resources/monitors.rbi new file mode 100644 index 00000000..2006b4ef --- /dev/null +++ b/rbi/context_dev/resources/monitors.rbi @@ -0,0 +1,239 @@ +# typed: strong + +module ContextDev + module Resources + # Monitor pages, sitemaps, and extracted website data for exact or semantic + # changes. The change.detected webhook payload is documented by the + # MonitorsChangeDetectedWebhookPayload schema. + class Monitors + # Creates a monitor. The request body is a union of the supported target/change + # detection combinations. The monitor runs immediately after creation to create + # its initial baseline. + sig do + params( + body: + T.any( + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::OrHash, + ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::OrHash + ), + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorCreateResponse::Variants) + end + def create( + # Union of supported monitor creation shapes. Supported combinations are: + # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + body:, + request_options: {} + ) + end + + # Get a monitor + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorRetrieveResponse::Variants) + end + def retrieve(monitor_id, request_options: {}) + end + + # Updates a monitor. If `target` or `change_detection` changes, the monitor + # creates a new baseline. Unsupported target/change detection combinations are + # rejected. + sig do + params( + monitor_id: String, + change_detection: + T.any( + ContextDev::MonitorUpdateParams::ChangeDetection::Exact::OrHash, + ContextDev::MonitorUpdateParams::ChangeDetection::Semantic::OrHash + ), + name: String, + schedule: ContextDev::MonitorUpdateParams::Schedule::OrHash, + status: ContextDev::MonitorUpdateParams::Status::OrSymbol, + tags: T::Array[String], + target: + T.any( + ContextDev::MonitorUpdateParams::Target::Page::OrHash, + ContextDev::MonitorUpdateParams::Target::Sitemap::OrHash, + ContextDev::MonitorUpdateParams::Target::Extract::OrHash + ), + webhook: T.nilable(ContextDev::MonitorUpdateParams::Webhook::OrHash), + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorUpdateResponse::Variants) + end + def update( + monitor_id, + # Discriminated union describing how changes are detected. + change_detection: nil, + name: nil, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule: nil, + status: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + # Discriminated union describing what the monitor watches. + target: nil, + # Set to null to remove the webhook. + webhook: nil, + request_options: {} + ) + end + + # List monitors + sig do + params( + change_detection_type: + ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListParams::Status::OrSymbol, + tag: String, + target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorListResponse) + end + def list( + change_detection_type: nil, + cursor: nil, + limit: nil, + status: nil, + # Filter to items that have this tag. + tag: nil, + target_type: nil, + request_options: {} + ) + end + + # Delete a monitor + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorDeleteResponse) + end + def delete(monitor_id, request_options: {}) + end + + # Returns an account-wide feed of detected changes across monitors. + sig do + params( + change_detection_type: + ContextDev::MonitorListAccountChangesParams::ChangeDetectionType::OrSymbol, + cursor: String, + limit: Integer, + monitor_id: String, + since: Time, + tag: String, + target_type: + ContextDev::MonitorListAccountChangesParams::TargetType::OrSymbol, + until_: Time, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorListAccountChangesResponse) + end + def list_account_changes( + change_detection_type: nil, + cursor: nil, + limit: nil, + monitor_id: nil, + since: nil, + # Filter to items that have this tag. + tag: nil, + target_type: nil, + until_: nil, + request_options: {} + ) + end + + # Returns an account-wide feed of monitor runs across all monitors. + sig do + params( + cursor: String, + limit: Integer, + status: ContextDev::MonitorListAccountRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorListAccountRunsResponse) + end + def list_account_runs( + cursor: nil, + limit: nil, + status: nil, + request_options: {} + ) + end + + # List changes for a monitor + sig do + params( + monitor_id: String, + cursor: String, + limit: Integer, + since: Time, + tag: String, + until_: Time, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorListChangesResponse) + end + def list_changes( + monitor_id, + cursor: nil, + limit: nil, + since: nil, + # Filter to items that have this tag. + tag: nil, + until_: nil, + request_options: {} + ) + end + + # List monitor runs + sig do + params( + monitor_id: String, + cursor: String, + limit: Integer, + status: ContextDev::MonitorListRunsParams::Status::OrSymbol, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorListRunsResponse) + end + def list_runs( + monitor_id, + cursor: nil, + limit: nil, + status: nil, + request_options: {} + ) + end + + # Get a change + sig do + params( + change_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorRetrieveChangeResponse::Variants) + end + def retrieve_change(change_id, request_options: {}) + end + + # Triggers an immediate run of the monitor outside its normal schedule. The run is + # queued and processed asynchronously. + sig do + params( + monitor_id: String, + request_options: ContextDev::RequestOptions::OrHash + ).returns(ContextDev::Models::MonitorRunResponse) + end + def run(monitor_id, request_options: {}) + end + + # @api private + sig { params(client: ContextDev::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end +end diff --git a/sig/context_dev/client.rbs b/sig/context_dev/client.rbs index dbaa7969..62cf92ed 100644 --- a/sig/context_dev/client.rbs +++ b/sig/context_dev/client.rbs @@ -20,6 +20,8 @@ module ContextDev attr_reader utility: ContextDev::Resources::Utility + attr_reader monitors: ContextDev::Resources::Monitors + private def auth_headers: -> ::Hash[String, String] def initialize: ( diff --git a/sig/context_dev/models.rbs b/sig/context_dev/models.rbs index 5cb39a14..662829f4 100644 --- a/sig/context_dev/models.rbs +++ b/sig/context_dev/models.rbs @@ -23,6 +23,28 @@ module ContextDev class IndustryRetrieveSicParams = ContextDev::Models::IndustryRetrieveSicParams + class MonitorCreateParams = ContextDev::Models::MonitorCreateParams + + class MonitorDeleteParams = ContextDev::Models::MonitorDeleteParams + + class MonitorListAccountChangesParams = ContextDev::Models::MonitorListAccountChangesParams + + class MonitorListAccountRunsParams = ContextDev::Models::MonitorListAccountRunsParams + + class MonitorListChangesParams = ContextDev::Models::MonitorListChangesParams + + class MonitorListParams = ContextDev::Models::MonitorListParams + + class MonitorListRunsParams = ContextDev::Models::MonitorListRunsParams + + class MonitorRetrieveChangeParams = ContextDev::Models::MonitorRetrieveChangeParams + + class MonitorRetrieveParams = ContextDev::Models::MonitorRetrieveParams + + class MonitorRunParams = ContextDev::Models::MonitorRunParams + + class MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams + class UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams class UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams diff --git a/sig/context_dev/models/monitor_create_params.rbs b/sig/context_dev/models/monitor_create_params.rbs new file mode 100644 index 00000000..c467d219 --- /dev/null +++ b/sig/context_dev/models/monitor_create_params.rbs @@ -0,0 +1,778 @@ +module ContextDev + module Models + type monitor_create_params = + { body: ContextDev::Models::MonitorCreateParams::body } + & ContextDev::Internal::Type::request_parameters + + class MonitorCreateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor body: ContextDev::Models::MonitorCreateParams::body + + def initialize: ( + body: ContextDev::Models::MonitorCreateParams::body, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + body: ContextDev::Models::MonitorCreateParams::body, + request_options: ContextDev::RequestOptions + } + + type body = + ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest + | ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest + | ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest + | ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + + module Body + extend ContextDev::Internal::Type::Union + + type monitors_create_page_exact_monitor_request = + { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + } + + class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel + attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection + + attr_accessor name: String + + attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule + + attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + + def initialize: ( + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + ) -> void + + def to_hash: -> { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit] + end + end + + type target = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + def initialize: (url: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_create_sitemap_exact_monitor_request = + { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + } + + class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel + attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection + + attr_accessor name: String + + attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule + + attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + + def initialize: ( + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + ) -> void + + def to_hash: -> { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit] + end + end + + type target = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_ + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + type type_ = :sitemap + + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + def initialize: (url: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_create_page_semantic_monitor_request = + { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + } + + class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection + + attr_accessor name: String + + attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule + + attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + + def initialize: ( + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + ) -> void + + def to_hash: -> { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit] + end + end + + type target = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + def initialize: (url: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_create_extract_semantic_monitor_request = + { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + } + + class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection + + attr_accessor name: String + + attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule + + attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + + def initialize: ( + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + ) -> void + + def to_hash: -> { + change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, + name: String, + schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, + target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit] + end + end + + type target = + { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_ + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top] + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + type type_ = :extract + + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + def initialize: (url: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::body] + end + end + end +end diff --git a/sig/context_dev/models/monitor_create_response.rbs b/sig/context_dev/models/monitor_create_response.rbs new file mode 100644 index 00000000..e97a55c7 --- /dev/null +++ b/sig/context_dev/models/monitor_create_response.rbs @@ -0,0 +1,941 @@ +module ContextDev + module Models + type monitor_create_response = + ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor + | ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor + | ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor + | ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor + + module MonitorCreateResponse + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? + } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_sitemap_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + } + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + type type_ = :sitemap + + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_page_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? + } + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_extract_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top] + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + type type_ = :extract + + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + def self?.variants: -> ::Array[ContextDev::Models::monitor_create_response] + end + end +end diff --git a/sig/context_dev/models/monitor_delete_params.rbs b/sig/context_dev/models/monitor_delete_params.rbs new file mode 100644 index 00000000..d1007666 --- /dev/null +++ b/sig/context_dev/models/monitor_delete_params.rbs @@ -0,0 +1,23 @@ +module ContextDev + module Models + type monitor_delete_params = + { monitor_id: String } & ContextDev::Internal::Type::request_parameters + + class MonitorDeleteParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + def initialize: ( + monitor_id: String, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + request_options: ContextDev::RequestOptions + } + end + end +end diff --git a/sig/context_dev/models/monitor_delete_response.rbs b/sig/context_dev/models/monitor_delete_response.rbs new file mode 100644 index 00000000..e4120ec7 --- /dev/null +++ b/sig/context_dev/models/monitor_delete_response.rbs @@ -0,0 +1,15 @@ +module ContextDev + module Models + type monitor_delete_response = { id: String, deleted: bool } + + class MonitorDeleteResponse < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor deleted: bool + + def initialize: (id: String, deleted: bool) -> void + + def to_hash: -> { id: String, deleted: bool } + end + end +end diff --git a/sig/context_dev/models/monitor_list_account_changes_params.rbs b/sig/context_dev/models/monitor_list_account_changes_params.rbs new file mode 100644 index 00000000..45a18a9f --- /dev/null +++ b/sig/context_dev/models/monitor_list_account_changes_params.rbs @@ -0,0 +1,104 @@ +module ContextDev + module Models + type monitor_list_account_changes_params = + { + change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type, + cursor: String, + limit: Integer, + monitor_id: String, + since: Time, + tag: String, + target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type, + until_: Time + } + & ContextDev::Internal::Type::request_parameters + + class MonitorListAccountChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_reader change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type? + + def change_detection_type=: ( + ContextDev::Models::MonitorListAccountChangesParams::change_detection_type + ) -> ContextDev::Models::MonitorListAccountChangesParams::change_detection_type + + attr_reader cursor: String? + + def cursor=: (String) -> String + + attr_reader limit: Integer? + + def limit=: (Integer) -> Integer + + attr_reader monitor_id: String? + + def monitor_id=: (String) -> String + + attr_reader since: Time? + + def since=: (Time) -> Time + + attr_reader tag: String? + + def tag=: (String) -> String + + attr_reader target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type? + + def target_type=: ( + ContextDev::Models::MonitorListAccountChangesParams::target_type + ) -> ContextDev::Models::MonitorListAccountChangesParams::target_type + + attr_reader until_: Time? + + def until_=: (Time) -> Time + + def initialize: ( + ?change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type, + ?cursor: String, + ?limit: Integer, + ?monitor_id: String, + ?since: Time, + ?tag: String, + ?target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type, + ?until_: Time, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type, + cursor: String, + limit: Integer, + monitor_id: String, + since: Time, + tag: String, + target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type, + until_: Time, + request_options: ContextDev::RequestOptions + } + + type change_detection_type = :exact | :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesParams::change_detection_type] + end + + type target_type = :page | :sitemap | :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesParams::target_type] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_account_changes_response.rbs b/sig/context_dev/models/monitor_list_account_changes_response.rbs new file mode 100644 index 00000000..a783451c --- /dev/null +++ b/sig/context_dev/models/monitor_list_account_changes_response.rbs @@ -0,0 +1,417 @@ +module ContextDev + module Models + type monitor_list_account_changes_response = + { + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + has_more: bool, + next_cursor: String? + } + + class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel + attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data] + + attr_accessor has_more: bool + + attr_accessor next_cursor: String? + + def initialize: ( + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + has_more: bool, + next_cursor: String? + ) -> void + + def to_hash: -> { + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + has_more: bool, + next_cursor: String? + } + + type data = + ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary + | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary + | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary + | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary + + module Data + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type] + end + end + + type monitors_sitemap_exact_change_summary = + { + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor added_url_count: Integer + + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor monitor_id: String + + attr_accessor removed_url_count: Integer + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type] + end + + type target_type = :sitemap + + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type] + end + end + + type monitors_page_semantic_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type] + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type] + end + end + + type monitors_extract_semantic_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance + + attr_accessor matched_url_count: Integer + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type] + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance] + end + + type target_type = :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type] + end + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_account_runs_params.rbs b/sig/context_dev/models/monitor_list_account_runs_params.rbs new file mode 100644 index 00000000..eb18e47f --- /dev/null +++ b/sig/context_dev/models/monitor_list_account_runs_params.rbs @@ -0,0 +1,57 @@ +module ContextDev + module Models + type monitor_list_account_runs_params = + { + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListAccountRunsParams::status + } + & ContextDev::Internal::Type::request_parameters + + class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_reader cursor: String? + + def cursor=: (String) -> String + + attr_reader limit: Integer? + + def limit=: (Integer) -> Integer + + attr_reader status: ContextDev::Models::MonitorListAccountRunsParams::status? + + def status=: ( + ContextDev::Models::MonitorListAccountRunsParams::status + ) -> ContextDev::Models::MonitorListAccountRunsParams::status + + def initialize: ( + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListAccountRunsParams::status, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListAccountRunsParams::status, + request_options: ContextDev::RequestOptions + } + + type status = :queued | :running | :completed | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED: :queued + RUNNING: :running + COMPLETED: :completed + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsParams::status] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_account_runs_response.rbs b/sig/context_dev/models/monitor_list_account_runs_response.rbs new file mode 100644 index 00000000..6ae78794 --- /dev/null +++ b/sig/context_dev/models/monitor_list_account_runs_response.rbs @@ -0,0 +1,161 @@ +module ContextDev + module Models + type monitor_list_account_runs_response = + { + data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data], + has_more: bool, + next_cursor: String? + } + + class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel + attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data] + + attr_accessor has_more: bool + + attr_accessor next_cursor: String? + + def initialize: ( + data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data], + has_more: bool, + next_cursor: String? + ) -> void + + def to_hash: -> { + data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data], + has_more: bool, + next_cursor: String? + } + + type data = + { + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type, + change_id: String?, + completed_at: Time?, + error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + started_at: Time? + } + + class Data < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor baseline_created: bool + + attr_accessor change_detected: bool + + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type + + attr_accessor monitor_id: String + + attr_accessor run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type + + attr_accessor status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status + + attr_accessor target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type + + attr_accessor change_id: String? + + attr_accessor completed_at: Time? + + attr_accessor error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error? + + attr_accessor started_at: Time? + + def initialize: ( + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type, + ?change_id: String?, + ?completed_at: Time?, + ?error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + ?started_at: Time? + ) -> void + + def to_hash: -> { + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type, + change_id: String?, + completed_at: Time?, + error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + started_at: Time? + } + + type change_detection_type = :exact | :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type] + end + + type run_type = :baseline | :scheduled + + module RunType + extend ContextDev::Internal::Type::Enum + + BASELINE: :baseline + SCHEDULED: :scheduled + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type] + end + + type status = :queued | :running | :completed | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED: :queued + RUNNING: :running + COMPLETED: :completed + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::status] + end + + type target_type = :page | :sitemap | :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type] + end + + type error = { code: String, message: String } + + class Error < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_changes_params.rbs b/sig/context_dev/models/monitor_list_changes_params.rbs new file mode 100644 index 00000000..6771cbf0 --- /dev/null +++ b/sig/context_dev/models/monitor_list_changes_params.rbs @@ -0,0 +1,61 @@ +module ContextDev + module Models + type monitor_list_changes_params = + { + monitor_id: String, + cursor: String, + limit: Integer, + since: Time, + tag: String, + until_: Time + } + & ContextDev::Internal::Type::request_parameters + + class MonitorListChangesParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + attr_reader cursor: String? + + def cursor=: (String) -> String + + attr_reader limit: Integer? + + def limit=: (Integer) -> Integer + + attr_reader since: Time? + + def since=: (Time) -> Time + + attr_reader tag: String? + + def tag=: (String) -> String + + attr_reader until_: Time? + + def until_=: (Time) -> Time + + def initialize: ( + monitor_id: String, + ?cursor: String, + ?limit: Integer, + ?since: Time, + ?tag: String, + ?until_: Time, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + cursor: String, + limit: Integer, + since: Time, + tag: String, + until_: Time, + request_options: ContextDev::RequestOptions + } + end + end +end diff --git a/sig/context_dev/models/monitor_list_changes_response.rbs b/sig/context_dev/models/monitor_list_changes_response.rbs new file mode 100644 index 00000000..c8f52f54 --- /dev/null +++ b/sig/context_dev/models/monitor_list_changes_response.rbs @@ -0,0 +1,417 @@ +module ContextDev + module Models + type monitor_list_changes_response = + { + data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + has_more: bool, + next_cursor: String? + } + + class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel + attr_accessor data: ::Array[ContextDev::Models::MonitorListChangesResponse::data] + + attr_accessor has_more: bool + + attr_accessor next_cursor: String? + + def initialize: ( + data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + has_more: bool, + next_cursor: String? + ) -> void + + def to_hash: -> { + data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + has_more: bool, + next_cursor: String? + } + + type data = + ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary + | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary + | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary + | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary + + module Data + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type] + end + end + + type monitors_sitemap_exact_change_summary = + { + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor added_url_count: Integer + + attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor monitor_id: String + + attr_accessor removed_url_count: Integer + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + added_url_count: Integer, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type] + end + + type target_type = :sitemap + + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type] + end + end + + type monitors_page_semantic_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type] + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type] + end + end + + type monitors_extract_semantic_change_summary = + { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance + + attr_accessor matched_url_count: Integer + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, + confidence: Float, + detected_at: Time, + importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, + matched_url_count: Integer, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type] + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance] + end + + type target_type = :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type] + end + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorListChangesResponse::data] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_params.rbs b/sig/context_dev/models/monitor_list_params.rbs new file mode 100644 index 00000000..418b9fc5 --- /dev/null +++ b/sig/context_dev/models/monitor_list_params.rbs @@ -0,0 +1,104 @@ +module ContextDev + module Models + type monitor_list_params = + { + change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListParams::status, + tag: String, + target_type: ContextDev::Models::MonitorListParams::target_type + } + & ContextDev::Internal::Type::request_parameters + + class MonitorListParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_reader change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type? + + def change_detection_type=: ( + ContextDev::Models::MonitorListParams::change_detection_type + ) -> ContextDev::Models::MonitorListParams::change_detection_type + + attr_reader cursor: String? + + def cursor=: (String) -> String + + attr_reader limit: Integer? + + def limit=: (Integer) -> Integer + + attr_reader status: ContextDev::Models::MonitorListParams::status? + + def status=: ( + ContextDev::Models::MonitorListParams::status + ) -> ContextDev::Models::MonitorListParams::status + + attr_reader tag: String? + + def tag=: (String) -> String + + attr_reader target_type: ContextDev::Models::MonitorListParams::target_type? + + def target_type=: ( + ContextDev::Models::MonitorListParams::target_type + ) -> ContextDev::Models::MonitorListParams::target_type + + def initialize: ( + ?change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListParams::status, + ?tag: String, + ?target_type: ContextDev::Models::MonitorListParams::target_type, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListParams::status, + tag: String, + target_type: ContextDev::Models::MonitorListParams::target_type, + request_options: ContextDev::RequestOptions + } + + type change_detection_type = :exact | :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::change_detection_type] + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::status] + end + + type target_type = :page | :sitemap | :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::target_type] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_response.rbs b/sig/context_dev/models/monitor_list_response.rbs new file mode 100644 index 00000000..2099ef11 --- /dev/null +++ b/sig/context_dev/models/monitor_list_response.rbs @@ -0,0 +1,968 @@ +module ContextDev + module Models + type monitor_list_response = + { + data: ::Array[ContextDev::Models::MonitorListResponse::data], + has_more: bool, + next_cursor: String? + } + + class MonitorListResponse < ContextDev::Internal::Type::BaseModel + attr_accessor data: ::Array[ContextDev::Models::MonitorListResponse::data] + + attr_accessor has_more: bool + + attr_accessor next_cursor: String? + + def initialize: ( + data: ::Array[ContextDev::Models::MonitorListResponse::data], + has_more: bool, + next_cursor: String? + ) -> void + + def to_hash: -> { + data: ::Array[ContextDev::Models::MonitorListResponse::data], + has_more: bool, + next_cursor: String? + } + + type data = + ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor + | ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor + | ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor + | ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor + + module Data + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? + } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_sitemap_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + } + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + type type_ = :sitemap + + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_page_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? + } + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_extract_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? + } + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top] + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + type type_ = :extract + + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::data] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_runs_params.rbs b/sig/context_dev/models/monitor_list_runs_params.rbs new file mode 100644 index 00000000..5a2ec311 --- /dev/null +++ b/sig/context_dev/models/monitor_list_runs_params.rbs @@ -0,0 +1,62 @@ +module ContextDev + module Models + type monitor_list_runs_params = + { + monitor_id: String, + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListRunsParams::status + } + & ContextDev::Internal::Type::request_parameters + + class MonitorListRunsParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + attr_reader cursor: String? + + def cursor=: (String) -> String + + attr_reader limit: Integer? + + def limit=: (Integer) -> Integer + + attr_reader status: ContextDev::Models::MonitorListRunsParams::status? + + def status=: ( + ContextDev::Models::MonitorListRunsParams::status + ) -> ContextDev::Models::MonitorListRunsParams::status + + def initialize: ( + monitor_id: String, + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListRunsParams::status, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + cursor: String, + limit: Integer, + status: ContextDev::Models::MonitorListRunsParams::status, + request_options: ContextDev::RequestOptions + } + + type status = :queued | :running | :completed | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED: :queued + RUNNING: :running + COMPLETED: :completed + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsParams::status] + end + end + end +end diff --git a/sig/context_dev/models/monitor_list_runs_response.rbs b/sig/context_dev/models/monitor_list_runs_response.rbs new file mode 100644 index 00000000..b1a6e852 --- /dev/null +++ b/sig/context_dev/models/monitor_list_runs_response.rbs @@ -0,0 +1,161 @@ +module ContextDev + module Models + type monitor_list_runs_response = + { + data: ::Array[ContextDev::Models::MonitorListRunsResponse::Data], + has_more: bool, + next_cursor: String? + } + + class MonitorListRunsResponse < ContextDev::Internal::Type::BaseModel + attr_accessor data: ::Array[ContextDev::Models::MonitorListRunsResponse::Data] + + attr_accessor has_more: bool + + attr_accessor next_cursor: String? + + def initialize: ( + data: ::Array[ContextDev::Models::MonitorListRunsResponse::Data], + has_more: bool, + next_cursor: String? + ) -> void + + def to_hash: -> { + data: ::Array[ContextDev::Models::MonitorListRunsResponse::Data], + has_more: bool, + next_cursor: String? + } + + type data = + { + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListRunsResponse::Data::target_type, + change_id: String?, + completed_at: Time?, + error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + started_at: Time? + } + + class Data < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor baseline_created: bool + + attr_accessor change_detected: bool + + attr_accessor change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type + + attr_accessor monitor_id: String + + attr_accessor run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type + + attr_accessor status: ContextDev::Models::MonitorListRunsResponse::Data::status + + attr_accessor target_type: ContextDev::Models::MonitorListRunsResponse::Data::target_type + + attr_accessor change_id: String? + + attr_accessor completed_at: Time? + + attr_accessor error: ContextDev::Models::MonitorListRunsResponse::Data::Error? + + attr_accessor started_at: Time? + + def initialize: ( + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListRunsResponse::Data::target_type, + ?change_id: String?, + ?completed_at: Time?, + ?error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + ?started_at: Time? + ) -> void + + def to_hash: -> { + id: String, + baseline_created: bool, + change_detected: bool, + change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + monitor_id: String, + run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, + status: ContextDev::Models::MonitorListRunsResponse::Data::status, + target_type: ContextDev::Models::MonitorListRunsResponse::Data::target_type, + change_id: String?, + completed_at: Time?, + error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + started_at: Time? + } + + type change_detection_type = :exact | :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type] + end + + type run_type = :baseline | :scheduled + + module RunType + extend ContextDev::Internal::Type::Enum + + BASELINE: :baseline + SCHEDULED: :scheduled + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::run_type] + end + + type status = :queued | :running | :completed | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + QUEUED: :queued + RUNNING: :running + COMPLETED: :completed + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::status] + end + + type target_type = :page | :sitemap | :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::target_type] + end + + type error = { code: String, message: String } + + class Error < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + end + end + end +end diff --git a/sig/context_dev/models/monitor_retrieve_change_params.rbs b/sig/context_dev/models/monitor_retrieve_change_params.rbs new file mode 100644 index 00000000..225c2b69 --- /dev/null +++ b/sig/context_dev/models/monitor_retrieve_change_params.rbs @@ -0,0 +1,23 @@ +module ContextDev + module Models + type monitor_retrieve_change_params = + { change_id: String } & ContextDev::Internal::Type::request_parameters + + class MonitorRetrieveChangeParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor change_id: String + + def initialize: ( + change_id: String, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + change_id: String, + request_options: ContextDev::RequestOptions + } + end + end +end diff --git a/sig/context_dev/models/monitor_retrieve_change_response.rbs b/sig/context_dev/models/monitor_retrieve_change_response.rbs new file mode 100644 index 00000000..84630448 --- /dev/null +++ b/sig/context_dev/models/monitor_retrieve_change_response.rbs @@ -0,0 +1,472 @@ +module ContextDev + module Models + type monitor_retrieve_change_response = + ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange + | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange + | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange + | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange + + module MonitorRetrieveChangeResponse + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_change = + { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, + detected_at: Time, + diff: String, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, + title: String, + url: String, + after_text_excerpt: String, + before_text_excerpt: String, + tags: ::Array[String] + } + + class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor diff: String + + attr_accessor monitor_id: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader after_text_excerpt: String? + + def after_text_excerpt=: (String) -> String + + attr_reader before_text_excerpt: String? + + def before_text_excerpt=: (String) -> String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, + detected_at: Time, + diff: String, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, + title: String, + url: String, + ?after_text_excerpt: String, + ?before_text_excerpt: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, + detected_at: Time, + diff: String, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, + title: String, + url: String, + after_text_excerpt: String, + before_text_excerpt: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type] + end + end + + type monitors_sitemap_exact_change = + { + id: String, + added_url_count: Integer, + added_urls: ::Array[String], + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + removed_urls: ::Array[String], + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor added_url_count: Integer + + attr_accessor added_urls: ::Array[String] + + attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type + + attr_accessor detected_at: Time + + attr_accessor monitor_id: String + + attr_accessor removed_url_count: Integer + + attr_accessor removed_urls: ::Array[String] + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + added_url_count: Integer, + added_urls: ::Array[String], + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + removed_urls: ::Array[String], + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + added_url_count: Integer, + added_urls: ::Array[String], + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, + detected_at: Time, + monitor_id: String, + removed_url_count: Integer, + removed_urls: ::Array[String], + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :exact + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type] + end + + type target_type = :sitemap + + module TargetType + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type] + end + end + + type monitors_page_semantic_change = + { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence] + + attr_accessor importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance + + attr_accessor monitor_id: String + + attr_accessor query: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type] + end + + type evidence = { after: String, before: String } + + class Evidence < ContextDev::Internal::Type::BaseModel + attr_accessor after: String + + attr_accessor before: String + + def initialize: (after: String, before: String) -> void + + def to_hash: -> { after: String, before: String } + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance] + end + + type target_type = :page + + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type] + end + end + + type monitors_extract_semantic_change = + { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, + matched_url_count: Integer, + matched_urls: ::Array[String], + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type + + attr_accessor confidence: Float + + attr_accessor detected_at: Time + + attr_accessor evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence] + + attr_accessor importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance + + attr_accessor matched_url_count: Integer + + attr_accessor matched_urls: ::Array[String] + + attr_accessor monitor_id: String + + attr_accessor query: String + + attr_accessor summary: String + + attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type + + attr_accessor title: String + + attr_accessor url: String + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, + matched_url_count: Integer, + matched_urls: ::Array[String], + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, + title: String, + url: String, + ?tags: ::Array[String] + ) -> void + + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, + confidence: Float, + detected_at: Time, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, + matched_url_count: Integer, + matched_urls: ::Array[String], + monitor_id: String, + query: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, + title: String, + url: String, + tags: ::Array[String] + } + + type change_detection_type = :semantic + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type] + end + + type evidence = { after: String, before: String, url: String } + + class Evidence < ContextDev::Internal::Type::BaseModel + attr_accessor after: String + + attr_accessor before: String + + attr_reader url: String? + + def url=: (String) -> String + + def initialize: (after: String, before: String, ?url: String) -> void + + def to_hash: -> { after: String, before: String, url: String } + end + + type importance = :low | :medium | :high + + module Importance + extend ContextDev::Internal::Type::Enum + + LOW: :low + MEDIUM: :medium + HIGH: :high + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance] + end + + type target_type = :extract + + module TargetType + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type] + end + end + + def self?.variants: -> ::Array[ContextDev::Models::monitor_retrieve_change_response] + end + end +end diff --git a/sig/context_dev/models/monitor_retrieve_params.rbs b/sig/context_dev/models/monitor_retrieve_params.rbs new file mode 100644 index 00000000..92309042 --- /dev/null +++ b/sig/context_dev/models/monitor_retrieve_params.rbs @@ -0,0 +1,23 @@ +module ContextDev + module Models + type monitor_retrieve_params = + { monitor_id: String } & ContextDev::Internal::Type::request_parameters + + class MonitorRetrieveParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + def initialize: ( + monitor_id: String, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + request_options: ContextDev::RequestOptions + } + end + end +end diff --git a/sig/context_dev/models/monitor_retrieve_response.rbs b/sig/context_dev/models/monitor_retrieve_response.rbs new file mode 100644 index 00000000..281c80e4 --- /dev/null +++ b/sig/context_dev/models/monitor_retrieve_response.rbs @@ -0,0 +1,941 @@ +module ContextDev + module Models + type monitor_retrieve_response = + ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor + | ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor + | ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor + | ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor + + module MonitorRetrieveResponse + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? + } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_sitemap_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + } + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + type type_ = :sitemap + + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_page_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? + } + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_extract_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top] + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + type type_ = :extract + + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + def self?.variants: -> ::Array[ContextDev::Models::monitor_retrieve_response] + end + end +end diff --git a/sig/context_dev/models/monitor_run_params.rbs b/sig/context_dev/models/monitor_run_params.rbs new file mode 100644 index 00000000..aecc3bd1 --- /dev/null +++ b/sig/context_dev/models/monitor_run_params.rbs @@ -0,0 +1,23 @@ +module ContextDev + module Models + type monitor_run_params = + { monitor_id: String } & ContextDev::Internal::Type::request_parameters + + class MonitorRunParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + def initialize: ( + monitor_id: String, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + request_options: ContextDev::RequestOptions + } + end + end +end diff --git a/sig/context_dev/models/monitor_run_response.rbs b/sig/context_dev/models/monitor_run_response.rbs new file mode 100644 index 00000000..a0d3418d --- /dev/null +++ b/sig/context_dev/models/monitor_run_response.rbs @@ -0,0 +1,15 @@ +module ContextDev + module Models + type monitor_run_response = { monitor_id: String, queued: bool } + + class MonitorRunResponse < ContextDev::Internal::Type::BaseModel + attr_accessor monitor_id: String + + attr_accessor queued: bool + + def initialize: (monitor_id: String, queued: bool) -> void + + def to_hash: -> { monitor_id: String, queued: bool } + end + end +end diff --git a/sig/context_dev/models/monitor_update_params.rbs b/sig/context_dev/models/monitor_update_params.rbs new file mode 100644 index 00000000..91d6918e --- /dev/null +++ b/sig/context_dev/models/monitor_update_params.rbs @@ -0,0 +1,331 @@ +module ContextDev + module Models + type monitor_update_params = + { + monitor_id: String, + change_detection: ContextDev::Models::MonitorUpdateParams::change_detection, + name: String, + schedule: ContextDev::MonitorUpdateParams::Schedule, + status: ContextDev::Models::MonitorUpdateParams::status, + tags: ::Array[String], + target: ContextDev::Models::MonitorUpdateParams::target, + webhook: ContextDev::MonitorUpdateParams::Webhook? + } + & ContextDev::Internal::Type::request_parameters + + class MonitorUpdateParams < ContextDev::Internal::Type::BaseModel + extend ContextDev::Internal::Type::RequestParameters::Converter + include ContextDev::Internal::Type::RequestParameters + + attr_accessor monitor_id: String + + attr_reader change_detection: ContextDev::Models::MonitorUpdateParams::change_detection? + + def change_detection=: ( + ContextDev::Models::MonitorUpdateParams::change_detection + ) -> ContextDev::Models::MonitorUpdateParams::change_detection + + attr_reader name: String? + + def name=: (String) -> String + + attr_reader schedule: ContextDev::MonitorUpdateParams::Schedule? + + def schedule=: ( + ContextDev::MonitorUpdateParams::Schedule + ) -> ContextDev::MonitorUpdateParams::Schedule + + attr_reader status: ContextDev::Models::MonitorUpdateParams::status? + + def status=: ( + ContextDev::Models::MonitorUpdateParams::status + ) -> ContextDev::Models::MonitorUpdateParams::status + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_reader target: ContextDev::Models::MonitorUpdateParams::target? + + def target=: ( + ContextDev::Models::MonitorUpdateParams::target + ) -> ContextDev::Models::MonitorUpdateParams::target + + attr_accessor webhook: ContextDev::MonitorUpdateParams::Webhook? + + def initialize: ( + monitor_id: String, + ?change_detection: ContextDev::Models::MonitorUpdateParams::change_detection, + ?name: String, + ?schedule: ContextDev::MonitorUpdateParams::Schedule, + ?status: ContextDev::Models::MonitorUpdateParams::status, + ?tags: ::Array[String], + ?target: ContextDev::Models::MonitorUpdateParams::target, + ?webhook: ContextDev::MonitorUpdateParams::Webhook?, + ?request_options: ContextDev::request_opts + ) -> void + + def to_hash: -> { + monitor_id: String, + change_detection: ContextDev::Models::MonitorUpdateParams::change_detection, + name: String, + schedule: ContextDev::MonitorUpdateParams::Schedule, + status: ContextDev::Models::MonitorUpdateParams::status, + tags: ::Array[String], + target: ContextDev::Models::MonitorUpdateParams::target, + webhook: ContextDev::MonitorUpdateParams::Webhook?, + request_options: ContextDev::RequestOptions + } + + type change_detection = + ContextDev::MonitorUpdateParams::ChangeDetection::Exact + | ContextDev::MonitorUpdateParams::ChangeDetection::Semantic + + module ChangeDetection + extend ContextDev::Internal::Type::Union + + type exact = { type: :exact } + + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact + + def initialize: (?type: :exact) -> void + + def to_hash: -> { type: :exact } + end + + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } + + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: :semantic + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + ?confidence_threshold: Float, + ?type: :semantic + ) -> void + + def to_hash: -> { + query: String, + type: :semantic, + confidence_threshold: Float + } + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorUpdateParams::change_detection] + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateParams::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateParams::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorUpdateParams::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorUpdateParams::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorUpdateParams::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateParams::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateParams::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateParams::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateParams::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateParams::Schedule::unit] + end + end + + type status = :active | :paused + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateParams::status] + end + + type target = + ContextDev::MonitorUpdateParams::Target::Page + | ContextDev::MonitorUpdateParams::Target::Sitemap + | ContextDev::MonitorUpdateParams::Target::Extract + + module Target + extend ContextDev::Internal::Type::Union + + type page = { type: :page, url: String, normalize_whitespace: bool } + + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + url: String, + ?normalize_whitespace: bool, + ?type: :page + ) -> void + + def to_hash: -> { + type: :page, + url: String, + normalize_whitespace: bool + } + end + + type sitemap = + { + type: :sitemap, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer, + ?type: :sitemap + ) -> void + + def to_hash: -> { + type: :sitemap, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + end + + type extract = + { + type: :extract, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top], + ?type: :extract + ) -> void + + def to_hash: -> { + type: :extract, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + end + + def self?.variants: -> ::Array[ContextDev::Models::MonitorUpdateParams::target] + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + def initialize: (url: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + end +end diff --git a/sig/context_dev/models/monitor_update_response.rbs b/sig/context_dev/models/monitor_update_response.rbs new file mode 100644 index 00000000..ef4ca0ed --- /dev/null +++ b/sig/context_dev/models/monitor_update_response.rbs @@ -0,0 +1,941 @@ +module ContextDev + module Models + type monitor_update_response = + ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor + | ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor + | ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor + | ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor + + module MonitorUpdateResponse + extend ContextDev::Internal::Type::Union + + type monitors_page_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? + } + + class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_sitemap_exact_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + } + + class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status + + attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + } + + type change_detection = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ + } + + type type_ = :exact + + module Type + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_ + + attr_accessor url: String + + attr_reader exclude: ::Array[String]? + + def exclude=: (::Array[String]) -> ::Array[String] + + attr_reader include: ::Array[String]? + + def include=: (::Array[String]) -> ::Array[String] + + attr_reader max_urls: Integer? + + def max_urls=: (Integer) -> Integer + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer + } + + type type_ = :sitemap + + module Type + extend ContextDev::Internal::Type::Enum + + SITEMAP: :sitemap + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_page_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? + } + + class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader normalize_whitespace: bool? + + def normalize_whitespace=: (bool) -> bool + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + ?normalize_whitespace: bool + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, + url: String, + normalize_whitespace: bool + } + + type type_ = :page + + module Type + extend ContextDev::Internal::Type::Enum + + PAGE: :page + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + type monitors_extract_semantic_monitor = + { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection + + attr_accessor created_at: Time + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule + + attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status + + attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, + created_at: Time, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, + target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? + } + + type change_detection = + { + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + class ChangeDetection < ContextDev::Internal::Type::BaseModel + attr_accessor query: String + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ + + attr_reader confidence_threshold: Float? + + def confidence_threshold=: (Float) -> Float + + def initialize: ( + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + ?confidence_threshold: Float + ) -> void + + def to_hash: -> { + query: String, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, + confidence_threshold: Float + } + + type type_ = :semantic + + module Type + extend ContextDev::Internal::Type::Enum + + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] + end + end + + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer + + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_ + + attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + ) -> void + + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit + } + + type type_ = :interval + + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL: :interval + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_] + end + + type unit = :minutes | :hours | :days + + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES: :minutes + HOURS: :hours + DAYS: :days + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit] + end + end + + type status = :active | :paused | :failed + + module Status + extend ContextDev::Internal::Type::Enum + + ACTIVE: :active + PAUSED: :paused + FAILED: :failed + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status] + end + + type target = + { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + class Target < ContextDev::Internal::Type::BaseModel + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_ + + attr_accessor url: String + + attr_reader follow_subdomains: bool? + + def follow_subdomains=: (bool) -> bool + + attr_reader instructions: String? + + def instructions=: (String) -> String + + attr_reader max_depth: Integer? + + def max_depth=: (Integer) -> Integer + + attr_reader max_pages: Integer? + + def max_pages=: (Integer) -> Integer + + attr_reader schema: ::Hash[Symbol, top]? + + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] + + def initialize: ( + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top] + ) -> void + + def to_hash: -> { + type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } + + type type_ = :extract + + module Type + extend ContextDev::Internal::Type::Enum + + EXTRACT: :extract + + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_] + end + end + + type webhook = { url: String, secret: String } + + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String + + attr_reader secret: String? + + def secret=: (String) -> String + + def initialize: (url: String, ?secret: String) -> void + + def to_hash: -> { url: String, secret: String } + end + end + + def self?.variants: -> ::Array[ContextDev::Models::monitor_update_response] + end + end +end diff --git a/sig/context_dev/resources/monitors.rbs b/sig/context_dev/resources/monitors.rbs new file mode 100644 index 00000000..aa56bd71 --- /dev/null +++ b/sig/context_dev/resources/monitors.rbs @@ -0,0 +1,91 @@ +module ContextDev + module Resources + class Monitors + def create: ( + body: ContextDev::Models::MonitorCreateParams::body, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::monitor_create_response + + def retrieve: ( + String monitor_id, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::monitor_retrieve_response + + def update: ( + String monitor_id, + ?change_detection: ContextDev::Models::MonitorUpdateParams::change_detection, + ?name: String, + ?schedule: ContextDev::MonitorUpdateParams::Schedule, + ?status: ContextDev::Models::MonitorUpdateParams::status, + ?tags: ::Array[String], + ?target: ContextDev::Models::MonitorUpdateParams::target, + ?webhook: ContextDev::MonitorUpdateParams::Webhook?, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::monitor_update_response + + def list: ( + ?change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListParams::status, + ?tag: String, + ?target_type: ContextDev::Models::MonitorListParams::target_type, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorListResponse + + def delete: ( + String monitor_id, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorDeleteResponse + + def list_account_changes: ( + ?change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type, + ?cursor: String, + ?limit: Integer, + ?monitor_id: String, + ?since: Time, + ?tag: String, + ?target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type, + ?until_: Time, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorListAccountChangesResponse + + def list_account_runs: ( + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListAccountRunsParams::status, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorListAccountRunsResponse + + def list_changes: ( + String monitor_id, + ?cursor: String, + ?limit: Integer, + ?since: Time, + ?tag: String, + ?until_: Time, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorListChangesResponse + + def list_runs: ( + String monitor_id, + ?cursor: String, + ?limit: Integer, + ?status: ContextDev::Models::MonitorListRunsParams::status, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorListRunsResponse + + def retrieve_change: ( + String change_id, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::monitor_retrieve_change_response + + def run: ( + String monitor_id, + ?request_options: ContextDev::request_opts + ) -> ContextDev::Models::MonitorRunResponse + + def initialize: (client: ContextDev::Client) -> void + end + end +end diff --git a/test/context_dev/resources/monitors_test.rb b/test/context_dev/resources/monitors_test.rb new file mode 100644 index 00000000..ebb8e3c6 --- /dev/null +++ b/test/context_dev/resources/monitors_test.rb @@ -0,0 +1,213 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class ContextDev::Test::Resources::MonitorsTest < ContextDev::Test::ResourceTest + def test_create_required_params + skip("Mock server tests are disabled") + + response = + @context_dev.monitors.create( + body: { + change_detection: {type: :exact}, + name: "Acme pricing page", + schedule: {frequency: 6, type: :interval, unit: :hours}, + target: {type: :page, url: "https://acme.com/pricing"} + } + ) + + assert_pattern do + response => ContextDev::Models::MonitorCreateResponse + end + + assert_pattern do + case response + in ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor + in ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor + in ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor + in ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor + end + end + end + + def test_retrieve + skip("Mock server tests are disabled") + + response = @context_dev.monitors.retrieve("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorRetrieveResponse + end + + assert_pattern do + case response + in ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor + in ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor + in ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor + in ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor + end + end + end + + def test_update + skip("Mock server tests are disabled") + + response = @context_dev.monitors.update("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorUpdateResponse + end + + assert_pattern do + case response + in ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor + in ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor + in ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor + in ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor + end + end + end + + def test_list + skip("Mock server tests are disabled") + + response = @context_dev.monitors.list + + assert_pattern do + response => ContextDev::Models::MonitorListResponse + end + + assert_pattern do + response => { + data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListResponse::Data]), + has_more: ContextDev::Internal::Type::Boolean, + next_cursor: String | nil + } + end + end + + def test_delete + skip("Mock server tests are disabled") + + response = @context_dev.monitors.delete("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorDeleteResponse + end + + assert_pattern do + response => { + id: String, + deleted: ContextDev::Internal::Type::Boolean + } + end + end + + def test_list_account_changes + skip("Mock server tests are disabled") + + response = @context_dev.monitors.list_account_changes + + assert_pattern do + response => ContextDev::Models::MonitorListAccountChangesResponse + end + + assert_pattern do + response => { + data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListAccountChangesResponse::Data]), + has_more: ContextDev::Internal::Type::Boolean, + next_cursor: String | nil + } + end + end + + def test_list_account_runs + skip("Mock server tests are disabled") + + response = @context_dev.monitors.list_account_runs + + assert_pattern do + response => ContextDev::Models::MonitorListAccountRunsResponse + end + + assert_pattern do + response => { + data: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountRunsResponse::Data]), + has_more: ContextDev::Internal::Type::Boolean, + next_cursor: String | nil + } + end + end + + def test_list_changes + skip("Mock server tests are disabled") + + response = @context_dev.monitors.list_changes("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorListChangesResponse + end + + assert_pattern do + response => { + data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListChangesResponse::Data]), + has_more: ContextDev::Internal::Type::Boolean, + next_cursor: String | nil + } + end + end + + def test_list_runs + skip("Mock server tests are disabled") + + response = @context_dev.monitors.list_runs("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorListRunsResponse + end + + assert_pattern do + response => { + data: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListRunsResponse::Data]), + has_more: ContextDev::Internal::Type::Boolean, + next_cursor: String | nil + } + end + end + + def test_retrieve_change + skip("Mock server tests are disabled") + + response = @context_dev.monitors.retrieve_change("chg_123") + + assert_pattern do + response => ContextDev::Models::MonitorRetrieveChangeResponse + end + + assert_pattern do + case response + in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange + in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange + in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange + in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange + end + end + end + + def test_run + skip("Mock server tests are disabled") + + response = @context_dev.monitors.run("mon_123") + + assert_pattern do + response => ContextDev::Models::MonitorRunResponse + end + + assert_pattern do + response => { + monitor_id: String, + queued: ContextDev::Internal::Type::Boolean + } + end + end +end From 8fb393a6a53d4ec6867efe8d9daf8458d9fa3cc8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 01:14:03 +0000 Subject: [PATCH 03/19] feat(api): api update --- .stats.yml | 4 +- lib/context_dev/internal/type/union.rb | 13 - .../models/monitor_create_params.rb | 1099 ++----- .../models/monitor_create_response.rb | 1276 ++------- .../monitor_list_account_changes_response.rb | 605 ++-- .../models/monitor_list_changes_response.rb | 604 ++-- lib/context_dev/models/monitor_list_params.rb | 64 +- .../models/monitor_list_response.rb | 1288 ++------- .../monitor_retrieve_change_response.rb | 765 ++--- .../models/monitor_retrieve_response.rb | 1278 ++------- .../models/monitor_update_params.rb | 9 + .../models/monitor_update_response.rb | 1276 ++------- lib/context_dev/resources/monitors.rb | 43 +- .../models/monitor_create_params.rbi | 2195 +++----------- .../models/monitor_create_response.rbi | 2503 +++------------- .../monitor_list_account_changes_response.rbi | 938 ++---- .../models/monitor_list_changes_response.rbi | 942 ++---- .../models/monitor_list_params.rbi | 118 + .../models/monitor_list_response.rbi | 2552 ++++------------- .../monitor_retrieve_change_response.rbi | 1162 +++----- .../models/monitor_retrieve_response.rbi | 2505 +++------------- .../models/monitor_update_params.rbi | 3 + .../models/monitor_update_response.rbi | 2503 +++------------- rbi/context_dev/resources/monitors.rbi | 64 +- .../models/monitor_create_params.rbs | 865 ++---- .../models/monitor_create_response.rbs | 982 ++----- .../monitor_list_account_changes_response.rbs | 451 +-- .../models/monitor_list_changes_response.rbs | 451 +-- .../models/monitor_list_params.rbs | 56 + .../models/monitor_list_response.rbs | 990 ++----- .../monitor_retrieve_change_response.rbs | 557 +--- .../models/monitor_retrieve_response.rbs | 982 ++----- .../models/monitor_update_response.rbs | 982 ++----- sig/context_dev/resources/monitors.rbs | 20 +- test/context_dev/resources/monitors_test.rb | 110 +- 35 files changed, 6766 insertions(+), 23489 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f86aeb8..0115b3b5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8667763c416101820f5086c97d542bf13bb3bb12b57f5f604da671d9dcea0599.yml -openapi_spec_hash: e33db883d584bc8573897391f3edb105 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-66a3bf68b47ba61c9b61406d36f614a079ff752b8964a8df8062e485391d5598.yml +openapi_spec_hash: b17d6cfe3710dd0605078f3907a1a419 config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/internal/type/union.rb b/lib/context_dev/internal/type/union.rb index 784c1286..b7b45f14 100644 --- a/lib/context_dev/internal/type/union.rb +++ b/lib/context_dev/internal/type/union.rb @@ -4,19 +4,6 @@ module ContextDev module Internal module Type # @api private - # - # @example - # # `monitor_create_response` is a `ContextDev::Models::MonitorCreateResponse` - # case monitor_create_response - # when ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor - # puts(monitor_create_response.id) - # when ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor - # puts(monitor_create_response.change_detection) - # when ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor - # puts(monitor_create_response.created_at) - # else - # puts(monitor_create_response) - # end module Union include ContextDev::Internal::Type::Converter include ContextDev::Internal::Util::SorbetRuntimeSupport diff --git a/lib/context_dev/models/monitor_create_params.rb b/lib/context_dev/models/monitor_create_params.rb index b1e45d1c..b2b422ac 100644 --- a/lib/context_dev/models/monitor_create_params.rb +++ b/lib/context_dev/models/monitor_create_params.rb @@ -7,907 +7,350 @@ class MonitorCreateParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - # @!attribute body - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + # @!attribute change_detection + # Discriminated union describing how changes are detected. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] - required :body, union: -> { ContextDev::MonitorCreateParams::Body } + # @return [ContextDev::Models::MonitorCreateParams::ChangeDetection::Exact, ContextDev::Models::MonitorCreateParams::ChangeDetection::Semantic] + required :change_detection, union: -> { ContextDev::MonitorCreateParams::ChangeDetection } - # @!method initialize(body:, request_options: {}) + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateParams::Schedule] + required :schedule, -> { ContextDev::MonitorCreateParams::Schedule } + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorCreateParams::Target::Page, ContextDev::Models::MonitorCreateParams::Target::Sitemap, ContextDev::Models::MonitorCreateParams::Target::Extract] + required :target, union: -> { ContextDev::MonitorCreateParams::Target } + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Mode, nil] + optional :mode, enum: -> { ContextDev::MonitorCreateParams::Mode } + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateParams::Webhook, nil] + optional :webhook, -> { ContextDev::MonitorCreateParams::Webhook }, nil?: true + + # @!method initialize(change_detection:, name:, schedule:, target:, mode: nil, tags: nil, webhook: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorCreateParams} for more details. # - # @param body [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] Union of supported monitor creation shapes. Supported combinations are: `page + + # @param change_detection [ContextDev::Models::MonitorCreateParams::ChangeDetection::Exact, ContextDev::Models::MonitorCreateParams::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Target::Page, ContextDev::Models::MonitorCreateParams::Target::Sitemap, ContextDev::Models::MonitorCreateParams::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param mode [Symbol, ContextDev::Models::MonitorCreateParams::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Webhook, nil] # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. - module Body + # Discriminated union describing how changes are detected. + module ChangeDetection extend ContextDev::Internal::Type::Union - # Monitor a single page for exact visible text changes. - variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest } + discriminator :type - # Monitor a sitemap for exact URL additions and removals. - variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest } + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::MonitorCreateParams::ChangeDetection::Exact } - # Monitor a single page for semantic changes described by a natural language query. - variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest } + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::MonitorCreateParams::ChangeDetection::Semantic } - # Monitor a website's extracted structured data for semantic changes described by a natural language query. - variant -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest } + class Exact < ContextDev::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :exact] + required :type, const: :exact - class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel - # @!attribute change_detection + # @!method initialize(type: :exact) # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection] - required :change_detection, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection } + # @param type [Symbol, :exact] + end - # @!attribute name + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query # # @return [String] - required :name, String + required :query, String - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @!attribute type # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule] - required :schedule, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule } + # @return [Symbol, :semantic] + required :type, const: :semantic - # @!attribute target + # @!attribute confidence_threshold # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target] - required :target, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target } + # @return [Float, nil] + optional :confidence_threshold, Float - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] + end - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, nil] - optional :webhook, - -> { - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook - }, - nil?: true + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorCreateParams::ChangeDetection::Exact, ContextDev::Models::MonitorCreateParams::ChangeDetection::Semantic)] + end - # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest} - # for more details. - # - # Monitor a single page for exact visible text changes. - # - # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type } - - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit] - required :unit, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - # @!method initialize(url:) - # @param url [String] Webhook URL called when a change is detected. - end + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + # + # @return [Integer] + required :frequency, Integer + + # @!attribute type + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Schedule::Type] + required :type, enum: -> { ContextDev::MonitorCreateParams::Schedule::Type } + + # @!attribute unit + # + # @return [Symbol, ContextDev::Models::MonitorCreateParams::Schedule::Unit] + required :unit, enum: -> { ContextDev::MonitorCreateParams::Schedule::Unit } + + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateParams::Schedule} for more details. + # + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # + # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Schedule::Type] + # + # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Schedule::Unit] + + # @see ContextDev::Models::MonitorCreateParams::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum + + INTERVAL = :interval + + # @!method self.values + # @return [Array] end - class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. + # @see ContextDev::Models::MonitorCreateParams::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum + + MINUTES = :minutes + HOURS = :hours + DAYS = :days + + # @!method self.values + # @return [Array] + end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Watch a single web page. + variant :page, -> { ContextDev::MonitorCreateParams::Target::Page } + + # Watch a sitemap for URL additions and removals. + variant :sitemap, -> { ContextDev::MonitorCreateParams::Target::Sitemap } + + # Watch a site's extracted structured data. + variant :extract, -> { ContextDev::MonitorCreateParams::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel + # @!attribute type # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection] - required :change_detection, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection } + # @return [Symbol, :page] + required :type, const: :page - # @!attribute name + # @!attribute url # # @return [String] - required :name, String + required :url, String - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule] - required :schedule, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule } + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - # @!attribute target + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target] - required :target, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target } - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. + # @param url [String] # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, nil] - optional :webhook, - -> { - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook - }, - nil?: true - - # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest} - # for more details. - # - # Monitor a sitemap for exact URL additions and removals. - # - # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type } - - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit] - required :unit, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type } - - # @!attribute url - # Sitemap URL to monitor. - # - # @return [String] - required :url, String - - # @!attribute exclude - # URL path patterns to exclude. - # - # @return [Array, nil] - optional :exclude, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute include - # URL path patterns to include. - # - # @return [Array, nil] - optional :include, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute max_urls - # - # @return [Integer, nil] - optional :max_urls, Integer - - # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type] - # - # @param url [String] Sitemap URL to monitor. - # - # @param exclude [Array] URL path patterns to exclude. - # - # @param include [Array] URL path patterns to include. - # - # @param max_urls [Integer] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - # @!method initialize(url:) - # @param url [String] Webhook URL called when a change is detected. - end + # @param type [Symbol, :page] end - class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. + class Sitemap < ContextDev::Internal::Type::BaseModel + # @!attribute type # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection] - required :change_detection, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection } + # @return [Symbol, :sitemap] + required :type, const: :sitemap - # @!attribute name + # @!attribute url + # Sitemap URL to monitor. # # @return [String] - required :name, String + required :url, String - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @!attribute exclude + # URL path patterns to exclude. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule] - required :schedule, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target] - required :target, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target } + # @return [Array, nil] + optional :exclude, ContextDev::Internal::Type::ArrayOf[String] - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. + # @!attribute include + # URL path patterns to include. # # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + optional :include, ContextDev::Internal::Type::ArrayOf[String] - # @!attribute webhook + # @!attribute max_urls # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, nil] - optional :webhook, - -> { - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook - }, - nil?: true + # @return [Integer, nil] + optional :max_urls, Integer - # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest} - # for more details. - # - # Monitor a single page for semantic changes described by a natural language - # query. - # - # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit] - required :unit, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - # @!method initialize(url:) - # @param url [String] Webhook URL called when a change is detected. - end + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. + # + # @param url [String] Sitemap URL to monitor. + # + # @param exclude [Array] URL path patterns to exclude. + # + # @param include [Array] URL path patterns to include. + # + # @param max_urls [Integer] + # + # @param type [Symbol, :sitemap] end - class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. + class Extract < ContextDev::Internal::Type::BaseModel + # @!attribute type # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection] - required :change_detection, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection } + # @return [Symbol, :extract] + required :type, const: :extract - # @!attribute name + # @!attribute url + # Root URL to extract structured data from. # # @return [String] - required :name, String + required :url, String - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @!attribute follow_subdomains # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule] - required :schedule, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule } + # @return [Boolean, nil] + optional :follow_subdomains, ContextDev::Internal::Type::Boolean - # @!attribute target + # @!attribute instructions + # Optional natural-language instructions guiding what to extract. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target] - required :target, - -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target } + # @return [String, nil] + optional :instructions, String - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. + # @!attribute max_depth + # Optional maximum link depth from the starting URL (0 = only the starting page). # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @return [Integer, nil] + optional :max_depth, Integer + + # @!attribute max_pages + # Maximum number of pages to analyze during extraction. + # + # @return [Integer, nil] + optional :max_pages, Integer - # @!attribute webhook + # @!attribute schema + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. # - # @return [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, nil] - optional :webhook, - -> { - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook - }, - nil?: true + # @return [Hash{Symbol=>Object}, nil] + optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - # @!method initialize(change_detection:, name:, schedule:, target:, tags: nil, webhook: nil) + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest} - # for more details. - # - # Monitor a website's extracted structured data for semantic changes described by - # a natural language query. - # - # @param change_detection [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param target [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit] - required :unit, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type] - required :type, - enum: -> { ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type } - - # @!attribute url - # Root URL to extract structured data from. - # - # @return [String] - required :url, String - - # @!attribute follow_subdomains - # - # @return [Boolean, nil] - optional :follow_subdomains, ContextDev::Internal::Type::Boolean - - # @!attribute instructions - # Optional natural-language instructions guiding what to extract. - # - # @return [String, nil] - optional :instructions, String - - # @!attribute max_depth - # Optional maximum link depth from the starting URL (0 = only the starting page). - # - # @return [Integer, nil] - optional :max_depth, Integer - - # @!attribute max_pages - # Maximum number of pages to analyze during extraction. - # - # @return [Integer, nil] - optional :max_pages, Integer - - # @!attribute schema - # JSON Schema describing the structured data to extract and watch for changes. If - # omitted, a default summary + key-points schema is used. - # - # @return [Hash{Symbol=>Object}, nil] - optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - - # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target} - # for more details. - # - # @param type [Symbol, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type] - # - # @param url [String] Root URL to extract structured data from. - # - # @param follow_subdomains [Boolean] - # - # @param instructions [String] Optional natural-language instructions guiding what to extract. - # - # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). - # - # @param max_pages [Integer] Maximum number of pages to analyze during extraction. - # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - # @!method initialize(url:) - # @param url [String] Webhook URL called when a change is detected. - end + # {ContextDev::Models::MonitorCreateParams::Target::Extract} for more details. + # + # Watch a site's extracted structured data. + # + # @param url [String] Root URL to extract structured data from. + # + # @param follow_subdomains [Boolean] + # + # @param instructions [String] Optional natural-language instructions guiding what to extract. + # + # @param max_depth [Integer] Optional maximum link depth from the starting URL (0 = only the starting page). + # + # @param max_pages [Integer] Maximum number of pages to analyze during extraction. + # + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If + # + # @param type [Symbol, :extract] end # @!method self.variants - # @return [Array(ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest)] + # @return [Array(ContextDev::Models::MonitorCreateParams::Target::Page, ContextDev::Models::MonitorCreateParams::Target::Sitemap, ContextDev::Models::MonitorCreateParams::Target::Extract)] + end + + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum + + WEB = :web + + # @!method self.values + # @return [Array] + end + + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + # @!method initialize(url:) + # @param url [String] Webhook URL called when a change is detected. end end end diff --git a/lib/context_dev/models/monitor_create_response.rb b/lib/context_dev/models/monitor_create_response.rb index 1f370499..1b4dbcea 100644 --- a/lib/context_dev/models/monitor_create_response.rb +++ b/lib/context_dev/models/monitor_create_response.rb @@ -2,497 +2,300 @@ module ContextDev module Models - # Union of monitor response shapes. - # # @see ContextDev::Resources::Monitors#create - module MonitorCreateResponse - extend ContextDev::Internal::Type::Union - - # A page monitor using exact change detection. - variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor } - - # A sitemap monitor using exact change detection. - variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor } - - # A page monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor } - - # An extract monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule] - required :schedule, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status] - required :status, enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor} for more - # details. - # - # A page monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Discriminated union describing how changes are detected. + # + # @return [ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic] + required :change_detection, union: -> { ContextDev::Models::MonitorCreateResponse::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorCreateResponse::Mode } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorCreateResponse::Schedule] + required :schedule, -> { ContextDev::Models::MonitorCreateResponse::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::Status] + required :status, enum: -> { ContextDev::Models::MonitorCreateResponse::Status } + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Models::MonitorCreateResponse::Target::Sitemap, ContextDev::Models::MonitorCreateResponse::Target::Extract] + required :target, union: -> { ContextDev::Models::MonitorCreateResponse::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorCreateResponse::Webhook, nil] + optional :webhook, -> { ContextDev::Models::MonitorCreateResponse::Webhook }, nil?: true + + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse} for more details. + # + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param created_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorCreateResponse::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::Status] + # + # @param target [ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Models::MonitorCreateResponse::Target::Sitemap, ContextDev::Models::MonitorCreateResponse::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateResponse::Webhook, nil] + + # Discriminated union describing how changes are detected. + # + # @see ContextDev::Models::MonitorCreateResponse#change_detection + module ChangeDetection + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact } + + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic } + + class Exact < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + # @return [Symbol, :exact] + required :type, const: :exact - # @!method initialize(type:) + # @!method initialize(type: :exact) # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end + # @param type [Symbol, :exact] end - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query # - # @return [Integer] - required :frequency, Integer + # @return [String] + required :query, String # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type } + # @return [Symbol, :semantic] + required :type, const: :semantic - # @!attribute unit + # @!attribute confidence_threshold # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit } + # @return [Float, nil] + optional :confidence_threshold, Float - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type] + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. # - # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] end - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic)] + end - PAGE = :page + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorCreateResponse#mode + module Mode + extend ContextDev::Internal::Type::Enum - # @!method self.values - # @return [Array] - end - end + WEB = :web - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id + # @see ContextDev::Models::MonitorCreateResponse#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). # - # @return [String] - required :id, String + # @return [Integer] + required :frequency, Integer - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. + # @!attribute type # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection } + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::Schedule::Type] + required :type, enum: -> { ContextDev::Models::MonitorCreateResponse::Schedule::Type } - # @!attribute created_at + # @!attribute unit # - # @return [Time] - required :created_at, Time + # @return [Symbol, ContextDev::Models::MonitorCreateResponse::Schedule::Unit] + required :unit, enum: -> { ContextDev::Models::MonitorCreateResponse::Schedule::Unit } - # @!attribute name + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::Schedule} for more details. # - # @return [String] - required :name, String - - # @!attribute schedule # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule } - - # @!attribute status + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status } - - # @!attribute target + # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::Schedule::Type] # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target } + # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::Schedule::Unit] - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time + # @see ContextDev::Models::MonitorCreateResponse::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true + INTERVAL = :interval - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true + # @!method self.values + # @return [Array] + end - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @see ContextDev::Models::MonitorCreateResponse::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook }, - nil?: true + MINUTES = :minutes + HOURS = :hours + DAYS = :days - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor} for - # more details. - # - # A sitemap monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + # @!method self.values + # @return [Array] + end + end - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + # @see ContextDev::Models::MonitorCreateResponse#status + module Status + extend ContextDev::Internal::Type::Enum - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + ACTIVE = :active + PAUSED = :paused + FAILED = :failed - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.values + # @return [Array] + end - EXACT = :exact + # Discriminated union describing what the monitor watches. + # + # @see ContextDev::Models::MonitorCreateResponse#target + module Target + extend ContextDev::Internal::Type::Union - # @!method self.values - # @return [Array] - end - end + discriminator :type - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer + # Watch a single web page. + variant :page, -> { ContextDev::Models::MonitorCreateResponse::Target::Page } + + # Watch a sitemap for URL additions and removals. + variant :sitemap, -> { ContextDev::Models::MonitorCreateResponse::Target::Sitemap } + # Watch a site's extracted structured data. + variant :extract, -> { ContextDev::Models::MonitorCreateResponse::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type } + # @return [Symbol, :page] + required :type, const: :page - # @!attribute unit + # @!attribute url # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + # @return [String] + required :url, String - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule} - # for more details. + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # @param url [String] # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. # - # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param type [Symbol, :page] end - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel + class Sitemap < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type } + # @return [Symbol, :sitemap] + required :type, const: :sitemap # @!attribute url # Sitemap URL to monitor. @@ -517,8 +320,8 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :max_urls, Integer - # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type] + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. # # @param url [String] Sitemap URL to monitor. # @@ -527,544 +330,15 @@ class Target < ContextDev::Internal::Type::BaseModel # @param include [Array] URL path patterns to include. # # @param max_urls [Integer] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @param type [Symbol, :sitemap] end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target] - required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor} for - # more details. - # - # A page monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target] - required :target, -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor} for - # more details. - # - # An extract monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String + class Extract < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type } + # @return [Symbol, :extract] + required :type, const: :extract # @!attribute url # Root URL to extract structured data from. @@ -1102,12 +376,11 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Hash{Symbol=>Object}, nil] optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target} - # for more details. + # {ContextDev::Models::MonitorCreateResponse::Target::Extract} for more details. # - # @param type [Symbol, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type] + # Watch a site's extracted structured data. # # @param url [String] Root URL to extract structured data from. # @@ -1120,51 +393,42 @@ class Target < ContextDev::Internal::Type::BaseModel # @param max_pages [Integer] Maximum number of pages to analyze during extraction. # # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If - - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # + # @param type [Symbol, :extract] end - # @see ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Models::MonitorCreateResponse::Target::Sitemap, ContextDev::Models::MonitorCreateResponse::Target::Extract)] + end - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. + # @see ContextDev::Models::MonitorCreateResponse#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @return [String, nil] + optional :secret, String end - end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor)] + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorCreateResponse::Webhook} for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end end end end diff --git a/lib/context_dev/models/monitor_list_account_changes_response.rb b/lib/context_dev/models/monitor_list_account_changes_response.rb index 5e9c57fb..f4b26b37 100644 --- a/lib/context_dev/models/monitor_list_account_changes_response.rb +++ b/lib/context_dev/models/monitor_list_account_changes_response.rb @@ -6,9 +6,9 @@ module Models class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel # @!attribute data # - # @return [Array] + # @return [Array] required :data, - -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListAccountChangesResponse::Data] } + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountChangesResponse::Data] } # @!attribute has_more # @@ -21,455 +21,178 @@ class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel required :next_cursor, String, nil?: true # @!method initialize(data:, has_more:, next_cursor:) - # @param data [Array] + # @param data [Array] # @param has_more [Boolean] # @param next_cursor [String, nil] - # Union of lightweight change summaries. - module Data - extend ContextDev::Internal::Type::Union - - variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary } - - variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary } - - variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary } - - variant -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary } - - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, detected_at:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + class Data < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType] + required :target_type, + enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute added_url_count + # + # @return [Integer, nil] + optional :added_url_count, Integer + + # @!attribute confidence + # + # @return [Float, nil] + optional :confidence, Float + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance, nil] + optional :importance, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance } + + # @!attribute matched_url_count + # + # @return [Integer, nil] + optional :matched_url_count, Integer + + # @!attribute removed_url_count + # + # @return [Integer, nil] + optional :removed_url_count, Integer + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, confidence: nil, importance: nil, matched_url_count: nil, removed_url_count: nil, tags: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListAccountChangesResponse::Data} for more details. + # + # A lightweight change summary. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (e.g. sitemap changes include + # `added_url_count`/`removed_url_count`; semantic changes include + # `confidence`/`importance`). + # + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param added_url_count [Integer] + # + # @param confidence [Float] + # + # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance] + # + # @param matched_url_count [Integer] + # + # @param removed_url_count [Integer] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute added_url_count - # - # @return [Integer] - required :added_url_count, Integer - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute removed_url_count - # - # @return [Integer] - required :removed_url_count, Integer - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, added_url_count:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param added_url_count [Integer] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param monitor_id [String] - # - # @param removed_url_count [Integer] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#mode + module Mode + extend ContextDev::Internal::Type::Enum + + WEB = :web - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance } - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance } - - # @!attribute matched_url_count - # - # @return [Integer] - required :matched_url_count, Integer - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, matched_url_count:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] - # - # @param matched_url_count [Integer] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary)] + # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/models/monitor_list_changes_response.rb b/lib/context_dev/models/monitor_list_changes_response.rb index 003ed2d6..99a53f21 100644 --- a/lib/context_dev/models/monitor_list_changes_response.rb +++ b/lib/context_dev/models/monitor_list_changes_response.rb @@ -6,9 +6,9 @@ module Models class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel # @!attribute data # - # @return [Array] + # @return [Array] required :data, - -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListChangesResponse::Data] } + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListChangesResponse::Data] } # @!attribute has_more # @@ -21,455 +21,177 @@ class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel required :next_cursor, String, nil?: true # @!method initialize(data:, has_more:, next_cursor:) - # @param data [Array] + # @param data [Array] # @param has_more [Boolean] # @param next_cursor [String, nil] - # Union of lightweight change summaries. - module Data - extend ContextDev::Internal::Type::Union - - variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary } - - variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary } - - variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary } - - variant -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary } - - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, detected_at:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + class Data < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::Mode } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::TargetType] + required :target_type, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute added_url_count + # + # @return [Integer, nil] + optional :added_url_count, Integer + + # @!attribute confidence + # + # @return [Float, nil] + optional :confidence, Float + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Importance, nil] + optional :importance, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::Importance } + + # @!attribute matched_url_count + # + # @return [Integer, nil] + optional :matched_url_count, Integer + + # @!attribute removed_url_count + # + # @return [Integer, nil] + optional :removed_url_count, Integer + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, confidence: nil, importance: nil, matched_url_count: nil, removed_url_count: nil, tags: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListChangesResponse::Data} for more details. + # + # A lightweight change summary. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (e.g. sitemap changes include + # `added_url_count`/`removed_url_count`; semantic changes include + # `confidence`/`importance`). + # + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param added_url_count [Integer] + # + # @param confidence [Float] + # + # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Importance] + # + # @param matched_url_count [Integer] + # + # @param removed_url_count [Integer] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorListChangesResponse::Data#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute added_url_count - # - # @return [Integer] - required :added_url_count, Integer - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute removed_url_count - # - # @return [Integer] - required :removed_url_count, Integer - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, added_url_count:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param added_url_count [Integer] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param monitor_id [String] - # - # @param removed_url_count [Integer] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorListChangesResponse::Data#mode + module Mode + extend ContextDev::Internal::Type::Enum + + WEB = :web - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance } - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance } - - # @!attribute matched_url_count - # - # @return [Integer] - required :matched_url_count, Integer - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, importance:, matched_url_count:, monitor_id:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance] - # - # @param matched_url_count [Integer] - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # @see ContextDev::Models::MonitorListChangesResponse::Data#target_type + module TargetType + extend ContextDev::Internal::Type::Enum + + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract + + # @!method self.values + # @return [Array] end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary)] + # @see ContextDev::Models::MonitorListChangesResponse::Data#importance + module Importance + extend ContextDev::Internal::Type::Enum + + LOW = :low + MEDIUM = :medium + HIGH = :high + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/models/monitor_list_params.rb b/lib/context_dev/models/monitor_list_params.rb index 53ecf12c..184154c9 100644 --- a/lib/context_dev/models/monitor_list_params.rb +++ b/lib/context_dev/models/monitor_list_params.rb @@ -22,6 +22,27 @@ class MonitorListParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :limit, Integer + # @!attribute q + # Free-text search term, matched against the fields named in `search_by`. + # + # @return [String, nil] + optional :q, String + + # @!attribute search_by + # Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # only exists on semantic monitors. + # + # @return [Array, nil] + optional :search_by, + -> { ContextDev::Internal::Type::ArrayOf[enum: ContextDev::MonitorListParams::SearchBy] } + + # @!attribute search_type + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + # + # @return [Symbol, ContextDev::Models::MonitorListParams::SearchType, nil] + optional :search_type, enum: -> { ContextDev::MonitorListParams::SearchType } + # @!attribute status # # @return [Symbol, ContextDev::Models::MonitorListParams::Status, nil] @@ -33,22 +54,39 @@ class MonitorListParams < ContextDev::Internal::Type::BaseModel # @return [String, nil] optional :tag, String + # @!attribute tags + # Comma-separated list of tags to filter by (matches monitors having any of them). + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @!attribute target_type # # @return [Symbol, ContextDev::Models::MonitorListParams::TargetType, nil] optional :target_type, enum: -> { ContextDev::MonitorListParams::TargetType } - # @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, status: nil, tag: nil, target_type: nil, request_options: {}) + # @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, q: nil, search_by: nil, search_type: nil, status: nil, tag: nil, tags: nil, target_type: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListParams} for more details. + # # @param change_detection_type [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType] # # @param cursor [String] # # @param limit [Integer] # + # @param q [String] Free-text search term, matched against the fields named in `search_by`. + # + # @param search_by [Array] Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # + # @param search_type [Symbol, ContextDev::Models::MonitorListParams::SearchType] `prefix` for as-you-type prefix matching (default), `exact` for full-token match + # # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] # # @param tag [String] Filter to items that have this tag. # + # @param tags [Array] Comma-separated list of tags to filter by (matches monitors having any of them). + # # @param target_type [Symbol, ContextDev::Models::MonitorListParams::TargetType] # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] @@ -63,6 +101,30 @@ module ChangeDetectionType # @return [Array] end + module SearchBy + extend ContextDev::Internal::Type::Enum + + NAME = :name + URL = :url + QUERY = :query + TAGS = :tags + + # @!method self.values + # @return [Array] + end + + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + module SearchType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + PREFIX = :prefix + + # @!method self.values + # @return [Array] + end + module Status extend ContextDev::Internal::Type::Enum diff --git a/lib/context_dev/models/monitor_list_response.rb b/lib/context_dev/models/monitor_list_response.rb index 173a2865..97f7d28d 100644 --- a/lib/context_dev/models/monitor_list_response.rb +++ b/lib/context_dev/models/monitor_list_response.rb @@ -6,9 +6,8 @@ module Models class MonitorListResponse < ContextDev::Internal::Type::BaseModel # @!attribute data # - # @return [Array] - required :data, - -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListResponse::Data] } + # @return [Array] + required :data, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListResponse::Data] } # @!attribute has_more # @@ -21,502 +20,303 @@ class MonitorListResponse < ContextDev::Internal::Type::BaseModel required :next_cursor, String, nil?: true # @!method initialize(data:, has_more:, next_cursor:) - # @param data [Array] + # @param data [Array] # @param has_more [Boolean] # @param next_cursor [String, nil] - # Union of monitor response shapes. - module Data - extend ContextDev::Internal::Type::Union - - # A page monitor using exact change detection. - variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor } - - # A sitemap monitor using exact change detection. - variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor } - - # A page monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor } - - # An extract monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor} for - # more details. - # - # A page monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class Data < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Discriminated union describing how changes are detected. + # + # @return [ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact, ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic] + required :change_detection, union: -> { ContextDev::Models::MonitorListResponse::Data::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorListResponse::Data::Mode } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorListResponse::Data::Schedule] + required :schedule, -> { ContextDev::Models::MonitorListResponse::Data::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::Status] + required :status, enum: -> { ContextDev::Models::MonitorListResponse::Data::Status } + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, ContextDev::Models::MonitorListResponse::Data::Target::Extract] + required :target, union: -> { ContextDev::Models::MonitorListResponse::Data::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorListResponse::Data::Webhook, nil] + optional :webhook, -> { ContextDev::Models::MonitorListResponse::Data::Webhook }, nil?: true + + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data} for more details. + # + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact, ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param created_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorListResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorListResponse::Data::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::Status] + # + # @param target [ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, ContextDev::Models::MonitorListResponse::Data::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorListResponse::Data::Webhook, nil] + + # Discriminated union describing how changes are detected. + # + # @see ContextDev::Models::MonitorListResponse::Data#change_detection + module ChangeDetection + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact } + + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic } + + class Exact < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type } + # @return [Symbol, :exact] + required :type, const: :exact - # @!method initialize(type:) + # @!method initialize(type: :exact) # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end + # @param type [Symbol, :exact] end - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query # - # @return [Integer] - required :frequency, Integer + # @return [String] + required :query, String # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type } + # @return [Symbol, :semantic] + required :type, const: :semantic - # @!attribute unit + # @!attribute confidence_threshold # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit } + # @return [Float, nil] + optional :confidence_threshold, Float - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type] + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. # - # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] end - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact, ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic)] + end - PAGE = :page + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorListResponse::Data#mode + module Mode + extend ContextDev::Internal::Type::Enum - # @!method self.values - # @return [Array] - end - end + WEB = :web - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id + # @see ContextDev::Models::MonitorListResponse::Data#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). # - # @return [String] - required :id, String + # @return [Integer] + required :frequency, Integer - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. + # @!attribute type # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection } + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::Schedule::Type] + required :type, enum: -> { ContextDev::Models::MonitorListResponse::Data::Schedule::Type } - # @!attribute created_at + # @!attribute unit # - # @return [Time] - required :created_at, Time + # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::Schedule::Unit] + required :unit, enum: -> { ContextDev::Models::MonitorListResponse::Data::Schedule::Unit } - # @!attribute name + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::Schedule} for more details. # - # @return [String] - required :name, String - - # @!attribute schedule # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule } - - # @!attribute status + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status } - - # @!attribute target + # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::Schedule::Type] # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target] - required :target, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target } + # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::Schedule::Unit] - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time + # @see ContextDev::Models::MonitorListResponse::Data::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true + INTERVAL = :interval - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true + # @!method self.values + # @return [Array] + end - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @see ContextDev::Models::MonitorListResponse::Data::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook }, - nil?: true + MINUTES = :minutes + HOURS = :hours + DAYS = :days - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor} for - # more details. - # - # A sitemap monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, nil] + # @!method self.values + # @return [Array] + end + end - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type } + # @see ContextDev::Models::MonitorListResponse::Data#status + module Status + extend ContextDev::Internal::Type::Enum - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type] + ACTIVE = :active + PAUSED = :paused + FAILED = :failed - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.values + # @return [Array] + end - EXACT = :exact + # Discriminated union describing what the monitor watches. + # + # @see ContextDev::Models::MonitorListResponse::Data#target + module Target + extend ContextDev::Internal::Type::Union - # @!method self.values - # @return [Array] - end - end + discriminator :type - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer + # Watch a single web page. + variant :page, -> { ContextDev::Models::MonitorListResponse::Data::Target::Page } + + # Watch a sitemap for URL additions and removals. + variant :sitemap, -> { ContextDev::Models::MonitorListResponse::Data::Target::Sitemap } + # Watch a site's extracted structured data. + variant :extract, -> { ContextDev::Models::MonitorListResponse::Data::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type } + # @return [Symbol, :page] + required :type, const: :page - # @!attribute unit + # @!attribute url # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit } + # @return [String] + required :url, String - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule} - # for more details. + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # @param url [String] # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type] + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. # - # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param type [Symbol, :page] end - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel + class Sitemap < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type } + # @return [Symbol, :sitemap] + required :type, const: :sitemap # @!attribute url # Sitemap URL to monitor. @@ -541,8 +341,8 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :max_urls, Integer - # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type] + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. # # @param url [String] Sitemap URL to monitor. # @@ -551,546 +351,15 @@ class Target < ContextDev::Internal::Type::BaseModel # @param include [Array] URL path patterns to include. # # @param max_urls [Integer] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @param type [Symbol, :sitemap] end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target] - required :target, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor} for - # more details. - # - # A page monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target] - required :target, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor} - # for more details. - # - # An extract monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String + class Extract < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type } + # @return [Symbol, :extract] + required :type, const: :extract # @!attribute url # Root URL to extract structured data from. @@ -1128,12 +397,12 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Hash{Symbol=>Object}, nil] optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target} - # for more details. + # {ContextDev::Models::MonitorListResponse::Data::Target::Extract} for more + # details. # - # @param type [Symbol, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type] + # Watch a site's extracted structured data. # # @param url [String] Root URL to extract structured data from. # @@ -1146,51 +415,42 @@ class Target < ContextDev::Internal::Type::BaseModel # @param max_pages [Integer] Maximum number of pages to analyze during extraction. # # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If - - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # + # @param type [Symbol, :extract] end - # @see ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, ContextDev::Models::MonitorListResponse::Data::Target::Extract)] + end - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. + # @see ContextDev::Models::MonitorListResponse::Data#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @return [String, nil] + optional :secret, String end - end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor)] + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListResponse::Data::Webhook} for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end end end end diff --git a/lib/context_dev/models/monitor_retrieve_change_response.rb b/lib/context_dev/models/monitor_retrieve_change_response.rb index bdebc7c4..7e662f4b 100644 --- a/lib/context_dev/models/monitor_retrieve_change_response.rb +++ b/lib/context_dev/models/monitor_retrieve_change_response.rb @@ -2,570 +2,259 @@ module ContextDev module Models - # Union of full change detail objects. - # # @see ContextDev::Resources::Monitors#retrieve_change - module MonitorRetrieveChangeResponse - extend ContextDev::Internal::Type::Union - - variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange } - - variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange } - - variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange } - - variant -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange } - - class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute diff - # Text diff between the previous and current page baseline. - # - # @return [String] - required :diff, String - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute after_text_excerpt - # - # @return [String, nil] - optional :after_text_excerpt, String - - # @!attribute before_text_excerpt - # - # @return [String, nil] - optional :before_text_excerpt, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, detected_at:, diff:, monitor_id:, summary:, target_type:, title:, url:, after_text_excerpt: nil, before_text_excerpt: nil, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param diff [String] Text diff between the previous and current page baseline. - # - # @param monitor_id [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param after_text_excerpt [String] - # - # @param before_text_excerpt [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType] + required :change_detection_type, + enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType } + + # @!attribute detected_at + # + # @return [Time] + required :detected_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::Mode } + + # @!attribute monitor_id + # + # @return [String] + required :monitor_id, String + + # @!attribute summary + # + # @return [String] + required :summary, String + + # @!attribute target_type + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::TargetType] + required :target_type, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::TargetType } + + # @!attribute title + # + # @return [String] + required :title, String + + # @!attribute url + # + # @return [String] + required :url, String + + # @!attribute added_url_count + # + # @return [Integer, nil] + optional :added_url_count, Integer + + # @!attribute added_urls + # + # @return [Array, nil] + optional :added_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute after_text_excerpt + # + # @return [String, nil] + optional :after_text_excerpt, String + + # @!attribute before_text_excerpt + # + # @return [String, nil] + optional :before_text_excerpt, String + + # @!attribute confidence + # + # @return [Float, nil] + optional :confidence, Float + + # @!attribute diff + # Text diff between the previous and current page baseline (page targets). + # + # @return [String, nil] + optional :diff, String + + # @!attribute evidence + # + # @return [Array, nil] + optional :evidence, + -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence] } + + # @!attribute importance + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Importance, nil] + optional :importance, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::Importance } + + # @!attribute matched_url_count + # + # @return [Integer, nil] + optional :matched_url_count, Integer + + # @!attribute matched_urls + # + # @return [Array, nil] + optional :matched_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute query + # + # @return [String, nil] + optional :query, String + + # @!attribute removed_url_count + # + # @return [Integer, nil] + optional :removed_url_count, Integer + + # @!attribute removed_urls + # + # @return [Array, nil] + optional :removed_urls, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, added_urls: nil, after_text_excerpt: nil, before_text_excerpt: nil, confidence: nil, diff: nil, evidence: nil, importance: nil, matched_url_count: nil, matched_urls: nil, query: nil, removed_url_count: nil, removed_urls: nil, tags: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveChangeResponse} for more details. + # + # A detected change. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (page: `diff` + excerpts; sitemap: + # `added_urls`/`removed_urls`; semantic: + # `query`/`confidence`/`importance`/`evidence`/`matched_urls`). + # + # @param id [String] + # + # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType] + # + # @param detected_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param monitor_id [String] + # + # @param summary [String] + # + # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::TargetType] + # + # @param title [String] + # + # @param url [String] + # + # @param added_url_count [Integer] + # + # @param added_urls [Array] + # + # @param after_text_excerpt [String] + # + # @param before_text_excerpt [String] + # + # @param confidence [Float] + # + # @param diff [String] Text diff between the previous and current page baseline (page targets). + # + # @param evidence [Array] + # + # @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Importance] + # + # @param matched_url_count [Integer] + # + # @param matched_urls [Array] + # + # @param query [String] + # + # @param removed_url_count [Integer] + # + # @param removed_urls [Array] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + + # @see ContextDev::Models::MonitorRetrieveChangeResponse#change_detection_type + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT = :exact + SEMANTIC = :semantic + + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute added_url_count - # - # @return [Integer] - required :added_url_count, Integer - - # @!attribute added_urls - # - # @return [Array] - required :added_urls, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType } - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute removed_url_count - # - # @return [Integer] - required :removed_url_count, Integer - - # @!attribute removed_urls - # - # @return [Array] - required :removed_urls, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType } - - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, added_url_count:, added_urls:, change_detection_type:, detected_at:, monitor_id:, removed_url_count:, removed_urls:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param added_url_count [Integer] - # - # @param added_urls [Array] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType] - # - # @param detected_at [Time] - # - # @param monitor_id [String] - # - # @param removed_url_count [Integer] - # - # @param removed_urls [Array] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange#target_type - module TargetType - extend ContextDev::Internal::Type::Enum + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorRetrieveChangeResponse#mode + module Mode + extend ContextDev::Internal::Type::Enum - SITEMAP = :sitemap + WEB = :web - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end - class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String + # @see ContextDev::Models::MonitorRetrieveChangeResponse#target_type + module TargetType + extend ContextDev::Internal::Type::Enum - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute evidence - # - # @return [Array] - required :evidence, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence] } + PAGE = :page + SITEMAP = :sitemap + EXTRACT = :extract - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance } - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute query - # - # @return [String] - required :query, String + # @!method self.values + # @return [Array] + end - # @!attribute summary + class Evidence < ContextDev::Internal::Type::BaseModel + # @!attribute after + # Snapshot of the content after the change. # # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType } + required :after, String - # @!attribute title + # @!attribute before + # Snapshot of the content before the change. # # @return [String] - required :title, String + required :before, String # @!attribute url + # Optional URL the evidence relates to. Absent for whole-target diffs. # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @return [String, nil] + optional :url, String - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, evidence:, importance:, monitor_id:, query:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param evidence [Array] - # - # @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance] + # @!method initialize(after:, before:, url: nil) + # @param after [String] Snapshot of the content after the change. # - # @param monitor_id [String] + # @param before [String] Snapshot of the content before the change. # - # @param query [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType] - # - # @param title [String] - # - # @param url [String] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - class Evidence < ContextDev::Internal::Type::BaseModel - # @!attribute after - # - # @return [String] - required :after, String - - # @!attribute before - # - # @return [String] - required :before, String - - # @!method initialize(after:, before:) - # @param after [String] - # @param before [String] - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end + # @param url [String] Optional URL the evidence relates to. Absent for whole-target diffs. end - class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType] - required :change_detection_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType } - - # @!attribute confidence - # - # @return [Float] - required :confidence, Float - - # @!attribute detected_at - # - # @return [Time] - required :detected_at, Time - - # @!attribute evidence - # - # @return [Array] - required :evidence, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence] } - - # @!attribute importance - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance] - required :importance, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance } - - # @!attribute matched_url_count - # - # @return [Integer] - required :matched_url_count, Integer + # @see ContextDev::Models::MonitorRetrieveChangeResponse#importance + module Importance + extend ContextDev::Internal::Type::Enum - # @!attribute matched_urls - # - # @return [Array] - required :matched_urls, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute monitor_id - # - # @return [String] - required :monitor_id, String - - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute summary - # - # @return [String] - required :summary, String - - # @!attribute target_type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType] - required :target_type, - enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType } + LOW = :low + MEDIUM = :medium + HIGH = :high - # @!attribute title - # - # @return [String] - required :title, String - - # @!attribute url - # Root URL of the extract target. - # - # @return [String] - required :url, String - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(id:, change_detection_type:, confidence:, detected_at:, evidence:, importance:, matched_url_count:, matched_urls:, monitor_id:, query:, summary:, target_type:, title:, url:, tags: nil) - # @param id [String] - # - # @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType] - # - # @param confidence [Float] - # - # @param detected_at [Time] - # - # @param evidence [Array] - # - # @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance] - # - # @param matched_url_count [Integer] - # - # @param matched_urls [Array] - # - # @param monitor_id [String] - # - # @param query [String] - # - # @param summary [String] - # - # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType] - # - # @param title [String] - # - # @param url [String] Root URL of the extract target. - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#change_detection_type - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - - class Evidence < ContextDev::Internal::Type::BaseModel - # @!attribute after - # Snapshot of the extracted data after the change. - # - # @return [String] - required :after, String - - # @!attribute before - # Snapshot of the extracted data before the change. - # - # @return [String] - required :before, String - - # @!attribute url - # Optional URL the evidence relates to. Absent for whole-target extract diffs. - # - # @return [String, nil] - optional :url, String - - # @!method initialize(after:, before:, url: nil) - # @param after [String] Snapshot of the extracted data after the change. - # - # @param before [String] Snapshot of the extracted data before the change. - # - # @param url [String] Optional URL the evidence relates to. Absent for whole-target extract diffs. - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#importance - module Importance - extend ContextDev::Internal::Type::Enum - - LOW = :low - MEDIUM = :medium - HIGH = :high - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange#target_type - module TargetType - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end - - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange)] end end end diff --git a/lib/context_dev/models/monitor_retrieve_response.rb b/lib/context_dev/models/monitor_retrieve_response.rb index 6267c262..c97a9433 100644 --- a/lib/context_dev/models/monitor_retrieve_response.rb +++ b/lib/context_dev/models/monitor_retrieve_response.rb @@ -2,498 +2,300 @@ module ContextDev module Models - # Union of monitor response shapes. - # # @see ContextDev::Resources::Monitors#retrieve - module MonitorRetrieveResponse - extend ContextDev::Internal::Type::Union - - # A page monitor using exact change detection. - variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor } - - # A sitemap monitor using exact change detection. - variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor } - - # A page monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor } - - # An extract monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule] - required :schedule, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor} for more - # details. - # - # A page monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Discriminated union describing how changes are detected. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact, ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic] + required :change_detection, union: -> { ContextDev::Models::MonitorRetrieveResponse::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorRetrieveResponse::Mode } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::Schedule] + required :schedule, -> { ContextDev::Models::MonitorRetrieveResponse::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::Status] + required :status, enum: -> { ContextDev::Models::MonitorRetrieveResponse::Status } + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, ContextDev::Models::MonitorRetrieveResponse::Target::Extract] + required :target, union: -> { ContextDev::Models::MonitorRetrieveResponse::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorRetrieveResponse::Webhook, nil] + optional :webhook, -> { ContextDev::Models::MonitorRetrieveResponse::Webhook }, nil?: true + + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse} for more details. + # + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact, ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param created_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorRetrieveResponse::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorRetrieveResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::Status] + # + # @param target [ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, ContextDev::Models::MonitorRetrieveResponse::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorRetrieveResponse::Webhook, nil] + + # Discriminated union describing how changes are detected. + # + # @see ContextDev::Models::MonitorRetrieveResponse#change_detection + module ChangeDetection + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact } + + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic } + + class Exact < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + # @return [Symbol, :exact] + required :type, const: :exact - # @!method initialize(type:) + # @!method initialize(type: :exact) # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end + # @param type [Symbol, :exact] end - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query # - # @return [Integer] - required :frequency, Integer + # @return [String] + required :query, String # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type } + # @return [Symbol, :semantic] + required :type, const: :semantic - # @!attribute unit + # @!attribute confidence_threshold # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit } + # @return [Float, nil] + optional :confidence_threshold, Float - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type] + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. # - # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] end - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact, ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic)] + end - PAGE = :page + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorRetrieveResponse#mode + module Mode + extend ContextDev::Internal::Type::Enum - # @!method self.values - # @return [Array] - end - end + WEB = :web - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id + # @see ContextDev::Models::MonitorRetrieveResponse#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). # - # @return [String] - required :id, String + # @return [Integer] + required :frequency, Integer - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. + # @!attribute type # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection } + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::Schedule::Type] + required :type, enum: -> { ContextDev::Models::MonitorRetrieveResponse::Schedule::Type } - # @!attribute created_at + # @!attribute unit # - # @return [Time] - required :created_at, Time + # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit] + required :unit, enum: -> { ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit } - # @!attribute name + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::Schedule} for more details. # - # @return [String] - required :name, String - - # @!attribute schedule # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule } - - # @!attribute status + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status } - - # @!attribute target + # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::Schedule::Type] # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target } + # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit] - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time + # @see ContextDev::Models::MonitorRetrieveResponse::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true + INTERVAL = :interval - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true + # @!method self.values + # @return [Array] + end - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @see ContextDev::Models::MonitorRetrieveResponse::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook }, - nil?: true + MINUTES = :minutes + HOURS = :hours + DAYS = :days - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor} for - # more details. - # - # A sitemap monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, nil] + # @!method self.values + # @return [Array] + end + end - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + # @see ContextDev::Models::MonitorRetrieveResponse#status + module Status + extend ContextDev::Internal::Type::Enum - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + ACTIVE = :active + PAUSED = :paused + FAILED = :failed - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.values + # @return [Array] + end - EXACT = :exact + # Discriminated union describing what the monitor watches. + # + # @see ContextDev::Models::MonitorRetrieveResponse#target + module Target + extend ContextDev::Internal::Type::Union - # @!method self.values - # @return [Array] - end - end + discriminator :type - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer + # Watch a single web page. + variant :page, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Page } + + # Watch a sitemap for URL additions and removals. + variant :sitemap, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap } + # Watch a site's extracted structured data. + variant :extract, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type } + # @return [Symbol, :page] + required :type, const: :page - # @!attribute unit + # @!attribute url # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + # @return [String] + required :url, String - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule} - # for more details. + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # @param url [String] # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. # - # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param type [Symbol, :page] end - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel + class Sitemap < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type } + # @return [Symbol, :sitemap] + required :type, const: :sitemap # @!attribute url # Sitemap URL to monitor. @@ -518,8 +320,8 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :max_urls, Integer - # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type] + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. # # @param url [String] Sitemap URL to monitor. # @@ -528,545 +330,15 @@ class Target < ContextDev::Internal::Type::BaseModel # @param include [Array] URL path patterns to include. # # @param max_urls [Integer] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @param type [Symbol, :sitemap] end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target] - required :target, -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor} for - # more details. - # - # A page monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target] - required :target, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor} - # for more details. - # - # An extract monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String + class Extract < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type } + # @return [Symbol, :extract] + required :type, const: :extract # @!attribute url # Root URL to extract structured data from. @@ -1104,12 +376,11 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Hash{Symbol=>Object}, nil] optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target} - # for more details. + # {ContextDev::Models::MonitorRetrieveResponse::Target::Extract} for more details. # - # @param type [Symbol, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type] + # Watch a site's extracted structured data. # # @param url [String] Root URL to extract structured data from. # @@ -1122,51 +393,42 @@ class Target < ContextDev::Internal::Type::BaseModel # @param max_pages [Integer] Maximum number of pages to analyze during extraction. # # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If - - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # + # @param type [Symbol, :extract] end - # @see ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, ContextDev::Models::MonitorRetrieveResponse::Target::Extract)] + end - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. + # @see ContextDev::Models::MonitorRetrieveResponse#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @return [String, nil] + optional :secret, String end - end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor)] + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRetrieveResponse::Webhook} for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end end end end diff --git a/lib/context_dev/models/monitor_update_params.rb b/lib/context_dev/models/monitor_update_params.rb index 52be163a..bde930f8 100644 --- a/lib/context_dev/models/monitor_update_params.rb +++ b/lib/context_dev/models/monitor_update_params.rb @@ -201,10 +201,13 @@ module Target discriminator :type + # Watch a single web page. variant :page, -> { ContextDev::MonitorUpdateParams::Target::Page } + # Watch a sitemap for URL additions and removals. variant :sitemap, -> { ContextDev::MonitorUpdateParams::Target::Sitemap } + # Watch a site's extracted structured data. variant :extract, -> { ContextDev::MonitorUpdateParams::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -225,6 +228,8 @@ class Page < ContextDev::Internal::Type::BaseModel optional :normalize_whitespace, ContextDev::Internal::Type::Boolean # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. + # # @param url [String] # # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. @@ -262,6 +267,8 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. + # # @param url [String] Sitemap URL to monitor. # # @param exclude [Array] URL path patterns to exclude. @@ -319,6 +326,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorUpdateParams::Target::Extract} for more details. # + # Watch a site's extracted structured data. + # # @param url [String] Root URL to extract structured data from. # # @param follow_subdomains [Boolean] diff --git a/lib/context_dev/models/monitor_update_response.rb b/lib/context_dev/models/monitor_update_response.rb index 24bfafa1..d86a2737 100644 --- a/lib/context_dev/models/monitor_update_response.rb +++ b/lib/context_dev/models/monitor_update_response.rb @@ -2,497 +2,300 @@ module ContextDev module Models - # Union of monitor response shapes. - # # @see ContextDev::Resources::Monitors#update - module MonitorUpdateResponse - extend ContextDev::Internal::Type::Union - - # A page monitor using exact change detection. - variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor } - - # A sitemap monitor using exact change detection. - variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor } - - # A page monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor } - - # An extract monitor using semantic change detection. - variant -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule] - required :schedule, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status] - required :status, enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor} for more - # details. - # - # A page monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute change_detection + # Discriminated union describing how changes are detected. + # + # @return [ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic] + required :change_detection, union: -> { ContextDev::Models::MonitorUpdateResponse::ChangeDetection } + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute mode + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::Mode] + required :mode, enum: -> { ContextDev::Models::MonitorUpdateResponse::Mode } + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + # + # @return [ContextDev::Models::MonitorUpdateResponse::Schedule] + required :schedule, -> { ContextDev::Models::MonitorUpdateResponse::Schedule } + + # @!attribute status + # + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::Status] + required :status, enum: -> { ContextDev::Models::MonitorUpdateResponse::Status } + + # @!attribute target + # Discriminated union describing what the monitor watches. + # + # @return [ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, ContextDev::Models::MonitorUpdateResponse::Target::Extract] + required :target, union: -> { ContextDev::Models::MonitorUpdateResponse::Target } + + # @!attribute updated_at + # + # @return [Time] + required :updated_at, Time + + # @!attribute last_change_at + # + # @return [Time, nil] + optional :last_change_at, Time, nil?: true + + # @!attribute last_run_at + # + # @return [Time, nil] + optional :last_run_at, Time, nil?: true + + # @!attribute tags + # User-defined tags for grouping and filtering monitors and their changes. + # + # @return [Array, nil] + optional :tags, ContextDev::Internal::Type::ArrayOf[String] + + # @!attribute webhook + # + # @return [ContextDev::Models::MonitorUpdateResponse::Webhook, nil] + optional :webhook, -> { ContextDev::Models::MonitorUpdateResponse::Webhook }, nil?: true + + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse} for more details. + # + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + # + # @param id [String] + # + # @param change_detection [ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param created_at [Time] + # + # @param mode [Symbol, ContextDev::Models::MonitorUpdateResponse::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorUpdateResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::Status] + # + # @param target [ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, ContextDev::Models::MonitorUpdateResponse::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param updated_at [Time] + # + # @param last_change_at [Time, nil] + # + # @param last_run_at [Time, nil] + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorUpdateResponse::Webhook, nil] + + # Discriminated union describing how changes are detected. + # + # @see ContextDev::Models::MonitorUpdateResponse#change_detection + module ChangeDetection + extend ContextDev::Internal::Type::Union + + discriminator :type + + # Detect exact changes. For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. + variant :exact, -> { ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact } + + # Detect meaning-level changes that match a natural language query. + variant :semantic, -> { ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic } + + class Exact < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type } + # @return [Symbol, :exact] + required :type, const: :exact - # @!method initialize(type:) + # @!method initialize(type: :exact) # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - EXACT = :exact - - # @!method self.values - # @return [Array] - end + # @param type [Symbol, :exact] end - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). + class Semantic < ContextDev::Internal::Type::BaseModel + # @!attribute query # - # @return [Integer] - required :frequency, Integer + # @return [String] + required :query, String # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type } + # @return [Symbol, :semantic] + required :type, const: :semantic - # @!attribute unit + # @!attribute confidence_threshold # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit } + # @return [Float, nil] + optional :confidence_threshold, Float - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type] + # @!method initialize(query:, confidence_threshold: nil, type: :semantic) + # Detect meaning-level changes that match a natural language query. # - # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param query [String] + # @param confidence_threshold [Float] + # @param type [Symbol, :semantic] end - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact, ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic)] + end - PAGE = :page + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + # + # @see ContextDev::Models::MonitorUpdateResponse#mode + module Mode + extend ContextDev::Internal::Type::Enum - # @!method self.values - # @return [Array] - end - end + WEB = :web - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end + # @!method self.values + # @return [Array] end - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id + # @see ContextDev::Models::MonitorUpdateResponse#schedule + class Schedule < ContextDev::Internal::Type::BaseModel + # @!attribute frequency + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). # - # @return [String] - required :id, String + # @return [Integer] + required :frequency, Integer - # @!attribute change_detection - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. + # @!attribute type # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection } + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::Schedule::Type] + required :type, enum: -> { ContextDev::Models::MonitorUpdateResponse::Schedule::Type } - # @!attribute created_at + # @!attribute unit # - # @return [Time] - required :created_at, Time + # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::Schedule::Unit] + required :unit, enum: -> { ContextDev::Models::MonitorUpdateResponse::Schedule::Unit } - # @!attribute name + # @!method initialize(frequency:, type:, unit:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::Schedule} for more details. # - # @return [String] - required :name, String - - # @!attribute schedule # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule } - - # @!attribute status + # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status } - - # @!attribute target + # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::Schedule::Type] # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target] - required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target } + # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::Schedule::Unit] - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time + # @see ContextDev::Models::MonitorUpdateResponse::Schedule#type + module Type + extend ContextDev::Internal::Type::Enum - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true + INTERVAL = :interval - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true + # @!method self.values + # @return [Array] + end - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] + # @see ContextDev::Models::MonitorUpdateResponse::Schedule#unit + module Unit + extend ContextDev::Internal::Type::Enum - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook }, - nil?: true + MINUTES = :minutes + HOURS = :hours + DAYS = :days - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor} for - # more details. - # - # A sitemap monitor using exact change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection] Detect exact changes. For page targets, this means visible text diffs. For sitem - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status] - # - # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, nil] + # @!method self.values + # @return [Array] + end + end - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type } + # @see ContextDev::Models::MonitorUpdateResponse#status + module Status + extend ContextDev::Internal::Type::Enum - # @!method initialize(type:) - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type] + ACTIVE = :active + PAUSED = :paused + FAILED = :failed - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum + # @!method self.values + # @return [Array] + end - EXACT = :exact + # Discriminated union describing what the monitor watches. + # + # @see ContextDev::Models::MonitorUpdateResponse#target + module Target + extend ContextDev::Internal::Type::Union - # @!method self.values - # @return [Array] - end - end + discriminator :type - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer + # Watch a single web page. + variant :page, -> { ContextDev::Models::MonitorUpdateResponse::Target::Page } + + # Watch a sitemap for URL additions and removals. + variant :sitemap, -> { ContextDev::Models::MonitorUpdateResponse::Target::Sitemap } + # Watch a site's extracted structured data. + variant :extract, -> { ContextDev::Models::MonitorUpdateResponse::Target::Extract } + + class Page < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type } + # @return [Symbol, :page] + required :type, const: :page - # @!attribute unit + # @!attribute url # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit } + # @return [String] + required :url, String - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule} - # for more details. + # @!attribute normalize_whitespace + # Normalize whitespace before comparing or analyzing text. # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # @return [Boolean, nil] + optional :normalize_whitespace, ContextDev::Internal::Type::Boolean + + # @!method initialize(url:, normalize_whitespace: nil, type: :page) + # Watch a single web page. # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be + # @param url [String] # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type] + # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. # - # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] + # @param type [Symbol, :page] end - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#target - class Target < ContextDev::Internal::Type::BaseModel + class Sitemap < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type } + # @return [Symbol, :sitemap] + required :type, const: :sitemap # @!attribute url # Sitemap URL to monitor. @@ -517,8 +320,8 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :max_urls, Integer - # @!method initialize(type:, url:, exclude: nil, include: nil, max_urls: nil) - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type] + # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) + # Watch a sitemap for URL additions and removals. # # @param url [String] Sitemap URL to monitor. # @@ -527,544 +330,15 @@ class Target < ContextDev::Internal::Type::BaseModel # @param include [Array] URL path patterns to include. # # @param max_urls [Integer] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP = :sitemap - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @param type [Symbol, :sitemap] end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target] - required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor} for - # more details. - # - # A page monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type } - - # @!attribute url - # - # @return [String] - required :url, String - - # @!attribute normalize_whitespace - # Normalize whitespace before comparing or analyzing text. - # - # @return [Boolean, nil] - optional :normalize_whitespace, ContextDev::Internal::Type::Boolean - - # @!method initialize(type:, url:, normalize_whitespace: nil) - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type] - # - # @param url [String] - # - # @param normalize_whitespace [Boolean] Normalize whitespace before comparing or analyzing text. - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - PAGE = :page - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String - - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. - # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute change_detection - # Detect meaning-level changes that match a natural language query. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] - required :change_detection, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection } - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute schedule - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule] - required :schedule, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule } - - # @!attribute status - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status] - required :status, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status } - - # @!attribute target - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target] - required :target, -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target } - - # @!attribute updated_at - # - # @return [Time] - required :updated_at, Time - - # @!attribute last_change_at - # - # @return [Time, nil] - optional :last_change_at, Time, nil?: true - - # @!attribute last_run_at - # - # @return [Time, nil] - optional :last_run_at, Time, nil?: true - - # @!attribute tags - # User-defined tags for grouping and filtering monitors and their changes. - # - # @return [Array, nil] - optional :tags, ContextDev::Internal::Type::ArrayOf[String] - - # @!attribute webhook - # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - optional :webhook, - -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook }, - nil?: true - - # @!method initialize(id:, change_detection:, created_at:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor} for - # more details. - # - # An extract monitor using semantic change detection. - # - # @param id [String] - # - # @param change_detection [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection] Detect meaning-level changes that match a natural language query. - # - # @param created_at [Time] - # - # @param name [String] - # - # @param schedule [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever - # - # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status] - # - # @param target [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target] - # - # @param updated_at [Time] - # - # @param last_change_at [Time, nil] - # - # @param last_run_at [Time, nil] - # - # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. - # - # @param webhook [ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, nil] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#change_detection - class ChangeDetection < ContextDev::Internal::Type::BaseModel - # @!attribute query - # - # @return [String] - required :query, String + class Extract < ContextDev::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type } - - # @!attribute confidence_threshold - # - # @return [Float, nil] - optional :confidence_threshold, Float - - # @!method initialize(query:, type:, confidence_threshold: nil) - # Detect meaning-level changes that match a natural language query. - # - # @param query [String] - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type] - # @param confidence_threshold [Float] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection#type - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC = :semantic - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#schedule - class Schedule < ContextDev::Internal::Type::BaseModel - # @!attribute frequency - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - # - # @return [Integer] - required :frequency, Integer - - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type } - - # @!attribute unit - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - required :unit, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit } - - # @!method initialize(frequency:, type:, unit:) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule} - # for more details. - # - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - # - # @param frequency [Integer] Number of units between runs. The resulting interval (frequency × unit) must be - # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type] - # - # @param unit [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit] - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule#type - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL = :interval - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule#unit - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES = :minutes - HOURS = :hours - DAYS = :days - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#status - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE = :active - PAUSED = :paused - FAILED = :failed - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#target - class Target < ContextDev::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type] - required :type, - enum: -> { ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type } + # @return [Symbol, :extract] + required :type, const: :extract # @!attribute url # Root URL to extract structured data from. @@ -1102,12 +376,11 @@ class Target < ContextDev::Internal::Type::BaseModel # @return [Hash{Symbol=>Object}, nil] optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] - # @!method initialize(type:, url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil) + # @!method initialize(url:, follow_subdomains: nil, instructions: nil, max_depth: nil, max_pages: nil, schema: nil, type: :extract) # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target} - # for more details. + # {ContextDev::Models::MonitorUpdateResponse::Target::Extract} for more details. # - # @param type [Symbol, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type] + # Watch a site's extracted structured data. # # @param url [String] Root URL to extract structured data from. # @@ -1120,51 +393,42 @@ class Target < ContextDev::Internal::Type::BaseModel # @param max_pages [Integer] Maximum number of pages to analyze during extraction. # # @param schema [Hash{Symbol=>Object}] JSON Schema describing the structured data to extract and watch for changes. If - - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target#type - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT = :extract - - # @!method self.values - # @return [Array] - end + # + # @param type [Symbol, :extract] end - # @see ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor#webhook - class Webhook < ContextDev::Internal::Type::BaseModel - # @!attribute url - # Webhook URL called when a change is detected. - # - # @return [String] - required :url, String + # @!method self.variants + # @return [Array(ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, ContextDev::Models::MonitorUpdateResponse::Target::Extract)] + end - response_only do - # @!attribute secret - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - # - # @return [String, nil] - optional :secret, String - end - - # @!method initialize(url:, secret: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook} - # for more details. - # - # @param url [String] Webhook URL called when a change is detected. + # @see ContextDev::Models::MonitorUpdateResponse#webhook + class Webhook < ContextDev::Internal::Type::BaseModel + # @!attribute url + # Webhook URL called when a change is detected. + # + # @return [String] + required :url, String + + response_only do + # @!attribute secret + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. # - # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + # @return [String, nil] + optional :secret, String end - end - # @!method self.variants - # @return [Array(ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor)] + # @!method initialize(url:, secret: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorUpdateResponse::Webhook} for more details. + # + # @param url [String] Webhook URL called when a change is detected. + # + # @param secret [String] Signing secret used to verify webhook authenticity. Each delivery includes an `X + end end end end diff --git a/lib/context_dev/resources/monitors.rb b/lib/context_dev/resources/monitors.rb index f2978838..910baa9f 100644 --- a/lib/context_dev/resources/monitors.rb +++ b/lib/context_dev/resources/monitors.rb @@ -13,13 +13,25 @@ class Monitors # detection combinations. The monitor runs immediately after creation to create # its initial baseline. # - # @overload create(body:, request_options: {}) + # @overload create(change_detection:, name:, schedule:, target:, mode: nil, tags: nil, webhook: nil, request_options: {}) # - # @param body [ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest] Union of supported monitor creation shapes. Supported combinations are: `page + + # @param change_detection [ContextDev::Models::MonitorCreateParams::ChangeDetection::Exact, ContextDev::Models::MonitorCreateParams::ChangeDetection::Semantic] Discriminated union describing how changes are detected. + # + # @param name [String] + # + # @param schedule [ContextDev::Models::MonitorCreateParams::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever + # + # @param target [ContextDev::Models::MonitorCreateParams::Target::Page, ContextDev::Models::MonitorCreateParams::Target::Sitemap, ContextDev::Models::MonitorCreateParams::Target::Extract] Discriminated union describing what the monitor watches. + # + # @param mode [Symbol, ContextDev::Models::MonitorCreateParams::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ + # + # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. + # + # @param webhook [ContextDev::Models::MonitorCreateParams::Webhook, nil] # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor] + # @return [ContextDev::Models::MonitorCreateResponse] # # @see ContextDev::Models::MonitorCreateParams def create(params) @@ -27,7 +39,7 @@ def create(params) @client.request( method: :post, path: "monitors", - body: parsed[:body], + body: parsed, model: ContextDev::Models::MonitorCreateResponse, options: options ) @@ -40,7 +52,7 @@ def create(params) # @param monitor_id [String] # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor] + # @return [ContextDev::Models::MonitorRetrieveResponse] # # @see ContextDev::Models::MonitorRetrieveParams def retrieve(monitor_id, params = {}) @@ -79,7 +91,7 @@ def retrieve(monitor_id, params = {}) # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor] + # @return [ContextDev::Models::MonitorUpdateResponse] # # @see ContextDev::Models::MonitorUpdateParams def update(monitor_id, params = {}) @@ -93,9 +105,14 @@ def update(monitor_id, params = {}) ) end - # List monitors + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListParams} for more details. # - # @overload list(change_detection_type: nil, cursor: nil, limit: nil, status: nil, tag: nil, target_type: nil, request_options: {}) + # Lists monitors for the authenticated organization. Supports free-text search + # (`q` over `search_by` fields, `prefix` or `exact` via `search_type`) plus + # status/type/tag filters. Results are paginated via the opaque `cursor`. + # + # @overload list(change_detection_type: nil, cursor: nil, limit: nil, q: nil, search_by: nil, search_type: nil, status: nil, tag: nil, tags: nil, target_type: nil, request_options: {}) # # @param change_detection_type [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType] # @@ -103,10 +120,18 @@ def update(monitor_id, params = {}) # # @param limit [Integer] # + # @param q [String] Free-text search term, matched against the fields named in `search_by`. + # + # @param search_by [Array] Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # + # @param search_type [Symbol, ContextDev::Models::MonitorListParams::SearchType] `prefix` for as-you-type prefix matching (default), `exact` for full-token match + # # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] # # @param tag [String] Filter to items that have this tag. # + # @param tags [Array] Comma-separated list of tags to filter by (matches monitors having any of them). + # # @param target_type [Symbol, ContextDev::Models::MonitorListParams::TargetType] # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] @@ -271,7 +296,7 @@ def list_runs(monitor_id, params = {}) # @param change_id [String] # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange] + # @return [ContextDev::Models::MonitorRetrieveChangeResponse] # # @see ContextDev::Models::MonitorRetrieveChangeParams def retrieve_change(change_id, params = {}) diff --git a/rbi/context_dev/models/monitor_create_params.rbi b/rbi/context_dev/models/monitor_create_params.rbi index 539fbc67..850d9c84 100644 --- a/rbi/context_dev/models/monitor_create_params.rbi +++ b/rbi/context_dev/models/monitor_create_params.rbi @@ -11,36 +11,107 @@ module ContextDev T.any(ContextDev::MonitorCreateParams, ContextDev::Internal::AnyHash) end - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. + # Discriminated union describing how changes are detected. sig do returns( T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ContextDev::MonitorCreateParams::ChangeDetection::Exact, + ContextDev::MonitorCreateParams::ChangeDetection::Semantic ) ) end - attr_accessor :body + attr_accessor :change_detection + + sig { returns(String) } + attr_accessor :name + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(ContextDev::MonitorCreateParams::Schedule) } + attr_reader :schedule + + sig do + params(schedule: ContextDev::MonitorCreateParams::Schedule::OrHash).void + end + attr_writer :schedule + + # Discriminated union describing what the monitor watches. + sig do + returns( + T.any( + ContextDev::MonitorCreateParams::Target::Page, + ContextDev::MonitorCreateParams::Target::Sitemap, + ContextDev::MonitorCreateParams::Target::Extract + ) + ) + end + attr_accessor :target + + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns(T.nilable(ContextDev::MonitorCreateParams::Mode::OrSymbol)) + end + attr_reader :mode + + sig { params(mode: ContextDev::MonitorCreateParams::Mode::OrSymbol).void } + attr_writer :mode + + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + + sig { returns(T.nilable(ContextDev::MonitorCreateParams::Webhook)) } + attr_reader :webhook + + sig do + params( + webhook: T.nilable(ContextDev::MonitorCreateParams::Webhook::OrHash) + ).void + end + attr_writer :webhook sig do params( - body: + change_detection: T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::OrHash + ContextDev::MonitorCreateParams::ChangeDetection::Exact::OrHash, + ContextDev::MonitorCreateParams::ChangeDetection::Semantic::OrHash ), + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule::OrHash, + target: + T.any( + ContextDev::MonitorCreateParams::Target::Page::OrHash, + ContextDev::MonitorCreateParams::Target::Sitemap::OrHash, + ContextDev::MonitorCreateParams::Target::Extract::OrHash + ), + mode: ContextDev::MonitorCreateParams::Mode::OrSymbol, + tags: T::Array[String], + webhook: T.nilable(ContextDev::MonitorCreateParams::Webhook::OrHash), request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. - body:, + # Discriminated union describing how changes are detected. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + # Discriminated union describing what the monitor watches. + target:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil, request_options: {} ) end @@ -48,13 +119,22 @@ module ContextDev sig do override.returns( { - body: + change_detection: + T.any( + ContextDev::MonitorCreateParams::ChangeDetection::Exact, + ContextDev::MonitorCreateParams::ChangeDetection::Semantic + ), + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule, + target: T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ContextDev::MonitorCreateParams::Target::Page, + ContextDev::MonitorCreateParams::Target::Sitemap, + ContextDev::MonitorCreateParams::Target::Extract ), + mode: ContextDev::MonitorCreateParams::Mode::OrSymbol, + tags: T::Array[String], + webhook: T.nilable(ContextDev::MonitorCreateParams::Webhook), request_options: ContextDev::RequestOptions } ) @@ -62,1939 +142,494 @@ module ContextDev def to_hash end - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. - module Body + # Discriminated union describing how changes are detected. + module ChangeDetection extend ContextDev::Internal::Type::Union Variants = T.type_alias do T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + ContextDev::MonitorCreateParams::ChangeDetection::Exact, + ContextDev::MonitorCreateParams::ChangeDetection::Semantic ) end - class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel + class Exact < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest, + ContextDev::MonitorCreateParams::ChangeDetection::Exact, ContextDev::Internal::AnyHash ) end + sig { returns(Symbol) } + attr_accessor :type + # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection - ) + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) end - attr_reader :change_detection - sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target - ) + sig { override.returns({ type: Symbol }) } + def to_hash end - attr_reader :target + end - sig do - params( - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::OrHash - ).void - end - attr_writer :target + class Semantic < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::ChangeDetection::Semantic, + ContextDev::Internal::AnyHash + ) + end - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { returns(String) } + attr_accessor :query - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { returns(Symbol) } + attr_accessor :type - sig do - returns( - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook - ) - ) - end - attr_reader :webhook + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold - sig do - params( - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold - # Monitor a single page for exact visible text changes. + # Detect meaning-level changes that match a natural language query. sig do params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::OrHash, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::OrHash, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::OrHash, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook::OrHash - ) + query: String, + confidence_threshold: Float, + type: Symbol ).returns(T.attached_class) end - def self.new( - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - target:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) + def self.new(query:, confidence_threshold: nil, type: :semantic) end sig do override.returns( - { - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook - ) - } + { query: String, type: Symbol, confidence_threshold: Float } ) end def to_hash end + end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol - ) - end - attr_accessor :type + sig do + override.returns( + T::Array[ContextDev::MonitorCreateParams::ChangeDetection::Variants] + ) + end + def self.variants + end + end - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Schedule, + ContextDev::Internal::AnyHash ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end end - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end + sig do + returns(ContextDev::MonitorCreateParams::Schedule::Type::OrSymbol) + end + attr_accessor :type - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end + sig do + returns(ContextDev::MonitorCreateParams::Schedule::Unit::OrSymbol) + end + attr_accessor :unit - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - sig { params(url: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url: - ) - end + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: ContextDev::MonitorCreateParams::Schedule::Type::OrSymbol, + unit: ContextDev::MonitorCreateParams::Schedule::Unit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: + ) + end - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end + sig do + override.returns( + { + frequency: Integer, + type: ContextDev::MonitorCreateParams::Schedule::Type::OrSymbol, + unit: ContextDev::MonitorCreateParams::Schedule::Unit::OrSymbol + } + ) + end + def to_hash end - class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel - OrHash = + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest, - ContextDev::Internal::AnyHash - ) + T.all(Symbol, ContextDev::MonitorCreateParams::Schedule::Type) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection + INTERVAL = + T.let( + :interval, + ContextDev::MonitorCreateParams::Schedule::Type::TaggedSymbol ) - end - attr_reader :change_detection sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule + override.returns( + T::Array[ + ContextDev::MonitorCreateParams::Schedule::Type::TaggedSymbol + ] ) end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::OrHash - ).void + def self.values end - attr_writer :schedule - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::OrHash - ).void - end - attr_writer :target + end - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + module Unit + extend ContextDev::Internal::Type::Enum - sig { params(tags: T::Array[String]).void } - attr_writer :tags + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorCreateParams::Schedule::Unit) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig do - returns( - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook - ) + MINUTES = + T.let( + :minutes, + ContextDev::MonitorCreateParams::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::MonitorCreateParams::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::MonitorCreateParams::Schedule::Unit::TaggedSymbol ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # Monitor a sitemap for exact URL additions and removals. - sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::OrHash, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::OrHash, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::OrHash, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - target:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end sig do override.returns( - { - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook - ) - } + T::Array[ + ContextDev::MonitorCreateParams::Schedule::Unit::TaggedSymbol + ] ) end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end + def self.values end + end + end - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol - ) - end - attr_accessor :type - - # Sitemap URL to monitor. - sig { returns(String) } - attr_accessor :url - - # URL path patterns to exclude. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :exclude - - sig { params(exclude: T::Array[String]).void } - attr_writer :exclude - - # URL path patterns to include. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :include - - sig { params(include: T::Array[String]).void } - attr_writer :include - - sig { returns(T.nilable(Integer)) } - attr_reader :max_urls - - sig { params(max_urls: Integer).void } - attr_writer :max_urls - - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - ).returns(T.attached_class) - end - def self.new( - type:, - # Sitemap URL to monitor. - url:, - # URL path patterns to exclude. - exclude: nil, - # URL path patterns to include. - include: nil, - max_urls: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - sig { params(url: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url: + Variants = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Target::Page, + ContextDev::MonitorCreateParams::Target::Sitemap, + ContextDev::MonitorCreateParams::Target::Extract ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end end - end - class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + class Page < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest, + ContextDev::MonitorCreateParams::Target::Page, ContextDev::Internal::AnyHash ) end - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Symbol) } + attr_accessor :type sig { returns(String) } - attr_accessor :name + attr_accessor :url - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule - ) - end - attr_reader :schedule + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace - sig do - params( - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target - ) - end - attr_reader :target + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace + # Watch a single web page. sig do params( - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::OrHash - ).void - end - attr_writer :target - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # Monitor a single page for semantic changes described by a natural language - # query. - sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::OrHash, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::OrHash, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::OrHash, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook::OrHash - ) + url: String, + normalize_whitespace: T::Boolean, + type: Symbol ).returns(T.attached_class) end def self.new( - # Detect meaning-level changes that match a natural language query. - change_detection:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - target:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page ) end sig do override.returns( - { - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook - ) - } + { type: Symbol, url: String, normalize_whitespace: T::Boolean } ) end def to_hash end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol - ) - end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - - sig do - override.returns( - { - query: String, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - sig { params(url: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url: - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end end - class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel + class Sitemap < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest, + ContextDev::MonitorCreateParams::Target::Sitemap, ContextDev::Internal::AnyHash ) end - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Symbol) } + attr_accessor :type + # Sitemap URL to monitor. sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule - ) - end - attr_reader :schedule + attr_accessor :url - sig do - params( - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target - ) - end - attr_reader :target + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude - sig do - params( - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::OrHash - ).void - end - attr_writer :target + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude - # User-defined tags for grouping and filtering monitors and their changes. + # URL path patterns to include. sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + attr_reader :include - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { params(include: T::Array[String]).void } + attr_writer :include - sig do - returns( - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook - ) - ) - end - attr_reader :webhook + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls - sig do - params( - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + sig { params(max_urls: Integer).void } + attr_writer :max_urls - # Monitor a website's extracted structured data for semantic changes described by - # a natural language query. + # Watch a sitemap for URL additions and removals. sig do params( - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::OrHash, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::OrHash, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::OrHash, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook::OrHash - ) + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( - # Detect meaning-level changes that match a natural language query. - change_detection:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - target:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap ) end sig do override.returns( { - change_detection: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, - target: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook - ) + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer } ) end def to_hash end + end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol + class Extract < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Target::Extract, + ContextDev::Internal::AnyHash ) end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - sig do - override.returns( - { - query: String, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end + sig { returns(Symbol) } + attr_accessor :type - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Root URL to extract structured data from. + sig { returns(String) } + attr_accessor :url - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol - ) - end - attr_accessor :type + sig { returns(T.nilable(T::Boolean)) } + attr_reader :follow_subdomains - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end + sig { params(follow_subdomains: T::Boolean).void } + attr_writer :follow_subdomains - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::OrSymbol, - unit: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::OrSymbol - } - ) - end - def to_hash - end + # Optional natural-language instructions guiding what to extract. + sig { returns(T.nilable(String)) } + attr_reader :instructions - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end + sig { params(instructions: String).void } + attr_writer :instructions - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Optional maximum link depth from the starting URL (0 = only the starting page). + sig { returns(T.nilable(Integer)) } + attr_reader :max_depth - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol - ) - end - attr_accessor :type - - # Root URL to extract structured data from. - sig { returns(String) } - attr_accessor :url + sig { params(max_depth: Integer).void } + attr_writer :max_depth - sig { returns(T.nilable(T::Boolean)) } - attr_reader :follow_subdomains + # Maximum number of pages to analyze during extraction. + sig { returns(T.nilable(Integer)) } + attr_reader :max_pages - sig { params(follow_subdomains: T::Boolean).void } - attr_writer :follow_subdomains + sig { params(max_pages: Integer).void } + attr_writer :max_pages - # Optional natural-language instructions guiding what to extract. - sig { returns(T.nilable(String)) } - attr_reader :instructions + # JSON Schema describing the structured data to extract and watch for changes. If + # omitted, a default summary + key-points schema is used. + sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } + attr_reader :schema - sig { params(instructions: String).void } - attr_writer :instructions + sig { params(schema: T::Hash[Symbol, T.anything]).void } + attr_writer :schema + # Watch a site's extracted structured data. + sig do + params( + url: String, + follow_subdomains: T::Boolean, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: T::Hash[Symbol, T.anything], + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Root URL to extract structured data from. + url:, + follow_subdomains: nil, + # Optional natural-language instructions guiding what to extract. + instructions: nil, # Optional maximum link depth from the starting URL (0 = only the starting page). - sig { returns(T.nilable(Integer)) } - attr_reader :max_depth - - sig { params(max_depth: Integer).void } - attr_writer :max_depth - + max_depth: nil, # Maximum number of pages to analyze during extraction. - sig { returns(T.nilable(Integer)) } - attr_reader :max_pages - - sig { params(max_pages: Integer).void } - attr_writer :max_pages - + max_pages: nil, # JSON Schema describing the structured data to extract and watch for changes. If # omitted, a default summary + key-points schema is used. - sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } - attr_reader :schema - - sig { params(schema: T::Hash[Symbol, T.anything]).void } - attr_writer :schema + schema: nil, + type: :extract + ) + end - sig do - params( - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol, + sig do + override.returns( + { + type: Symbol, url: String, follow_subdomains: T::Boolean, instructions: String, max_depth: Integer, max_pages: Integer, schema: T::Hash[Symbol, T.anything] - ).returns(T.attached_class) - end - def self.new( - type:, - # Root URL to extract structured data from. - url:, - follow_subdomains: nil, - # Optional natural-language instructions guiding what to extract. - instructions: nil, - # Optional maximum link depth from the starting URL (0 = only the starting page). - max_depth: nil, - # Maximum number of pages to analyze during extraction. - max_pages: nil, - # JSON Schema describing the structured data to extract and watch for changes. If - # omitted, a default summary + key-points schema is used. - schema: nil + } ) - end - - sig do - override.returns( - { - type: - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::OrSymbol, - url: String, - follow_subdomains: T::Boolean, - instructions: String, - max_depth: Integer, - max_pages: Integer, - schema: T::Hash[Symbol, T.anything] - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - sig { params(url: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url: - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end + def to_hash end end sig do override.returns( - T::Array[ContextDev::MonitorCreateParams::Body::Variants] + T::Array[ContextDev::MonitorCreateParams::Target::Variants] ) end def self.variants end end + + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, ContextDev::MonitorCreateParams::Mode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WEB = T.let(:web, ContextDev::MonitorCreateParams::Mode::TaggedSymbol) + + sig do + override.returns( + T::Array[ContextDev::MonitorCreateParams::Mode::TaggedSymbol] + ) + end + def self.values + end + end + + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::MonitorCreateParams::Webhook, + ContextDev::Internal::AnyHash + ) + end + + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url + + sig { params(url: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url: + ) + end + + sig { override.returns({ url: String, secret: String }) } + def to_hash + end + end end end end diff --git a/rbi/context_dev/models/monitor_create_response.rbi b/rbi/context_dev/models/monitor_create_response.rbi index 9a1e1e44..16ecf3ec 100644 --- a/rbi/context_dev/models/monitor_create_response.rbi +++ b/rbi/context_dev/models/monitor_create_response.rbi @@ -2,2160 +2,603 @@ module ContextDev module Models - # Union of monitor response shapes. - module MonitorCreateResponse - extend ContextDev::Internal::Type::Union - - Variants = + class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor + ContextDev::Models::MonitorCreateResponse, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id + sig { returns(String) } + attr_accessor :id - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection + # Discriminated union describing how changes are detected. + sig do + returns( + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Variants + ) + end + attr_accessor :change_detection - sig do - params( - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Time) } + attr_accessor :created_at - sig { returns(Time) } - attr_accessor :created_at + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns(ContextDev::Models::MonitorCreateResponse::Mode::TaggedSymbol) + end + attr_accessor :mode - sig { returns(String) } - attr_accessor :name + sig { returns(String) } + attr_accessor :name - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule - ) - end - attr_reader :schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(ContextDev::Models::MonitorCreateResponse::Schedule) } + attr_reader :schedule - sig do - params( - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule + sig do + params( + schedule: ContextDev::Models::MonitorCreateResponse::Schedule::OrHash + ).void + end + attr_writer :schedule - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status + sig do + returns(ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol) + end + attr_accessor :status - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target - ) - end - attr_reader :target + # Discriminated union describing what the monitor watches. + sig do + returns(ContextDev::Models::MonitorCreateResponse::Target::Variants) + end + attr_accessor :target - sig do - params( - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::OrHash - ).void - end - attr_writer :target + sig { returns(Time) } + attr_accessor :updated_at - sig { returns(Time) } - attr_accessor :updated_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { params(tags: T::Array[String]).void } + attr_writer :tags - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig do + returns(T.nilable(ContextDev::Models::MonitorCreateResponse::Webhook)) + end + attr_reader :webhook - sig do - returns( + sig do + params( + webhook: T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook + ContextDev::Models::MonitorCreateResponse::Webhook::OrHash ) - ) - end - attr_reader :webhook + ).void + end + attr_writer :webhook - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + sig do + params( + id: String, + change_detection: + T.any( + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact::OrHash, + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic::OrHash + ), + created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::Mode::OrSymbol, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule::OrHash, + status: ContextDev::Models::MonitorCreateResponse::Status::OrSymbol, + target: + T.any( + ContextDev::Models::MonitorCreateResponse::Target::Page::OrHash, + ContextDev::Models::MonitorCreateResponse::Target::Sitemap::OrHash, + ContextDev::Models::MonitorCreateResponse::Target::Extract::OrHash + ), + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorCreateResponse::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Discriminated union describing how changes are detected. + change_detection:, + created_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + # Discriminated union describing what the monitor watches. + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end - # A page monitor using exact change detection. - sig do - params( + sig do + override.returns( + { id: String, change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Variants, created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::Mode::TaggedSymbol, name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::OrHash, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule, status: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::OrHash, + ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol, + target: ContextDev::Models::MonitorCreateResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), last_run_at: T.nilable(Time), tags: T::Array[String], webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + T.nilable(ContextDev::Models::MonitorCreateResponse::Webhook) + } ) - end + end + def to_hash + end - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook - ) - } - ) - end - def to_hash - end + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union - class ChangeDetection < ContextDev::Internal::Type::BaseModel + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact, + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic + ) + end + + class Exact < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end + sig { override.returns({ type: Symbol }) } def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end - class Schedule < ContextDev::Internal::Type::BaseModel + class Semantic < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency + sig { returns(String) } + attr_accessor :query - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Detect meaning-level changes that match a natural language query. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + query: String, + confidence_threshold: Float, + type: Symbol ).returns(T.attached_class) end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) + def self.new(query:, confidence_threshold: nil, type: :semantic) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - } + { query: String, type: Symbol, confidence_threshold: Float } ) end def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end end - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Variants + ] + ) end + def self.variants + end + end - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorCreateResponse::Mode) end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace + WEB = + T.let( + :web, + ContextDev::Models::MonitorCreateResponse::Mode::TaggedSymbol + ) - sig do - params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::Mode::TaggedSymbol + ] ) - end + end + def self.values + end + end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::Schedule, + ContextDev::Internal::AnyHash ) end - def to_hash - end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + returns( + ContextDev::Models::MonitorCreateResponse::Schedule::Type::TaggedSymbol + ) end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A sitemap monitor using exact change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Sitemap URL to monitor. - sig { returns(String) } - attr_accessor :url - - # URL path patterns to exclude. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :exclude - - sig { params(exclude: T::Array[String]).void } - attr_writer :exclude - - # URL path patterns to include. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :include - - sig { params(include: T::Array[String]).void } - attr_writer :include - - sig { returns(T.nilable(Integer)) } - attr_reader :max_urls - - sig { params(max_urls: Integer).void } - attr_writer :max_urls - - sig do - params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - ).returns(T.attached_class) - end - def self.new( - type:, - # Sitemap URL to monitor. - url:, - # URL path patterns to exclude. - exclude: nil, - # URL path patterns to include. - include: nil, - max_urls: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A page monitor using semantic change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - - sig do - override.returns( - { - query: String, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags + attr_accessor :type sig do returns( - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook - ) + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol ) end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + attr_accessor :unit - # An extract monitor using semantic change detection. + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. sig do params( - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::OrSymbol ).returns(T.attached_class) end def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: ) end sig do override.returns( { - id: String, - change_detection: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook - ) + frequency: Integer, + type: + ContextDev::Models::MonitorCreateResponse::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol } ) end def to_hash end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::Schedule::Type ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :query + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorCreateResponse::Schedule::Type::TaggedSymbol + ) sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::Schedule::Type::TaggedSymbol + ] ) end - attr_accessor :type + def self.values + end + end - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold + module Unit + extend ContextDev::Internal::Type::Enum - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorCreateResponse::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol + ) sig do override.returns( - { - query: String, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } + T::Array[ + ContextDev::Models::MonitorCreateResponse::Schedule::Unit::TaggedSymbol + ] ) end - def to_hash + def self.values end + end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) + module Status + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorCreateResponse::Status) end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol + ] + ) + end + def self.values end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::Target::Page, + ContextDev::Models::MonitorCreateResponse::Target::Sitemap, + ContextDev::Models::MonitorCreateResponse::Target::Extract + ) + end - class Schedule < ContextDev::Internal::Type::BaseModel + class Page < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Watch a single web page. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + url: String, + normalize_whitespace: T::Boolean, + type: Symbol ).returns(T.attached_class) end def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page ) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - } + { type: Symbol, url: String, normalize_whitespace: T::Boolean } ) end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ] + class Sitemap < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::Target::Sitemap, + ContextDev::Internal::AnyHash ) end - def self.values - end - end - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) + sig { returns(Symbol) } + attr_accessor :type - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url - module Status - extend ContextDev::Internal::Type::Enum + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + # Watch a sitemap for URL additions and removals. + sig do + params( + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap + ) + end sig do override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ] + { + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } ) end - def self.values + def to_hash end end - class Target < ContextDev::Internal::Type::BaseModel + class Extract < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Models::MonitorCreateResponse::Target::Extract, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Root URL to extract structured data from. @@ -2197,20 +640,19 @@ module ContextDev sig { params(schema: T::Hash[Symbol, T.anything]).void } attr_writer :schema + # Watch a site's extracted structured data. sig do params( - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, url: String, follow_subdomains: T::Boolean, instructions: String, max_depth: Integer, max_pages: Integer, - schema: T::Hash[Symbol, T.anything] + schema: T::Hash[Symbol, T.anything], + type: Symbol ).returns(T.attached_class) end def self.new( - type:, # Root URL to extract structured data from. url:, follow_subdomains: nil, @@ -2222,15 +664,15 @@ module ContextDev max_pages: nil, # JSON Schema describing the structured data to extract and watch for changes. If # omitted, a default summary + key-points schema is used. - schema: nil + schema: nil, + type: :extract ) end sig do override.returns( { - type: - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + type: Symbol, url: String, follow_subdomains: T::Boolean, instructions: String, @@ -2242,86 +684,59 @@ module ContextDev end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorCreateResponse::Target::Variants + ] + ) + end + def self.variants + end + end - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::Webhook, + ContextDev::Internal::AnyHash + ) end - end - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, # Signing secret used to verify webhook authenticity. Each delivery includes an # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time # compare and reject stale timestamps to prevent replay. Generated by the API; # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end + secret: nil + ) end - end - sig do - override.returns( - T::Array[ContextDev::Models::MonitorCreateResponse::Variants] - ) - end - def self.variants + sig { override.returns({ url: String, secret: String }) } + def to_hash + end end end end diff --git a/rbi/context_dev/models/monitor_list_account_changes_response.rbi b/rbi/context_dev/models/monitor_list_account_changes_response.rbi index dfc33d72..b0542dac 100644 --- a/rbi/context_dev/models/monitor_list_account_changes_response.rbi +++ b/rbi/context_dev/models/monitor_list_account_changes_response.rbi @@ -13,9 +13,7 @@ module ContextDev sig do returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants - ] + T::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data] ) end attr_accessor :data @@ -30,12 +28,7 @@ module ContextDev params( data: T::Array[ - T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::OrHash, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::OrHash, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::OrHash, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::OrHash - ) + ContextDev::Models::MonitorListAccountChangesResponse::Data::OrHash ], has_more: T::Boolean, next_cursor: T.nilable(String) @@ -49,7 +42,7 @@ module ContextDev { data: T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants + ContextDev::Models::MonitorListAccountChangesResponse::Data ], has_more: T::Boolean, next_cursor: T.nilable(String) @@ -59,785 +52,324 @@ module ContextDev def to_hash end - # Union of lightweight change summaries. - module Data - extend ContextDev::Internal::Type::Union - - Variants = + class Data < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary + ContextDev::Models::MonitorListAccountChangesResponse::Data, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id + sig { returns(String) } + attr_accessor :id - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type - - sig { returns(Time) } - attr_accessor :detected_at - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type - sig { returns(String) } - attr_accessor :title + sig { returns(Time) } + attr_accessor :detected_at - sig { returns(String) } - attr_accessor :url + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode::TaggedSymbol + ) + end + attr_accessor :mode - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { returns(String) } + attr_accessor :monitor_id - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { returns(String) } + attr_accessor :summary - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::OrSymbol, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - detected_at:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + sig do + returns( + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol ) - end + end + attr_accessor :target_type - sig do - override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end - def to_hash - end + sig { returns(String) } + attr_accessor :title - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) + sig { returns(String) } + attr_accessor :url - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end - end + sig { returns(T.nilable(Integer)) } + attr_reader :added_url_count - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary, - ContextDev::Internal::AnyHash - ) - end + sig { params(added_url_count: Integer).void } + attr_writer :added_url_count - sig { returns(String) } - attr_accessor :id + sig { returns(T.nilable(Float)) } + attr_reader :confidence - sig { returns(Integer) } - attr_accessor :added_url_count + sig { params(confidence: Float).void } + attr_writer :confidence - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol ) - end - attr_accessor :change_detection_type + ) + end + attr_reader :importance - sig { returns(Time) } - attr_accessor :detected_at + sig do + params( + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::OrSymbol + ).void + end + attr_writer :importance - sig { returns(String) } - attr_accessor :monitor_id + sig { returns(T.nilable(Integer)) } + attr_reader :matched_url_count - sig { returns(Integer) } - attr_accessor :removed_url_count + sig { params(matched_url_count: Integer).void } + attr_writer :matched_url_count - sig { returns(String) } - attr_accessor :summary + sig { returns(T.nilable(Integer)) } + attr_reader :removed_url_count - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig { params(removed_url_count: Integer).void } + attr_writer :removed_url_count - sig { returns(String) } - attr_accessor :title + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - sig { returns(String) } - attr_accessor :url + sig { params(tags: T::Array[String]).void } + attr_writer :tags + # A lightweight change summary. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (e.g. sitemap changes include + # `added_url_count`/`removed_url_count`; semantic changes include + # `confidence`/`importance`). + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::OrSymbol, + detected_at: Time, + mode: + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode::OrSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::OrSymbol, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::OrSymbol, + matched_url_count: Integer, + removed_url_count: Integer, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + added_url_count: nil, + confidence: nil, + importance: nil, + matched_url_count: nil, + removed_url_count: nil, # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags + tags: nil + ) + end - sig do - params( + sig do + override.returns( + { id: String, - added_url_count: Integer, change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::OrSymbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::TaggedSymbol, detected_at: Time, + mode: + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode::TaggedSymbol, monitor_id: String, - removed_url_count: Integer, summary: String, target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::OrSymbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol, title: String, url: String, + added_url_count: Integer, + confidence: Float, + importance: + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol, + matched_url_count: Integer, + removed_url_count: Integer, tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - added_url_count:, - change_detection_type:, - detected_at:, - monitor_id:, - removed_url_count:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + } ) - end - - sig do - override.returns( - { - id: String, - added_url_count: Integer, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end - def to_hash - end - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end end + def to_hash + end + + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::TaggedSymbol ) - end - attr_accessor :importance - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::TaggedSymbol ) - end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::OrSymbol, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - importance:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end sig do override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType::TaggedSymbol + ] ) end - def to_hash + def self.values end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode ) end - def self.values - end - end + OrSymbol = T.type_alias { T.any(Symbol, String) } - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) + WEB = + T.let( + :web, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :importance - - sig { returns(Integer) } - attr_accessor :matched_url_count - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary - - sig do - returns( - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::OrSymbol, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - importance:, - matched_url_count:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end sig do override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType::TaggedSymbol + ] ) end - def to_hash + def self.values end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) + module Importance + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance ) end - def self.values - end - end + OrSymbol = T.type_alias { T.any(Symbol, String) } - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) + LOW = + T.let( + :low, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListAccountChangesResponse::Data::Variants - ] - ) - end - def self.variants - end end end end diff --git a/rbi/context_dev/models/monitor_list_changes_response.rbi b/rbi/context_dev/models/monitor_list_changes_response.rbi index 910f5091..153b5bea 100644 --- a/rbi/context_dev/models/monitor_list_changes_response.rbi +++ b/rbi/context_dev/models/monitor_list_changes_response.rbi @@ -12,11 +12,7 @@ module ContextDev end sig do - returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::Variants - ] - ) + returns(T::Array[ContextDev::Models::MonitorListChangesResponse::Data]) end attr_accessor :data @@ -30,12 +26,7 @@ module ContextDev params( data: T::Array[ - T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::OrHash, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::OrHash, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::OrHash, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::OrHash - ) + ContextDev::Models::MonitorListChangesResponse::Data::OrHash ], has_more: T::Boolean, next_cursor: T.nilable(String) @@ -48,9 +39,7 @@ module ContextDev override.returns( { data: - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::Variants - ], + T::Array[ContextDev::Models::MonitorListChangesResponse::Data], has_more: T::Boolean, next_cursor: T.nilable(String) } @@ -59,785 +48,324 @@ module ContextDev def to_hash end - # Union of lightweight change summaries. - module Data - extend ContextDev::Internal::Type::Union - - Variants = + class Data < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary + ContextDev::Models::MonitorListChangesResponse::Data, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type - - sig { returns(Time) } - attr_accessor :detected_at - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary + sig { returns(String) } + attr_accessor :id - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type - sig { returns(String) } - attr_accessor :title + sig { returns(Time) } + attr_accessor :detected_at - sig { returns(String) } - attr_accessor :url + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol + ) + end + attr_accessor :mode - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { returns(String) } + attr_accessor :monitor_id - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { returns(String) } + attr_accessor :summary - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::OrSymbol, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - detected_at:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + sig do + returns( + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol ) - end - - sig do - override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end - def to_hash - end - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) + end + attr_accessor :target_type - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end + sig { returns(String) } + attr_accessor :title - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ) + sig { returns(String) } + attr_accessor :url - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end - end + sig { returns(T.nilable(Integer)) } + attr_reader :added_url_count - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary, - ContextDev::Internal::AnyHash - ) - end + sig { params(added_url_count: Integer).void } + attr_writer :added_url_count - sig { returns(String) } - attr_accessor :id + sig { returns(T.nilable(Float)) } + attr_reader :confidence - sig { returns(Integer) } - attr_accessor :added_url_count + sig { params(confidence: Float).void } + attr_writer :confidence - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol ) - end - attr_accessor :change_detection_type + ) + end + attr_reader :importance - sig { returns(Time) } - attr_accessor :detected_at + sig do + params( + importance: + ContextDev::Models::MonitorListChangesResponse::Data::Importance::OrSymbol + ).void + end + attr_writer :importance - sig { returns(String) } - attr_accessor :monitor_id + sig { returns(T.nilable(Integer)) } + attr_reader :matched_url_count - sig { returns(Integer) } - attr_accessor :removed_url_count + sig { params(matched_url_count: Integer).void } + attr_writer :matched_url_count - sig { returns(String) } - attr_accessor :summary + sig { returns(T.nilable(Integer)) } + attr_reader :removed_url_count - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig { params(removed_url_count: Integer).void } + attr_writer :removed_url_count - sig { returns(String) } - attr_accessor :title + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - sig { returns(String) } - attr_accessor :url + sig { params(tags: T::Array[String]).void } + attr_writer :tags + # A lightweight change summary. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (e.g. sitemap changes include + # `added_url_count`/`removed_url_count`; semantic changes include + # `confidence`/`importance`). + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::OrSymbol, + detected_at: Time, + mode: + ContextDev::Models::MonitorListChangesResponse::Data::Mode::OrSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::OrSymbol, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::Importance::OrSymbol, + matched_url_count: Integer, + removed_url_count: Integer, + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + added_url_count: nil, + confidence: nil, + importance: nil, + matched_url_count: nil, + removed_url_count: nil, # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags + tags: nil + ) + end - sig do - params( + sig do + override.returns( + { id: String, - added_url_count: Integer, change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::OrSymbol, + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol, detected_at: Time, + mode: + ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol, monitor_id: String, - removed_url_count: Integer, summary: String, target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::OrSymbol, + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol, title: String, url: String, + added_url_count: Integer, + confidence: Float, + importance: + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol, + matched_url_count: Integer, + removed_url_count: Integer, tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - added_url_count:, - change_detection_type:, - detected_at:, - monitor_id:, - removed_url_count:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + } ) - end - - sig do - override.returns( - { - id: String, - added_url_count: Integer, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end - def to_hash - end - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end + end + def to_hash end - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol ) - end - attr_accessor :importance - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol ) - end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::OrSymbol, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - importance:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end sig do override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol + ] ) end - def to_hash + def self.values end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::Mode ) end - def self.values - end - end + OrSymbol = T.type_alias { T.any(Symbol, String) } - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ) + WEB = + T.let( + :web, + ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - OrHash = + module TargetType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::TargetType ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol + PAGE = + T.let( + :page, + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :importance - - sig { returns(Integer) } - attr_accessor :matched_url_count - - sig { returns(String) } - attr_accessor :monitor_id - - sig { returns(String) } - attr_accessor :summary - - sig do - returns( - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol ) - end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::OrSymbol, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - importance:, - matched_url_count:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end sig do override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - importance: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol + ] ) end - def to_hash + def self.values end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ) + module Importance + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListChangesResponse::Data::Importance ) end - def self.values - end - end + OrSymbol = T.type_alias { T.any(Symbol, String) } - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ) + LOW = + T.let( + :low, + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListChangesResponse::Data::Variants - ] - ) - end - def self.variants - end end end end diff --git a/rbi/context_dev/models/monitor_list_params.rbi b/rbi/context_dev/models/monitor_list_params.rbi index d367934a..1f9db3f2 100644 --- a/rbi/context_dev/models/monitor_list_params.rbi +++ b/rbi/context_dev/models/monitor_list_params.rbi @@ -40,6 +40,43 @@ module ContextDev sig { params(limit: Integer).void } attr_writer :limit + # Free-text search term, matched against the fields named in `search_by`. + sig { returns(T.nilable(String)) } + attr_reader :q + + sig { params(q: String).void } + attr_writer :q + + # Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # only exists on semantic monitors. + sig do + returns( + T.nilable(T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol]) + ) + end + attr_reader :search_by + + sig do + params( + search_by: T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol] + ).void + end + attr_writer :search_by + + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + sig do + returns(T.nilable(ContextDev::MonitorListParams::SearchType::OrSymbol)) + end + attr_reader :search_type + + sig do + params( + search_type: ContextDev::MonitorListParams::SearchType::OrSymbol + ).void + end + attr_writer :search_type + sig do returns(T.nilable(ContextDev::MonitorListParams::Status::OrSymbol)) end @@ -57,6 +94,13 @@ module ContextDev sig { params(tag: String).void } attr_writer :tag + # Comma-separated list of tags to filter by (matches monitors having any of them). + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags + + sig { params(tags: T::Array[String]).void } + attr_writer :tags + sig do returns(T.nilable(ContextDev::MonitorListParams::TargetType::OrSymbol)) end @@ -75,8 +119,13 @@ module ContextDev ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, cursor: String, limit: Integer, + q: String, + search_by: + T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol], + search_type: ContextDev::MonitorListParams::SearchType::OrSymbol, status: ContextDev::MonitorListParams::Status::OrSymbol, tag: String, + tags: T::Array[String], target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) @@ -85,9 +134,19 @@ module ContextDev change_detection_type: nil, cursor: nil, limit: nil, + # Free-text search term, matched against the fields named in `search_by`. + q: nil, + # Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # only exists on semantic monitors. + search_by: nil, + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + search_type: nil, status: nil, # Filter to items that have this tag. tag: nil, + # Comma-separated list of tags to filter by (matches monitors having any of them). + tags: nil, target_type: nil, request_options: {} ) @@ -100,8 +159,13 @@ module ContextDev ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, cursor: String, limit: Integer, + q: String, + search_by: + T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol], + search_type: ContextDev::MonitorListParams::SearchType::OrSymbol, status: ContextDev::MonitorListParams::Status::OrSymbol, tag: String, + tags: T::Array[String], target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, request_options: ContextDev::RequestOptions } @@ -141,6 +205,60 @@ module ContextDev end end + module SearchBy + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListParams::SearchBy) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + NAME = + T.let(:name, ContextDev::MonitorListParams::SearchBy::TaggedSymbol) + URL = T.let(:url, ContextDev::MonitorListParams::SearchBy::TaggedSymbol) + QUERY = + T.let(:query, ContextDev::MonitorListParams::SearchBy::TaggedSymbol) + TAGS = + T.let(:tags, ContextDev::MonitorListParams::SearchBy::TaggedSymbol) + + sig do + override.returns( + T::Array[ContextDev::MonitorListParams::SearchBy::TaggedSymbol] + ) + end + def self.values + end + end + + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + module SearchType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::MonitorListParams::SearchType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXACT = + T.let(:exact, ContextDev::MonitorListParams::SearchType::TaggedSymbol) + PREFIX = + T.let( + :prefix, + ContextDev::MonitorListParams::SearchType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ContextDev::MonitorListParams::SearchType::TaggedSymbol] + ) + end + def self.values + end + end + module Status extend ContextDev::Internal::Type::Enum diff --git a/rbi/context_dev/models/monitor_list_response.rbi b/rbi/context_dev/models/monitor_list_response.rbi index 6de09ee6..9b9d6f96 100644 --- a/rbi/context_dev/models/monitor_list_response.rbi +++ b/rbi/context_dev/models/monitor_list_response.rbi @@ -11,11 +11,7 @@ module ContextDev ) end - sig do - returns( - T::Array[ContextDev::Models::MonitorListResponse::Data::Variants] - ) - end + sig { returns(T::Array[ContextDev::Models::MonitorListResponse::Data]) } attr_accessor :data sig { returns(T::Boolean) } @@ -26,15 +22,7 @@ module ContextDev sig do params( - data: - T::Array[ - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::OrHash, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::OrHash, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::OrHash, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::OrHash - ) - ], + data: T::Array[ContextDev::Models::MonitorListResponse::Data::OrHash], has_more: T::Boolean, next_cursor: T.nilable(String) ).returns(T.attached_class) @@ -45,8 +33,7 @@ module ContextDev sig do override.returns( { - data: - T::Array[ContextDev::Models::MonitorListResponse::Data::Variants], + data: T::Array[ContextDev::Models::MonitorListResponse::Data], has_more: T::Boolean, next_cursor: T.nilable(String) } @@ -55,2166 +42,621 @@ module ContextDev def to_hash end - # Union of monitor response shapes. - module Data - extend ContextDev::Internal::Type::Union - - Variants = + class Data < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor + ContextDev::Models::MonitorListResponse::Data, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id + sig { returns(String) } + attr_accessor :id - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection + # Discriminated union describing how changes are detected. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Variants + ) + end + attr_accessor :change_detection - sig do - params( - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Time) } + attr_accessor :created_at - sig { returns(Time) } - attr_accessor :created_at + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::Mode::TaggedSymbol + ) + end + attr_accessor :mode - sig { returns(String) } - attr_accessor :name + sig { returns(String) } + attr_accessor :name - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule - ) - end - attr_reader :schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(ContextDev::Models::MonitorListResponse::Data::Schedule) } + attr_reader :schedule - sig do - params( - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule + sig do + params( + schedule: + ContextDev::Models::MonitorListResponse::Data::Schedule::OrHash + ).void + end + attr_writer :schedule - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol + ) + end + attr_accessor :status - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target - ) - end - attr_reader :target + # Discriminated union describing what the monitor watches. + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::Target::Variants + ) + end + attr_accessor :target - sig do - params( - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::OrHash - ).void - end - attr_writer :target + sig { returns(Time) } + attr_accessor :updated_at - sig { returns(Time) } - attr_accessor :updated_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { params(tags: T::Array[String]).void } + attr_writer :tags - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig do + returns( + T.nilable(ContextDev::Models::MonitorListResponse::Data::Webhook) + ) + end + attr_reader :webhook - sig do - returns( + sig do + params( + webhook: T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook + ContextDev::Models::MonitorListResponse::Data::Webhook::OrHash ) - ) - end - attr_reader :webhook + ).void + end + attr_writer :webhook - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + sig do + params( + id: String, + change_detection: + T.any( + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact::OrHash, + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic::OrHash + ), + created_at: Time, + mode: ContextDev::Models::MonitorListResponse::Data::Mode::OrSymbol, + name: String, + schedule: + ContextDev::Models::MonitorListResponse::Data::Schedule::OrHash, + status: + ContextDev::Models::MonitorListResponse::Data::Status::OrSymbol, + target: + T.any( + ContextDev::Models::MonitorListResponse::Data::Target::Page::OrHash, + ContextDev::Models::MonitorListResponse::Data::Target::Sitemap::OrHash, + ContextDev::Models::MonitorListResponse::Data::Target::Extract::OrHash + ), + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Discriminated union describing how changes are detected. + change_detection:, + created_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + # Discriminated union describing what the monitor watches. + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end - # A page monitor using exact change detection. - sig do - params( + sig do + override.returns( + { id: String, change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::OrHash, + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Variants, created_at: Time, + mode: + ContextDev::Models::MonitorListResponse::Data::Mode::TaggedSymbol, name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::OrHash, + schedule: ContextDev::Models::MonitorListResponse::Data::Schedule, status: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::OrSymbol, + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol, target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::OrHash, + ContextDev::Models::MonitorListResponse::Data::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), last_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook::OrHash + ContextDev::Models::MonitorListResponse::Data::Webhook ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + } ) - end + end + def to_hash + end - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook - ) - } - ) - end - def to_hash - end + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact, + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic + ) + end - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class Exact < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end + sig { override.returns({ type: Symbol }) } def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end - class Schedule < ContextDev::Internal::Type::BaseModel + class Semantic < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency + sig { returns(String) } + attr_accessor :query - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Detect meaning-level changes that match a natural language query. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + query: String, + confidence_threshold: Float, + type: Symbol ).returns(T.attached_class) end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) + def self.new(query:, confidence_threshold: nil, type: :semantic) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - } + { query: String, type: Symbol, confidence_threshold: Float } ) end def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end end - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Variants + ] + ) + end + def self.variants end + end - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorListResponse::Data::Mode) end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace + WEB = + T.let( + :web, + ContextDev::Models::MonitorListResponse::Data::Mode::TaggedSymbol + ) - sig do - params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::Mode::TaggedSymbol + ] ) - end + end + def self.values + end + end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::Schedule, + ContextDev::Internal::AnyHash ) end - def to_hash - end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig do - params(url: String, secret: String).returns(T.attached_class) - end - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A sitemap monitor using exact change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Sitemap URL to monitor. - sig { returns(String) } - attr_accessor :url - - # URL path patterns to exclude. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :exclude - - sig { params(exclude: T::Array[String]).void } - attr_writer :exclude - - # URL path patterns to include. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :include - - sig { params(include: T::Array[String]).void } - attr_writer :include - - sig { returns(T.nilable(Integer)) } - attr_reader :max_urls - - sig { params(max_urls: Integer).void } - attr_writer :max_urls - - sig do - params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - ).returns(T.attached_class) - end - def self.new( - type:, - # Sitemap URL to monitor. - url:, - # URL path patterns to exclude. - exclude: nil, - # URL path patterns to include. - include: nil, - max_urls: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig do - params(url: String, secret: String).returns(T.attached_class) - end - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A page monitor using semantic change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - - sig do - override.returns( - { - query: String, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig do - params(url: String, secret: String).returns(T.attached_class) - end - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency sig do returns( - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook - ) + ContextDev::Models::MonitorListResponse::Data::Schedule::Type::TaggedSymbol ) end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # An extract monitor using semantic change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) + attr_accessor :type + + sig do + returns( + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol + ) + end + attr_accessor :unit + + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig do + params( + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::OrSymbol ).returns(T.attached_class) end def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: ) end sig do override.returns( { - id: String, - change_detection: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook - ) + frequency: Integer, + type: + ContextDev::Models::MonitorListResponse::Data::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol } ) end def to_hash end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::Schedule::Type ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :query + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorListResponse::Data::Schedule::Type::TaggedSymbol + ) sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::Schedule::Type::TaggedSymbol + ] ) end - attr_accessor :type + def self.values + end + end - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold + module Unit + extend ContextDev::Internal::Type::Enum - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol + ) sig do override.returns( - { - query: String, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } + T::Array[ + ContextDev::Models::MonitorListResponse::Data::Schedule::Unit::TaggedSymbol + ] ) end - def to_hash + def self.values end + end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) + module Status + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListResponse::Data::Status + ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol + ] + ) + end + def self.values end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::Target::Page, + ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, + ContextDev::Models::MonitorListResponse::Data::Target::Extract + ) + end - class Schedule < ContextDev::Internal::Type::BaseModel + class Page < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Watch a single web page. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + url: String, + normalize_whitespace: T::Boolean, + type: Symbol ).returns(T.attached_class) end def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page ) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - } + { type: Symbol, url: String, normalize_whitespace: T::Boolean } ) end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ] + class Sitemap < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, + ContextDev::Internal::AnyHash ) end - def self.values - end - end - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) + sig { returns(Symbol) } + attr_accessor :type - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url - module Status - extend ContextDev::Internal::Type::Enum + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + # Watch a sitemap for URL additions and removals. + sig do + params( + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap + ) + end sig do override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ] + { + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } ) end - def self.values + def to_hash end end - class Target < ContextDev::Internal::Type::BaseModel + class Extract < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, + ContextDev::Models::MonitorListResponse::Data::Target::Extract, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Root URL to extract structured data from. @@ -2256,20 +698,19 @@ module ContextDev sig { params(schema: T::Hash[Symbol, T.anything]).void } attr_writer :schema + # Watch a site's extracted structured data. sig do params( - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, url: String, follow_subdomains: T::Boolean, instructions: String, max_depth: Integer, max_pages: Integer, - schema: T::Hash[Symbol, T.anything] + schema: T::Hash[Symbol, T.anything], + type: Symbol ).returns(T.attached_class) end def self.new( - type:, # Root URL to extract structured data from. url:, follow_subdomains: nil, @@ -2281,15 +722,15 @@ module ContextDev max_pages: nil, # JSON Schema describing the structured data to extract and watch for changes. If # omitted, a default summary + key-points schema is used. - schema: nil + schema: nil, + type: :extract ) end sig do override.returns( { - type: - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + type: Symbol, url: String, follow_subdomains: T::Boolean, instructions: String, @@ -2301,88 +742,59 @@ module ContextDev end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListResponse::Data::Target::Variants + ] + ) + end + def self.variants + end + end - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::Webhook, + ContextDev::Internal::AnyHash + ) end - end - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, # Signing secret used to verify webhook authenticity. Each delivery includes an # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time # compare and reject stale timestamps to prevent replay. Generated by the API; # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig do - params(url: String, secret: String).returns(T.attached_class) - end - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end + secret: nil + ) end - end - sig do - override.returns( - T::Array[ContextDev::Models::MonitorListResponse::Data::Variants] - ) - end - def self.variants + sig { override.returns({ url: String, secret: String }) } + def to_hash + end end end end diff --git a/rbi/context_dev/models/monitor_retrieve_change_response.rbi b/rbi/context_dev/models/monitor_retrieve_change_response.rbi index b91f6858..f27fc106 100644 --- a/rbi/context_dev/models/monitor_retrieve_change_response.rbi +++ b/rbi/context_dev/models/monitor_retrieve_change_response.rbi @@ -2,949 +2,463 @@ module ContextDev module Models - # Union of full change detail objects. - module MonitorRetrieveChangeResponse - extend ContextDev::Internal::Type::Union - - Variants = + class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange + ContextDev::Models::MonitorRetrieveChangeResponse, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange, - ContextDev::Internal::AnyHash - ) - end + sig { returns(String) } + attr_accessor :id - sig { returns(String) } - attr_accessor :id + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::TaggedSymbol + ) + end + attr_accessor :change_detection_type - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type + sig { returns(Time) } + attr_accessor :detected_at - sig { returns(Time) } - attr_accessor :detected_at + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::Mode::TaggedSymbol + ) + end + attr_accessor :mode - # Text diff between the previous and current page baseline. - sig { returns(String) } - attr_accessor :diff + sig { returns(String) } + attr_accessor :monitor_id - sig { returns(String) } - attr_accessor :monitor_id + sig { returns(String) } + attr_accessor :summary - sig { returns(String) } - attr_accessor :summary + sig do + returns( + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol + ) + end + attr_accessor :target_type - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig { returns(String) } + attr_accessor :title - sig { returns(String) } - attr_accessor :title + sig { returns(String) } + attr_accessor :url - sig { returns(String) } - attr_accessor :url + sig { returns(T.nilable(Integer)) } + attr_reader :added_url_count - sig { returns(T.nilable(String)) } - attr_reader :after_text_excerpt + sig { params(added_url_count: Integer).void } + attr_writer :added_url_count - sig { params(after_text_excerpt: String).void } - attr_writer :after_text_excerpt + sig { returns(T.nilable(T::Array[String])) } + attr_reader :added_urls - sig { returns(T.nilable(String)) } - attr_reader :before_text_excerpt + sig { params(added_urls: T::Array[String]).void } + attr_writer :added_urls - sig { params(before_text_excerpt: String).void } - attr_writer :before_text_excerpt + sig { returns(T.nilable(String)) } + attr_reader :after_text_excerpt - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { params(after_text_excerpt: String).void } + attr_writer :after_text_excerpt - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { returns(T.nilable(String)) } + attr_reader :before_text_excerpt - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::OrSymbol, - detected_at: Time, - diff: String, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::OrSymbol, - title: String, - url: String, - after_text_excerpt: String, - before_text_excerpt: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - detected_at:, - # Text diff between the previous and current page baseline. - diff:, - monitor_id:, - summary:, - target_type:, - title:, - url:, - after_text_excerpt: nil, - before_text_excerpt: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end + sig { params(before_text_excerpt: String).void } + attr_writer :before_text_excerpt - sig do - override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - diff: String, - monitor_id: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol, - title: String, - url: String, - after_text_excerpt: String, - before_text_excerpt: String, - tags: T::Array[String] - } - ) - end - def to_hash - end + sig { returns(T.nilable(Float)) } + attr_reader :confidence - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol - ) + sig { params(confidence: Float).void } + attr_writer :confidence - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end + # Text diff between the previous and current page baseline (page targets). + sig { returns(T.nilable(String)) } + attr_reader :diff - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol - ) + sig { params(diff: String).void } + attr_writer :diff - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + returns( + T.nilable( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Evidence + ] + ) + ) end + attr_reader :evidence - class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange, - ContextDev::Internal::AnyHash - ) - end + sig do + params( + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Evidence::OrHash + ] + ).void + end + attr_writer :evidence - sig { returns(String) } - attr_accessor :id + sig do + returns( + T.nilable( + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol + ) + ) + end + attr_reader :importance - sig { returns(Integer) } - attr_accessor :added_url_count + sig do + params( + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::OrSymbol + ).void + end + attr_writer :importance - sig { returns(T::Array[String]) } - attr_accessor :added_urls + sig { returns(T.nilable(Integer)) } + attr_reader :matched_url_count - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type + sig { params(matched_url_count: Integer).void } + attr_writer :matched_url_count - sig { returns(Time) } - attr_accessor :detected_at + sig { returns(T.nilable(T::Array[String])) } + attr_reader :matched_urls - sig { returns(String) } - attr_accessor :monitor_id + sig { params(matched_urls: T::Array[String]).void } + attr_writer :matched_urls - sig { returns(Integer) } - attr_accessor :removed_url_count + sig { returns(T.nilable(String)) } + attr_reader :query - sig { returns(T::Array[String]) } - attr_accessor :removed_urls + sig { params(query: String).void } + attr_writer :query - sig { returns(String) } - attr_accessor :summary + sig { returns(T.nilable(Integer)) } + attr_reader :removed_url_count - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol - ) - end - attr_accessor :target_type + sig { params(removed_url_count: Integer).void } + attr_writer :removed_url_count - sig { returns(String) } - attr_accessor :title + sig { returns(T.nilable(T::Array[String])) } + attr_reader :removed_urls - sig { returns(String) } - attr_accessor :url + sig { params(removed_urls: T::Array[String]).void } + attr_writer :removed_urls - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig { params(tags: T::Array[String]).void } + attr_writer :tags - sig do - params( + # A detected change. `mode` is the constant `web`; `target_type` and + # `change_detection_type` describe the change, and which optional fields are + # present depends on them (page: `diff` + excerpts; sitemap: + # `added_urls`/`removed_urls`; semantic: + # `query`/`confidence`/`importance`/`evidence`/`matched_urls`). + sig do + params( + id: String, + change_detection_type: + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::OrSymbol, + detected_at: Time, + mode: + ContextDev::Models::MonitorRetrieveChangeResponse::Mode::OrSymbol, + monitor_id: String, + summary: String, + target_type: + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::OrSymbol, + title: String, + url: String, + added_url_count: Integer, + added_urls: T::Array[String], + after_text_excerpt: String, + before_text_excerpt: String, + confidence: Float, + diff: String, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Evidence::OrHash + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::OrSymbol, + matched_url_count: Integer, + matched_urls: T::Array[String], + query: String, + removed_url_count: Integer, + removed_urls: T::Array[String], + tags: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + id:, + change_detection_type:, + detected_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + monitor_id:, + summary:, + target_type:, + title:, + url:, + added_url_count: nil, + added_urls: nil, + after_text_excerpt: nil, + before_text_excerpt: nil, + confidence: nil, + # Text diff between the previous and current page baseline (page targets). + diff: nil, + evidence: nil, + importance: nil, + matched_url_count: nil, + matched_urls: nil, + query: nil, + removed_url_count: nil, + removed_urls: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil + ) + end + + sig do + override.returns( + { id: String, - added_url_count: Integer, - added_urls: T::Array[String], change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::OrSymbol, + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::TaggedSymbol, detected_at: Time, + mode: + ContextDev::Models::MonitorRetrieveChangeResponse::Mode::TaggedSymbol, monitor_id: String, - removed_url_count: Integer, - removed_urls: T::Array[String], summary: String, target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::OrSymbol, + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol, title: String, url: String, + added_url_count: Integer, + added_urls: T::Array[String], + after_text_excerpt: String, + before_text_excerpt: String, + confidence: Float, + diff: String, + evidence: + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Evidence + ], + importance: + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol, + matched_url_count: Integer, + matched_urls: T::Array[String], + query: String, + removed_url_count: Integer, + removed_urls: T::Array[String], tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - added_url_count:, - added_urls:, - change_detection_type:, - detected_at:, - monitor_id:, - removed_url_count:, - removed_urls:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + } ) - end - - sig do - override.returns( - { - id: String, - added_url_count: Integer, - added_urls: T::Array[String], - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - removed_urls: T::Array[String], - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end - def to_hash - end - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::ChangeDetectionType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::TargetType::TaggedSymbol - ] - ) - end - def self.values - end - end + end + def to_hash end - class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel - OrHash = + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol + EXACT = + T.let( + :exact, + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::TaggedSymbol + ) + SEMANTIC = + T.let( + :semantic, + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::TaggedSymbol ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at sig do - returns( + override.returns( T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence + ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType::TaggedSymbol ] ) end - attr_accessor :evidence - - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol - ) + def self.values end - attr_accessor :importance - - sig { returns(String) } - attr_accessor :monitor_id + end - sig { returns(String) } - attr_accessor :query + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig { returns(String) } - attr_accessor :summary + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::Mode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol + WEB = + T.let( + :web, + ContextDev::Models::MonitorRetrieveChangeResponse::Mode::TaggedSymbol ) - end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - evidence: - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence::OrHash - ], - importance: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::OrSymbol, - monitor_id: String, - query: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - evidence:, - importance:, - monitor_id:, - query:, - summary:, - target_type:, - title:, - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil - ) - end sig do override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - evidence: - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence - ], - importance: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol, - monitor_id: String, - query: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Mode::TaggedSymbol + ] ) end - def to_hash + def self.values end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol - ) + module TargetType + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType ) end - def self.values - end - end - - class Evidence < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :after - - sig { returns(String) } - attr_accessor :before + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig do - params(after: String, before: String).returns(T.attached_class) - end - def self.new(after:, before:) - end - - sig { override.returns({ after: String, before: String }) } - def to_hash - end - end - - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol - ) + PAGE = + T.let( + :page, + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol + ) + SITEMAP = + T.let( + :sitemap, + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol + ) + EXTRACT = + T.let( + :extract, + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel + class Evidence < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange, + ContextDev::Models::MonitorRetrieveChangeResponse::Evidence, ContextDev::Internal::AnyHash ) end + # Snapshot of the content after the change. sig { returns(String) } - attr_accessor :id - - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol - ) - end - attr_accessor :change_detection_type - - sig { returns(Float) } - attr_accessor :confidence - - sig { returns(Time) } - attr_accessor :detected_at - - sig do - returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence - ] - ) - end - attr_accessor :evidence - - sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol - ) - end - attr_accessor :importance - - sig { returns(Integer) } - attr_accessor :matched_url_count - - sig { returns(T::Array[String]) } - attr_accessor :matched_urls + attr_accessor :after + # Snapshot of the content before the change. sig { returns(String) } - attr_accessor :monitor_id + attr_accessor :before - sig { returns(String) } - attr_accessor :query + # Optional URL the evidence relates to. Absent for whole-target diffs. + sig { returns(T.nilable(String)) } + attr_reader :url - sig { returns(String) } - attr_accessor :summary + sig { params(url: String).void } + attr_writer :url sig do - returns( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol + params(after: String, before: String, url: String).returns( + T.attached_class ) end - attr_accessor :target_type - - sig { returns(String) } - attr_accessor :title - - # Root URL of the extract target. - sig { returns(String) } - attr_accessor :url - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - params( - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::OrSymbol, - confidence: Float, - detected_at: Time, - evidence: - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence::OrHash - ], - importance: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::OrSymbol, - matched_url_count: Integer, - matched_urls: T::Array[String], - monitor_id: String, - query: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::OrSymbol, - title: String, - url: String, - tags: T::Array[String] - ).returns(T.attached_class) - end def self.new( - id:, - change_detection_type:, - confidence:, - detected_at:, - evidence:, - importance:, - matched_url_count:, - matched_urls:, - monitor_id:, - query:, - summary:, - target_type:, - title:, - # Root URL of the extract target. - url:, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil + # Snapshot of the content after the change. + after:, + # Snapshot of the content before the change. + before:, + # Optional URL the evidence relates to. Absent for whole-target diffs. + url: nil ) end - sig do - override.returns( - { - id: String, - change_detection_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol, - confidence: Float, - detected_at: Time, - evidence: - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence - ], - importance: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol, - matched_url_count: Integer, - matched_urls: T::Array[String], - monitor_id: String, - query: String, - summary: String, - target_type: - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol, - title: String, - url: String, - tags: T::Array[String] - } - ) - end + sig { override.returns({ after: String, before: String, url: String }) } def to_hash end + end - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol - ) + module Importance + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::ChangeDetectionType::TaggedSymbol - ] + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveChangeResponse::Importance ) end - def self.values - end - end + OrSymbol = T.type_alias { T.any(Symbol, String) } - class Evidence < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence, - ContextDev::Internal::AnyHash - ) - end - - # Snapshot of the extracted data after the change. - sig { returns(String) } - attr_accessor :after - - # Snapshot of the extracted data before the change. - sig { returns(String) } - attr_accessor :before - - # Optional URL the evidence relates to. Absent for whole-target extract diffs. - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params(after: String, before: String, url: String).returns( - T.attached_class - ) - end - def self.new( - # Snapshot of the extracted data after the change. - after:, - # Snapshot of the extracted data before the change. - before:, - # Optional URL the evidence relates to. Absent for whole-target extract diffs. - url: nil + LOW = + T.let( + :low, + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol + ) + MEDIUM = + T.let( + :medium, + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol + ) + HIGH = + T.let( + :high, + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol ) - end - - sig do - override.returns({ after: String, before: String, url: String }) - end - def to_hash - end - end - - module Importance - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LOW = - T.let( - :low, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol - ) - HIGH = - T.let( - :high, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol - ) - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Importance::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveChangeResponse::Importance::TaggedSymbol + ] + ) end - - module TargetType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::TargetType::TaggedSymbol - ] - ) - end - def self.values - end + def self.values end end - - sig do - override.returns( - T::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Variants] - ) - end - def self.variants - end end end end diff --git a/rbi/context_dev/models/monitor_retrieve_response.rbi b/rbi/context_dev/models/monitor_retrieve_response.rbi index 28645249..f8a63fe0 100644 --- a/rbi/context_dev/models/monitor_retrieve_response.rbi +++ b/rbi/context_dev/models/monitor_retrieve_response.rbi @@ -2,2160 +2,609 @@ module ContextDev module Models - # Union of monitor response shapes. - module MonitorRetrieveResponse - extend ContextDev::Internal::Type::Union - - Variants = + class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor + ContextDev::Models::MonitorRetrieveResponse, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id + sig { returns(String) } + attr_accessor :id - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection + # Discriminated union describing how changes are detected. + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Variants + ) + end + attr_accessor :change_detection - sig do - params( - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Time) } + attr_accessor :created_at - sig { returns(Time) } - attr_accessor :created_at + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns(ContextDev::Models::MonitorRetrieveResponse::Mode::TaggedSymbol) + end + attr_accessor :mode - sig { returns(String) } - attr_accessor :name + sig { returns(String) } + attr_accessor :name - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule - ) - end - attr_reader :schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(ContextDev::Models::MonitorRetrieveResponse::Schedule) } + attr_reader :schedule - sig do - params( - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule + sig do + params( + schedule: + ContextDev::Models::MonitorRetrieveResponse::Schedule::OrHash + ).void + end + attr_writer :schedule - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol + ) + end + attr_accessor :status - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target - ) - end - attr_reader :target + # Discriminated union describing what the monitor watches. + sig do + returns(ContextDev::Models::MonitorRetrieveResponse::Target::Variants) + end + attr_accessor :target - sig do - params( - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::OrHash - ).void - end - attr_writer :target + sig { returns(Time) } + attr_accessor :updated_at - sig { returns(Time) } - attr_accessor :updated_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { params(tags: T::Array[String]).void } + attr_writer :tags - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig do + returns(T.nilable(ContextDev::Models::MonitorRetrieveResponse::Webhook)) + end + attr_reader :webhook - sig do - returns( + sig do + params( + webhook: T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook + ContextDev::Models::MonitorRetrieveResponse::Webhook::OrHash ) - ) - end - attr_reader :webhook + ).void + end + attr_writer :webhook - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + sig do + params( + id: String, + change_detection: + T.any( + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact::OrHash, + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic::OrHash + ), + created_at: Time, + mode: ContextDev::Models::MonitorRetrieveResponse::Mode::OrSymbol, + name: String, + schedule: + ContextDev::Models::MonitorRetrieveResponse::Schedule::OrHash, + status: ContextDev::Models::MonitorRetrieveResponse::Status::OrSymbol, + target: + T.any( + ContextDev::Models::MonitorRetrieveResponse::Target::Page::OrHash, + ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap::OrHash, + ContextDev::Models::MonitorRetrieveResponse::Target::Extract::OrHash + ), + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Discriminated union describing how changes are detected. + change_detection:, + created_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + # Discriminated union describing what the monitor watches. + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end - # A page monitor using exact change detection. - sig do - params( + sig do + override.returns( + { id: String, change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Variants, created_at: Time, + mode: + ContextDev::Models::MonitorRetrieveResponse::Mode::TaggedSymbol, name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::OrHash, + schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule, status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::OrSymbol, + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol, target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::OrHash, + ContextDev::Models::MonitorRetrieveResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), last_run_at: T.nilable(Time), tags: T::Array[String], webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + T.nilable(ContextDev::Models::MonitorRetrieveResponse::Webhook) + } ) - end + end + def to_hash + end - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook - ) - } - ) - end - def to_hash - end + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact, + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic + ) + end - class ChangeDetection < ContextDev::Internal::Type::BaseModel + class Exact < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end + sig { override.returns({ type: Symbol }) } def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end - class Schedule < ContextDev::Internal::Type::BaseModel + class Semantic < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency + sig { returns(String) } + attr_accessor :query - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Detect meaning-level changes that match a natural language query. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + query: String, + confidence_threshold: Float, + type: Symbol ).returns(T.attached_class) end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) + def self.new(query:, confidence_threshold: nil, type: :semantic) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - } + { query: String, type: Symbol, confidence_threshold: Float } ) end def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end end - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Variants + ] + ) end + def self.variants + end + end - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorRetrieveResponse::Mode) end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace + WEB = + T.let( + :web, + ContextDev::Models::MonitorRetrieveResponse::Mode::TaggedSymbol + ) - sig do - params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::Mode::TaggedSymbol + ] ) - end + end + def self.values + end + end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::Schedule, + ContextDev::Internal::AnyHash ) end - def to_hash - end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + returns( + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type::TaggedSymbol + ) end + attr_accessor :type - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A sitemap monitor using exact change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Sitemap URL to monitor. - sig { returns(String) } - attr_accessor :url - - # URL path patterns to exclude. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :exclude - - sig { params(exclude: T::Array[String]).void } - attr_writer :exclude - - # URL path patterns to include. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :include - - sig { params(include: T::Array[String]).void } - attr_writer :include - - sig { returns(T.nilable(Integer)) } - attr_reader :max_urls - - sig { params(max_urls: Integer).void } - attr_writer :max_urls - - sig do - params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - ).returns(T.attached_class) - end - def self.new( - type:, - # Sitemap URL to monitor. - url:, - # URL path patterns to exclude. - exclude: nil, - # URL path patterns to include. - include: nil, - max_urls: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A page monitor using semantic change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - - sig do - override.returns( - { - query: String, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. sig do returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol ) end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name + attr_accessor :unit # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # An extract monitor using semantic change detection. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. sig do params( - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::OrSymbol ).returns(T.attached_class) end def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: ) end sig do override.returns( { - id: String, - change_detection: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook - ) + frequency: Integer, + type: + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol } ) end def to_hash end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :query + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type::TaggedSymbol + ) sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::Schedule::Type::TaggedSymbol + ] ) end - attr_accessor :type + def self.values + end + end - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold + module Unit + extend ContextDev::Internal::Type::Enum - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol + ) sig do override.returns( - { - query: String, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::Schedule::Unit::TaggedSymbol + ] ) end - def to_hash + def self.values end + end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) + module Status + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorRetrieveResponse::Status) end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol + ] + ) + end + def self.values end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::Target::Page, + ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, + ContextDev::Models::MonitorRetrieveResponse::Target::Extract + ) + end - class Schedule < ContextDev::Internal::Type::BaseModel + class Page < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Watch a single web page. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + url: String, + normalize_whitespace: T::Boolean, + type: Symbol ).returns(T.attached_class) end def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page ) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - } + { type: Symbol, url: String, normalize_whitespace: T::Boolean } ) end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ] + class Sitemap < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, + ContextDev::Internal::AnyHash ) end - def self.values - end - end - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) + sig { returns(Symbol) } + attr_accessor :type - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url - module Status - extend ContextDev::Internal::Type::Enum + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + # Watch a sitemap for URL additions and removals. + sig do + params( + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap + ) + end sig do override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ] + { + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } ) end - def self.values + def to_hash end end - class Target < ContextDev::Internal::Type::BaseModel + class Extract < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Models::MonitorRetrieveResponse::Target::Extract, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Root URL to extract structured data from. @@ -2197,20 +646,19 @@ module ContextDev sig { params(schema: T::Hash[Symbol, T.anything]).void } attr_writer :schema + # Watch a site's extracted structured data. sig do params( - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, url: String, follow_subdomains: T::Boolean, instructions: String, max_depth: Integer, max_pages: Integer, - schema: T::Hash[Symbol, T.anything] + schema: T::Hash[Symbol, T.anything], + type: Symbol ).returns(T.attached_class) end def self.new( - type:, # Root URL to extract structured data from. url:, follow_subdomains: nil, @@ -2222,15 +670,15 @@ module ContextDev max_pages: nil, # JSON Schema describing the structured data to extract and watch for changes. If # omitted, a default summary + key-points schema is used. - schema: nil + schema: nil, + type: :extract ) end sig do override.returns( { - type: - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + type: Symbol, url: String, follow_subdomains: T::Boolean, instructions: String, @@ -2242,86 +690,59 @@ module ContextDev end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorRetrieveResponse::Target::Variants + ] + ) + end + def self.variants + end + end - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::Webhook, + ContextDev::Internal::AnyHash + ) end - end - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, # Signing secret used to verify webhook authenticity. Each delivery includes an # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time # compare and reject stale timestamps to prevent replay. Generated by the API; # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end + secret: nil + ) end - end - sig do - override.returns( - T::Array[ContextDev::Models::MonitorRetrieveResponse::Variants] - ) - end - def self.variants + sig { override.returns({ url: String, secret: String }) } + def to_hash + end end end end diff --git a/rbi/context_dev/models/monitor_update_params.rbi b/rbi/context_dev/models/monitor_update_params.rbi index 29aa7f2c..098be095 100644 --- a/rbi/context_dev/models/monitor_update_params.rbi +++ b/rbi/context_dev/models/monitor_update_params.rbi @@ -441,6 +441,7 @@ module ContextDev sig { params(normalize_whitespace: T::Boolean).void } attr_writer :normalize_whitespace + # Watch a single web page. sig do params( url: String, @@ -501,6 +502,7 @@ module ContextDev sig { params(max_urls: Integer).void } attr_writer :max_urls + # Watch a sitemap for URL additions and removals. sig do params( url: String, @@ -588,6 +590,7 @@ module ContextDev sig { params(schema: T::Hash[Symbol, T.anything]).void } attr_writer :schema + # Watch a site's extracted structured data. sig do params( url: String, diff --git a/rbi/context_dev/models/monitor_update_response.rbi b/rbi/context_dev/models/monitor_update_response.rbi index 0f76323b..a7af3c0e 100644 --- a/rbi/context_dev/models/monitor_update_response.rbi +++ b/rbi/context_dev/models/monitor_update_response.rbi @@ -2,2160 +2,603 @@ module ContextDev module Models - # Union of monitor response shapes. - module MonitorUpdateResponse - extend ContextDev::Internal::Type::Union - - Variants = + class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel + OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor + ContextDev::Models::MonitorUpdateResponse, + ContextDev::Internal::AnyHash ) end - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id + sig { returns(String) } + attr_accessor :id - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection + # Discriminated union describing how changes are detected. + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Variants + ) + end + attr_accessor :change_detection - sig do - params( - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection + sig { returns(Time) } + attr_accessor :created_at - sig { returns(Time) } - attr_accessor :created_at + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + sig do + returns(ContextDev::Models::MonitorUpdateResponse::Mode::TaggedSymbol) + end + attr_accessor :mode - sig { returns(String) } - attr_accessor :name + sig { returns(String) } + attr_accessor :name - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule - ) - end - attr_reader :schedule + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + sig { returns(ContextDev::Models::MonitorUpdateResponse::Schedule) } + attr_reader :schedule - sig do - params( - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule + sig do + params( + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule::OrHash + ).void + end + attr_writer :schedule - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status + sig do + returns(ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol) + end + attr_accessor :status - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target - ) - end - attr_reader :target + # Discriminated union describing what the monitor watches. + sig do + returns(ContextDev::Models::MonitorUpdateResponse::Target::Variants) + end + attr_accessor :target - sig do - params( - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::OrHash - ).void - end - attr_writer :target + sig { returns(Time) } + attr_accessor :updated_at - sig { returns(Time) } - attr_accessor :updated_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_change_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at + sig { returns(T.nilable(Time)) } + attr_accessor :last_run_at - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at + # User-defined tags for grouping and filtering monitors and their changes. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :tags - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags + sig { params(tags: T::Array[String]).void } + attr_writer :tags - sig { params(tags: T::Array[String]).void } - attr_writer :tags + sig do + returns(T.nilable(ContextDev::Models::MonitorUpdateResponse::Webhook)) + end + attr_reader :webhook - sig do - returns( + sig do + params( + webhook: T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook + ContextDev::Models::MonitorUpdateResponse::Webhook::OrHash ) - ) - end - attr_reader :webhook + ).void + end + attr_writer :webhook - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + # A web monitor. `mode` is the constant `web`; behavior is described by `target` + # (page/sitemap/extract) and `change_detection` (exact/semantic). + sig do + params( + id: String, + change_detection: + T.any( + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact::OrHash, + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic::OrHash + ), + created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::Mode::OrSymbol, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule::OrHash, + status: ContextDev::Models::MonitorUpdateResponse::Status::OrSymbol, + target: + T.any( + ContextDev::Models::MonitorUpdateResponse::Target::Page::OrHash, + ContextDev::Models::MonitorUpdateResponse::Target::Sitemap::OrHash, + ContextDev::Models::MonitorUpdateResponse::Target::Extract::OrHash + ), + updated_at: Time, + last_change_at: T.nilable(Time), + last_run_at: T.nilable(Time), + tags: T::Array[String], + webhook: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::Webhook::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + id:, + # Discriminated union describing how changes are detected. + change_detection:, + created_at:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + status:, + # Discriminated union describing what the monitor watches. + target:, + updated_at:, + last_change_at: nil, + last_run_at: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil + ) + end - # A page monitor using exact change detection. - sig do - params( + sig do + override.returns( + { id: String, change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::OrHash, + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Variants, created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::Mode::TaggedSymbol, name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::OrHash, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule, status: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::OrHash, + ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol, + target: ContextDev::Models::MonitorUpdateResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), last_run_at: T.nilable(Time), tags: T::Array[String], webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + T.nilable(ContextDev::Models::MonitorUpdateResponse::Webhook) + } ) - end + end + def to_hash + end - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook - ) - } - ) - end - def to_hash - end + # Discriminated union describing how changes are detected. + module ChangeDetection + extend ContextDev::Internal::Type::Union - class ChangeDetection < ContextDev::Internal::Type::BaseModel + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact, + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic + ) + end + + class Exact < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Detect exact changes. For page targets, this means visible text diffs. For # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :exact) end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end + sig { override.returns({ type: Symbol }) } def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end - class Schedule < ContextDev::Internal::Type::BaseModel + class Semantic < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency + sig { returns(String) } + attr_accessor :query - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(T.nilable(Float)) } + attr_reader :confidence_threshold + + sig { params(confidence_threshold: Float).void } + attr_writer :confidence_threshold - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Detect meaning-level changes that match a natural language query. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::OrSymbol + query: String, + confidence_threshold: Float, + type: Symbol ).returns(T.attached_class) end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) + def self.new(query:, confidence_threshold: nil, type: :semantic) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - } + { query: String, type: Symbol, confidence_threshold: Float } ) end def to_hash end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end end - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Variants + ] + ) end + def self.variants + end + end - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + module Mode + extend ContextDev::Internal::Type::Enum - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorUpdateResponse::Mode) end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace + WEB = + T.let( + :web, + ContextDev::Models::MonitorUpdateResponse::Mode::TaggedSymbol + ) - sig do - params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::Mode::TaggedSymbol + ] ) - end + end + def self.values + end + end - sig do - override.returns( - { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } + class Schedule < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::Schedule, + ContextDev::Internal::AnyHash ) end - def to_hash - end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ) + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + sig { returns(Integer) } + attr_accessor :frequency - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + returns( + ContextDev::Models::MonitorUpdateResponse::Schedule::Type::TaggedSymbol + ) end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A sitemap monitor using exact change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Detect exact changes. For page targets, this means visible text diffs. For - # sitemap targets, this means URL additions and removals. - sig do - params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXACT = - T.let( - :exact, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Sitemap URL to monitor. - sig { returns(String) } - attr_accessor :url - - # URL path patterns to exclude. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :exclude - - sig { params(exclude: T::Array[String]).void } - attr_writer :exclude - - # URL path patterns to include. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :include - - sig { params(include: T::Array[String]).void } - attr_writer :include - - sig { returns(T.nilable(Integer)) } - attr_reader :max_urls - - sig { params(max_urls: Integer).void } - attr_writer :max_urls - - sig do - params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::OrSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - ).returns(T.attached_class) - end - def self.new( - type:, - # Sitemap URL to monitor. - url:, - # URL path patterns to exclude. - exclude: nil, - # URL path patterns to include. - include: nil, - max_urls: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol, - url: String, - exclude: T::Array[String], - include: T::Array[String], - max_urls: Integer - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SITEMAP = - T.let( - :sitemap, - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags - - sig do - returns( - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook - ) - ) - end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook - - # A page monitor using semantic change detection. - sig do - params( - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil - ) - end - - sig do - override.returns( - { - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook - ) - } - ) - end - def to_hash - end - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :query - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold - - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold - - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end - - sig do - override.returns( - { - query: String, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Schedule < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, - ContextDev::Internal::AnyHash - ) - end - - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - params( - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: - ) - end - - sig do - override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Status - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Target < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, - ContextDev::Internal::AnyHash - ) - end - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig { returns(String) } - attr_accessor :url - - # Normalize whitespace before comparing or analyzing text. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :normalize_whitespace - - sig { params(normalize_whitespace: T::Boolean).void } - attr_writer :normalize_whitespace - - sig do - params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::OrSymbol, - url: String, - normalize_whitespace: T::Boolean - ).returns(T.attached_class) - end - def self.new( - type:, - url:, - # Normalize whitespace before comparing or analyzing text. - normalize_whitespace: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol, - url: String, - normalize_whitespace: T::Boolean - } - ) - end - def to_hash - end - - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PAGE = - T.let( - :page, - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end - - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url - - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end - end - end - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor, - ContextDev::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - # Detect meaning-level changes that match a natural language query. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection - ) - end - attr_reader :change_detection - - sig do - params( - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash - ).void - end - attr_writer :change_detection - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(String) } - attr_accessor :name - - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule - ) - end - attr_reader :schedule - - sig do - params( - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash - ).void - end - attr_writer :schedule - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - end - attr_accessor :status - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target - ) - end - attr_reader :target - - sig do - params( - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::OrHash - ).void - end - attr_writer :target - - sig { returns(Time) } - attr_accessor :updated_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_change_at - - sig { returns(T.nilable(Time)) } - attr_accessor :last_run_at - - # User-defined tags for grouping and filtering monitors and their changes. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :tags - - sig { params(tags: T::Array[String]).void } - attr_writer :tags + attr_accessor :type sig do returns( - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook - ) + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol ) end - attr_reader :webhook - - sig do - params( - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) - ).void - end - attr_writer :webhook + attr_accessor :unit - # An extract monitor using semantic change detection. + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. sig do params( - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::OrHash, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::OrHash, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::OrSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::OrHash, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook::OrHash - ) + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::Schedule::Type::OrSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::OrSymbol ).returns(T.attached_class) end def self.new( - id:, - # Detect meaning-level changes that match a natural language query. - change_detection:, - created_at:, - name:, - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. - schedule:, - status:, - target:, - updated_at:, - last_change_at: nil, - last_run_at: nil, - # User-defined tags for grouping and filtering monitors and their changes. - tags: nil, - webhook: nil + # Number of units between runs. The resulting interval (frequency × unit) must be + # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; + # maximum 365 when unit is days). + frequency:, + type:, + unit: ) end sig do override.returns( { - id: String, - change_detection: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol, - target: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: T.nilable(Time), - last_run_at: T.nilable(Time), - tags: T::Array[String], - webhook: - T.nilable( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook - ) + frequency: Integer, + type: + ContextDev::Models::MonitorUpdateResponse::Schedule::Type::TaggedSymbol, + unit: + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol } ) end def to_hash end - class ChangeDetection < ContextDev::Internal::Type::BaseModel - OrHash = + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - ContextDev::Internal::AnyHash + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::Schedule::Type ) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig { returns(String) } - attr_accessor :query + INTERVAL = + T.let( + :interval, + ContextDev::Models::MonitorUpdateResponse::Schedule::Type::TaggedSymbol + ) sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::Schedule::Type::TaggedSymbol + ] ) end - attr_accessor :type + def self.values + end + end - sig { returns(T.nilable(Float)) } - attr_reader :confidence_threshold + module Unit + extend ContextDev::Internal::Type::Enum - sig { params(confidence_threshold: Float).void } - attr_writer :confidence_threshold + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # Detect meaning-level changes that match a natural language query. - sig do - params( - query: String, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::OrSymbol, - confidence_threshold: Float - ).returns(T.attached_class) - end - def self.new(query:, type:, confidence_threshold: nil) - end + MINUTES = + T.let( + :minutes, + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol + ) + HOURS = + T.let( + :hours, + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol + ) + DAYS = + T.let( + :days, + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol + ) sig do override.returns( - { - query: String, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol, - confidence_threshold: Float - } + T::Array[ + ContextDev::Models::MonitorUpdateResponse::Schedule::Unit::TaggedSymbol + ] ) end - def to_hash + def self.values end + end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - SEMANTIC = - T.let( - :semantic, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ) + module Status + extend ContextDev::Internal::Type::Enum - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::Type::TaggedSymbol - ] - ) - end - def self.values - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::MonitorUpdateResponse::Status) end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let( + :active, + ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol + ) + PAUSED = + T.let( + :paused, + ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol + ] + ) + end + def self.values end + end + + # Discriminated union describing what the monitor watches. + module Target + extend ContextDev::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::Target::Page, + ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, + ContextDev::Models::MonitorUpdateResponse::Target::Extract + ) + end - class Schedule < ContextDev::Internal::Type::BaseModel + class Page < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, + ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Internal::AnyHash ) end - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - sig { returns(Integer) } - attr_accessor :frequency - - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - end - attr_accessor :unit + sig { returns(String) } + attr_accessor :url + + # Normalize whitespace before comparing or analyzing text. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :normalize_whitespace + + sig { params(normalize_whitespace: T::Boolean).void } + attr_writer :normalize_whitespace - # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. - # every 6 hours or every 2 days. The total interval (frequency × unit) must be - # between 10 minutes and 1 year. + # Watch a single web page. sig do params( - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::OrSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::OrSymbol + url: String, + normalize_whitespace: T::Boolean, + type: Symbol ).returns(T.attached_class) end def self.new( - # Number of units between runs. The resulting interval (frequency × unit) must be - # at least 10 minutes and at most 1 year (e.g. minimum 10 when unit is minutes; - # maximum 365 when unit is days). - frequency:, - type:, - unit: + url:, + # Normalize whitespace before comparing or analyzing text. + normalize_whitespace: nil, + type: :page ) end sig do override.returns( - { - frequency: Integer, - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol, - unit: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - } + { type: Symbol, url: String, normalize_whitespace: T::Boolean } ) end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - INTERVAL = - T.let( - :interval, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Type::TaggedSymbol - ] + class Sitemap < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, + ContextDev::Internal::AnyHash ) end - def self.values - end - end - module Unit - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MINUTES = - T.let( - :minutes, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - HOURS = - T.let( - :hours, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) - DAYS = - T.let( - :days, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ) + sig { returns(Symbol) } + attr_accessor :type - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::Unit::TaggedSymbol - ] - ) - end - def self.values - end - end - end + # Sitemap URL to monitor. + sig { returns(String) } + attr_accessor :url - module Status - extend ContextDev::Internal::Type::Enum + # URL path patterns to exclude. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :exclude - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + sig { params(exclude: T::Array[String]).void } + attr_writer :exclude - ACTIVE = - T.let( - :active, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - PAUSED = - T.let( - :paused, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) - FAILED = - T.let( - :failed, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ) + # URL path patterns to include. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :include + + sig { params(include: T::Array[String]).void } + attr_writer :include + + sig { returns(T.nilable(Integer)) } + attr_reader :max_urls + + sig { params(max_urls: Integer).void } + attr_writer :max_urls + + # Watch a sitemap for URL additions and removals. + sig do + params( + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer, + type: Symbol + ).returns(T.attached_class) + end + def self.new( + # Sitemap URL to monitor. + url:, + # URL path patterns to exclude. + exclude: nil, + # URL path patterns to include. + include: nil, + max_urls: nil, + type: :sitemap + ) + end sig do override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Status::TaggedSymbol - ] + { + type: Symbol, + url: String, + exclude: T::Array[String], + include: T::Array[String], + max_urls: Integer + } ) end - def self.values + def to_hash end end - class Target < ContextDev::Internal::Type::BaseModel + class Extract < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, + ContextDev::Models::MonitorUpdateResponse::Target::Extract, ContextDev::Internal::AnyHash ) end - sig do - returns( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) - end + sig { returns(Symbol) } attr_accessor :type # Root URL to extract structured data from. @@ -2197,20 +640,19 @@ module ContextDev sig { params(schema: T::Hash[Symbol, T.anything]).void } attr_writer :schema + # Watch a site's extracted structured data. sig do params( - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::OrSymbol, url: String, follow_subdomains: T::Boolean, instructions: String, max_depth: Integer, max_pages: Integer, - schema: T::Hash[Symbol, T.anything] + schema: T::Hash[Symbol, T.anything], + type: Symbol ).returns(T.attached_class) end def self.new( - type:, # Root URL to extract structured data from. url:, follow_subdomains: nil, @@ -2222,15 +664,15 @@ module ContextDev max_pages: nil, # JSON Schema describing the structured data to extract and watch for changes. If # omitted, a default summary + key-points schema is used. - schema: nil + schema: nil, + type: :extract ) end sig do override.returns( { - type: - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol, + type: Symbol, url: String, follow_subdomains: T::Boolean, instructions: String, @@ -2242,86 +684,59 @@ module ContextDev end def to_hash end + end - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - EXTRACT = - T.let( - :extract, - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ) + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorUpdateResponse::Target::Variants + ] + ) + end + def self.variants + end + end - sig do - override.returns( - T::Array[ - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::Type::TaggedSymbol - ] - ) - end - def self.values - end + class Webhook < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::Webhook, + ContextDev::Internal::AnyHash + ) end - end - class Webhook < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook, - ContextDev::Internal::AnyHash - ) - end + # Webhook URL called when a change is detected. + sig { returns(String) } + attr_accessor :url - # Webhook URL called when a change is detected. - sig { returns(String) } - attr_accessor :url + # Signing secret used to verify webhook authenticity. Each delivery includes an + # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over + # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time + # compare and reject stale timestamps to prevent replay. Generated by the API; + # cannot be set by clients. + sig { returns(T.nilable(String)) } + attr_reader :secret + + sig { params(secret: String).void } + attr_writer :secret + sig { params(url: String, secret: String).returns(T.attached_class) } + def self.new( + # Webhook URL called when a change is detected. + url:, # Signing secret used to verify webhook authenticity. Each delivery includes an # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time # compare and reject stale timestamps to prevent replay. Generated by the API; # cannot be set by clients. - sig { returns(T.nilable(String)) } - attr_reader :secret - - sig { params(secret: String).void } - attr_writer :secret - - sig { params(url: String, secret: String).returns(T.attached_class) } - def self.new( - # Webhook URL called when a change is detected. - url:, - # Signing secret used to verify webhook authenticity. Each delivery includes an - # `X-Context-Signature: t=,v1=` header, where the HMAC is SHA-256 over - # `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time - # compare and reject stale timestamps to prevent replay. Generated by the API; - # cannot be set by clients. - secret: nil - ) - end - - sig { override.returns({ url: String, secret: String }) } - def to_hash - end + secret: nil + ) end - end - sig do - override.returns( - T::Array[ContextDev::Models::MonitorUpdateResponse::Variants] - ) - end - def self.variants + sig { override.returns({ url: String, secret: String }) } + def to_hash + end end end end diff --git a/rbi/context_dev/resources/monitors.rbi b/rbi/context_dev/resources/monitors.rbi index 2006b4ef..d7b9e46b 100644 --- a/rbi/context_dev/resources/monitors.rbi +++ b/rbi/context_dev/resources/monitors.rbi @@ -11,20 +11,41 @@ module ContextDev # its initial baseline. sig do params( - body: + change_detection: + T.any( + ContextDev::MonitorCreateParams::ChangeDetection::Exact::OrHash, + ContextDev::MonitorCreateParams::ChangeDetection::Semantic::OrHash + ), + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule::OrHash, + target: T.any( - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::OrHash, - ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::OrHash + ContextDev::MonitorCreateParams::Target::Page::OrHash, + ContextDev::MonitorCreateParams::Target::Sitemap::OrHash, + ContextDev::MonitorCreateParams::Target::Extract::OrHash ), + mode: ContextDev::MonitorCreateParams::Mode::OrSymbol, + tags: T::Array[String], + webhook: T.nilable(ContextDev::MonitorCreateParams::Webhook::OrHash), request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::MonitorCreateResponse::Variants) + ).returns(ContextDev::Models::MonitorCreateResponse) end def create( - # Union of supported monitor creation shapes. Supported combinations are: - # `page + exact`, `sitemap + exact`, `page + semantic`, and `extract + semantic`. - body:, + # Discriminated union describing how changes are detected. + change_detection:, + name:, + # Run the monitor on a fixed interval defined by a frequency and a unit, e.g. + # every 6 hours or every 2 days. The total interval (frequency × unit) must be + # between 10 minutes and 1 year. + schedule:, + # Discriminated union describing what the monitor watches. + target:, + # Top-level monitor category. Always `web` today; the concrete behavior is + # described by `target` and `change_detection`. + mode: nil, + # User-defined tags for grouping and filtering monitors and their changes. + tags: nil, + webhook: nil, request_options: {} ) end @@ -34,7 +55,7 @@ module ContextDev params( monitor_id: String, request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::MonitorRetrieveResponse::Variants) + ).returns(ContextDev::Models::MonitorRetrieveResponse) end def retrieve(monitor_id, request_options: {}) end @@ -62,7 +83,7 @@ module ContextDev ), webhook: T.nilable(ContextDev::MonitorUpdateParams::Webhook::OrHash), request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::MonitorUpdateResponse::Variants) + ).returns(ContextDev::Models::MonitorUpdateResponse) end def update( monitor_id, @@ -84,15 +105,22 @@ module ContextDev ) end - # List monitors + # Lists monitors for the authenticated organization. Supports free-text search + # (`q` over `search_by` fields, `prefix` or `exact` via `search_type`) plus + # status/type/tag filters. Results are paginated via the opaque `cursor`. sig do params( change_detection_type: ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol, cursor: String, limit: Integer, + q: String, + search_by: + T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol], + search_type: ContextDev::MonitorListParams::SearchType::OrSymbol, status: ContextDev::MonitorListParams::Status::OrSymbol, tag: String, + tags: T::Array[String], target_type: ContextDev::MonitorListParams::TargetType::OrSymbol, request_options: ContextDev::RequestOptions::OrHash ).returns(ContextDev::Models::MonitorListResponse) @@ -101,9 +129,19 @@ module ContextDev change_detection_type: nil, cursor: nil, limit: nil, + # Free-text search term, matched against the fields named in `search_by`. + q: nil, + # Comma-separated fields to search with `q`. Defaults to all of them. Note `query` + # only exists on semantic monitors. + search_by: nil, + # `prefix` for as-you-type prefix matching (default), `exact` for full-token + # matching. + search_type: nil, status: nil, # Filter to items that have this tag. tag: nil, + # Comma-separated list of tags to filter by (matches monitors having any of them). + tags: nil, target_type: nil, request_options: {} ) @@ -214,7 +252,7 @@ module ContextDev params( change_id: String, request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::MonitorRetrieveChangeResponse::Variants) + ).returns(ContextDev::Models::MonitorRetrieveChangeResponse) end def retrieve_change(change_id, request_options: {}) end diff --git a/sig/context_dev/models/monitor_create_params.rbs b/sig/context_dev/models/monitor_create_params.rbs index c467d219..d171615b 100644 --- a/sig/context_dev/models/monitor_create_params.rbs +++ b/sig/context_dev/models/monitor_create_params.rbs @@ -1,777 +1,310 @@ module ContextDev module Models type monitor_create_params = - { body: ContextDev::Models::MonitorCreateParams::body } + { + change_detection: ContextDev::Models::MonitorCreateParams::change_detection, + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule, + target: ContextDev::Models::MonitorCreateParams::target, + mode: ContextDev::Models::MonitorCreateParams::mode, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Webhook? + } & ContextDev::Internal::Type::request_parameters class MonitorCreateParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - attr_accessor body: ContextDev::Models::MonitorCreateParams::body + attr_accessor change_detection: ContextDev::Models::MonitorCreateParams::change_detection + + attr_accessor name: String + + attr_accessor schedule: ContextDev::MonitorCreateParams::Schedule + + attr_accessor target: ContextDev::Models::MonitorCreateParams::target + + attr_reader mode: ContextDev::Models::MonitorCreateParams::mode? + + def mode=: ( + ContextDev::Models::MonitorCreateParams::mode + ) -> ContextDev::Models::MonitorCreateParams::mode + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::MonitorCreateParams::Webhook? def initialize: ( - body: ContextDev::Models::MonitorCreateParams::body, + change_detection: ContextDev::Models::MonitorCreateParams::change_detection, + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule, + target: ContextDev::Models::MonitorCreateParams::target, + ?mode: ContextDev::Models::MonitorCreateParams::mode, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Webhook?, ?request_options: ContextDev::request_opts ) -> void def to_hash: -> { - body: ContextDev::Models::MonitorCreateParams::body, + change_detection: ContextDev::Models::MonitorCreateParams::change_detection, + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule, + target: ContextDev::Models::MonitorCreateParams::target, + mode: ContextDev::Models::MonitorCreateParams::mode, + tags: ::Array[String], + webhook: ContextDev::MonitorCreateParams::Webhook?, request_options: ContextDev::RequestOptions } - type body = - ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest - | ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest - | ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest - | ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest + type change_detection = + ContextDev::MonitorCreateParams::ChangeDetection::Exact + | ContextDev::MonitorCreateParams::ChangeDetection::Semantic - module Body + module ChangeDetection extend ContextDev::Internal::Type::Union - type monitors_create_page_exact_monitor_request = - { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? - } + type exact = { type: :exact } - class MonitorsCreatePageExactMonitorRequest < ContextDev::Internal::Type::BaseModel - attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact - attr_accessor name: String + def initialize: (?type: :exact) -> void - attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule + def to_hash: -> { type: :exact } + end + + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } - attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String - attr_reader tags: ::Array[String]? + attr_accessor type: :semantic - def tags=: (::Array[String]) -> ::Array[String] + attr_reader confidence_threshold: Float? - attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + def confidence_threshold=: (Float) -> Float def initialize: ( - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, - ?tags: ::Array[String], - ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + query: String, + ?confidence_threshold: Float, + ?type: :semantic ) -> void def to_hash: -> { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Webhook? + query: String, + type: :semantic, + confidence_threshold: Float } + end - type change_detection = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Schedule::unit] - end - end - - type target = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, - url: String, - normalize_whitespace: bool - } + def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::change_detection] + end - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_ + type schedule = + { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Schedule::unit + } - attr_accessor url: String + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer - attr_reader normalize_whitespace: bool? + attr_accessor type: ContextDev::Models::MonitorCreateParams::Schedule::type_ - def normalize_whitespace=: (bool) -> bool + attr_accessor unit: ContextDev::Models::MonitorCreateParams::Schedule::unit - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void + def initialize: ( + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Schedule::unit + ) -> void - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_, - url: String, - normalize_whitespace: bool - } + def to_hash: -> { + frequency: Integer, + type: ContextDev::Models::MonitorCreateParams::Schedule::type_, + unit: ContextDev::Models::MonitorCreateParams::Schedule::unit + } - type type_ = :page + type type_ = :interval - module Type - extend ContextDev::Internal::Type::Enum + module Type + extend ContextDev::Internal::Type::Enum - PAGE: :page + INTERVAL: :interval - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageExactMonitorRequest::Target::type_] - end - end + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::type_] + end - type webhook = { url: String, secret: String } + type unit = :minutes | :hours | :days - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + module Unit + extend ContextDev::Internal::Type::Enum - def initialize: (url: String) -> void + MINUTES: :minutes + HOURS: :hours + DAYS: :days - def to_hash: -> { url: String, secret: String } - end + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::unit] end + end - type monitors_create_sitemap_exact_monitor_request = - { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? - } - - class MonitorsCreateSitemapExactMonitorRequest < ContextDev::Internal::Type::BaseModel - attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection + type target = + ContextDev::MonitorCreateParams::Target::Page + | ContextDev::MonitorCreateParams::Target::Sitemap + | ContextDev::MonitorCreateParams::Target::Extract - attr_accessor name: String + module Target + extend ContextDev::Internal::Type::Union - attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule + type page = { type: :page, url: String, normalize_whitespace: bool } - attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page - attr_reader tags: ::Array[String]? + attr_accessor url: String - def tags=: (::Array[String]) -> ::Array[String] + attr_reader normalize_whitespace: bool? - attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + def normalize_whitespace=: (bool) -> bool def initialize: ( - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, - ?tags: ::Array[String], - ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + url: String, + ?normalize_whitespace: bool, + ?type: :page ) -> void def to_hash: -> { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Webhook? + type: :page, + url: String, + normalize_whitespace: bool } - - type change_detection = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Schedule::unit] - end - end - - type target = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, - url: String, - exclude: ::Array[String], - include: ::Array[String], - max_urls: Integer - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_ - - attr_accessor url: String - - attr_reader exclude: ::Array[String]? - - def exclude=: (::Array[String]) -> ::Array[String] - - attr_reader include: ::Array[String]? - - def include=: (::Array[String]) -> ::Array[String] - - attr_reader max_urls: Integer? - - def max_urls=: (Integer) -> Integer - - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, - url: String, - ?exclude: ::Array[String], - ?include: ::Array[String], - ?max_urls: Integer - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_, - url: String, - exclude: ::Array[String], - include: ::Array[String], - max_urls: Integer - } - - type type_ = :sitemap - - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateSitemapExactMonitorRequest::Target::type_] - end - end - - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - def initialize: (url: String) -> void - - def to_hash: -> { url: String, secret: String } - end end - type monitors_create_page_semantic_monitor_request = + type sitemap = { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + type: :sitemap, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer } - class MonitorsCreatePageSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel - attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap + + attr_accessor url: String - attr_accessor name: String + attr_reader exclude: ::Array[String]? - attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule + def exclude=: (::Array[String]) -> ::Array[String] - attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target + attr_reader include: ::Array[String]? - attr_reader tags: ::Array[String]? + def include=: (::Array[String]) -> ::Array[String] - def tags=: (::Array[String]) -> ::Array[String] + attr_reader max_urls: Integer? - attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + def max_urls=: (Integer) -> Integer def initialize: ( - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, - ?tags: ::Array[String], - ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + url: String, + ?exclude: ::Array[String], + ?include: ::Array[String], + ?max_urls: Integer, + ?type: :sitemap ) -> void def to_hash: -> { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Webhook? + type: :sitemap, + url: String, + exclude: ::Array[String], + include: ::Array[String], + max_urls: Integer } + end - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Schedule::unit] - end - end - - type target = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_ - - attr_accessor url: String - - attr_reader normalize_whitespace: bool? - - def normalize_whitespace=: (bool) -> bool - - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_, - url: String, - normalize_whitespace: bool - } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreatePageSemanticMonitorRequest::Target::type_] - end - end + type extract = + { + type: :extract, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] + } - type webhook = { url: String, secret: String } + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + attr_accessor url: String - def initialize: (url: String) -> void + attr_reader follow_subdomains: bool? - def to_hash: -> { url: String, secret: String } - end - end + def follow_subdomains=: (bool) -> bool - type monitors_create_extract_semantic_monitor_request = - { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? - } + attr_reader instructions: String? - class MonitorsCreateExtractSemanticMonitorRequest < ContextDev::Internal::Type::BaseModel - attr_accessor change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection + def instructions=: (String) -> String - attr_accessor name: String + attr_reader max_depth: Integer? - attr_accessor schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule + def max_depth=: (Integer) -> Integer - attr_accessor target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target + attr_reader max_pages: Integer? - attr_reader tags: ::Array[String]? + def max_pages=: (Integer) -> Integer - def tags=: (::Array[String]) -> ::Array[String] + attr_reader schema: ::Hash[Symbol, top]? - attr_accessor webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] def initialize: ( - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, - ?tags: ::Array[String], - ?webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + url: String, + ?follow_subdomains: bool, + ?instructions: String, + ?max_depth: Integer, + ?max_pages: Integer, + ?schema: ::Hash[Symbol, top], + ?type: :extract ) -> void def to_hash: -> { - change_detection: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection, - name: String, - schedule: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule, - target: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target, - tags: ::Array[String], - webhook: ContextDev::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Webhook? + type: :extract, + url: String, + follow_subdomains: bool, + instructions: String, + max_depth: Integer, + max_pages: Integer, + schema: ::Hash[Symbol, top] } + end - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_, - unit: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Schedule::unit] - end - end - - type target = - { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, - url: String, - follow_subdomains: bool, - instructions: String, - max_depth: Integer, - max_pages: Integer, - schema: ::Hash[Symbol, top] - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_ - - attr_accessor url: String - - attr_reader follow_subdomains: bool? - - def follow_subdomains=: (bool) -> bool - - attr_reader instructions: String? - - def instructions=: (String) -> String - - attr_reader max_depth: Integer? - - def max_depth=: (Integer) -> Integer - - attr_reader max_pages: Integer? - - def max_pages=: (Integer) -> Integer - - attr_reader schema: ::Hash[Symbol, top]? - - def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] - - def initialize: ( - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, - url: String, - ?follow_subdomains: bool, - ?instructions: String, - ?max_depth: Integer, - ?max_pages: Integer, - ?schema: ::Hash[Symbol, top] - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_, - url: String, - follow_subdomains: bool, - instructions: String, - max_depth: Integer, - max_pages: Integer, - schema: ::Hash[Symbol, top] - } - - type type_ = :extract + def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::target] + end - module Type - extend ContextDev::Internal::Type::Enum + type mode = :web - EXTRACT: :extract + module Mode + extend ContextDev::Internal::Type::Enum - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Body::MonitorsCreateExtractSemanticMonitorRequest::Target::type_] - end - end + WEB: :web - type webhook = { url: String, secret: String } + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::mode] + end - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + type webhook = { url: String, secret: String } - def initialize: (url: String) -> void + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String - def to_hash: -> { url: String, secret: String } - end - end + def initialize: (url: String) -> void - def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::body] + def to_hash: -> { url: String, secret: String } end end end diff --git a/sig/context_dev/models/monitor_create_response.rbs b/sig/context_dev/models/monitor_create_response.rbs index e97a55c7..a09fcb4d 100644 --- a/sig/context_dev/models/monitor_create_response.rbs +++ b/sig/context_dev/models/monitor_create_response.rbs @@ -1,401 +1,242 @@ module ContextDev module Models type monitor_create_response = - ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor - | ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor - | ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor - | ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor - - module MonitorCreateResponse - extend ContextDev::Internal::Type::Union - - type monitors_page_exact_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? - } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Webhook? - } - - type change_detection = - { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::ChangeDetection::type_] - end + { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule, + status: ContextDev::Models::MonitorCreateResponse::status, + target: ContextDev::Models::MonitorCreateResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::Webhook? + } + + class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::change_detection + + attr_accessor created_at: Time + + attr_accessor mode: ContextDev::Models::MonitorCreateResponse::mode + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::Schedule + + attr_accessor status: ContextDev::Models::MonitorCreateResponse::status + + attr_accessor target: ContextDev::Models::MonitorCreateResponse::target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule, + status: ContextDev::Models::MonitorCreateResponse::status, + target: ContextDev::Models::MonitorCreateResponse::target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorCreateResponse::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule, + status: ContextDev::Models::MonitorCreateResponse::status, + target: ContextDev::Models::MonitorCreateResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorCreateResponse::Webhook? + } + + type change_detection = + ContextDev::Models::MonitorCreateResponse::ChangeDetection::Exact + | ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic + + module ChangeDetection + extend ContextDev::Internal::Type::Union + + type exact = { type: :exact } + + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact + + def initialize: (?type: :exact) -> void + + def to_hash: -> { type: :exact } end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_ + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } - attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_ + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String - attr_accessor url: String + attr_accessor type: :semantic - attr_reader normalize_whitespace: bool? + attr_reader confidence_threshold: Float? - def normalize_whitespace=: (bool) -> bool + def confidence_threshold=: (Float) -> Float def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool + query: String, + ?confidence_threshold: Float, + ?type: :semantic ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool + query: String, + type: :semantic, + confidence_threshold: Float } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::change_detection] + end - attr_reader secret: String? + type mode = :web - def secret=: (String) -> String + module Mode + extend ContextDev::Internal::Type::Enum - def initialize: (url: String, ?secret: String) -> void + WEB: :web - def to_hash: -> { url: String, secret: String } - end + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::mode] end - type monitors_sitemap_exact_monitor = + type schedule = { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::Schedule::unit } - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer - attr_accessor last_run_at: Time? + attr_accessor type: ContextDev::Models::MonitorCreateResponse::Schedule::type_ - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + attr_accessor unit: ContextDev::Models::MonitorCreateResponse::Schedule::unit def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::Schedule::unit ) -> void def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorCreateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorCreateResponse::Schedule::unit } - type change_detection = - { - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } + type type_ = :interval - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum + module Type + extend ContextDev::Internal::Type::Enum - EXACT: :exact + INTERVAL: :interval - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::Schedule::type_] end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + type unit = :minutes | :hours | :days - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer + module Unit + extend ContextDev::Internal::Type::Enum - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_ + MINUTES: :minutes + HOURS: :hours + DAYS: :days - attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::Schedule::unit] + end + end - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit - ) -> void + type status = :active | :paused | :failed - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + module Status + extend ContextDev::Internal::Type::Enum - type type_ = :interval + ACTIVE: :active + PAUSED: :paused + FAILED: :failed - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval + def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::status] + end - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::type_] - end + type target = + ContextDev::Models::MonitorCreateResponse::Target::Page + | ContextDev::Models::MonitorCreateResponse::Target::Sitemap + | ContextDev::Models::MonitorCreateResponse::Target::Extract - type unit = :minutes | :hours | :days + module Target + extend ContextDev::Internal::Type::Union - module Unit - extend ContextDev::Internal::Type::Enum + type page = { type: :page, url: String, normalize_whitespace: bool } - MINUTES: :minutes - HOURS: :hours - DAYS: :days + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Schedule::unit] - end - end + attr_accessor url: String - type status = :active | :paused | :failed + attr_reader normalize_whitespace: bool? - module Status - extend ContextDev::Internal::Type::Enum + def normalize_whitespace=: (bool) -> bool - ACTIVE: :active - PAUSED: :paused - FAILED: :failed + def initialize: ( + url: String, + ?normalize_whitespace: bool, + ?type: :page + ) -> void - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::status] + def to_hash: -> { + type: :page, + url: String, + normalize_whitespace: bool + } end - type target = + type sitemap = { - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_ + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap attr_accessor url: String @@ -412,450 +253,25 @@ module ContextDev def max_urls=: (Integer) -> Integer def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, url: String, ?exclude: ::Array[String], ?include: ::Array[String], - ?max_urls: Integer + ?max_urls: Integer, + ?type: :sitemap ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - - type type_ = :sitemap - - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_page_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? - } - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Webhook? - } - - type change_detection = + type extract = { - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_ - - attr_accessor url: String - - attr_reader normalize_whitespace: bool? - - def normalize_whitespace=: (bool) -> bool - - def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor::Target::type_] - end - end - - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_extract_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -864,8 +280,8 @@ module ContextDev schema: ::Hash[Symbol, top] } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_ + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract attr_accessor url: String @@ -890,17 +306,17 @@ module ContextDev def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] def initialize: ( - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, url: String, ?follow_subdomains: bool, ?instructions: String, ?max_depth: Integer, ?max_pages: Integer, - ?schema: ::Hash[Symbol, top] + ?schema: ::Hash[Symbol, top], + ?type: :extract ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -908,34 +324,24 @@ module ContextDev max_pages: Integer, schema: ::Hash[Symbol, top] } - - type type_ = :extract - - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT: :extract - - def self?.values: -> ::Array[ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } + def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::target] + end - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + type webhook = { url: String, secret: String } - attr_reader secret: String? + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String - def secret=: (String) -> String + attr_reader secret: String? - def initialize: (url: String, ?secret: String) -> void + def secret=: (String) -> String - def to_hash: -> { url: String, secret: String } - end - end + def initialize: (url: String, ?secret: String) -> void - def self?.variants: -> ::Array[ContextDev::Models::monitor_create_response] + def to_hash: -> { url: String, secret: String } + end end end end diff --git a/sig/context_dev/models/monitor_list_account_changes_response.rbs b/sig/context_dev/models/monitor_list_account_changes_response.rbs index a783451c..dcd5ca3a 100644 --- a/sig/context_dev/models/monitor_list_account_changes_response.rbs +++ b/sig/context_dev/models/monitor_list_account_changes_response.rbs @@ -2,415 +2,174 @@ module ContextDev module Models type monitor_list_account_changes_response = { - data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data], has_more: bool, next_cursor: String? } class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel - attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data] + attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data] attr_accessor has_more: bool attr_accessor next_cursor: String? def initialize: ( - data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data], has_more: bool, next_cursor: String? ) -> void def to_hash: -> { - data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data], has_more: bool, next_cursor: String? } type data = - ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary - | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary - | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary - | ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary + { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance, + matched_url_count: Integer, + removed_url_count: Integer, + tags: ::Array[String] + } - module Data - extend ContextDev::Internal::Type::Union + class Data < ContextDev::Internal::Type::BaseModel + attr_accessor id: String - type monitors_page_exact_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String + attr_accessor detected_at: Time - attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type + attr_accessor mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode - attr_accessor detected_at: Time + attr_accessor monitor_id: String - attr_accessor monitor_id: String + attr_accessor summary: String - attr_accessor summary: String + attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type - attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type + attr_accessor title: String - attr_accessor title: String + attr_accessor url: String - attr_accessor url: String + attr_reader added_url_count: Integer? - attr_reader tags: ::Array[String]? + def added_url_count=: (Integer) -> Integer - def tags=: (::Array[String]) -> ::Array[String] + attr_reader confidence: Float? - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void + def confidence=: (Float) -> Float - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + attr_reader importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance? - type change_detection_type = :exact + def importance=: ( + ContextDev::Models::MonitorListAccountChangesResponse::Data::importance + ) -> ContextDev::Models::MonitorListAccountChangesResponse::Data::importance - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + attr_reader matched_url_count: Integer? - EXACT: :exact + def matched_url_count=: (Integer) -> Integer - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type] - end + attr_reader removed_url_count: Integer? - type target_type = :page + def removed_url_count=: (Integer) -> Integer - module TargetType - extend ContextDev::Internal::Type::Enum + attr_reader tags: ::Array[String]? - PAGE: :page + def tags=: (::Array[String]) -> ::Array[String] - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageExactChangeSummary::target_type] - end - end - - type monitors_sitemap_exact_change_summary = - { - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor added_url_count: Integer - - attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type - - attr_accessor detected_at: Time - - attr_accessor monitor_id: String - - attr_accessor removed_url_count: Integer - - attr_accessor summary: String - - attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type, + title: String, + url: String, + ?added_url_count: Integer, + ?confidence: Float, + ?importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance, + ?matched_url_count: Integer, + ?removed_url_count: Integer, + ?tags: ::Array[String] + ) -> void - type change_detection_type = :exact + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance, + matched_url_count: Integer, + removed_url_count: Integer, + tags: ::Array[String] + } - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + type change_detection_type = :exact | :semantic - EXACT: :exact + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type] - end + EXACT: :exact + SEMANTIC: :semantic - type target_type = :sitemap - - module TargetType - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type] end - type monitors_page_semantic_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance - - attr_accessor monitor_id: String - - attr_accessor summary: String - - attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void + type mode = :web - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + module Mode + extend ContextDev::Internal::Type::Enum - type change_detection_type = :semantic + WEB: :web - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type] - end - - type importance = :low | :medium | :high - - module Importance - extend ContextDev::Internal::Type::Enum - - LOW: :low - MEDIUM: :medium - HIGH: :high - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance] - end - - type target_type = :page - - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::mode] end - type monitors_extract_semantic_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance - - attr_accessor matched_url_count: Integer + type target_type = :page | :sitemap | :extract - attr_accessor monitor_id: String + module TargetType + extend ContextDev::Internal::Type::Enum - attr_accessor summary: String + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract - attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - type change_detection_type = :semantic - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type] - end - - type importance = :low | :medium | :high - - module Importance - extend ContextDev::Internal::Type::Enum - - LOW: :low - MEDIUM: :medium - HIGH: :high - - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type] + end - type target_type = :extract + type importance = :low | :medium | :high - module TargetType - extend ContextDev::Internal::Type::Enum + module Importance + extend ContextDev::Internal::Type::Enum - EXTRACT: :extract + LOW: :low + MEDIUM: :medium + HIGH: :high - def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::importance] end - - def self?.variants: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::data] end end end diff --git a/sig/context_dev/models/monitor_list_changes_response.rbs b/sig/context_dev/models/monitor_list_changes_response.rbs index c8f52f54..6ba6dde1 100644 --- a/sig/context_dev/models/monitor_list_changes_response.rbs +++ b/sig/context_dev/models/monitor_list_changes_response.rbs @@ -2,415 +2,174 @@ module ContextDev module Models type monitor_list_changes_response = { - data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListChangesResponse::Data], has_more: bool, next_cursor: String? } class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel - attr_accessor data: ::Array[ContextDev::Models::MonitorListChangesResponse::data] + attr_accessor data: ::Array[ContextDev::Models::MonitorListChangesResponse::Data] attr_accessor has_more: bool attr_accessor next_cursor: String? def initialize: ( - data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListChangesResponse::Data], has_more: bool, next_cursor: String? ) -> void def to_hash: -> { - data: ::Array[ContextDev::Models::MonitorListChangesResponse::data], + data: ::Array[ContextDev::Models::MonitorListChangesResponse::Data], has_more: bool, next_cursor: String? } type data = - ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary - | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary - | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary - | ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary + { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::target_type, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: ContextDev::Models::MonitorListChangesResponse::Data::importance, + matched_url_count: Integer, + removed_url_count: Integer, + tags: ::Array[String] + } - module Data - extend ContextDev::Internal::Type::Union + class Data < ContextDev::Internal::Type::BaseModel + attr_accessor id: String - type monitors_page_exact_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::change_detection_type - class MonitorsPageExactChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String + attr_accessor detected_at: Time - attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type + attr_accessor mode: ContextDev::Models::MonitorListChangesResponse::Data::mode - attr_accessor detected_at: Time + attr_accessor monitor_id: String - attr_accessor monitor_id: String + attr_accessor summary: String - attr_accessor summary: String + attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::target_type - attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type + attr_accessor title: String - attr_accessor title: String + attr_accessor url: String - attr_accessor url: String + attr_reader added_url_count: Integer? - attr_reader tags: ::Array[String]? + def added_url_count=: (Integer) -> Integer - def tags=: (::Array[String]) -> ::Array[String] + attr_reader confidence: Float? - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void + def confidence=: (Float) -> Float - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + attr_reader importance: ContextDev::Models::MonitorListChangesResponse::Data::importance? - type change_detection_type = :exact + def importance=: ( + ContextDev::Models::MonitorListChangesResponse::Data::importance + ) -> ContextDev::Models::MonitorListChangesResponse::Data::importance - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + attr_reader matched_url_count: Integer? - EXACT: :exact + def matched_url_count=: (Integer) -> Integer - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::change_detection_type] - end + attr_reader removed_url_count: Integer? - type target_type = :page + def removed_url_count=: (Integer) -> Integer - module TargetType - extend ContextDev::Internal::Type::Enum + attr_reader tags: ::Array[String]? - PAGE: :page + def tags=: (::Array[String]) -> ::Array[String] - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageExactChangeSummary::target_type] - end - end - - type monitors_sitemap_exact_change_summary = - { - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsSitemapExactChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor added_url_count: Integer - - attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type - - attr_accessor detected_at: Time - - attr_accessor monitor_id: String - - attr_accessor removed_url_count: Integer - - attr_accessor summary: String - - attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - added_url_count: Integer, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::target_type, + title: String, + url: String, + ?added_url_count: Integer, + ?confidence: Float, + ?importance: ContextDev::Models::MonitorListChangesResponse::Data::importance, + ?matched_url_count: Integer, + ?removed_url_count: Integer, + ?tags: ::Array[String] + ) -> void - type change_detection_type = :exact + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorListChangesResponse::Data::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorListChangesResponse::Data::target_type, + title: String, + url: String, + added_url_count: Integer, + confidence: Float, + importance: ContextDev::Models::MonitorListChangesResponse::Data::importance, + matched_url_count: Integer, + removed_url_count: Integer, + tags: ::Array[String] + } - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + type change_detection_type = :exact | :semantic - EXACT: :exact + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::change_detection_type] - end + EXACT: :exact + SEMANTIC: :semantic - type target_type = :sitemap - - module TargetType - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsSitemapExactChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::change_detection_type] end - type monitors_page_semantic_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsPageSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance - - attr_accessor monitor_id: String - - attr_accessor summary: String - - attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void + type mode = :web - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } + module Mode + extend ContextDev::Internal::Type::Enum - type change_detection_type = :semantic + WEB: :web - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::change_detection_type] - end - - type importance = :low | :medium | :high - - module Importance - extend ContextDev::Internal::Type::Enum - - LOW: :low - MEDIUM: :medium - HIGH: :high - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::importance] - end - - type target_type = :page - - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsPageSemanticChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::mode] end - type monitors_extract_semantic_change_summary = - { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsExtractSemanticChangeSummary < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance - - attr_accessor matched_url_count: Integer + type target_type = :page | :sitemap | :extract - attr_accessor monitor_id: String + module TargetType + extend ContextDev::Internal::Type::Enum - attr_accessor summary: String + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract - attr_accessor target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type, - confidence: Float, - detected_at: Time, - importance: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance, - matched_url_count: Integer, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - type change_detection_type = :semantic - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::change_detection_type] - end - - type importance = :low | :medium | :high - - module Importance - extend ContextDev::Internal::Type::Enum - - LOW: :low - MEDIUM: :medium - HIGH: :high - - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::importance] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::target_type] + end - type target_type = :extract + type importance = :low | :medium | :high - module TargetType - extend ContextDev::Internal::Type::Enum + module Importance + extend ContextDev::Internal::Type::Enum - EXTRACT: :extract + LOW: :low + MEDIUM: :medium + HIGH: :high - def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::MonitorsExtractSemanticChangeSummary::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListChangesResponse::Data::importance] end - - def self?.variants: -> ::Array[ContextDev::Models::MonitorListChangesResponse::data] end end end diff --git a/sig/context_dev/models/monitor_list_params.rbs b/sig/context_dev/models/monitor_list_params.rbs index 418b9fc5..2e9543ec 100644 --- a/sig/context_dev/models/monitor_list_params.rbs +++ b/sig/context_dev/models/monitor_list_params.rbs @@ -5,8 +5,12 @@ module ContextDev change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, cursor: String, limit: Integer, + q: String, + search_by: ::Array[ContextDev::Models::MonitorListParams::search_by], + search_type: ContextDev::Models::MonitorListParams::search_type, status: ContextDev::Models::MonitorListParams::status, tag: String, + tags: ::Array[String], target_type: ContextDev::Models::MonitorListParams::target_type } & ContextDev::Internal::Type::request_parameters @@ -29,6 +33,22 @@ module ContextDev def limit=: (Integer) -> Integer + attr_reader q: String? + + def q=: (String) -> String + + attr_reader search_by: ::Array[ContextDev::Models::MonitorListParams::search_by]? + + def search_by=: ( + ::Array[ContextDev::Models::MonitorListParams::search_by] + ) -> ::Array[ContextDev::Models::MonitorListParams::search_by] + + attr_reader search_type: ContextDev::Models::MonitorListParams::search_type? + + def search_type=: ( + ContextDev::Models::MonitorListParams::search_type + ) -> ContextDev::Models::MonitorListParams::search_type + attr_reader status: ContextDev::Models::MonitorListParams::status? def status=: ( @@ -39,6 +59,10 @@ module ContextDev def tag=: (String) -> String + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + attr_reader target_type: ContextDev::Models::MonitorListParams::target_type? def target_type=: ( @@ -49,8 +73,12 @@ module ContextDev ?change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, ?cursor: String, ?limit: Integer, + ?q: String, + ?search_by: ::Array[ContextDev::Models::MonitorListParams::search_by], + ?search_type: ContextDev::Models::MonitorListParams::search_type, ?status: ContextDev::Models::MonitorListParams::status, ?tag: String, + ?tags: ::Array[String], ?target_type: ContextDev::Models::MonitorListParams::target_type, ?request_options: ContextDev::request_opts ) -> void @@ -59,8 +87,12 @@ module ContextDev change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, cursor: String, limit: Integer, + q: String, + search_by: ::Array[ContextDev::Models::MonitorListParams::search_by], + search_type: ContextDev::Models::MonitorListParams::search_type, status: ContextDev::Models::MonitorListParams::status, tag: String, + tags: ::Array[String], target_type: ContextDev::Models::MonitorListParams::target_type, request_options: ContextDev::RequestOptions } @@ -76,6 +108,30 @@ module ContextDev def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::change_detection_type] end + type search_by = :name | :url | :query | :tags + + module SearchBy + extend ContextDev::Internal::Type::Enum + + NAME: :name + URL: :url + QUERY: :query + TAGS: :tags + + def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::search_by] + end + + type search_type = :exact | :prefix + + module SearchType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + PREFIX: :prefix + + def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::search_type] + end + type status = :active | :paused | :failed module Status diff --git a/sig/context_dev/models/monitor_list_response.rbs b/sig/context_dev/models/monitor_list_response.rbs index 2099ef11..bb614013 100644 --- a/sig/context_dev/models/monitor_list_response.rbs +++ b/sig/context_dev/models/monitor_list_response.rbs @@ -2,426 +2,267 @@ module ContextDev module Models type monitor_list_response = { - data: ::Array[ContextDev::Models::MonitorListResponse::data], + data: ::Array[ContextDev::Models::MonitorListResponse::Data], has_more: bool, next_cursor: String? } class MonitorListResponse < ContextDev::Internal::Type::BaseModel - attr_accessor data: ::Array[ContextDev::Models::MonitorListResponse::data] + attr_accessor data: ::Array[ContextDev::Models::MonitorListResponse::Data] attr_accessor has_more: bool attr_accessor next_cursor: String? def initialize: ( - data: ::Array[ContextDev::Models::MonitorListResponse::data], + data: ::Array[ContextDev::Models::MonitorListResponse::Data], has_more: bool, next_cursor: String? ) -> void def to_hash: -> { - data: ::Array[ContextDev::Models::MonitorListResponse::data], + data: ::Array[ContextDev::Models::MonitorListResponse::Data], has_more: bool, next_cursor: String? } type data = - ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor - | ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor - | ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor - | ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor - - module Data - extend ContextDev::Internal::Type::Union - - type monitors_page_exact_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? - } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Webhook? - } - - type change_detection = - { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::ChangeDetection::type_] - end + { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorListResponse::Data::mode, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::status, + target: ContextDev::Models::MonitorListResponse::Data::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? + } + + class Data < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::change_detection + + attr_accessor created_at: Time + + attr_accessor mode: ContextDev::Models::MonitorListResponse::Data::mode + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::Schedule + + attr_accessor status: ContextDev::Models::MonitorListResponse::Data::status + + attr_accessor target: ContextDev::Models::MonitorListResponse::Data::target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorListResponse::Data::mode, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::status, + target: ContextDev::Models::MonitorListResponse::Data::target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorListResponse::Data::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorListResponse::Data::mode, + name: String, + schedule: ContextDev::Models::MonitorListResponse::Data::Schedule, + status: ContextDev::Models::MonitorListResponse::Data::status, + target: ContextDev::Models::MonitorListResponse::Data::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? + } + + type change_detection = + ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Exact + | ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic + + module ChangeDetection + extend ContextDev::Internal::Type::Union + + type exact = { type: :exact } + + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact + + def initialize: (?type: :exact) -> void + + def to_hash: -> { type: :exact } end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_ + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } - attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_ + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String - attr_accessor url: String + attr_accessor type: :semantic - attr_reader normalize_whitespace: bool? + attr_reader confidence_threshold: Float? - def normalize_whitespace=: (bool) -> bool + def confidence_threshold=: (Float) -> Float def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool + query: String, + ?confidence_threshold: Float, + ?type: :semantic ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool + query: String, + type: :semantic, + confidence_threshold: Float } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::change_detection] + end - attr_reader secret: String? + type mode = :web - def secret=: (String) -> String + module Mode + extend ContextDev::Internal::Type::Enum - def initialize: (url: String, ?secret: String) -> void + WEB: :web - def to_hash: -> { url: String, secret: String } - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::mode] end - type monitors_sitemap_exact_monitor = + type schedule = { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::Schedule::unit } - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer - attr_accessor last_run_at: Time? + attr_accessor type: ContextDev::Models::MonitorListResponse::Data::Schedule::type_ - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::Schedule::unit def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::Schedule::unit ) -> void def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorListResponse::Data::Schedule::type_, + unit: ContextDev::Models::MonitorListResponse::Data::Schedule::unit } - type change_detection = - { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } + type type_ = :interval - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum + module Type + extend ContextDev::Internal::Type::Enum - EXACT: :exact + INTERVAL: :interval - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::ChangeDetection::type_] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::Schedule::type_] end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit - } + type unit = :minutes | :hours | :days - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer + module Unit + extend ContextDev::Internal::Type::Enum - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_ + MINUTES: :minutes + HOURS: :hours + DAYS: :days - attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::Schedule::unit] + end + end - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit - ) -> void + type status = :active | :paused | :failed - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit - } + module Status + extend ContextDev::Internal::Type::Enum - type type_ = :interval + ACTIVE: :active + PAUSED: :paused + FAILED: :failed - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval + def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::status] + end - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::type_] - end + type target = + ContextDev::Models::MonitorListResponse::Data::Target::Page + | ContextDev::Models::MonitorListResponse::Data::Target::Sitemap + | ContextDev::Models::MonitorListResponse::Data::Target::Extract - type unit = :minutes | :hours | :days + module Target + extend ContextDev::Internal::Type::Union - module Unit - extend ContextDev::Internal::Type::Enum + type page = { type: :page, url: String, normalize_whitespace: bool } - MINUTES: :minutes - HOURS: :hours - DAYS: :days + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Schedule::unit] - end - end + attr_accessor url: String - type status = :active | :paused | :failed + attr_reader normalize_whitespace: bool? - module Status - extend ContextDev::Internal::Type::Enum + def normalize_whitespace=: (bool) -> bool - ACTIVE: :active - PAUSED: :paused - FAILED: :failed + def initialize: ( + url: String, + ?normalize_whitespace: bool, + ?type: :page + ) -> void - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::status] + def to_hash: -> { + type: :page, + url: String, + normalize_whitespace: bool + } end - type target = + type sitemap = { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_ + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap attr_accessor url: String @@ -438,450 +279,25 @@ module ContextDev def max_urls=: (Integer) -> Integer def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, url: String, ?exclude: ::Array[String], ?include: ::Array[String], - ?max_urls: Integer + ?max_urls: Integer, + ?type: :sitemap ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - - type type_ = :sitemap - - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsSitemapExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_page_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? - } - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Webhook? - } - - type change_detection = + type extract = { - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_ - - attr_accessor url: String - - attr_reader normalize_whitespace: bool? - - def normalize_whitespace=: (bool) -> bool - - def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsPageSemanticMonitor::Target::type_] - end - end - - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_extract_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? - } - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Webhook? - } - - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -890,8 +306,8 @@ module ContextDev schema: ::Hash[Symbol, top] } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_ + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract attr_accessor url: String @@ -916,17 +332,17 @@ module ContextDev def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] def initialize: ( - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, url: String, ?follow_subdomains: bool, ?instructions: String, ?max_depth: Integer, ?max_pages: Integer, - ?schema: ::Hash[Symbol, top] + ?schema: ::Hash[Symbol, top], + ?type: :extract ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -934,34 +350,24 @@ module ContextDev max_pages: Integer, schema: ::Hash[Symbol, top] } - - type type_ = :extract - - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT: :extract - - def self?.values: -> ::Array[ContextDev::Models::MonitorListResponse::Data::MonitorsExtractSemanticMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } + def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::target] + end - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + type webhook = { url: String, secret: String } - attr_reader secret: String? + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String - def secret=: (String) -> String + attr_reader secret: String? - def initialize: (url: String, ?secret: String) -> void + def secret=: (String) -> String - def to_hash: -> { url: String, secret: String } - end - end + def initialize: (url: String, ?secret: String) -> void - def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::data] + def to_hash: -> { url: String, secret: String } + end end end end diff --git a/sig/context_dev/models/monitor_retrieve_change_response.rbs b/sig/context_dev/models/monitor_retrieve_change_response.rbs index 84630448..686ead0e 100644 --- a/sig/context_dev/models/monitor_retrieve_change_response.rbs +++ b/sig/context_dev/models/monitor_retrieve_change_response.rbs @@ -1,472 +1,223 @@ module ContextDev module Models type monitor_retrieve_change_response = - ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange - | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange - | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange - | ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange + { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, + title: String, + url: String, + added_url_count: Integer, + added_urls: ::Array[String], + after_text_excerpt: String, + before_text_excerpt: String, + confidence: Float, + diff: String, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance, + matched_url_count: Integer, + matched_urls: ::Array[String], + query: String, + removed_url_count: Integer, + removed_urls: ::Array[String], + tags: ::Array[String] + } - module MonitorRetrieveChangeResponse - extend ContextDev::Internal::Type::Union + class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel + attr_accessor id: String - type monitors_page_exact_change = - { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, - detected_at: Time, - diff: String, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, - title: String, - url: String, - after_text_excerpt: String, - before_text_excerpt: String, - tags: ::Array[String] - } + attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::change_detection_type - class MonitorsPageExactChange < ContextDev::Internal::Type::BaseModel - attr_accessor id: String + attr_accessor detected_at: Time - attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type + attr_accessor mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode - attr_accessor detected_at: Time + attr_accessor monitor_id: String - attr_accessor diff: String + attr_accessor summary: String - attr_accessor monitor_id: String + attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type - attr_accessor summary: String + attr_accessor title: String - attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type + attr_accessor url: String - attr_accessor title: String + attr_reader added_url_count: Integer? - attr_accessor url: String + def added_url_count=: (Integer) -> Integer - attr_reader after_text_excerpt: String? + attr_reader added_urls: ::Array[String]? - def after_text_excerpt=: (String) -> String + def added_urls=: (::Array[String]) -> ::Array[String] - attr_reader before_text_excerpt: String? + attr_reader after_text_excerpt: String? - def before_text_excerpt=: (String) -> String + def after_text_excerpt=: (String) -> String - attr_reader tags: ::Array[String]? + attr_reader before_text_excerpt: String? - def tags=: (::Array[String]) -> ::Array[String] + def before_text_excerpt=: (String) -> String - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, - detected_at: Time, - diff: String, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, - title: String, - url: String, - ?after_text_excerpt: String, - ?before_text_excerpt: String, - ?tags: ::Array[String] - ) -> void + attr_reader confidence: Float? - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type, - detected_at: Time, - diff: String, - monitor_id: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type, - title: String, - url: String, - after_text_excerpt: String, - before_text_excerpt: String, - tags: ::Array[String] - } + def confidence=: (Float) -> Float - type change_detection_type = :exact + attr_reader diff: String? - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + def diff=: (String) -> String - EXACT: :exact + attr_reader evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence]? - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::change_detection_type] - end + def evidence=: ( + ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence] + ) -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence] - type target_type = :page + attr_reader importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance? - module TargetType - extend ContextDev::Internal::Type::Enum + def importance=: ( + ContextDev::Models::MonitorRetrieveChangeResponse::importance + ) -> ContextDev::Models::MonitorRetrieveChangeResponse::importance - PAGE: :page + attr_reader matched_url_count: Integer? - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange::target_type] - end - end - - type monitors_sitemap_exact_change = - { - id: String, - added_url_count: Integer, - added_urls: ::Array[String], - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - removed_urls: ::Array[String], - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsSitemapExactChange < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor added_url_count: Integer - - attr_accessor added_urls: ::Array[String] - - attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type - - attr_accessor detected_at: Time - - attr_accessor monitor_id: String - - attr_accessor removed_url_count: Integer + def matched_url_count=: (Integer) -> Integer - attr_accessor removed_urls: ::Array[String] + attr_reader matched_urls: ::Array[String]? - attr_accessor summary: String + def matched_urls=: (::Array[String]) -> ::Array[String] - attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type + attr_reader query: String? - attr_accessor title: String + def query=: (String) -> String - attr_accessor url: String + attr_reader removed_url_count: Integer? - attr_reader tags: ::Array[String]? + def removed_url_count=: (Integer) -> Integer - def tags=: (::Array[String]) -> ::Array[String] + attr_reader removed_urls: ::Array[String]? - def initialize: ( - id: String, - added_url_count: Integer, - added_urls: ::Array[String], - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - removed_urls: ::Array[String], - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void + def removed_urls=: (::Array[String]) -> ::Array[String] - def to_hash: -> { - id: String, - added_url_count: Integer, - added_urls: ::Array[String], - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type, - detected_at: Time, - monitor_id: String, - removed_url_count: Integer, - removed_urls: ::Array[String], - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } + attr_reader tags: ::Array[String]? - type change_detection_type = :exact + def tags=: (::Array[String]) -> ::Array[String] - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum + def initialize: ( + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, + title: String, + url: String, + ?added_url_count: Integer, + ?added_urls: ::Array[String], + ?after_text_excerpt: String, + ?before_text_excerpt: String, + ?confidence: Float, + ?diff: String, + ?evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence], + ?importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance, + ?matched_url_count: Integer, + ?matched_urls: ::Array[String], + ?query: String, + ?removed_url_count: Integer, + ?removed_urls: ::Array[String], + ?tags: ::Array[String] + ) -> void - EXACT: :exact + def to_hash: -> { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::change_detection_type, + detected_at: Time, + mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, + title: String, + url: String, + added_url_count: Integer, + added_urls: ::Array[String], + after_text_excerpt: String, + before_text_excerpt: String, + confidence: Float, + diff: String, + evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence], + importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance, + matched_url_count: Integer, + matched_urls: ::Array[String], + query: String, + removed_url_count: Integer, + removed_urls: ::Array[String], + tags: ::Array[String] + } - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::change_detection_type] - end + type change_detection_type = :exact | :semantic - type target_type = :sitemap - - module TargetType - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange::target_type] - end + module ChangeDetectionType + extend ContextDev::Internal::Type::Enum + + EXACT: :exact + SEMANTIC: :semantic + + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::change_detection_type] end - type monitors_page_semantic_change = - { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsPageSemanticChange < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence] - - attr_accessor importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance - - attr_accessor monitor_id: String - - attr_accessor query: String - - attr_accessor summary: String - - attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance, - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - type change_detection_type = :semantic - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::change_detection_type] - end - - type evidence = { after: String, before: String } - - class Evidence < ContextDev::Internal::Type::BaseModel - attr_accessor after: String + type mode = :web - attr_accessor before: String + module Mode + extend ContextDev::Internal::Type::Enum - def initialize: (after: String, before: String) -> void + WEB: :web - def to_hash: -> { after: String, before: String } - end - - type importance = :low | :medium | :high - - module Importance - extend ContextDev::Internal::Type::Enum - - LOW: :low - MEDIUM: :medium - HIGH: :high - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::importance] - end - - type target_type = :page - - module TargetType - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::mode] end - type monitors_extract_semantic_change = - { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, - matched_url_count: Integer, - matched_urls: ::Array[String], - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - class MonitorsExtractSemanticChange < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type - - attr_accessor confidence: Float - - attr_accessor detected_at: Time - - attr_accessor evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence] - - attr_accessor importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance - - attr_accessor matched_url_count: Integer - - attr_accessor matched_urls: ::Array[String] - - attr_accessor monitor_id: String + type target_type = :page | :sitemap | :extract - attr_accessor query: String + module TargetType + extend ContextDev::Internal::Type::Enum - attr_accessor summary: String + PAGE: :page + SITEMAP: :sitemap + EXTRACT: :extract - attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type - - attr_accessor title: String - - attr_accessor url: String - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - def initialize: ( - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, - matched_url_count: Integer, - matched_urls: ::Array[String], - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, - title: String, - url: String, - ?tags: ::Array[String] - ) -> void - - def to_hash: -> { - id: String, - change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type, - confidence: Float, - detected_at: Time, - evidence: ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::Evidence], - importance: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance, - matched_url_count: Integer, - matched_urls: ::Array[String], - monitor_id: String, - query: String, - summary: String, - target_type: ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type, - title: String, - url: String, - tags: ::Array[String] - } - - type change_detection_type = :semantic - - module ChangeDetectionType - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::change_detection_type] - end - - type evidence = { after: String, before: String, url: String } - - class Evidence < ContextDev::Internal::Type::BaseModel - attr_accessor after: String - - attr_accessor before: String - - attr_reader url: String? + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::target_type] + end - def url=: (String) -> String + type evidence = { after: String, before: String, url: String } - def initialize: (after: String, before: String, ?url: String) -> void + class Evidence < ContextDev::Internal::Type::BaseModel + attr_accessor after: String - def to_hash: -> { after: String, before: String, url: String } - end + attr_accessor before: String - type importance = :low | :medium | :high + attr_reader url: String? - module Importance - extend ContextDev::Internal::Type::Enum + def url=: (String) -> String - LOW: :low - MEDIUM: :medium - HIGH: :high + def initialize: (after: String, before: String, ?url: String) -> void - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::importance] - end + def to_hash: -> { after: String, before: String, url: String } + end - type target_type = :extract + type importance = :low | :medium | :high - module TargetType - extend ContextDev::Internal::Type::Enum + module Importance + extend ContextDev::Internal::Type::Enum - EXTRACT: :extract + LOW: :low + MEDIUM: :medium + HIGH: :high - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange::target_type] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveChangeResponse::importance] end - - def self?.variants: -> ::Array[ContextDev::Models::monitor_retrieve_change_response] end end end diff --git a/sig/context_dev/models/monitor_retrieve_response.rbs b/sig/context_dev/models/monitor_retrieve_response.rbs index 281c80e4..34ca56a3 100644 --- a/sig/context_dev/models/monitor_retrieve_response.rbs +++ b/sig/context_dev/models/monitor_retrieve_response.rbs @@ -1,401 +1,242 @@ module ContextDev module Models type monitor_retrieve_response = - ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor - | ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor - | ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor - | ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor - - module MonitorRetrieveResponse - extend ContextDev::Internal::Type::Union - - type monitors_page_exact_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? - } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Webhook? - } - - type change_detection = - { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::ChangeDetection::type_] - end + { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorRetrieveResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::status, + target: ContextDev::Models::MonitorRetrieveResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? + } + + class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::change_detection + + attr_accessor created_at: Time + + attr_accessor mode: ContextDev::Models::MonitorRetrieveResponse::mode + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule + + attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::status + + attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorRetrieveResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::status, + target: ContextDev::Models::MonitorRetrieveResponse::target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorRetrieveResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::status, + target: ContextDev::Models::MonitorRetrieveResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? + } + + type change_detection = + ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Exact + | ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic + + module ChangeDetection + extend ContextDev::Internal::Type::Union + + type exact = { type: :exact } + + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact + + def initialize: (?type: :exact) -> void + + def to_hash: -> { type: :exact } end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_ + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } - attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_ + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String - attr_accessor url: String + attr_accessor type: :semantic - attr_reader normalize_whitespace: bool? + attr_reader confidence_threshold: Float? - def normalize_whitespace=: (bool) -> bool + def confidence_threshold=: (Float) -> Float def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool + query: String, + ?confidence_threshold: Float, + ?type: :semantic ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool + query: String, + type: :semantic, + confidence_threshold: Float } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + def self?.variants: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::change_detection] + end - attr_reader secret: String? + type mode = :web - def secret=: (String) -> String + module Mode + extend ContextDev::Internal::Type::Enum - def initialize: (url: String, ?secret: String) -> void + WEB: :web - def to_hash: -> { url: String, secret: String } - end + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::mode] end - type monitors_sitemap_exact_monitor = + type schedule = { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::Schedule::unit } - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer - attr_accessor last_run_at: Time? + attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::Schedule::type_ - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::Schedule::unit def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::Schedule::unit ) -> void def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorRetrieveResponse::Schedule::type_, + unit: ContextDev::Models::MonitorRetrieveResponse::Schedule::unit } - type change_detection = - { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } + type type_ = :interval - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum + module Type + extend ContextDev::Internal::Type::Enum - EXACT: :exact + INTERVAL: :interval - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::Schedule::type_] end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + type unit = :minutes | :hours | :days - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer + module Unit + extend ContextDev::Internal::Type::Enum - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_ + MINUTES: :minutes + HOURS: :hours + DAYS: :days - attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::Schedule::unit] + end + end - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit - ) -> void + type status = :active | :paused | :failed - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + module Status + extend ContextDev::Internal::Type::Enum - type type_ = :interval + ACTIVE: :active + PAUSED: :paused + FAILED: :failed - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval + def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::status] + end - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::type_] - end + type target = + ContextDev::Models::MonitorRetrieveResponse::Target::Page + | ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap + | ContextDev::Models::MonitorRetrieveResponse::Target::Extract - type unit = :minutes | :hours | :days + module Target + extend ContextDev::Internal::Type::Union - module Unit - extend ContextDev::Internal::Type::Enum + type page = { type: :page, url: String, normalize_whitespace: bool } - MINUTES: :minutes - HOURS: :hours - DAYS: :days + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Schedule::unit] - end - end + attr_accessor url: String - type status = :active | :paused | :failed + attr_reader normalize_whitespace: bool? - module Status - extend ContextDev::Internal::Type::Enum + def normalize_whitespace=: (bool) -> bool - ACTIVE: :active - PAUSED: :paused - FAILED: :failed + def initialize: ( + url: String, + ?normalize_whitespace: bool, + ?type: :page + ) -> void - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::status] + def to_hash: -> { + type: :page, + url: String, + normalize_whitespace: bool + } end - type target = + type sitemap = { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_ + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap attr_accessor url: String @@ -412,450 +253,25 @@ module ContextDev def max_urls=: (Integer) -> Integer def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, url: String, ?exclude: ::Array[String], ?include: ::Array[String], - ?max_urls: Integer + ?max_urls: Integer, + ?type: :sitemap ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - - type type_ = :sitemap - - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_page_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? - } - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Webhook? - } - - type change_detection = + type extract = { - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_ - - attr_accessor url: String - - attr_reader normalize_whitespace: bool? - - def normalize_whitespace=: (bool) -> bool - - def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor::Target::type_] - end - end - - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_extract_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -864,8 +280,8 @@ module ContextDev schema: ::Hash[Symbol, top] } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_ + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract attr_accessor url: String @@ -890,17 +306,17 @@ module ContextDev def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] def initialize: ( - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, url: String, ?follow_subdomains: bool, ?instructions: String, ?max_depth: Integer, ?max_pages: Integer, - ?schema: ::Hash[Symbol, top] + ?schema: ::Hash[Symbol, top], + ?type: :extract ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -908,34 +324,24 @@ module ContextDev max_pages: Integer, schema: ::Hash[Symbol, top] } - - type type_ = :extract - - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT: :extract - - def self?.values: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } + def self?.variants: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::target] + end - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + type webhook = { url: String, secret: String } - attr_reader secret: String? + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String - def secret=: (String) -> String + attr_reader secret: String? - def initialize: (url: String, ?secret: String) -> void + def secret=: (String) -> String - def to_hash: -> { url: String, secret: String } - end - end + def initialize: (url: String, ?secret: String) -> void - def self?.variants: -> ::Array[ContextDev::Models::monitor_retrieve_response] + def to_hash: -> { url: String, secret: String } + end end end end diff --git a/sig/context_dev/models/monitor_update_response.rbs b/sig/context_dev/models/monitor_update_response.rbs index ef4ca0ed..ba170dad 100644 --- a/sig/context_dev/models/monitor_update_response.rbs +++ b/sig/context_dev/models/monitor_update_response.rbs @@ -1,401 +1,242 @@ module ContextDev module Models type monitor_update_response = - ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor - | ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor - | ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor - | ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor - - module MonitorUpdateResponse - extend ContextDev::Internal::Type::Union - - type monitors_page_exact_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? - } - - class MonitorsPageExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Webhook? - } - - type change_detection = - { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_ - } - - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum - - EXACT: :exact - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::ChangeDetection::type_] - end + { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::status, + target: ContextDev::Models::MonitorUpdateResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? + } + + class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::change_detection + + attr_accessor created_at: Time + + attr_accessor mode: ContextDev::Models::MonitorUpdateResponse::mode + + attr_accessor name: String + + attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::Schedule + + attr_accessor status: ContextDev::Models::MonitorUpdateResponse::status + + attr_accessor target: ContextDev::Models::MonitorUpdateResponse::target + + attr_accessor updated_at: Time + + attr_accessor last_change_at: Time? + + attr_accessor last_run_at: Time? + + attr_reader tags: ::Array[String]? + + def tags=: (::Array[String]) -> ::Array[String] + + attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? + + def initialize: ( + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::status, + target: ContextDev::Models::MonitorUpdateResponse::target, + updated_at: Time, + ?last_change_at: Time?, + ?last_run_at: Time?, + ?tags: ::Array[String], + ?webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? + ) -> void + + def to_hash: -> { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::change_detection, + created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::mode, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::status, + target: ContextDev::Models::MonitorUpdateResponse::target, + updated_at: Time, + last_change_at: Time?, + last_run_at: Time?, + tags: ::Array[String], + webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? + } + + type change_detection = + ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Exact + | ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic + + module ChangeDetection + extend ContextDev::Internal::Type::Union + + type exact = { type: :exact } + + class Exact < ContextDev::Internal::Type::BaseModel + attr_accessor type: :exact + + def initialize: (?type: :exact) -> void + + def to_hash: -> { type: :exact } end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_ + type semantic = + { query: String, type: :semantic, confidence_threshold: Float } - attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_ + class Semantic < ContextDev::Internal::Type::BaseModel + attr_accessor query: String - attr_accessor url: String + attr_accessor type: :semantic - attr_reader normalize_whitespace: bool? + attr_reader confidence_threshold: Float? - def normalize_whitespace=: (bool) -> bool + def confidence_threshold=: (Float) -> Float def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool + query: String, + ?confidence_threshold: Float, + ?type: :semantic ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_, - url: String, - normalize_whitespace: bool + query: String, + type: :semantic, + confidence_threshold: Float } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + def self?.variants: -> ::Array[ContextDev::Models::MonitorUpdateResponse::change_detection] + end - attr_reader secret: String? + type mode = :web - def secret=: (String) -> String + module Mode + extend ContextDev::Internal::Type::Enum - def initialize: (url: String, ?secret: String) -> void + WEB: :web - def to_hash: -> { url: String, secret: String } - end + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::mode] end - type monitors_sitemap_exact_monitor = + type schedule = { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::Schedule::unit } - class MonitorsSitemapExactMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status - - attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? + class Schedule < ContextDev::Internal::Type::BaseModel + attr_accessor frequency: Integer - attr_accessor last_run_at: Time? + attr_accessor type: ContextDev::Models::MonitorUpdateResponse::Schedule::type_ - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::Schedule::unit def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::Schedule::unit ) -> void def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Webhook? + frequency: Integer, + type: ContextDev::Models::MonitorUpdateResponse::Schedule::type_, + unit: ContextDev::Models::MonitorUpdateResponse::Schedule::unit } - type change_detection = - { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - - def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_ - } + type type_ = :interval - type type_ = :exact - - module Type - extend ContextDev::Internal::Type::Enum + module Type + extend ContextDev::Internal::Type::Enum - EXACT: :exact + INTERVAL: :interval - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::ChangeDetection::type_] - end + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::Schedule::type_] end - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + type unit = :minutes | :hours | :days - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer + module Unit + extend ContextDev::Internal::Type::Enum - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_ + MINUTES: :minutes + HOURS: :hours + DAYS: :days - attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::Schedule::unit] + end + end - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit - ) -> void + type status = :active | :paused | :failed - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit - } + module Status + extend ContextDev::Internal::Type::Enum - type type_ = :interval + ACTIVE: :active + PAUSED: :paused + FAILED: :failed - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval + def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::status] + end - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::type_] - end + type target = + ContextDev::Models::MonitorUpdateResponse::Target::Page + | ContextDev::Models::MonitorUpdateResponse::Target::Sitemap + | ContextDev::Models::MonitorUpdateResponse::Target::Extract - type unit = :minutes | :hours | :days + module Target + extend ContextDev::Internal::Type::Union - module Unit - extend ContextDev::Internal::Type::Enum + type page = { type: :page, url: String, normalize_whitespace: bool } - MINUTES: :minutes - HOURS: :hours - DAYS: :days + class Page < ContextDev::Internal::Type::BaseModel + attr_accessor type: :page - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Schedule::unit] - end - end + attr_accessor url: String - type status = :active | :paused | :failed + attr_reader normalize_whitespace: bool? - module Status - extend ContextDev::Internal::Type::Enum + def normalize_whitespace=: (bool) -> bool - ACTIVE: :active - PAUSED: :paused - FAILED: :failed + def initialize: ( + url: String, + ?normalize_whitespace: bool, + ?type: :page + ) -> void - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::status] + def to_hash: -> { + type: :page, + url: String, + normalize_whitespace: bool + } end - type target = + type sitemap = { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_ + class Sitemap < ContextDev::Internal::Type::BaseModel + attr_accessor type: :sitemap attr_accessor url: String @@ -412,450 +253,25 @@ module ContextDev def max_urls=: (Integer) -> Integer def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, url: String, ?exclude: ::Array[String], ?include: ::Array[String], - ?max_urls: Integer + ?max_urls: Integer, + ?type: :sitemap ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_, + type: :sitemap, url: String, exclude: ::Array[String], include: ::Array[String], max_urls: Integer } - - type type_ = :sitemap - - module Type - extend ContextDev::Internal::Type::Enum - - SITEMAP: :sitemap - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_page_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? - } - - class MonitorsPageSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Webhook? - } - - type change_detection = + type extract = { - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_ - - attr_accessor url: String - - attr_reader normalize_whitespace: bool? - - def normalize_whitespace=: (bool) -> bool - - def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - ?normalize_whitespace: bool - ) -> void - - def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_, - url: String, - normalize_whitespace: bool - } - - type type_ = :page - - module Type - extend ContextDev::Internal::Type::Enum - - PAGE: :page - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor::Target::type_] - end - end - - type webhook = { url: String, secret: String } - - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String - - attr_reader secret: String? - - def secret=: (String) -> String - - def initialize: (url: String, ?secret: String) -> void - - def to_hash: -> { url: String, secret: String } - end - end - - type monitors_extract_semantic_monitor = - { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - class MonitorsExtractSemanticMonitor < ContextDev::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection - - attr_accessor created_at: Time - - attr_accessor name: String - - attr_accessor schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule - - attr_accessor status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status - - attr_accessor target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target - - attr_accessor updated_at: Time - - attr_accessor last_change_at: Time? - - attr_accessor last_run_at: Time? - - attr_reader tags: ::Array[String]? - - def tags=: (::Array[String]) -> ::Array[String] - - attr_accessor webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? - - def initialize: ( - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - ?last_change_at: Time?, - ?last_run_at: Time?, - ?tags: ::Array[String], - ?webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? - ) -> void - - def to_hash: -> { - id: String, - change_detection: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection, - created_at: Time, - name: String, - schedule: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule, - status: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status, - target: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target, - updated_at: Time, - last_change_at: Time?, - last_run_at: Time?, - tags: ::Array[String], - webhook: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Webhook? - } - - type change_detection = - { - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - class ChangeDetection < ContextDev::Internal::Type::BaseModel - attr_accessor query: String - - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_ - - attr_reader confidence_threshold: Float? - - def confidence_threshold=: (Float) -> Float - - def initialize: ( - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - ?confidence_threshold: Float - ) -> void - - def to_hash: -> { - query: String, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_, - confidence_threshold: Float - } - - type type_ = :semantic - - module Type - extend ContextDev::Internal::Type::Enum - - SEMANTIC: :semantic - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::ChangeDetection::type_] - end - end - - type schedule = - { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - class Schedule < ContextDev::Internal::Type::BaseModel - attr_accessor frequency: Integer - - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_ - - attr_accessor unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - - def initialize: ( - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - ) -> void - - def to_hash: -> { - frequency: Integer, - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_, - unit: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit - } - - type type_ = :interval - - module Type - extend ContextDev::Internal::Type::Enum - - INTERVAL: :interval - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::type_] - end - - type unit = :minutes | :hours | :days - - module Unit - extend ContextDev::Internal::Type::Enum - - MINUTES: :minutes - HOURS: :hours - DAYS: :days - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Schedule::unit] - end - end - - type status = :active | :paused | :failed - - module Status - extend ContextDev::Internal::Type::Enum - - ACTIVE: :active - PAUSED: :paused - FAILED: :failed - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::status] - end - - type target = - { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -864,8 +280,8 @@ module ContextDev schema: ::Hash[Symbol, top] } - class Target < ContextDev::Internal::Type::BaseModel - attr_accessor type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_ + class Extract < ContextDev::Internal::Type::BaseModel + attr_accessor type: :extract attr_accessor url: String @@ -890,17 +306,17 @@ module ContextDev def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top] def initialize: ( - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, url: String, ?follow_subdomains: bool, ?instructions: String, ?max_depth: Integer, ?max_pages: Integer, - ?schema: ::Hash[Symbol, top] + ?schema: ::Hash[Symbol, top], + ?type: :extract ) -> void def to_hash: -> { - type: ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_, + type: :extract, url: String, follow_subdomains: bool, instructions: String, @@ -908,34 +324,24 @@ module ContextDev max_pages: Integer, schema: ::Hash[Symbol, top] } - - type type_ = :extract - - module Type - extend ContextDev::Internal::Type::Enum - - EXTRACT: :extract - - def self?.values: -> ::Array[ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor::Target::type_] - end end - type webhook = { url: String, secret: String } + def self?.variants: -> ::Array[ContextDev::Models::MonitorUpdateResponse::target] + end - class Webhook < ContextDev::Internal::Type::BaseModel - attr_accessor url: String + type webhook = { url: String, secret: String } - attr_reader secret: String? + class Webhook < ContextDev::Internal::Type::BaseModel + attr_accessor url: String - def secret=: (String) -> String + attr_reader secret: String? - def initialize: (url: String, ?secret: String) -> void + def secret=: (String) -> String - def to_hash: -> { url: String, secret: String } - end - end + def initialize: (url: String, ?secret: String) -> void - def self?.variants: -> ::Array[ContextDev::Models::monitor_update_response] + def to_hash: -> { url: String, secret: String } + end end end end diff --git a/sig/context_dev/resources/monitors.rbs b/sig/context_dev/resources/monitors.rbs index aa56bd71..62c1ed9a 100644 --- a/sig/context_dev/resources/monitors.rbs +++ b/sig/context_dev/resources/monitors.rbs @@ -2,14 +2,20 @@ module ContextDev module Resources class Monitors def create: ( - body: ContextDev::Models::MonitorCreateParams::body, + change_detection: ContextDev::Models::MonitorCreateParams::change_detection, + name: String, + schedule: ContextDev::MonitorCreateParams::Schedule, + target: ContextDev::Models::MonitorCreateParams::target, + ?mode: ContextDev::Models::MonitorCreateParams::mode, + ?tags: ::Array[String], + ?webhook: ContextDev::MonitorCreateParams::Webhook?, ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::monitor_create_response + ) -> ContextDev::Models::MonitorCreateResponse def retrieve: ( String monitor_id, ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::monitor_retrieve_response + ) -> ContextDev::Models::MonitorRetrieveResponse def update: ( String monitor_id, @@ -21,14 +27,18 @@ module ContextDev ?target: ContextDev::Models::MonitorUpdateParams::target, ?webhook: ContextDev::MonitorUpdateParams::Webhook?, ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::monitor_update_response + ) -> ContextDev::Models::MonitorUpdateResponse def list: ( ?change_detection_type: ContextDev::Models::MonitorListParams::change_detection_type, ?cursor: String, ?limit: Integer, + ?q: String, + ?search_by: ::Array[ContextDev::Models::MonitorListParams::search_by], + ?search_type: ContextDev::Models::MonitorListParams::search_type, ?status: ContextDev::Models::MonitorListParams::status, ?tag: String, + ?tags: ::Array[String], ?target_type: ContextDev::Models::MonitorListParams::target_type, ?request_options: ContextDev::request_opts ) -> ContextDev::Models::MonitorListResponse @@ -78,7 +88,7 @@ module ContextDev def retrieve_change: ( String change_id, ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::monitor_retrieve_change_response + ) -> ContextDev::Models::MonitorRetrieveChangeResponse def run: ( String monitor_id, diff --git a/test/context_dev/resources/monitors_test.rb b/test/context_dev/resources/monitors_test.rb index ebb8e3c6..a8c00ecc 100644 --- a/test/context_dev/resources/monitors_test.rb +++ b/test/context_dev/resources/monitors_test.rb @@ -8,12 +8,10 @@ def test_create_required_params response = @context_dev.monitors.create( - body: { - change_detection: {type: :exact}, - name: "Acme pricing page", - schedule: {frequency: 6, type: :interval, unit: :hours}, - target: {type: :page, url: "https://acme.com/pricing"} - } + change_detection: {type: :exact}, + name: "Acme pricing page", + schedule: {frequency: 6, type: :interval, unit: :hours}, + target: {type: :page, url: "https://acme.com/pricing"} ) assert_pattern do @@ -21,12 +19,21 @@ def test_create_required_params end assert_pattern do - case response - in ContextDev::Models::MonitorCreateResponse::MonitorsPageExactMonitor - in ContextDev::Models::MonitorCreateResponse::MonitorsSitemapExactMonitor - in ContextDev::Models::MonitorCreateResponse::MonitorsPageSemanticMonitor - in ContextDev::Models::MonitorCreateResponse::MonitorsExtractSemanticMonitor - end + response => { + id: String, + change_detection: ContextDev::Models::MonitorCreateResponse::ChangeDetection, + created_at: Time, + mode: ContextDev::Models::MonitorCreateResponse::Mode, + name: String, + schedule: ContextDev::Models::MonitorCreateResponse::Schedule, + status: ContextDev::Models::MonitorCreateResponse::Status, + target: ContextDev::Models::MonitorCreateResponse::Target, + updated_at: Time, + last_change_at: Time | nil, + last_run_at: Time | nil, + tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + webhook: ContextDev::Models::MonitorCreateResponse::Webhook | nil + } end end @@ -40,12 +47,21 @@ def test_retrieve end assert_pattern do - case response - in ContextDev::Models::MonitorRetrieveResponse::MonitorsPageExactMonitor - in ContextDev::Models::MonitorRetrieveResponse::MonitorsSitemapExactMonitor - in ContextDev::Models::MonitorRetrieveResponse::MonitorsPageSemanticMonitor - in ContextDev::Models::MonitorRetrieveResponse::MonitorsExtractSemanticMonitor - end + response => { + id: String, + change_detection: ContextDev::Models::MonitorRetrieveResponse::ChangeDetection, + created_at: Time, + mode: ContextDev::Models::MonitorRetrieveResponse::Mode, + name: String, + schedule: ContextDev::Models::MonitorRetrieveResponse::Schedule, + status: ContextDev::Models::MonitorRetrieveResponse::Status, + target: ContextDev::Models::MonitorRetrieveResponse::Target, + updated_at: Time, + last_change_at: Time | nil, + last_run_at: Time | nil, + tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook | nil + } end end @@ -59,12 +75,21 @@ def test_update end assert_pattern do - case response - in ContextDev::Models::MonitorUpdateResponse::MonitorsPageExactMonitor - in ContextDev::Models::MonitorUpdateResponse::MonitorsSitemapExactMonitor - in ContextDev::Models::MonitorUpdateResponse::MonitorsPageSemanticMonitor - in ContextDev::Models::MonitorUpdateResponse::MonitorsExtractSemanticMonitor - end + response => { + id: String, + change_detection: ContextDev::Models::MonitorUpdateResponse::ChangeDetection, + created_at: Time, + mode: ContextDev::Models::MonitorUpdateResponse::Mode, + name: String, + schedule: ContextDev::Models::MonitorUpdateResponse::Schedule, + status: ContextDev::Models::MonitorUpdateResponse::Status, + target: ContextDev::Models::MonitorUpdateResponse::Target, + updated_at: Time, + last_change_at: Time | nil, + last_run_at: Time | nil, + tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + webhook: ContextDev::Models::MonitorUpdateResponse::Webhook | nil + } end end @@ -79,7 +104,7 @@ def test_list assert_pattern do response => { - data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListResponse::Data]), + data: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListResponse::Data]), has_more: ContextDev::Internal::Type::Boolean, next_cursor: String | nil } @@ -114,7 +139,7 @@ def test_list_account_changes assert_pattern do response => { - data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListAccountChangesResponse::Data]), + data: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountChangesResponse::Data]), has_more: ContextDev::Internal::Type::Boolean, next_cursor: String | nil } @@ -150,7 +175,7 @@ def test_list_changes assert_pattern do response => { - data: ^(ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::MonitorListChangesResponse::Data]), + data: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListChangesResponse::Data]), has_more: ContextDev::Internal::Type::Boolean, next_cursor: String | nil } @@ -185,12 +210,31 @@ def test_retrieve_change end assert_pattern do - case response - in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageExactChange - in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsSitemapExactChange - in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsPageSemanticChange - in ContextDev::Models::MonitorRetrieveChangeResponse::MonitorsExtractSemanticChange - end + response => { + id: String, + change_detection_type: ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType, + detected_at: Time, + mode: ContextDev::Models::MonitorRetrieveChangeResponse::Mode, + monitor_id: String, + summary: String, + target_type: ContextDev::Models::MonitorRetrieveChangeResponse::TargetType, + title: String, + url: String, + added_url_count: Integer | nil, + added_urls: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + after_text_excerpt: String | nil, + before_text_excerpt: String | nil, + confidence: Float | nil, + diff: String | nil, + evidence: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence]) | nil, + importance: ContextDev::Models::MonitorRetrieveChangeResponse::Importance | nil, + matched_url_count: Integer | nil, + matched_urls: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + query: String | nil, + removed_url_count: Integer | nil, + removed_urls: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, + tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil + } end end From 8b73d53426ce571223386b1decabcb0bf58eaa37 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:04:42 +0000 Subject: [PATCH 04/19] chore(internal): bound formatter parallelism to CPU count --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 0da587aa..b0eba1ac 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "etc" require "pathname" require "securerandom" require "shellwords" @@ -37,7 +38,11 @@ multitask(:test) do ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 } end -xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] +# Cap parallelism at the CPU count. `--max-procs=0` spawns one process per +# 300-file batch with no upper bound; on large SDKs (thousands of files) that +# oversubscribes CPUs and stacks up rubocop processes, exhausting memory and +# slowing CI to the point of timing out. +xargs = %W[xargs --no-run-if-empty --null --max-procs=#{Etc.nprocessors} --max-args=300 --] ruby_opt = {"RUBYOPT" => [ENV["RUBYOPT"], "--encoding=UTF-8"].compact.join(" ")} filtered = ->(ext, dirs) do From d71fbde94bc39245091db193f120fa383efea82f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 03:56:14 +0000 Subject: [PATCH 05/19] feat(api): api update --- .stats.yml | 4 ++-- lib/context_dev/models/web_web_crawl_md_params.rb | 12 +++++++++++- .../models/web_web_scrape_html_params.rb | 12 +++++++++++- .../models/web_web_scrape_md_params.rb | 12 +++++++++++- lib/context_dev/resources/web.rb | 14 +++++++++++--- .../models/web_web_crawl_md_params.rbi | 15 +++++++++++++++ .../models/web_web_scrape_html_params.rbi | 15 +++++++++++++++ .../models/web_web_scrape_md_params.rbi | 15 +++++++++++++++ rbi/context_dev/resources/web.rbi | 15 +++++++++++++++ .../models/web_web_crawl_md_params.rbs | 7 +++++++ .../models/web_web_scrape_html_params.rbs | 7 +++++++ .../models/web_web_scrape_md_params.rbs | 7 +++++++ sig/context_dev/resources/web.rbs | 3 +++ 13 files changed, 130 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0115b3b5..f52ab5d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-66a3bf68b47ba61c9b61406d36f614a079ff752b8964a8df8062e485391d5598.yml -openapi_spec_hash: b17d6cfe3710dd0605078f3907a1a419 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d71b08e421ccdda9a2754c307e97df0ee7444926306a00624dca2bc7d56548ac.yml +openapi_spec_hash: ebfbed20b5837ccf8db8bb40ab23baac config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/web_web_crawl_md_params.rb b/lib/context_dev/models/web_web_crawl_md_params.rb index 85c47967..d7ea5861 100644 --- a/lib/context_dev/models/web_web_crawl_md_params.rb +++ b/lib/context_dev/models/web_web_crawl_md_params.rb @@ -92,6 +92,14 @@ class WebWebCrawlMdParams < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::WebWebCrawlMdParams::Pdf, nil] optional :pdf, -> { ContextDev::WebWebCrawlMdParams::Pdf } + # @!attribute settle_animations + # When true, waits briefly for CSS and transition animations to settle before + # extracting each crawled page. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + # + # @return [Boolean, nil] + optional :settle_animations, ContextDev::Internal::Type::Boolean, api_name: :settleAnimations + # @!attribute shorten_base64_images # Truncate base64-encoded image data in the Markdown output # @@ -135,7 +143,7 @@ class WebWebCrawlMdParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :wait_for_ms, Integer, api_name: :waitForMs - # @!method initialize(url:, country: nil, exclude_selectors: nil, follow_subdomains: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, shorten_base64_images: nil, stop_after_ms: nil, timeout_ms: nil, url_regex: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @!method initialize(url:, country: nil, exclude_selectors: nil, follow_subdomains: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, settle_animations: nil, shorten_base64_images: nil, stop_after_ms: nil, timeout_ms: nil, url_regex: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::WebWebCrawlMdParams} for more details. # @@ -163,6 +171,8 @@ class WebWebCrawlMdParams < ContextDev::Internal::Type::BaseModel # # @param pdf [ContextDev::Models::WebWebCrawlMdParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before extr + # # @param shorten_base64_images [Boolean] Truncate base64-encoded image data in the Markdown output # # @param stop_after_ms [Integer] Soft time budget for the crawl in milliseconds. After each scrape, the crawler c diff --git a/lib/context_dev/models/web_web_scrape_html_params.rb b/lib/context_dev/models/web_web_scrape_html_params.rb index ef9b5ac0..c0af65a7 100644 --- a/lib/context_dev/models/web_web_scrape_html_params.rb +++ b/lib/context_dev/models/web_web_scrape_html_params.rb @@ -65,6 +65,14 @@ class WebWebScrapeHTMLParams < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::WebWebScrapeHTMLParams::Pdf, nil] optional :pdf, -> { ContextDev::WebWebScrapeHTMLParams::Pdf } + # @!attribute settle_animations + # When true, waits briefly for CSS and transition animations to settle before + # extracting HTML. Defaults to false. This adds a bit of latency in exchange for + # more stable output on animated pages. + # + # @return [Boolean, nil] + optional :settle_animations, ContextDev::Internal::Type::Boolean + # @!attribute timeout_ms # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed @@ -87,7 +95,7 @@ class WebWebScrapeHTMLParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :wait_for_ms, Integer - # @!method initialize(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @!method initialize(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, settle_animations: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::WebWebScrapeHTMLParams} for more details. # @@ -107,6 +115,8 @@ class WebWebScrapeHTMLParams < ContextDev::Internal::Type::BaseModel # # @param pdf [ContextDev::Models::WebWebScrapeHTMLParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before extr + # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # # @param use_main_content_only [Boolean] When true, return only the page's main content in the HTML response, excluding h diff --git a/lib/context_dev/models/web_web_scrape_md_params.rb b/lib/context_dev/models/web_web_scrape_md_params.rb index e5966e52..4f01f269 100644 --- a/lib/context_dev/models/web_web_scrape_md_params.rb +++ b/lib/context_dev/models/web_web_scrape_md_params.rb @@ -78,6 +78,14 @@ class WebWebScrapeMdParams < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::WebWebScrapeMdParams::Pdf, nil] optional :pdf, -> { ContextDev::WebWebScrapeMdParams::Pdf } + # @!attribute settle_animations + # When true, waits briefly for CSS and transition animations to settle before + # converting to Markdown. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + # + # @return [Boolean, nil] + optional :settle_animations, ContextDev::Internal::Type::Boolean + # @!attribute shorten_base64_images # Shorten base64-encoded image data in the Markdown output # @@ -106,7 +114,7 @@ class WebWebScrapeMdParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :wait_for_ms, Integer - # @!method initialize(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, shorten_base64_images: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @!method initialize(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, settle_animations: nil, shorten_base64_images: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::WebWebScrapeMdParams} for more details. # @@ -130,6 +138,8 @@ class WebWebScrapeMdParams < ContextDev::Internal::Type::BaseModel # # @param pdf [ContextDev::Models::WebWebScrapeMdParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before conv + # # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th diff --git a/lib/context_dev/resources/web.rb b/lib/context_dev/resources/web.rb index cc74c37d..e2b08503 100644 --- a/lib/context_dev/resources/web.rb +++ b/lib/context_dev/resources/web.rb @@ -265,7 +265,7 @@ def search(params) # Performs a crawl starting from a given URL, extracts page content as Markdown, # and returns results for all crawled pages. # - # @overload web_crawl_md(url:, country: nil, exclude_selectors: nil, follow_subdomains: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, shorten_base64_images: nil, stop_after_ms: nil, timeout_ms: nil, url_regex: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @overload web_crawl_md(url:, country: nil, exclude_selectors: nil, follow_subdomains: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, settle_animations: nil, shorten_base64_images: nil, stop_after_ms: nil, timeout_ms: nil, url_regex: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # # @param url [String] The starting URL for the crawl (must include http:// or https:// protocol) # @@ -291,6 +291,8 @@ def search(params) # # @param pdf [ContextDev::Models::WebWebCrawlMdParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before extr + # # @param shorten_base64_images [Boolean] Truncate base64-encoded image data in the Markdown output # # @param stop_after_ms [Integer] Soft time budget for the crawl in milliseconds. After each scrape, the crawler c @@ -324,7 +326,7 @@ def web_crawl_md(params) # # Scrapes the given URL and returns the raw HTML content of the page. # - # @overload web_scrape_html(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @overload web_scrape_html(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, settle_animations: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # # @param url [String] Full URL to scrape (must include http:// or https:// protocol) # @@ -342,6 +344,8 @@ def web_crawl_md(params) # # @param pdf [ContextDev::Models::WebWebScrapeHTMLParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before extr + # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # # @param use_main_content_only [Boolean] When true, return only the page's main content in the HTML response, excluding h @@ -364,6 +368,7 @@ def web_scrape_html(params) include_frames: "includeFrames", include_selectors: "includeSelectors", max_age_ms: "maxAgeMs", + settle_animations: "settleAnimations", timeout_ms: "timeoutMS", use_main_content_only: "useMainContentOnly", wait_for_ms: "waitForMs" @@ -421,7 +426,7 @@ def web_scrape_images(params) # # Scrapes the given URL into LLM usable Markdown. # - # @overload web_scrape_md(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, shorten_base64_images: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) + # @overload web_scrape_md(url:, country: nil, exclude_selectors: nil, headers: nil, include_frames: nil, include_images: nil, include_links: nil, include_selectors: nil, max_age_ms: nil, pdf: nil, settle_animations: nil, shorten_base64_images: nil, timeout_ms: nil, use_main_content_only: nil, wait_for_ms: nil, request_options: {}) # # @param url [String] Full URL to scrape into LLM usable Markdown (must include http:// or https:// pr # @@ -443,6 +448,8 @@ def web_scrape_images(params) # # @param pdf [ContextDev::Models::WebWebScrapeMdParams::Pdf] PDF parsing controls. Use start/end to limit text extraction and OCR to an inclu # + # @param settle_animations [Boolean] When true, waits briefly for CSS and transition animations to settle before conv + # # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th @@ -469,6 +476,7 @@ def web_scrape_md(params) include_links: "includeLinks", include_selectors: "includeSelectors", max_age_ms: "maxAgeMs", + settle_animations: "settleAnimations", shorten_base64_images: "shortenBase64Images", timeout_ms: "timeoutMS", use_main_content_only: "useMainContentOnly", diff --git a/rbi/context_dev/models/web_web_crawl_md_params.rbi b/rbi/context_dev/models/web_web_crawl_md_params.rbi index a68ae1bf..86ce4594 100644 --- a/rbi/context_dev/models/web_web_crawl_md_params.rbi +++ b/rbi/context_dev/models/web_web_crawl_md_params.rbi @@ -109,6 +109,15 @@ module ContextDev sig { params(pdf: ContextDev::WebWebCrawlMdParams::Pdf::OrHash).void } attr_writer :pdf + # When true, waits briefly for CSS and transition animations to settle before + # extracting each crawled page. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :settle_animations + + sig { params(settle_animations: T::Boolean).void } + attr_writer :settle_animations + # Truncate base64-encoded image data in the Markdown output sig { returns(T.nilable(T::Boolean)) } attr_reader :shorten_base64_images @@ -172,6 +181,7 @@ module ContextDev max_depth: Integer, max_pages: Integer, pdf: ContextDev::WebWebCrawlMdParams::Pdf::OrHash, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, stop_after_ms: Integer, timeout_ms: Integer, @@ -219,6 +229,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # extracting each crawled page. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + settle_animations: nil, # Truncate base64-encoded image data in the Markdown output shorten_base64_images: nil, # Soft time budget for the crawl in milliseconds. After each scrape, the crawler @@ -257,6 +271,7 @@ module ContextDev max_depth: Integer, max_pages: Integer, pdf: ContextDev::WebWebCrawlMdParams::Pdf, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, stop_after_ms: Integer, timeout_ms: Integer, diff --git a/rbi/context_dev/models/web_web_scrape_html_params.rbi b/rbi/context_dev/models/web_web_scrape_html_params.rbi index eecce6e0..582cfc3f 100644 --- a/rbi/context_dev/models/web_web_scrape_html_params.rbi +++ b/rbi/context_dev/models/web_web_scrape_html_params.rbi @@ -85,6 +85,15 @@ module ContextDev sig { params(pdf: ContextDev::WebWebScrapeHTMLParams::Pdf::OrHash).void } attr_writer :pdf + # When true, waits briefly for CSS and transition animations to settle before + # extracting HTML. Defaults to false. This adds a bit of latency in exchange for + # more stable output on animated pages. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :settle_animations + + sig { params(settle_animations: T::Boolean).void } + attr_writer :settle_animations + # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -120,6 +129,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeHTMLParams::Pdf::OrHash, + settle_animations: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, wait_for_ms: Integer, @@ -153,6 +163,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # extracting HTML. Defaults to false. This adds a bit of latency in exchange for + # more stable output on animated pages. + settle_animations: nil, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -178,6 +192,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeHTMLParams::Pdf, + settle_animations: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, wait_for_ms: Integer, diff --git a/rbi/context_dev/models/web_web_scrape_md_params.rbi b/rbi/context_dev/models/web_web_scrape_md_params.rbi index b42be75a..eb9767da 100644 --- a/rbi/context_dev/models/web_web_scrape_md_params.rbi +++ b/rbi/context_dev/models/web_web_scrape_md_params.rbi @@ -95,6 +95,15 @@ module ContextDev sig { params(pdf: ContextDev::WebWebScrapeMdParams::Pdf::OrHash).void } attr_writer :pdf + # When true, waits briefly for CSS and transition animations to settle before + # converting to Markdown. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :settle_animations + + sig { params(settle_animations: T::Boolean).void } + attr_writer :settle_animations + # Shorten base64-encoded image data in the Markdown output sig { returns(T.nilable(T::Boolean)) } attr_reader :shorten_base64_images @@ -139,6 +148,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeMdParams::Pdf::OrHash, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, @@ -178,6 +188,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # converting to Markdown. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + settle_animations: nil, # Shorten base64-encoded image data in the Markdown output shorten_base64_images: nil, # Optional timeout in milliseconds for the request. If the request takes longer @@ -207,6 +221,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeMdParams::Pdf, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, diff --git a/rbi/context_dev/resources/web.rbi b/rbi/context_dev/resources/web.rbi index 082aa353..fd411954 100644 --- a/rbi/context_dev/resources/web.rbi +++ b/rbi/context_dev/resources/web.rbi @@ -299,6 +299,7 @@ module ContextDev max_depth: Integer, max_pages: Integer, pdf: ContextDev::WebWebCrawlMdParams::Pdf::OrHash, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, stop_after_ms: Integer, timeout_ms: Integer, @@ -346,6 +347,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # extracting each crawled page. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + settle_animations: nil, # Truncate base64-encoded image data in the Markdown output shorten_base64_images: nil, # Soft time budget for the crawl in milliseconds. After each scrape, the crawler @@ -380,6 +385,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeHTMLParams::Pdf::OrHash, + settle_animations: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, wait_for_ms: Integer, @@ -413,6 +419,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # extracting HTML. Defaults to false. This adds a bit of latency in exchange for + # more stable output on animated pages. + settle_animations: nil, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -479,6 +489,7 @@ module ContextDev include_selectors: T::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeMdParams::Pdf::OrHash, + settle_animations: T::Boolean, shorten_base64_images: T::Boolean, timeout_ms: Integer, use_main_content_only: T::Boolean, @@ -518,6 +529,10 @@ module ContextDev # PDF parsing controls. Use start/end to limit text extraction and OCR to an # inclusive 1-based page range. pdf: nil, + # When true, waits briefly for CSS and transition animations to settle before + # converting to Markdown. Defaults to false. This adds a bit of latency in + # exchange for more stable output on animated pages. + settle_animations: nil, # Shorten base64-encoded image data in the Markdown output shorten_base64_images: nil, # Optional timeout in milliseconds for the request. If the request takes longer diff --git a/sig/context_dev/models/web_web_crawl_md_params.rbs b/sig/context_dev/models/web_web_crawl_md_params.rbs index 9d9e217a..63117d94 100644 --- a/sig/context_dev/models/web_web_crawl_md_params.rbs +++ b/sig/context_dev/models/web_web_crawl_md_params.rbs @@ -14,6 +14,7 @@ module ContextDev max_depth: Integer, max_pages: Integer, pdf: ContextDev::WebWebCrawlMdParams::Pdf, + settle_animations: bool, :shorten_base64_images => bool, stop_after_ms: Integer, timeout_ms: Integer, @@ -77,6 +78,10 @@ module ContextDev ContextDev::WebWebCrawlMdParams::Pdf ) -> ContextDev::WebWebCrawlMdParams::Pdf + attr_reader settle_animations: bool? + + def settle_animations=: (bool) -> bool + attr_reader shorten_base64_images: bool? def shorten_base64_images=: (bool) -> bool @@ -114,6 +119,7 @@ module ContextDev ?max_depth: Integer, ?max_pages: Integer, ?pdf: ContextDev::WebWebCrawlMdParams::Pdf, + ?settle_animations: bool, ?shorten_base64_images: bool, ?stop_after_ms: Integer, ?timeout_ms: Integer, @@ -136,6 +142,7 @@ module ContextDev max_depth: Integer, max_pages: Integer, pdf: ContextDev::WebWebCrawlMdParams::Pdf, + settle_animations: bool, :shorten_base64_images => bool, stop_after_ms: Integer, timeout_ms: Integer, diff --git a/sig/context_dev/models/web_web_scrape_html_params.rbs b/sig/context_dev/models/web_web_scrape_html_params.rbs index c176c854..d059dc72 100644 --- a/sig/context_dev/models/web_web_scrape_html_params.rbs +++ b/sig/context_dev/models/web_web_scrape_html_params.rbs @@ -10,6 +10,7 @@ module ContextDev include_selectors: ::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeHTMLParams::Pdf, + settle_animations: bool, timeout_ms: Integer, use_main_content_only: bool, wait_for_ms: Integer @@ -54,6 +55,10 @@ module ContextDev ContextDev::WebWebScrapeHTMLParams::Pdf ) -> ContextDev::WebWebScrapeHTMLParams::Pdf + attr_reader settle_animations: bool? + + def settle_animations=: (bool) -> bool + attr_reader timeout_ms: Integer? def timeout_ms=: (Integer) -> Integer @@ -75,6 +80,7 @@ module ContextDev ?include_selectors: ::Array[String], ?max_age_ms: Integer, ?pdf: ContextDev::WebWebScrapeHTMLParams::Pdf, + ?settle_animations: bool, ?timeout_ms: Integer, ?use_main_content_only: bool, ?wait_for_ms: Integer, @@ -90,6 +96,7 @@ module ContextDev include_selectors: ::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeHTMLParams::Pdf, + settle_animations: bool, timeout_ms: Integer, use_main_content_only: bool, wait_for_ms: Integer, diff --git a/sig/context_dev/models/web_web_scrape_md_params.rbs b/sig/context_dev/models/web_web_scrape_md_params.rbs index a76f36ae..96c753ca 100644 --- a/sig/context_dev/models/web_web_scrape_md_params.rbs +++ b/sig/context_dev/models/web_web_scrape_md_params.rbs @@ -12,6 +12,7 @@ module ContextDev include_selectors: ::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeMdParams::Pdf, + settle_animations: bool, :shorten_base64_images => bool, timeout_ms: Integer, use_main_content_only: bool, @@ -65,6 +66,10 @@ module ContextDev ContextDev::WebWebScrapeMdParams::Pdf ) -> ContextDev::WebWebScrapeMdParams::Pdf + attr_reader settle_animations: bool? + + def settle_animations=: (bool) -> bool + attr_reader shorten_base64_images: bool? def shorten_base64_images=: (bool) -> bool @@ -92,6 +97,7 @@ module ContextDev ?include_selectors: ::Array[String], ?max_age_ms: Integer, ?pdf: ContextDev::WebWebScrapeMdParams::Pdf, + ?settle_animations: bool, ?shorten_base64_images: bool, ?timeout_ms: Integer, ?use_main_content_only: bool, @@ -110,6 +116,7 @@ module ContextDev include_selectors: ::Array[String], max_age_ms: Integer, pdf: ContextDev::WebWebScrapeMdParams::Pdf, + settle_animations: bool, :shorten_base64_images => bool, timeout_ms: Integer, use_main_content_only: bool, diff --git a/sig/context_dev/resources/web.rbs b/sig/context_dev/resources/web.rbs index 0346d2cc..167468fe 100644 --- a/sig/context_dev/resources/web.rbs +++ b/sig/context_dev/resources/web.rbs @@ -84,6 +84,7 @@ module ContextDev ?max_depth: Integer, ?max_pages: Integer, ?pdf: ContextDev::WebWebCrawlMdParams::Pdf, + ?settle_animations: bool, ?shorten_base64_images: bool, ?stop_after_ms: Integer, ?timeout_ms: Integer, @@ -102,6 +103,7 @@ module ContextDev ?include_selectors: ::Array[String], ?max_age_ms: Integer, ?pdf: ContextDev::WebWebScrapeHTMLParams::Pdf, + ?settle_animations: bool, ?timeout_ms: Integer, ?use_main_content_only: bool, ?wait_for_ms: Integer, @@ -129,6 +131,7 @@ module ContextDev ?include_selectors: ::Array[String], ?max_age_ms: Integer, ?pdf: ContextDev::WebWebScrapeMdParams::Pdf, + ?settle_animations: bool, ?shorten_base64_images: bool, ?timeout_ms: Integer, ?use_main_content_only: bool, From ab547fb83535a1184f2aa1414b86022e4550704f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 01:47:09 +0000 Subject: [PATCH 06/19] feat(api): api update --- .stats.yml | 4 ++-- lib/context_dev/models/web_extract_response.rb | 18 +++++++++++++++++- .../models/web_extract_response.rbi | 10 ++++++++++ .../models/web_extract_response.rbs | 5 +++++ 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index f52ab5d2..75582f89 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d71b08e421ccdda9a2754c307e97df0ee7444926306a00624dca2bc7d56548ac.yml -openapi_spec_hash: ebfbed20b5837ccf8db8bb40ab23baac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-c7625b4a7beb9e7d9827f3b836e6539cbc5f26b6754891d4352716e38cdecd73.yml +openapi_spec_hash: cbee9cf164cc6704a6febb4d9737e83e config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/web_extract_response.rb b/lib/context_dev/models/web_extract_response.rb index 015a083a..174281c3 100644 --- a/lib/context_dev/models/web_extract_response.rb +++ b/lib/context_dev/models/web_extract_response.rb @@ -63,6 +63,13 @@ class Metadata < ContextDev::Internal::Type::BaseModel # @return [Integer] required :max_crawl_depth, Integer, api_name: :maxCrawlDepth + # @!attribute num_blocked + # Number of crawled pages excluded because they were anti-bot challenges, error + # pages, or parked-domain placeholders. + # + # @return [Integer] + required :num_blocked, Integer, api_name: :numBlocked + # @!attribute num_failed # # @return [Integer] @@ -83,11 +90,20 @@ class Metadata < ContextDev::Internal::Type::BaseModel # @return [Integer] required :num_urls, Integer, api_name: :numUrls - # @!method initialize(max_crawl_depth:, num_failed:, num_skipped:, num_succeeded:, num_urls:) + # @!method initialize(max_crawl_depth:, num_blocked:, num_failed:, num_skipped:, num_succeeded:, num_urls:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::WebExtractResponse::Metadata} for more details. + # # @param max_crawl_depth [Integer] + # + # @param num_blocked [Integer] Number of crawled pages excluded because they were anti-bot challenges, error pa + # # @param num_failed [Integer] + # # @param num_skipped [Integer] + # # @param num_succeeded [Integer] + # # @param num_urls [Integer] end diff --git a/rbi/context_dev/models/web_extract_response.rbi b/rbi/context_dev/models/web_extract_response.rbi index 35e563d5..328c7186 100644 --- a/rbi/context_dev/models/web_extract_response.rbi +++ b/rbi/context_dev/models/web_extract_response.rbi @@ -106,6 +106,11 @@ module ContextDev sig { returns(Integer) } attr_accessor :max_crawl_depth + # Number of crawled pages excluded because they were anti-bot challenges, error + # pages, or parked-domain placeholders. + sig { returns(Integer) } + attr_accessor :num_blocked + sig { returns(Integer) } attr_accessor :num_failed @@ -121,6 +126,7 @@ module ContextDev sig do params( max_crawl_depth: Integer, + num_blocked: Integer, num_failed: Integer, num_skipped: Integer, num_succeeded: Integer, @@ -129,6 +135,9 @@ module ContextDev end def self.new( max_crawl_depth:, + # Number of crawled pages excluded because they were anti-bot challenges, error + # pages, or parked-domain placeholders. + num_blocked:, num_failed:, num_skipped:, num_succeeded:, @@ -140,6 +149,7 @@ module ContextDev override.returns( { max_crawl_depth: Integer, + num_blocked: Integer, num_failed: Integer, num_skipped: Integer, num_succeeded: Integer, diff --git a/sig/context_dev/models/web_extract_response.rbs b/sig/context_dev/models/web_extract_response.rbs index a847a4fc..91e9bf30 100644 --- a/sig/context_dev/models/web_extract_response.rbs +++ b/sig/context_dev/models/web_extract_response.rbs @@ -48,6 +48,7 @@ module ContextDev type metadata = { max_crawl_depth: Integer, + num_blocked: Integer, num_failed: Integer, num_skipped: Integer, num_succeeded: Integer, @@ -57,6 +58,8 @@ module ContextDev class Metadata < ContextDev::Internal::Type::BaseModel attr_accessor max_crawl_depth: Integer + attr_accessor num_blocked: Integer + attr_accessor num_failed: Integer attr_accessor num_skipped: Integer @@ -67,6 +70,7 @@ module ContextDev def initialize: ( max_crawl_depth: Integer, + num_blocked: Integer, num_failed: Integer, num_skipped: Integer, num_succeeded: Integer, @@ -75,6 +79,7 @@ module ContextDev def to_hash: -> { max_crawl_depth: Integer, + num_blocked: Integer, num_failed: Integer, num_skipped: Integer, num_succeeded: Integer, From 3393a0047608f81e85a7c011ff3fd6356d7433a3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 05:14:50 +0000 Subject: [PATCH 07/19] feat(api): api update --- .stats.yml | 4 +- .../models/monitor_create_params.rb | 10 ++- .../models/monitor_create_response.rb | 60 +++++++++++-- .../monitor_list_account_runs_params.rb | 13 ++- .../monitor_list_account_runs_response.rb | 42 ++++++++- lib/context_dev/models/monitor_list_params.rb | 12 ++- .../models/monitor_list_response.rb | 60 +++++++++++-- .../models/monitor_list_runs_params.rb | 14 ++- .../models/monitor_list_runs_response.rb | 42 ++++++++- .../monitor_retrieve_change_response.rb | 19 ++++- .../models/monitor_retrieve_response.rb | 60 +++++++++++-- .../models/monitor_run_response.rb | 15 +++- .../models/monitor_update_params.rb | 10 ++- .../models/monitor_update_response.rb | 60 +++++++++++-- lib/context_dev/resources/monitors.rb | 19 ++++- .../models/monitor_create_params.rbi | 7 +- .../models/monitor_create_response.rbi | 79 ++++++++++++++++- .../monitor_list_account_runs_params.rbi | 18 +++- .../monitor_list_account_runs_response.rbi | 79 +++++++++++++++++ .../models/monitor_list_params.rbi | 15 ++++ .../models/monitor_list_response.rbi | 85 ++++++++++++++++++- .../models/monitor_list_runs_params.rbi | 11 +++ .../models/monitor_list_runs_response.rbi | 79 +++++++++++++++++ .../monitor_retrieve_change_response.rbi | 14 +++ .../models/monitor_retrieve_response.rbi | 81 +++++++++++++++++- .../models/monitor_run_response.rbi | 23 ++++- .../models/monitor_update_params.rbi | 7 +- .../models/monitor_update_response.rbi | 79 ++++++++++++++++- rbi/context_dev/resources/monitors.rbi | 9 ++ .../models/monitor_create_response.rbs | 22 +++++ .../monitor_list_account_runs_params.rbs | 3 +- .../monitor_list_account_runs_response.rbs | 25 +++++- .../models/monitor_list_response.rbs | 22 +++++ .../models/monitor_list_runs_params.rbs | 3 +- .../models/monitor_list_runs_response.rbs | 25 +++++- .../monitor_retrieve_change_response.rbs | 5 ++ .../models/monitor_retrieve_response.rbs | 22 +++++ .../models/monitor_run_response.rbs | 9 +- .../models/monitor_update_response.rbs | 22 +++++ test/context_dev/resources/monitors_test.rb | 10 ++- 40 files changed, 1133 insertions(+), 61 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75582f89..3e4f5649 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-c7625b4a7beb9e7d9827f3b836e6539cbc5f26b6754891d4352716e38cdecd73.yml -openapi_spec_hash: cbee9cf164cc6704a6febb4d9737e83e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-09b6020939995033719a53b988fb00bdb20c42d87070975a8d6b469fa18128fb.yml +openapi_spec_hash: ba3e471937a679e2c45c0b9a115fca5c config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/monitor_create_params.rb b/lib/context_dev/models/monitor_create_params.rb index b2b422ac..fe1368b1 100644 --- a/lib/context_dev/models/monitor_create_params.rb +++ b/lib/context_dev/models/monitor_create_params.rb @@ -188,7 +188,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::MonitorCreateParams::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::MonitorCreateParams::Target::Sitemap } # Watch a site's extracted structured data. @@ -246,12 +246,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -259,7 +263,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end diff --git a/lib/context_dev/models/monitor_create_response.rb b/lib/context_dev/models/monitor_create_response.rb index 1b4dbcea..2f91665f 100644 --- a/lib/context_dev/models/monitor_create_response.rb +++ b/lib/context_dev/models/monitor_create_response.rb @@ -41,6 +41,11 @@ class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel required :schedule, -> { ContextDev::Models::MonitorCreateResponse::Schedule } # @!attribute status + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. # # @return [Symbol, ContextDev::Models::MonitorCreateResponse::Status] required :status, enum: -> { ContextDev::Models::MonitorCreateResponse::Status } @@ -61,11 +66,23 @@ class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :last_change_at, Time, nil?: true + # @!attribute last_error + # Error from the most recent failed run; null when the last run succeeded. + # + # @return [ContextDev::Models::MonitorCreateResponse::LastError, nil] + optional :last_error, -> { ContextDev::Models::MonitorCreateResponse::LastError }, nil?: true + # @!attribute last_run_at # # @return [Time, nil] optional :last_run_at, Time, nil?: true + # @!attribute next_run_at + # When the next scheduled run is due. + # + # @return [Time, nil] + optional :next_run_at, Time, nil?: true + # @!attribute tags # User-defined tags for grouping and filtering monitors and their changes. # @@ -77,7 +94,7 @@ class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorCreateResponse::Webhook, nil] optional :webhook, -> { ContextDev::Models::MonitorCreateResponse::Webhook }, nil?: true - # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_error: nil, last_run_at: nil, next_run_at: nil, tags: nil, webhook: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorCreateResponse} for more details. # @@ -96,7 +113,7 @@ class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel # # @param schedule [ContextDev::Models::MonitorCreateResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever # - # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::Status] + # @param status [Symbol, ContextDev::Models::MonitorCreateResponse::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param target [ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Models::MonitorCreateResponse::Target::Sitemap, ContextDev::Models::MonitorCreateResponse::Target::Extract] Discriminated union describing what the monitor watches. # @@ -104,8 +121,12 @@ class MonitorCreateResponse < ContextDev::Internal::Type::BaseModel # # @param last_change_at [Time, nil] # + # @param last_error [ContextDev::Models::MonitorCreateResponse::LastError, nil] Error from the most recent failed run; null when the last run succeeded. + # # @param last_run_at [Time, nil] # + # @param next_run_at [Time, nil] When the next scheduled run is due. + # # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. # # @param webhook [ContextDev::Models::MonitorCreateResponse::Webhook, nil] @@ -235,6 +256,12 @@ module Unit end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. + # # @see ContextDev::Models::MonitorCreateResponse#status module Status extend ContextDev::Internal::Type::Enum @@ -258,7 +285,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::Models::MonitorCreateResponse::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorCreateResponse::Target::Sitemap } # Watch a site's extracted structured data. @@ -316,12 +343,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -329,7 +360,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end @@ -401,6 +432,25 @@ class Extract < ContextDev::Internal::Type::BaseModel # @return [Array(ContextDev::Models::MonitorCreateResponse::Target::Page, ContextDev::Models::MonitorCreateResponse::Target::Sitemap, ContextDev::Models::MonitorCreateResponse::Target::Extract)] end + # @see ContextDev::Models::MonitorCreateResponse#last_error + class LastError < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # Error from the most recent failed run; null when the last run succeeded. + # + # @param code [String] + # @param message [String] + end + # @see ContextDev::Models::MonitorCreateResponse#webhook class Webhook < ContextDev::Internal::Type::BaseModel # @!attribute url diff --git a/lib/context_dev/models/monitor_list_account_runs_params.rb b/lib/context_dev/models/monitor_list_account_runs_params.rb index c07d5f83..df4c4e60 100644 --- a/lib/context_dev/models/monitor_list_account_runs_params.rb +++ b/lib/context_dev/models/monitor_list_account_runs_params.rb @@ -18,16 +18,26 @@ class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel optional :limit, Integer # @!attribute status + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). # # @return [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status, nil] optional :status, enum: -> { ContextDev::MonitorListAccountRunsParams::Status } # @!method initialize(cursor: nil, limit: nil, status: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListAccountRunsParams} for more details. + # # @param cursor [String] + # # @param limit [Integer] - # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] + # + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in + # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -35,6 +45,7 @@ module Status RUNNING = :running COMPLETED = :completed FAILED = :failed + SKIPPED = :skipped # @!method self.values # @return [Array] diff --git a/lib/context_dev/models/monitor_list_account_runs_response.rb b/lib/context_dev/models/monitor_list_account_runs_response.rb index 034d318c..54700da1 100644 --- a/lib/context_dev/models/monitor_list_account_runs_response.rb +++ b/lib/context_dev/models/monitor_list_account_runs_response.rb @@ -49,6 +49,12 @@ class Data < ContextDev::Internal::Type::BaseModel required :change_detection_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType } + # @!attribute credits_charged + # Credits charged for this run (0 for skipped/failed runs). + # + # @return [Integer] + required :credits_charged, Integer + # @!attribute monitor_id # # @return [String] @@ -61,6 +67,8 @@ class Data < ContextDev::Internal::Type::BaseModel required :run_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType } # @!attribute status + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). # # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] required :status, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Status } @@ -85,12 +93,20 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil] optional :error, -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Error }, nil?: true + # @!attribute skip_reason + # Why a skipped run never executed; null unless status is `skipped`. + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason, nil] + optional :skip_reason, + enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason }, + nil?: true + # @!attribute started_at # # @return [Time, nil] optional :started_at, Time, nil?: true - # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, started_at: nil) + # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, credits_charged:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, skip_reason: nil, started_at: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorListAccountRunsResponse::Data} for more details. # @@ -102,11 +118,13 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType] # + # @param credits_charged [Integer] Credits charged for this run (0 for skipped/failed runs). + # # @param monitor_id [String] # # @param run_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType] The first run after monitor creation is a baseline run. # - # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in # # @param target_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType] # @@ -116,6 +134,8 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param error [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil] # + # @param skip_reason [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason, nil] Why a skipped run never executed; null unless status is `skipped`. + # # @param started_at [Time, nil] # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#change_detection_type @@ -142,6 +162,9 @@ module RunType # @return [Array] end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). + # # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#status module Status extend ContextDev::Internal::Type::Enum @@ -150,6 +173,7 @@ module Status RUNNING = :running COMPLETED = :completed FAILED = :failed + SKIPPED = :skipped # @!method self.values # @return [Array] @@ -183,6 +207,20 @@ class Error < ContextDev::Internal::Type::BaseModel # @param code [String] # @param message [String] end + + # Why a skipped run never executed; null unless status is `skipped`. + # + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#skip_reason + module SkipReason + extend ContextDev::Internal::Type::Enum + + INSUFFICIENT_CREDITS = :insufficient_credits + MONITOR_PAUSED = :monitor_paused + SUPERSEDED = :superseded + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/models/monitor_list_params.rb b/lib/context_dev/models/monitor_list_params.rb index 184154c9..b4ff363f 100644 --- a/lib/context_dev/models/monitor_list_params.rb +++ b/lib/context_dev/models/monitor_list_params.rb @@ -44,6 +44,11 @@ class MonitorListParams < ContextDev::Internal::Type::BaseModel optional :search_type, enum: -> { ContextDev::MonitorListParams::SearchType } # @!attribute status + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. # # @return [Symbol, ContextDev::Models::MonitorListParams::Status, nil] optional :status, enum: -> { ContextDev::MonitorListParams::Status } @@ -81,7 +86,7 @@ class MonitorListParams < ContextDev::Internal::Type::BaseModel # # @param search_type [Symbol, ContextDev::Models::MonitorListParams::SearchType] `prefix` for as-you-type prefix matching (default), `exact` for full-token match # - # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] + # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param tag [String] Filter to items that have this tag. # @@ -125,6 +130,11 @@ module SearchType # @return [Array] end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum diff --git a/lib/context_dev/models/monitor_list_response.rb b/lib/context_dev/models/monitor_list_response.rb index 97f7d28d..3fe47a25 100644 --- a/lib/context_dev/models/monitor_list_response.rb +++ b/lib/context_dev/models/monitor_list_response.rb @@ -62,6 +62,11 @@ class Data < ContextDev::Internal::Type::BaseModel required :schedule, -> { ContextDev::Models::MonitorListResponse::Data::Schedule } # @!attribute status + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. # # @return [Symbol, ContextDev::Models::MonitorListResponse::Data::Status] required :status, enum: -> { ContextDev::Models::MonitorListResponse::Data::Status } @@ -82,11 +87,23 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :last_change_at, Time, nil?: true + # @!attribute last_error + # Error from the most recent failed run; null when the last run succeeded. + # + # @return [ContextDev::Models::MonitorListResponse::Data::LastError, nil] + optional :last_error, -> { ContextDev::Models::MonitorListResponse::Data::LastError }, nil?: true + # @!attribute last_run_at # # @return [Time, nil] optional :last_run_at, Time, nil?: true + # @!attribute next_run_at + # When the next scheduled run is due. + # + # @return [Time, nil] + optional :next_run_at, Time, nil?: true + # @!attribute tags # User-defined tags for grouping and filtering monitors and their changes. # @@ -98,7 +115,7 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorListResponse::Data::Webhook, nil] optional :webhook, -> { ContextDev::Models::MonitorListResponse::Data::Webhook }, nil?: true - # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_error: nil, last_run_at: nil, next_run_at: nil, tags: nil, webhook: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorListResponse::Data} for more details. # @@ -117,7 +134,7 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param schedule [ContextDev::Models::MonitorListResponse::Data::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever # - # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::Status] + # @param status [Symbol, ContextDev::Models::MonitorListResponse::Data::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param target [ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, ContextDev::Models::MonitorListResponse::Data::Target::Extract] Discriminated union describing what the monitor watches. # @@ -125,8 +142,12 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param last_change_at [Time, nil] # + # @param last_error [ContextDev::Models::MonitorListResponse::Data::LastError, nil] Error from the most recent failed run; null when the last run succeeded. + # # @param last_run_at [Time, nil] # + # @param next_run_at [Time, nil] When the next scheduled run is due. + # # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. # # @param webhook [ContextDev::Models::MonitorListResponse::Data::Webhook, nil] @@ -256,6 +277,12 @@ module Unit end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. + # # @see ContextDev::Models::MonitorListResponse::Data#status module Status extend ContextDev::Internal::Type::Enum @@ -279,7 +306,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::Models::MonitorListResponse::Data::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorListResponse::Data::Target::Sitemap } # Watch a site's extracted structured data. @@ -337,12 +364,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -350,7 +381,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end @@ -423,6 +454,25 @@ class Extract < ContextDev::Internal::Type::BaseModel # @return [Array(ContextDev::Models::MonitorListResponse::Data::Target::Page, ContextDev::Models::MonitorListResponse::Data::Target::Sitemap, ContextDev::Models::MonitorListResponse::Data::Target::Extract)] end + # @see ContextDev::Models::MonitorListResponse::Data#last_error + class LastError < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # Error from the most recent failed run; null when the last run succeeded. + # + # @param code [String] + # @param message [String] + end + # @see ContextDev::Models::MonitorListResponse::Data#webhook class Webhook < ContextDev::Internal::Type::BaseModel # @!attribute url diff --git a/lib/context_dev/models/monitor_list_runs_params.rb b/lib/context_dev/models/monitor_list_runs_params.rb index b42c1a9b..eaffa14a 100644 --- a/lib/context_dev/models/monitor_list_runs_params.rb +++ b/lib/context_dev/models/monitor_list_runs_params.rb @@ -23,17 +23,28 @@ class MonitorListRunsParams < ContextDev::Internal::Type::BaseModel optional :limit, Integer # @!attribute status + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). # # @return [Symbol, ContextDev::Models::MonitorListRunsParams::Status, nil] optional :status, enum: -> { ContextDev::MonitorListRunsParams::Status } # @!method initialize(monitor_id:, cursor: nil, limit: nil, status: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListRunsParams} for more details. + # # @param monitor_id [String] + # # @param cursor [String] + # # @param limit [Integer] - # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] + # + # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in + # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -41,6 +52,7 @@ module Status RUNNING = :running COMPLETED = :completed FAILED = :failed + SKIPPED = :skipped # @!method self.values # @return [Array] diff --git a/lib/context_dev/models/monitor_list_runs_response.rb b/lib/context_dev/models/monitor_list_runs_response.rb index ab87854f..def28b4f 100644 --- a/lib/context_dev/models/monitor_list_runs_response.rb +++ b/lib/context_dev/models/monitor_list_runs_response.rb @@ -49,6 +49,12 @@ class Data < ContextDev::Internal::Type::BaseModel required :change_detection_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType } + # @!attribute credits_charged + # Credits charged for this run (0 for skipped/failed runs). + # + # @return [Integer] + required :credits_charged, Integer + # @!attribute monitor_id # # @return [String] @@ -61,6 +67,8 @@ class Data < ContextDev::Internal::Type::BaseModel required :run_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::RunType } # @!attribute status + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). # # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] required :status, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::Status } @@ -85,12 +93,20 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil] optional :error, -> { ContextDev::Models::MonitorListRunsResponse::Data::Error }, nil?: true + # @!attribute skip_reason + # Why a skipped run never executed; null unless status is `skipped`. + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::SkipReason, nil] + optional :skip_reason, + enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::SkipReason }, + nil?: true + # @!attribute started_at # # @return [Time, nil] optional :started_at, Time, nil?: true - # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, started_at: nil) + # @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, credits_charged:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, skip_reason: nil, started_at: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorListRunsResponse::Data} for more details. # @@ -102,11 +118,13 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param change_detection_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType] # + # @param credits_charged [Integer] Credits charged for this run (0 for skipped/failed runs). + # # @param monitor_id [String] # # @param run_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::RunType] The first run after monitor creation is a baseline run. # - # @param status [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] + # @param status [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in # # @param target_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::TargetType] # @@ -116,6 +134,8 @@ class Data < ContextDev::Internal::Type::BaseModel # # @param error [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil] # + # @param skip_reason [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::SkipReason, nil] Why a skipped run never executed; null unless status is `skipped`. + # # @param started_at [Time, nil] # @see ContextDev::Models::MonitorListRunsResponse::Data#change_detection_type @@ -142,6 +162,9 @@ module RunType # @return [Array] end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). + # # @see ContextDev::Models::MonitorListRunsResponse::Data#status module Status extend ContextDev::Internal::Type::Enum @@ -150,6 +173,7 @@ module Status RUNNING = :running COMPLETED = :completed FAILED = :failed + SKIPPED = :skipped # @!method self.values # @return [Array] @@ -183,6 +207,20 @@ class Error < ContextDev::Internal::Type::BaseModel # @param code [String] # @param message [String] end + + # Why a skipped run never executed; null unless status is `skipped`. + # + # @see ContextDev::Models::MonitorListRunsResponse::Data#skip_reason + module SkipReason + extend ContextDev::Internal::Type::Enum + + INSUFFICIENT_CREDITS = :insufficient_credits + MONITOR_PAUSED = :monitor_paused + SUPERSEDED = :superseded + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/models/monitor_retrieve_change_response.rb b/lib/context_dev/models/monitor_retrieve_change_response.rb index 7e662f4b..e4dbfc97 100644 --- a/lib/context_dev/models/monitor_retrieve_change_response.rb +++ b/lib/context_dev/models/monitor_retrieve_change_response.rb @@ -32,6 +32,12 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel # @return [String] required :monitor_id, String + # @!attribute run_id + # The run that detected this change. + # + # @return [String] + required :run_id, String + # @!attribute summary # # @return [String] @@ -58,6 +64,7 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel optional :added_url_count, Integer # @!attribute added_urls + # At most 500 URLs are included; the corresponding count field is always exact. # # @return [Array, nil] optional :added_urls, ContextDev::Internal::Type::ArrayOf[String] @@ -100,6 +107,7 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel optional :matched_url_count, Integer # @!attribute matched_urls + # At most 500 URLs are included; the corresponding count field is always exact. # # @return [Array, nil] optional :matched_urls, ContextDev::Internal::Type::ArrayOf[String] @@ -115,6 +123,7 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel optional :removed_url_count, Integer # @!attribute removed_urls + # At most 500 URLs are included; the corresponding count field is always exact. # # @return [Array, nil] optional :removed_urls, ContextDev::Internal::Type::ArrayOf[String] @@ -125,7 +134,7 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel # @return [Array, nil] optional :tags, ContextDev::Internal::Type::ArrayOf[String] - # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, added_urls: nil, after_text_excerpt: nil, before_text_excerpt: nil, confidence: nil, diff: nil, evidence: nil, importance: nil, matched_url_count: nil, matched_urls: nil, query: nil, removed_url_count: nil, removed_urls: nil, tags: nil) + # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, run_id:, summary:, target_type:, title:, url:, added_url_count: nil, added_urls: nil, after_text_excerpt: nil, before_text_excerpt: nil, confidence: nil, diff: nil, evidence: nil, importance: nil, matched_url_count: nil, matched_urls: nil, query: nil, removed_url_count: nil, removed_urls: nil, tags: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorRetrieveChangeResponse} for more details. # @@ -145,6 +154,8 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel # # @param monitor_id [String] # + # @param run_id [String] The run that detected this change. + # # @param summary [String] # # @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::TargetType] @@ -155,7 +166,7 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel # # @param added_url_count [Integer] # - # @param added_urls [Array] + # @param added_urls [Array] At most 500 URLs are included; the corresponding count field is always exact. # # @param after_text_excerpt [String] # @@ -171,13 +182,13 @@ class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel # # @param matched_url_count [Integer] # - # @param matched_urls [Array] + # @param matched_urls [Array] At most 500 URLs are included; the corresponding count field is always exact. # # @param query [String] # # @param removed_url_count [Integer] # - # @param removed_urls [Array] + # @param removed_urls [Array] At most 500 URLs are included; the corresponding count field is always exact. # # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. diff --git a/lib/context_dev/models/monitor_retrieve_response.rb b/lib/context_dev/models/monitor_retrieve_response.rb index c97a9433..b9bf3398 100644 --- a/lib/context_dev/models/monitor_retrieve_response.rb +++ b/lib/context_dev/models/monitor_retrieve_response.rb @@ -41,6 +41,11 @@ class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel required :schedule, -> { ContextDev::Models::MonitorRetrieveResponse::Schedule } # @!attribute status + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. # # @return [Symbol, ContextDev::Models::MonitorRetrieveResponse::Status] required :status, enum: -> { ContextDev::Models::MonitorRetrieveResponse::Status } @@ -61,11 +66,23 @@ class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :last_change_at, Time, nil?: true + # @!attribute last_error + # Error from the most recent failed run; null when the last run succeeded. + # + # @return [ContextDev::Models::MonitorRetrieveResponse::LastError, nil] + optional :last_error, -> { ContextDev::Models::MonitorRetrieveResponse::LastError }, nil?: true + # @!attribute last_run_at # # @return [Time, nil] optional :last_run_at, Time, nil?: true + # @!attribute next_run_at + # When the next scheduled run is due. + # + # @return [Time, nil] + optional :next_run_at, Time, nil?: true + # @!attribute tags # User-defined tags for grouping and filtering monitors and their changes. # @@ -77,7 +94,7 @@ class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorRetrieveResponse::Webhook, nil] optional :webhook, -> { ContextDev::Models::MonitorRetrieveResponse::Webhook }, nil?: true - # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_error: nil, last_run_at: nil, next_run_at: nil, tags: nil, webhook: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorRetrieveResponse} for more details. # @@ -96,7 +113,7 @@ class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel # # @param schedule [ContextDev::Models::MonitorRetrieveResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever # - # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::Status] + # @param status [Symbol, ContextDev::Models::MonitorRetrieveResponse::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param target [ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, ContextDev::Models::MonitorRetrieveResponse::Target::Extract] Discriminated union describing what the monitor watches. # @@ -104,8 +121,12 @@ class MonitorRetrieveResponse < ContextDev::Internal::Type::BaseModel # # @param last_change_at [Time, nil] # + # @param last_error [ContextDev::Models::MonitorRetrieveResponse::LastError, nil] Error from the most recent failed run; null when the last run succeeded. + # # @param last_run_at [Time, nil] # + # @param next_run_at [Time, nil] When the next scheduled run is due. + # # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. # # @param webhook [ContextDev::Models::MonitorRetrieveResponse::Webhook, nil] @@ -235,6 +256,12 @@ module Unit end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. + # # @see ContextDev::Models::MonitorRetrieveResponse#status module Status extend ContextDev::Internal::Type::Enum @@ -258,7 +285,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap } # Watch a site's extracted structured data. @@ -316,12 +343,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -329,7 +360,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end @@ -401,6 +432,25 @@ class Extract < ContextDev::Internal::Type::BaseModel # @return [Array(ContextDev::Models::MonitorRetrieveResponse::Target::Page, ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap, ContextDev::Models::MonitorRetrieveResponse::Target::Extract)] end + # @see ContextDev::Models::MonitorRetrieveResponse#last_error + class LastError < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # Error from the most recent failed run; null when the last run succeeded. + # + # @param code [String] + # @param message [String] + end + # @see ContextDev::Models::MonitorRetrieveResponse#webhook class Webhook < ContextDev::Internal::Type::BaseModel # @!attribute url diff --git a/lib/context_dev/models/monitor_run_response.rb b/lib/context_dev/models/monitor_run_response.rb index 480ef301..f63e0dc8 100644 --- a/lib/context_dev/models/monitor_run_response.rb +++ b/lib/context_dev/models/monitor_run_response.rb @@ -14,9 +14,22 @@ class MonitorRunResponse < ContextDev::Internal::Type::BaseModel # @return [Boolean] required :queued, ContextDev::Internal::Type::Boolean - # @!method initialize(monitor_id:, queued:) + # @!attribute run_id + # The queued run. Poll GET /monitors/{monitor_id}/runs or use it to correlate + # results. + # + # @return [String] + required :run_id, String + + # @!method initialize(monitor_id:, queued:, run_id:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorRunResponse} for more details. + # # @param monitor_id [String] + # # @param queued [Boolean] + # + # @param run_id [String] The queued run. Poll GET /monitors/{monitor_id}/runs or use it to correlate resu end end end diff --git a/lib/context_dev/models/monitor_update_params.rb b/lib/context_dev/models/monitor_update_params.rb index bde930f8..43d89578 100644 --- a/lib/context_dev/models/monitor_update_params.rb +++ b/lib/context_dev/models/monitor_update_params.rb @@ -204,7 +204,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::MonitorUpdateParams::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::MonitorUpdateParams::Target::Sitemap } # Watch a site's extracted structured data. @@ -262,12 +262,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -275,7 +279,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end diff --git a/lib/context_dev/models/monitor_update_response.rb b/lib/context_dev/models/monitor_update_response.rb index d86a2737..581baa24 100644 --- a/lib/context_dev/models/monitor_update_response.rb +++ b/lib/context_dev/models/monitor_update_response.rb @@ -41,6 +41,11 @@ class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel required :schedule, -> { ContextDev::Models::MonitorUpdateResponse::Schedule } # @!attribute status + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. # # @return [Symbol, ContextDev::Models::MonitorUpdateResponse::Status] required :status, enum: -> { ContextDev::Models::MonitorUpdateResponse::Status } @@ -61,11 +66,23 @@ class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :last_change_at, Time, nil?: true + # @!attribute last_error + # Error from the most recent failed run; null when the last run succeeded. + # + # @return [ContextDev::Models::MonitorUpdateResponse::LastError, nil] + optional :last_error, -> { ContextDev::Models::MonitorUpdateResponse::LastError }, nil?: true + # @!attribute last_run_at # # @return [Time, nil] optional :last_run_at, Time, nil?: true + # @!attribute next_run_at + # When the next scheduled run is due. + # + # @return [Time, nil] + optional :next_run_at, Time, nil?: true + # @!attribute tags # User-defined tags for grouping and filtering monitors and their changes. # @@ -77,7 +94,7 @@ class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel # @return [ContextDev::Models::MonitorUpdateResponse::Webhook, nil] optional :webhook, -> { ContextDev::Models::MonitorUpdateResponse::Webhook }, nil?: true - # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_run_at: nil, tags: nil, webhook: nil) + # @!method initialize(id:, change_detection:, created_at:, mode:, name:, schedule:, status:, target:, updated_at:, last_change_at: nil, last_error: nil, last_run_at: nil, next_run_at: nil, tags: nil, webhook: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorUpdateResponse} for more details. # @@ -96,7 +113,7 @@ class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel # # @param schedule [ContextDev::Models::MonitorUpdateResponse::Schedule] Run the monitor on a fixed interval defined by a frequency and a unit, e.g. ever # - # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::Status] + # @param status [Symbol, ContextDev::Models::MonitorUpdateResponse::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param target [ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, ContextDev::Models::MonitorUpdateResponse::Target::Extract] Discriminated union describing what the monitor watches. # @@ -104,8 +121,12 @@ class MonitorUpdateResponse < ContextDev::Internal::Type::BaseModel # # @param last_change_at [Time, nil] # + # @param last_error [ContextDev::Models::MonitorUpdateResponse::LastError, nil] Error from the most recent failed run; null when the last run succeeded. + # # @param last_run_at [Time, nil] # + # @param next_run_at [Time, nil] When the next scheduled run is due. + # # @param tags [Array] User-defined tags for grouping and filtering monitors and their changes. # # @param webhook [ContextDev::Models::MonitorUpdateResponse::Webhook, nil] @@ -235,6 +256,12 @@ module Unit end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. + # # @see ContextDev::Models::MonitorUpdateResponse#status module Status extend ContextDev::Internal::Type::Enum @@ -258,7 +285,7 @@ module Target # Watch a single web page. variant :page, -> { ContextDev::Models::MonitorUpdateResponse::Target::Page } - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized (lowercased host, no trailing slash/fragment) and scoped to the monitored site and its subdomains before comparison. A new URL set must be observed on two consecutive runs before a change is reported, suppressing one-run crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorUpdateResponse::Target::Sitemap } # Watch a site's extracted structured data. @@ -316,12 +343,16 @@ class Sitemap < ContextDev::Internal::Type::BaseModel optional :include, ContextDev::Internal::Type::ArrayOf[String] # @!attribute max_urls + # Maximum number of sitemap URLs to track (capped at 10,000). # # @return [Integer, nil] optional :max_urls, Integer # @!method initialize(url:, exclude: nil, include: nil, max_urls: nil, type: :sitemap) - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. # # @param url [String] Sitemap URL to monitor. # @@ -329,7 +360,7 @@ class Sitemap < ContextDev::Internal::Type::BaseModel # # @param include [Array] URL path patterns to include. # - # @param max_urls [Integer] + # @param max_urls [Integer] Maximum number of sitemap URLs to track (capped at 10,000). # # @param type [Symbol, :sitemap] end @@ -401,6 +432,25 @@ class Extract < ContextDev::Internal::Type::BaseModel # @return [Array(ContextDev::Models::MonitorUpdateResponse::Target::Page, ContextDev::Models::MonitorUpdateResponse::Target::Sitemap, ContextDev::Models::MonitorUpdateResponse::Target::Extract)] end + # @see ContextDev::Models::MonitorUpdateResponse#last_error + class LastError < ContextDev::Internal::Type::BaseModel + # @!attribute code + # + # @return [String] + required :code, String + + # @!attribute message + # + # @return [String] + required :message, String + + # @!method initialize(code:, message:) + # Error from the most recent failed run; null when the last run succeeded. + # + # @param code [String] + # @param message [String] + end + # @see ContextDev::Models::MonitorUpdateResponse#webhook class Webhook < ContextDev::Internal::Type::BaseModel # @!attribute url diff --git a/lib/context_dev/resources/monitors.rb b/lib/context_dev/resources/monitors.rb index 910baa9f..73fa1761 100644 --- a/lib/context_dev/resources/monitors.rb +++ b/lib/context_dev/resources/monitors.rb @@ -126,7 +126,7 @@ def update(monitor_id, params = {}) # # @param search_type [Symbol, ContextDev::Models::MonitorListParams::SearchType] `prefix` for as-you-type prefix matching (default), `exact` for full-token match # - # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] + # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon # # @param tag [String] Filter to items that have this tag. # @@ -207,13 +207,19 @@ def list_account_changes(params = {}) ) end + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListAccountRunsParams} for more details. + # # Returns an account-wide feed of monitor runs across all monitors. # # @overload list_account_runs(cursor: nil, limit: nil, status: nil, request_options: {}) # # @param cursor [String] + # # @param limit [Integer] - # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] + # + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in + # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [ContextDev::Models::MonitorListAccountRunsResponse] @@ -264,14 +270,21 @@ def list_changes(monitor_id, params = {}) ) end + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListRunsParams} for more details. + # # List monitor runs # # @overload list_runs(monitor_id, cursor: nil, limit: nil, status: nil, request_options: {}) # # @param monitor_id [String] + # # @param cursor [String] + # # @param limit [Integer] - # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] + # + # @param status [Symbol, ContextDev::Models::MonitorListRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in + # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [ContextDev::Models::MonitorListRunsResponse] diff --git a/rbi/context_dev/models/monitor_create_params.rbi b/rbi/context_dev/models/monitor_create_params.rbi index 850d9c84..ce117cfd 100644 --- a/rbi/context_dev/models/monitor_create_params.rbi +++ b/rbi/context_dev/models/monitor_create_params.rbi @@ -437,13 +437,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -460,6 +464,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) diff --git a/rbi/context_dev/models/monitor_create_response.rbi b/rbi/context_dev/models/monitor_create_response.rbi index 16ecf3ec..63f1f64b 100644 --- a/rbi/context_dev/models/monitor_create_response.rbi +++ b/rbi/context_dev/models/monitor_create_response.rbi @@ -48,6 +48,11 @@ module ContextDev end attr_writer :schedule + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. sig do returns(ContextDev::Models::MonitorCreateResponse::Status::TaggedSymbol) end @@ -65,9 +70,29 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :last_change_at + # Error from the most recent failed run; null when the last run succeeded. + sig do + returns(T.nilable(ContextDev::Models::MonitorCreateResponse::LastError)) + end + attr_reader :last_error + + sig do + params( + last_error: + T.nilable( + ContextDev::Models::MonitorCreateResponse::LastError::OrHash + ) + ).void + end + attr_writer :last_error + sig { returns(T.nilable(Time)) } attr_accessor :last_run_at + # When the next scheduled run is due. + sig { returns(T.nilable(Time)) } + attr_accessor :next_run_at + # User-defined tags for grouping and filtering monitors and their changes. sig { returns(T.nilable(T::Array[String])) } attr_reader :tags @@ -113,7 +138,12 @@ module ContextDev ), updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable( + ContextDev::Models::MonitorCreateResponse::LastError::OrHash + ), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( @@ -134,12 +164,21 @@ module ContextDev # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. schedule:, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status:, # Discriminated union describing what the monitor watches. target:, updated_at:, last_change_at: nil, + # Error from the most recent failed run; null when the last run succeeded. + last_error: nil, last_run_at: nil, + # When the next scheduled run is due. + next_run_at: nil, # User-defined tags for grouping and filtering monitors and their changes. tags: nil, webhook: nil @@ -161,7 +200,10 @@ module ContextDev target: ContextDev::Models::MonitorCreateResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable(ContextDev::Models::MonitorCreateResponse::LastError), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable(ContextDev::Models::MonitorCreateResponse::Webhook) @@ -420,6 +462,11 @@ module ContextDev end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum @@ -546,13 +593,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -569,6 +620,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) @@ -697,6 +749,31 @@ module ContextDev end end + class LastError < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorCreateResponse::LastError, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + # Error from the most recent failed run; null when the last run succeeded. + sig { params(code: String, message: String).returns(T.attached_class) } + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + class Webhook < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/context_dev/models/monitor_list_account_runs_params.rbi b/rbi/context_dev/models/monitor_list_account_runs_params.rbi index fd9152a5..60f5016b 100644 --- a/rbi/context_dev/models/monitor_list_account_runs_params.rbi +++ b/rbi/context_dev/models/monitor_list_account_runs_params.rbi @@ -26,6 +26,8 @@ module ContextDev sig { params(limit: Integer).void } attr_writer :limit + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). sig do returns( T.nilable(ContextDev::MonitorListAccountRunsParams::Status::OrSymbol) @@ -48,7 +50,14 @@ module ContextDev request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(cursor: nil, limit: nil, status: nil, request_options: {}) + def self.new( + cursor: nil, + limit: nil, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). + status: nil, + request_options: {} + ) end sig do @@ -64,6 +73,8 @@ module ContextDev def to_hash end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -93,6 +104,11 @@ module ContextDev :failed, ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol ) + SKIPPED = + T.let( + :skipped, + ContextDev::MonitorListAccountRunsParams::Status::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/context_dev/models/monitor_list_account_runs_response.rbi b/rbi/context_dev/models/monitor_list_account_runs_response.rbi index bcc183a4..f94b6844 100644 --- a/rbi/context_dev/models/monitor_list_account_runs_response.rbi +++ b/rbi/context_dev/models/monitor_list_account_runs_response.rbi @@ -79,6 +79,10 @@ module ContextDev end attr_accessor :change_detection_type + # Credits charged for this run (0 for skipped/failed runs). + sig { returns(Integer) } + attr_accessor :credits_charged + sig { returns(String) } attr_accessor :monitor_id @@ -90,6 +94,8 @@ module ContextDev end attr_accessor :run_type + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). sig do returns( ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol @@ -129,6 +135,16 @@ module ContextDev end attr_writer :error + # Why a skipped run never executed; null unless status is `skipped`. + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ) + ) + end + attr_accessor :skip_reason + sig { returns(T.nilable(Time)) } attr_accessor :started_at @@ -139,6 +155,7 @@ module ContextDev change_detected: T::Boolean, change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::OrSymbol, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::OrSymbol, @@ -152,6 +169,10 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListAccountRunsResponse::Data::Error::OrHash ), + skip_reason: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::OrSymbol + ), started_at: T.nilable(Time) ).returns(T.attached_class) end @@ -162,14 +183,20 @@ module ContextDev baseline_created:, change_detected:, change_detection_type:, + # Credits charged for this run (0 for skipped/failed runs). + credits_charged:, monitor_id:, # The first run after monitor creation is a baseline run. run_type:, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). status:, target_type:, change_id: nil, completed_at: nil, error: nil, + # Why a skipped run never executed; null unless status is `skipped`. + skip_reason: nil, started_at: nil ) end @@ -182,6 +209,7 @@ module ContextDev change_detected: T::Boolean, change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType::TaggedSymbol, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType::TaggedSymbol, @@ -195,6 +223,10 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListAccountRunsResponse::Data::Error ), + skip_reason: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ), started_at: T.nilable(Time) } ) @@ -271,6 +303,8 @@ module ContextDev end end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -303,6 +337,11 @@ module ContextDev :failed, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol ) + SKIPPED = + T.let( + :skipped, + ContextDev::Models::MonitorListAccountRunsResponse::Data::Status::TaggedSymbol + ) sig do override.returns( @@ -379,6 +418,46 @@ module ContextDev def to_hash end end + + # Why a skipped run never executed; null unless status is `skipped`. + module SkipReason + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INSUFFICIENT_CREDITS = + T.let( + :insufficient_credits, + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ) + MONITOR_PAUSED = + T.let( + :monitor_paused, + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ) + SUPERSEDED = + T.let( + :superseded, + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/context_dev/models/monitor_list_params.rbi b/rbi/context_dev/models/monitor_list_params.rbi index 1f9db3f2..717f5260 100644 --- a/rbi/context_dev/models/monitor_list_params.rbi +++ b/rbi/context_dev/models/monitor_list_params.rbi @@ -77,6 +77,11 @@ module ContextDev end attr_writer :search_type + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. sig do returns(T.nilable(ContextDev::MonitorListParams::Status::OrSymbol)) end @@ -142,6 +147,11 @@ module ContextDev # `prefix` for as-you-type prefix matching (default), `exact` for full-token # matching. search_type: nil, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status: nil, # Filter to items that have this tag. tag: nil, @@ -259,6 +269,11 @@ module ContextDev end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum diff --git a/rbi/context_dev/models/monitor_list_response.rbi b/rbi/context_dev/models/monitor_list_response.rbi index 9b9d6f96..25b53e59 100644 --- a/rbi/context_dev/models/monitor_list_response.rbi +++ b/rbi/context_dev/models/monitor_list_response.rbi @@ -91,6 +91,11 @@ module ContextDev end attr_writer :schedule + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. sig do returns( ContextDev::Models::MonitorListResponse::Data::Status::TaggedSymbol @@ -112,9 +117,31 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :last_change_at + # Error from the most recent failed run; null when the last run succeeded. + sig do + returns( + T.nilable(ContextDev::Models::MonitorListResponse::Data::LastError) + ) + end + attr_reader :last_error + + sig do + params( + last_error: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::LastError::OrHash + ) + ).void + end + attr_writer :last_error + sig { returns(T.nilable(Time)) } attr_accessor :last_run_at + # When the next scheduled run is due. + sig { returns(T.nilable(Time)) } + attr_accessor :next_run_at + # User-defined tags for grouping and filtering monitors and their changes. sig { returns(T.nilable(T::Array[String])) } attr_reader :tags @@ -164,7 +191,12 @@ module ContextDev ), updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::LastError::OrHash + ), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( @@ -185,12 +217,21 @@ module ContextDev # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. schedule:, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status:, # Discriminated union describing what the monitor watches. target:, updated_at:, last_change_at: nil, + # Error from the most recent failed run; null when the last run succeeded. + last_error: nil, last_run_at: nil, + # When the next scheduled run is due. + next_run_at: nil, # User-defined tags for grouping and filtering monitors and their changes. tags: nil, webhook: nil @@ -214,7 +255,12 @@ module ContextDev ContextDev::Models::MonitorListResponse::Data::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable( + ContextDev::Models::MonitorListResponse::Data::LastError + ), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( @@ -475,6 +521,11 @@ module ContextDev end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum @@ -604,13 +655,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -627,6 +682,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) @@ -755,6 +811,33 @@ module ContextDev end end + class LastError < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListResponse::Data::LastError, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + # Error from the most recent failed run; null when the last run succeeded. + sig do + params(code: String, message: String).returns(T.attached_class) + end + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + class Webhook < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/context_dev/models/monitor_list_runs_params.rbi b/rbi/context_dev/models/monitor_list_runs_params.rbi index 7995af2b..3ae68c16 100644 --- a/rbi/context_dev/models/monitor_list_runs_params.rbi +++ b/rbi/context_dev/models/monitor_list_runs_params.rbi @@ -29,6 +29,8 @@ module ContextDev sig { params(limit: Integer).void } attr_writer :limit + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). sig do returns(T.nilable(ContextDev::MonitorListRunsParams::Status::OrSymbol)) end @@ -52,6 +54,8 @@ module ContextDev monitor_id:, cursor: nil, limit: nil, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). status: nil, request_options: {} ) @@ -71,6 +75,8 @@ module ContextDev def to_hash end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -100,6 +106,11 @@ module ContextDev :failed, ContextDev::MonitorListRunsParams::Status::TaggedSymbol ) + SKIPPED = + T.let( + :skipped, + ContextDev::MonitorListRunsParams::Status::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/context_dev/models/monitor_list_runs_response.rbi b/rbi/context_dev/models/monitor_list_runs_response.rbi index d9666508..8c06c056 100644 --- a/rbi/context_dev/models/monitor_list_runs_response.rbi +++ b/rbi/context_dev/models/monitor_list_runs_response.rbi @@ -72,6 +72,10 @@ module ContextDev end attr_accessor :change_detection_type + # Credits charged for this run (0 for skipped/failed runs). + sig { returns(Integer) } + attr_accessor :credits_charged + sig { returns(String) } attr_accessor :monitor_id @@ -83,6 +87,8 @@ module ContextDev end attr_accessor :run_type + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). sig do returns( ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol @@ -120,6 +126,16 @@ module ContextDev end attr_writer :error + # Why a skipped run never executed; null unless status is `skipped`. + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ) + ) + end + attr_accessor :skip_reason + sig { returns(T.nilable(Time)) } attr_accessor :started_at @@ -130,6 +146,7 @@ module ContextDev change_detected: T::Boolean, change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::OrSymbol, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListRunsResponse::Data::RunType::OrSymbol, @@ -143,6 +160,10 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListRunsResponse::Data::Error::OrHash ), + skip_reason: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::OrSymbol + ), started_at: T.nilable(Time) ).returns(T.attached_class) end @@ -153,14 +174,20 @@ module ContextDev baseline_created:, change_detected:, change_detection_type:, + # Credits charged for this run (0 for skipped/failed runs). + credits_charged:, monitor_id:, # The first run after monitor creation is a baseline run. run_type:, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). status:, target_type:, change_id: nil, completed_at: nil, error: nil, + # Why a skipped run never executed; null unless status is `skipped`. + skip_reason: nil, started_at: nil ) end @@ -173,6 +200,7 @@ module ContextDev change_detected: T::Boolean, change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType::TaggedSymbol, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListRunsResponse::Data::RunType::TaggedSymbol, @@ -186,6 +214,10 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListRunsResponse::Data::Error ), + skip_reason: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ), started_at: T.nilable(Time) } ) @@ -262,6 +294,8 @@ module ContextDev end end + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). module Status extend ContextDev::Internal::Type::Enum @@ -294,6 +328,11 @@ module ContextDev :failed, ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol ) + SKIPPED = + T.let( + :skipped, + ContextDev::Models::MonitorListRunsResponse::Data::Status::TaggedSymbol + ) sig do override.returns( @@ -370,6 +409,46 @@ module ContextDev def to_hash end end + + # Why a skipped run never executed; null unless status is `skipped`. + module SkipReason + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INSUFFICIENT_CREDITS = + T.let( + :insufficient_credits, + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ) + MONITOR_PAUSED = + T.let( + :monitor_paused, + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ) + SUPERSEDED = + T.let( + :superseded, + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/context_dev/models/monitor_retrieve_change_response.rbi b/rbi/context_dev/models/monitor_retrieve_change_response.rbi index f27fc106..a3bb1177 100644 --- a/rbi/context_dev/models/monitor_retrieve_change_response.rbi +++ b/rbi/context_dev/models/monitor_retrieve_change_response.rbi @@ -36,6 +36,10 @@ module ContextDev sig { returns(String) } attr_accessor :monitor_id + # The run that detected this change. + sig { returns(String) } + attr_accessor :run_id + sig { returns(String) } attr_accessor :summary @@ -58,6 +62,7 @@ module ContextDev sig { params(added_url_count: Integer).void } attr_writer :added_url_count + # At most 500 URLs are included; the corresponding count field is always exact. sig { returns(T.nilable(T::Array[String])) } attr_reader :added_urls @@ -133,6 +138,7 @@ module ContextDev sig { params(matched_url_count: Integer).void } attr_writer :matched_url_count + # At most 500 URLs are included; the corresponding count field is always exact. sig { returns(T.nilable(T::Array[String])) } attr_reader :matched_urls @@ -151,6 +157,7 @@ module ContextDev sig { params(removed_url_count: Integer).void } attr_writer :removed_url_count + # At most 500 URLs are included; the corresponding count field is always exact. sig { returns(T.nilable(T::Array[String])) } attr_reader :removed_urls @@ -178,6 +185,7 @@ module ContextDev mode: ContextDev::Models::MonitorRetrieveChangeResponse::Mode::OrSymbol, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::OrSymbol, @@ -211,11 +219,14 @@ module ContextDev # described by `target` and `change_detection`. mode:, monitor_id:, + # The run that detected this change. + run_id:, summary:, target_type:, title:, url:, added_url_count: nil, + # At most 500 URLs are included; the corresponding count field is always exact. added_urls: nil, after_text_excerpt: nil, before_text_excerpt: nil, @@ -225,9 +236,11 @@ module ContextDev evidence: nil, importance: nil, matched_url_count: nil, + # At most 500 URLs are included; the corresponding count field is always exact. matched_urls: nil, query: nil, removed_url_count: nil, + # At most 500 URLs are included; the corresponding count field is always exact. removed_urls: nil, # User-defined tags for grouping and filtering monitors and their changes. tags: nil @@ -244,6 +257,7 @@ module ContextDev mode: ContextDev::Models::MonitorRetrieveChangeResponse::Mode::TaggedSymbol, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::TargetType::TaggedSymbol, diff --git a/rbi/context_dev/models/monitor_retrieve_response.rbi b/rbi/context_dev/models/monitor_retrieve_response.rbi index f8a63fe0..881048ed 100644 --- a/rbi/context_dev/models/monitor_retrieve_response.rbi +++ b/rbi/context_dev/models/monitor_retrieve_response.rbi @@ -49,6 +49,11 @@ module ContextDev end attr_writer :schedule + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. sig do returns( ContextDev::Models::MonitorRetrieveResponse::Status::TaggedSymbol @@ -68,9 +73,31 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :last_change_at + # Error from the most recent failed run; null when the last run succeeded. + sig do + returns( + T.nilable(ContextDev::Models::MonitorRetrieveResponse::LastError) + ) + end + attr_reader :last_error + + sig do + params( + last_error: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::LastError::OrHash + ) + ).void + end + attr_writer :last_error + sig { returns(T.nilable(Time)) } attr_accessor :last_run_at + # When the next scheduled run is due. + sig { returns(T.nilable(Time)) } + attr_accessor :next_run_at + # User-defined tags for grouping and filtering monitors and their changes. sig { returns(T.nilable(T::Array[String])) } attr_reader :tags @@ -117,7 +144,12 @@ module ContextDev ), updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable( + ContextDev::Models::MonitorRetrieveResponse::LastError::OrHash + ), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( @@ -138,12 +170,21 @@ module ContextDev # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. schedule:, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status:, # Discriminated union describing what the monitor watches. target:, updated_at:, last_change_at: nil, + # Error from the most recent failed run; null when the last run succeeded. + last_error: nil, last_run_at: nil, + # When the next scheduled run is due. + next_run_at: nil, # User-defined tags for grouping and filtering monitors and their changes. tags: nil, webhook: nil @@ -167,7 +208,10 @@ module ContextDev ContextDev::Models::MonitorRetrieveResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable(ContextDev::Models::MonitorRetrieveResponse::LastError), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable(ContextDev::Models::MonitorRetrieveResponse::Webhook) @@ -426,6 +470,11 @@ module ContextDev end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum @@ -552,13 +601,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -575,6 +628,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) @@ -703,6 +757,31 @@ module ContextDev end end + class LastError < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorRetrieveResponse::LastError, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + # Error from the most recent failed run; null when the last run succeeded. + sig { params(code: String, message: String).returns(T.attached_class) } + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + class Webhook < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/context_dev/models/monitor_run_response.rbi b/rbi/context_dev/models/monitor_run_response.rbi index 3ea367c8..1206809d 100644 --- a/rbi/context_dev/models/monitor_run_response.rbi +++ b/rbi/context_dev/models/monitor_run_response.rbi @@ -17,13 +17,30 @@ module ContextDev sig { returns(T::Boolean) } attr_accessor :queued + # The queued run. Poll GET /monitors/{monitor_id}/runs or use it to correlate + # results. + sig { returns(String) } + attr_accessor :run_id + sig do - params(monitor_id: String, queued: T::Boolean).returns(T.attached_class) + params(monitor_id: String, queued: T::Boolean, run_id: String).returns( + T.attached_class + ) end - def self.new(monitor_id:, queued:) + def self.new( + monitor_id:, + queued:, + # The queued run. Poll GET /monitors/{monitor_id}/runs or use it to correlate + # results. + run_id: + ) end - sig { override.returns({ monitor_id: String, queued: T::Boolean }) } + sig do + override.returns( + { monitor_id: String, queued: T::Boolean, run_id: String } + ) + end def to_hash end end diff --git a/rbi/context_dev/models/monitor_update_params.rbi b/rbi/context_dev/models/monitor_update_params.rbi index 098be095..395c2703 100644 --- a/rbi/context_dev/models/monitor_update_params.rbi +++ b/rbi/context_dev/models/monitor_update_params.rbi @@ -496,13 +496,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -519,6 +523,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) diff --git a/rbi/context_dev/models/monitor_update_response.rbi b/rbi/context_dev/models/monitor_update_response.rbi index a7af3c0e..77be8d5d 100644 --- a/rbi/context_dev/models/monitor_update_response.rbi +++ b/rbi/context_dev/models/monitor_update_response.rbi @@ -48,6 +48,11 @@ module ContextDev end attr_writer :schedule + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. sig do returns(ContextDev::Models::MonitorUpdateResponse::Status::TaggedSymbol) end @@ -65,9 +70,29 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :last_change_at + # Error from the most recent failed run; null when the last run succeeded. + sig do + returns(T.nilable(ContextDev::Models::MonitorUpdateResponse::LastError)) + end + attr_reader :last_error + + sig do + params( + last_error: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::LastError::OrHash + ) + ).void + end + attr_writer :last_error + sig { returns(T.nilable(Time)) } attr_accessor :last_run_at + # When the next scheduled run is due. + sig { returns(T.nilable(Time)) } + attr_accessor :next_run_at + # User-defined tags for grouping and filtering monitors and their changes. sig { returns(T.nilable(T::Array[String])) } attr_reader :tags @@ -113,7 +138,12 @@ module ContextDev ), updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable( + ContextDev::Models::MonitorUpdateResponse::LastError::OrHash + ), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable( @@ -134,12 +164,21 @@ module ContextDev # every 6 hours or every 2 days. The total interval (frequency × unit) must be # between 10 minutes and 1 year. schedule:, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status:, # Discriminated union describing what the monitor watches. target:, updated_at:, last_change_at: nil, + # Error from the most recent failed run; null when the last run succeeded. + last_error: nil, last_run_at: nil, + # When the next scheduled run is due. + next_run_at: nil, # User-defined tags for grouping and filtering monitors and their changes. tags: nil, webhook: nil @@ -161,7 +200,10 @@ module ContextDev target: ContextDev::Models::MonitorUpdateResponse::Target::Variants, updated_at: Time, last_change_at: T.nilable(Time), + last_error: + T.nilable(ContextDev::Models::MonitorUpdateResponse::LastError), last_run_at: T.nilable(Time), + next_run_at: T.nilable(Time), tags: T::Array[String], webhook: T.nilable(ContextDev::Models::MonitorUpdateResponse::Webhook) @@ -420,6 +462,11 @@ module ContextDev end end + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. module Status extend ContextDev::Internal::Type::Enum @@ -546,13 +593,17 @@ module ContextDev sig { params(include: T::Array[String]).void } attr_writer :include + # Maximum number of sitemap URLs to track (capped at 10,000). sig { returns(T.nilable(Integer)) } attr_reader :max_urls sig { params(max_urls: Integer).void } attr_writer :max_urls - # Watch a sitemap for URL additions and removals. + # Watch a sitemap for URL additions and removals. Crawled URLs are normalized + # (lowercased host, no trailing slash/fragment) and scoped to the monitored site + # and its subdomains before comparison. A new URL set must be observed on two + # consecutive runs before a change is reported, suppressing one-run crawl flaps. sig do params( url: String, @@ -569,6 +620,7 @@ module ContextDev exclude: nil, # URL path patterns to include. include: nil, + # Maximum number of sitemap URLs to track (capped at 10,000). max_urls: nil, type: :sitemap ) @@ -697,6 +749,31 @@ module ContextDev end end + class LastError < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorUpdateResponse::LastError, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :code + + sig { returns(String) } + attr_accessor :message + + # Error from the most recent failed run; null when the last run succeeded. + sig { params(code: String, message: String).returns(T.attached_class) } + def self.new(code:, message:) + end + + sig { override.returns({ code: String, message: String }) } + def to_hash + end + end + class Webhook < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/context_dev/resources/monitors.rbi b/rbi/context_dev/resources/monitors.rbi index d7b9e46b..0485be14 100644 --- a/rbi/context_dev/resources/monitors.rbi +++ b/rbi/context_dev/resources/monitors.rbi @@ -137,6 +137,11 @@ module ContextDev # `prefix` for as-you-type prefix matching (default), `exact` for full-token # matching. search_type: nil, + # Monitor lifecycle status. `failed` means the most recent run failed (see the + # monitor's `last_error`); failed monitors keep running on schedule and flip back + # to `active` on the next successful run. Monitors are auto-`paused` after + # repeated consecutive failures or insufficient-credit skips; resume by PATCHing + # status to `active`. status: nil, # Filter to items that have this tag. tag: nil, @@ -199,6 +204,8 @@ module ContextDev def list_account_runs( cursor: nil, limit: nil, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). status: nil, request_options: {} ) @@ -242,6 +249,8 @@ module ContextDev monitor_id, cursor: nil, limit: nil, + # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` + # (insufficient credits, monitor paused, or superseded by a concurrent run). status: nil, request_options: {} ) diff --git a/sig/context_dev/models/monitor_create_response.rbs b/sig/context_dev/models/monitor_create_response.rbs index a09fcb4d..138e72a3 100644 --- a/sig/context_dev/models/monitor_create_response.rbs +++ b/sig/context_dev/models/monitor_create_response.rbs @@ -12,7 +12,9 @@ module ContextDev target: ContextDev::Models::MonitorCreateResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorCreateResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorCreateResponse::Webhook? } @@ -38,8 +40,12 @@ module ContextDev attr_accessor last_change_at: Time? + attr_accessor last_error: ContextDev::Models::MonitorCreateResponse::LastError? + attr_accessor last_run_at: Time? + attr_accessor next_run_at: Time? + attr_reader tags: ::Array[String]? def tags=: (::Array[String]) -> ::Array[String] @@ -57,7 +63,9 @@ module ContextDev target: ContextDev::Models::MonitorCreateResponse::target, updated_at: Time, ?last_change_at: Time?, + ?last_error: ContextDev::Models::MonitorCreateResponse::LastError?, ?last_run_at: Time?, + ?next_run_at: Time?, ?tags: ::Array[String], ?webhook: ContextDev::Models::MonitorCreateResponse::Webhook? ) -> void @@ -73,7 +81,9 @@ module ContextDev target: ContextDev::Models::MonitorCreateResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorCreateResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorCreateResponse::Webhook? } @@ -329,6 +339,18 @@ module ContextDev def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::target] end + type last_error = { code: String, message: String } + + class LastError < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + type webhook = { url: String, secret: String } class Webhook < ContextDev::Internal::Type::BaseModel diff --git a/sig/context_dev/models/monitor_list_account_runs_params.rbs b/sig/context_dev/models/monitor_list_account_runs_params.rbs index eb18e47f..e0f58a1e 100644 --- a/sig/context_dev/models/monitor_list_account_runs_params.rbs +++ b/sig/context_dev/models/monitor_list_account_runs_params.rbs @@ -40,7 +40,7 @@ module ContextDev request_options: ContextDev::RequestOptions } - type status = :queued | :running | :completed | :failed + type status = :queued | :running | :completed | :failed | :skipped module Status extend ContextDev::Internal::Type::Enum @@ -49,6 +49,7 @@ module ContextDev RUNNING: :running COMPLETED: :completed FAILED: :failed + SKIPPED: :skipped def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsParams::status] end diff --git a/sig/context_dev/models/monitor_list_account_runs_response.rbs b/sig/context_dev/models/monitor_list_account_runs_response.rbs index 6ae78794..e47bc1c5 100644 --- a/sig/context_dev/models/monitor_list_account_runs_response.rbs +++ b/sig/context_dev/models/monitor_list_account_runs_response.rbs @@ -32,6 +32,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, @@ -39,6 +40,7 @@ module ContextDev change_id: String?, completed_at: Time?, error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, started_at: Time? } @@ -51,6 +53,8 @@ module ContextDev attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type + attr_accessor credits_charged: Integer + attr_accessor monitor_id: String attr_accessor run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type @@ -65,6 +69,8 @@ module ContextDev attr_accessor error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error? + attr_accessor skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason? + attr_accessor started_at: Time? def initialize: ( @@ -72,6 +78,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, @@ -79,6 +86,7 @@ module ContextDev ?change_id: String?, ?completed_at: Time?, ?error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + ?skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, ?started_at: Time? ) -> void @@ -87,6 +95,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status, @@ -94,6 +103,7 @@ module ContextDev change_id: String?, completed_at: Time?, error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, + skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, started_at: Time? } @@ -119,7 +129,7 @@ module ContextDev def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type] end - type status = :queued | :running | :completed | :failed + type status = :queued | :running | :completed | :failed | :skipped module Status extend ContextDev::Internal::Type::Enum @@ -128,6 +138,7 @@ module ContextDev RUNNING: :running COMPLETED: :completed FAILED: :failed + SKIPPED: :skipped def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::status] end @@ -155,6 +166,18 @@ module ContextDev def to_hash: -> { code: String, message: String } end + + type skip_reason = :insufficient_credits | :monitor_paused | :superseded + + module SkipReason + extend ContextDev::Internal::Type::Enum + + INSUFFICIENT_CREDITS: :insufficient_credits + MONITOR_PAUSED: :monitor_paused + SUPERSEDED: :superseded + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason] + end end end end diff --git a/sig/context_dev/models/monitor_list_response.rbs b/sig/context_dev/models/monitor_list_response.rbs index bb614013..b15fc375 100644 --- a/sig/context_dev/models/monitor_list_response.rbs +++ b/sig/context_dev/models/monitor_list_response.rbs @@ -38,7 +38,9 @@ module ContextDev target: ContextDev::Models::MonitorListResponse::Data::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorListResponse::Data::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? } @@ -64,8 +66,12 @@ module ContextDev attr_accessor last_change_at: Time? + attr_accessor last_error: ContextDev::Models::MonitorListResponse::Data::LastError? + attr_accessor last_run_at: Time? + attr_accessor next_run_at: Time? + attr_reader tags: ::Array[String]? def tags=: (::Array[String]) -> ::Array[String] @@ -83,7 +89,9 @@ module ContextDev target: ContextDev::Models::MonitorListResponse::Data::target, updated_at: Time, ?last_change_at: Time?, + ?last_error: ContextDev::Models::MonitorListResponse::Data::LastError?, ?last_run_at: Time?, + ?next_run_at: Time?, ?tags: ::Array[String], ?webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? ) -> void @@ -99,7 +107,9 @@ module ContextDev target: ContextDev::Models::MonitorListResponse::Data::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorListResponse::Data::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorListResponse::Data::Webhook? } @@ -355,6 +365,18 @@ module ContextDev def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::target] end + type last_error = { code: String, message: String } + + class LastError < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + type webhook = { url: String, secret: String } class Webhook < ContextDev::Internal::Type::BaseModel diff --git a/sig/context_dev/models/monitor_list_runs_params.rbs b/sig/context_dev/models/monitor_list_runs_params.rbs index 5a2ec311..88934e03 100644 --- a/sig/context_dev/models/monitor_list_runs_params.rbs +++ b/sig/context_dev/models/monitor_list_runs_params.rbs @@ -45,7 +45,7 @@ module ContextDev request_options: ContextDev::RequestOptions } - type status = :queued | :running | :completed | :failed + type status = :queued | :running | :completed | :failed | :skipped module Status extend ContextDev::Internal::Type::Enum @@ -54,6 +54,7 @@ module ContextDev RUNNING: :running COMPLETED: :completed FAILED: :failed + SKIPPED: :skipped def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsParams::status] end diff --git a/sig/context_dev/models/monitor_list_runs_response.rbs b/sig/context_dev/models/monitor_list_runs_response.rbs index b1a6e852..fc023920 100644 --- a/sig/context_dev/models/monitor_list_runs_response.rbs +++ b/sig/context_dev/models/monitor_list_runs_response.rbs @@ -32,6 +32,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListRunsResponse::Data::status, @@ -39,6 +40,7 @@ module ContextDev change_id: String?, completed_at: Time?, error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, started_at: Time? } @@ -51,6 +53,8 @@ module ContextDev attr_accessor change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type + attr_accessor credits_charged: Integer + attr_accessor monitor_id: String attr_accessor run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type @@ -65,6 +69,8 @@ module ContextDev attr_accessor error: ContextDev::Models::MonitorListRunsResponse::Data::Error? + attr_accessor skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason? + attr_accessor started_at: Time? def initialize: ( @@ -72,6 +78,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListRunsResponse::Data::status, @@ -79,6 +86,7 @@ module ContextDev ?change_id: String?, ?completed_at: Time?, ?error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + ?skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, ?started_at: Time? ) -> void @@ -87,6 +95,7 @@ module ContextDev baseline_created: bool, change_detected: bool, change_detection_type: ContextDev::Models::MonitorListRunsResponse::Data::change_detection_type, + credits_charged: Integer, monitor_id: String, run_type: ContextDev::Models::MonitorListRunsResponse::Data::run_type, status: ContextDev::Models::MonitorListRunsResponse::Data::status, @@ -94,6 +103,7 @@ module ContextDev change_id: String?, completed_at: Time?, error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, + skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, started_at: Time? } @@ -119,7 +129,7 @@ module ContextDev def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::run_type] end - type status = :queued | :running | :completed | :failed + type status = :queued | :running | :completed | :failed | :skipped module Status extend ContextDev::Internal::Type::Enum @@ -128,6 +138,7 @@ module ContextDev RUNNING: :running COMPLETED: :completed FAILED: :failed + SKIPPED: :skipped def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::status] end @@ -155,6 +166,18 @@ module ContextDev def to_hash: -> { code: String, message: String } end + + type skip_reason = :insufficient_credits | :monitor_paused | :superseded + + module SkipReason + extend ContextDev::Internal::Type::Enum + + INSUFFICIENT_CREDITS: :insufficient_credits + MONITOR_PAUSED: :monitor_paused + SUPERSEDED: :superseded + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::skip_reason] + end end end end diff --git a/sig/context_dev/models/monitor_retrieve_change_response.rbs b/sig/context_dev/models/monitor_retrieve_change_response.rbs index 686ead0e..036ce95d 100644 --- a/sig/context_dev/models/monitor_retrieve_change_response.rbs +++ b/sig/context_dev/models/monitor_retrieve_change_response.rbs @@ -7,6 +7,7 @@ module ContextDev detected_at: Time, mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, title: String, @@ -38,6 +39,8 @@ module ContextDev attr_accessor monitor_id: String + attr_accessor run_id: String + attr_accessor summary: String attr_accessor target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type @@ -112,6 +115,7 @@ module ContextDev detected_at: Time, mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, title: String, @@ -138,6 +142,7 @@ module ContextDev detected_at: Time, mode: ContextDev::Models::MonitorRetrieveChangeResponse::mode, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::target_type, title: String, diff --git a/sig/context_dev/models/monitor_retrieve_response.rbs b/sig/context_dev/models/monitor_retrieve_response.rbs index 34ca56a3..85b0a972 100644 --- a/sig/context_dev/models/monitor_retrieve_response.rbs +++ b/sig/context_dev/models/monitor_retrieve_response.rbs @@ -12,7 +12,9 @@ module ContextDev target: ContextDev::Models::MonitorRetrieveResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorRetrieveResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? } @@ -38,8 +40,12 @@ module ContextDev attr_accessor last_change_at: Time? + attr_accessor last_error: ContextDev::Models::MonitorRetrieveResponse::LastError? + attr_accessor last_run_at: Time? + attr_accessor next_run_at: Time? + attr_reader tags: ::Array[String]? def tags=: (::Array[String]) -> ::Array[String] @@ -57,7 +63,9 @@ module ContextDev target: ContextDev::Models::MonitorRetrieveResponse::target, updated_at: Time, ?last_change_at: Time?, + ?last_error: ContextDev::Models::MonitorRetrieveResponse::LastError?, ?last_run_at: Time?, + ?next_run_at: Time?, ?tags: ::Array[String], ?webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? ) -> void @@ -73,7 +81,9 @@ module ContextDev target: ContextDev::Models::MonitorRetrieveResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorRetrieveResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook? } @@ -329,6 +339,18 @@ module ContextDev def self?.variants: -> ::Array[ContextDev::Models::MonitorRetrieveResponse::target] end + type last_error = { code: String, message: String } + + class LastError < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + type webhook = { url: String, secret: String } class Webhook < ContextDev::Internal::Type::BaseModel diff --git a/sig/context_dev/models/monitor_run_response.rbs b/sig/context_dev/models/monitor_run_response.rbs index a0d3418d..fe68a602 100644 --- a/sig/context_dev/models/monitor_run_response.rbs +++ b/sig/context_dev/models/monitor_run_response.rbs @@ -1,15 +1,18 @@ module ContextDev module Models - type monitor_run_response = { monitor_id: String, queued: bool } + type monitor_run_response = + { monitor_id: String, queued: bool, run_id: String } class MonitorRunResponse < ContextDev::Internal::Type::BaseModel attr_accessor monitor_id: String attr_accessor queued: bool - def initialize: (monitor_id: String, queued: bool) -> void + attr_accessor run_id: String - def to_hash: -> { monitor_id: String, queued: bool } + def initialize: (monitor_id: String, queued: bool, run_id: String) -> void + + def to_hash: -> { monitor_id: String, queued: bool, run_id: String } end end end diff --git a/sig/context_dev/models/monitor_update_response.rbs b/sig/context_dev/models/monitor_update_response.rbs index ba170dad..5a63ecd5 100644 --- a/sig/context_dev/models/monitor_update_response.rbs +++ b/sig/context_dev/models/monitor_update_response.rbs @@ -12,7 +12,9 @@ module ContextDev target: ContextDev::Models::MonitorUpdateResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorUpdateResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? } @@ -38,8 +40,12 @@ module ContextDev attr_accessor last_change_at: Time? + attr_accessor last_error: ContextDev::Models::MonitorUpdateResponse::LastError? + attr_accessor last_run_at: Time? + attr_accessor next_run_at: Time? + attr_reader tags: ::Array[String]? def tags=: (::Array[String]) -> ::Array[String] @@ -57,7 +63,9 @@ module ContextDev target: ContextDev::Models::MonitorUpdateResponse::target, updated_at: Time, ?last_change_at: Time?, + ?last_error: ContextDev::Models::MonitorUpdateResponse::LastError?, ?last_run_at: Time?, + ?next_run_at: Time?, ?tags: ::Array[String], ?webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? ) -> void @@ -73,7 +81,9 @@ module ContextDev target: ContextDev::Models::MonitorUpdateResponse::target, updated_at: Time, last_change_at: Time?, + last_error: ContextDev::Models::MonitorUpdateResponse::LastError?, last_run_at: Time?, + next_run_at: Time?, tags: ::Array[String], webhook: ContextDev::Models::MonitorUpdateResponse::Webhook? } @@ -329,6 +339,18 @@ module ContextDev def self?.variants: -> ::Array[ContextDev::Models::MonitorUpdateResponse::target] end + type last_error = { code: String, message: String } + + class LastError < ContextDev::Internal::Type::BaseModel + attr_accessor code: String + + attr_accessor message: String + + def initialize: (code: String, message: String) -> void + + def to_hash: -> { code: String, message: String } + end + type webhook = { url: String, secret: String } class Webhook < ContextDev::Internal::Type::BaseModel diff --git a/test/context_dev/resources/monitors_test.rb b/test/context_dev/resources/monitors_test.rb index a8c00ecc..14c23d0d 100644 --- a/test/context_dev/resources/monitors_test.rb +++ b/test/context_dev/resources/monitors_test.rb @@ -30,7 +30,9 @@ def test_create_required_params target: ContextDev::Models::MonitorCreateResponse::Target, updated_at: Time, last_change_at: Time | nil, + last_error: ContextDev::Models::MonitorCreateResponse::LastError | nil, last_run_at: Time | nil, + next_run_at: Time | nil, tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, webhook: ContextDev::Models::MonitorCreateResponse::Webhook | nil } @@ -58,7 +60,9 @@ def test_retrieve target: ContextDev::Models::MonitorRetrieveResponse::Target, updated_at: Time, last_change_at: Time | nil, + last_error: ContextDev::Models::MonitorRetrieveResponse::LastError | nil, last_run_at: Time | nil, + next_run_at: Time | nil, tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, webhook: ContextDev::Models::MonitorRetrieveResponse::Webhook | nil } @@ -86,7 +90,9 @@ def test_update target: ContextDev::Models::MonitorUpdateResponse::Target, updated_at: Time, last_change_at: Time | nil, + last_error: ContextDev::Models::MonitorUpdateResponse::LastError | nil, last_run_at: Time | nil, + next_run_at: Time | nil, tags: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil, webhook: ContextDev::Models::MonitorUpdateResponse::Webhook | nil } @@ -216,6 +222,7 @@ def test_retrieve_change detected_at: Time, mode: ContextDev::Models::MonitorRetrieveChangeResponse::Mode, monitor_id: String, + run_id: String, summary: String, target_type: ContextDev::Models::MonitorRetrieveChangeResponse::TargetType, title: String, @@ -250,7 +257,8 @@ def test_run assert_pattern do response => { monitor_id: String, - queued: ContextDev::Internal::Type::Boolean + queued: ContextDev::Internal::Type::Boolean, + run_id: String } end end From 00266958beb99d8747e4e5422a122792e0cb8080 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 05:13:35 +0000 Subject: [PATCH 08/19] feat(api): api update --- .stats.yml | 4 ++-- .../models/web_web_scrape_html_response.rb | 8 ++++++-- .../models/web_web_scrape_html_response.rbi | 19 ++++++++++++++++--- .../models/web_web_scrape_html_response.rbs | 4 ++++ 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e4f5649..7e518326 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-09b6020939995033719a53b988fb00bdb20c42d87070975a8d6b469fa18128fb.yml -openapi_spec_hash: ba3e471937a679e2c45c0b9a115fca5c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-6320934d3b42a03cc52429218247595c7119e91a615db570070f71849aaa74de.yml +openapi_spec_hash: c63aeaa0fdcc422e8ad59c9fb30d2476 config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/web_web_scrape_html_response.rb b/lib/context_dev/models/web_web_scrape_html_response.rb index 3948eb06..c6706f06 100644 --- a/lib/context_dev/models/web_web_scrape_html_response.rb +++ b/lib/context_dev/models/web_web_scrape_html_response.rb @@ -26,7 +26,8 @@ class WebWebScrapeHTMLResponse < ContextDev::Internal::Type::BaseModel # @!attribute type # Detected content type of the returned `html` field. Sitemaps and feeds are - # surfaced as `xml`; ordinary pages are `html`. + # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as + # `xlsx`/`xls` with the extracted sheets as HTML tables. # # @return [Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type] required :type, enum: -> { ContextDev::Models::WebWebScrapeHTMLResponse::Type } @@ -320,7 +321,8 @@ module Success end # Detected content type of the returned `html` field. Sitemaps and feeds are - # surfaced as `xml`; ordinary pages are `html`. + # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as + # `xlsx`/`xls` with the extracted sheets as HTML tables. # # @see ContextDev::Models::WebWebScrapeHTMLResponse#type module Type @@ -336,6 +338,8 @@ module Type PDF = :pdf DOCX = :docx DOC = :doc + XLSX = :xlsx + XLS = :xls # @!method self.values # @return [Array] diff --git a/rbi/context_dev/models/web_web_scrape_html_response.rbi b/rbi/context_dev/models/web_web_scrape_html_response.rbi index 84fb4e73..e897ee14 100644 --- a/rbi/context_dev/models/web_web_scrape_html_response.rbi +++ b/rbi/context_dev/models/web_web_scrape_html_response.rbi @@ -38,7 +38,8 @@ module ContextDev attr_accessor :success # Detected content type of the returned `html` field. Sitemaps and feeds are - # surfaced as `xml`; ordinary pages are `html`. + # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as + # `xlsx`/`xls` with the extracted sheets as HTML tables. sig do returns( ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol @@ -90,7 +91,8 @@ module ContextDev # Indicates success success:, # Detected content type of the returned `html` field. Sitemaps and feeds are - # surfaced as `xml`; ordinary pages are `html`. + # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as + # `xlsx`/`xls` with the extracted sheets as HTML tables. type:, # The URL that was scraped url:, @@ -607,7 +609,8 @@ module ContextDev end # Detected content type of the returned `html` field. Sitemaps and feeds are - # surfaced as `xml`; ordinary pages are `html`. + # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as + # `xlsx`/`xls` with the extracted sheets as HTML tables. module Type extend ContextDev::Internal::Type::Enum @@ -667,6 +670,16 @@ module ContextDev :doc, ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol ) + XLSX = + T.let( + :xlsx, + ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol + ) + XLS = + T.let( + :xls, + ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol + ) sig do override.returns( diff --git a/sig/context_dev/models/web_web_scrape_html_response.rbs b/sig/context_dev/models/web_web_scrape_html_response.rbs index 419e5188..7caa55ff 100644 --- a/sig/context_dev/models/web_web_scrape_html_response.rbs +++ b/sig/context_dev/models/web_web_scrape_html_response.rbs @@ -280,6 +280,8 @@ module ContextDev | :pdf | :docx | :doc + | :xlsx + | :xls module Type extend ContextDev::Internal::Type::Enum @@ -294,6 +296,8 @@ module ContextDev PDF: :pdf DOCX: :docx DOC: :doc + XLSX: :xlsx + XLS: :xls def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::type_] end From 4682d0b50170440ce7a3b60beadad10cefff3168 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 18:59:05 +0000 Subject: [PATCH 09/19] feat(api): api update --- .stats.yml | 4 ++-- .../models/web_web_scrape_html_response.rb | 8 ++++++-- .../models/web_web_scrape_html_response.rbi | 19 ++++++++++++++++--- .../models/web_web_scrape_html_response.rbs | 4 ++++ 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7e518326..3840f484 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-6320934d3b42a03cc52429218247595c7119e91a615db570070f71849aaa74de.yml -openapi_spec_hash: c63aeaa0fdcc422e8ad59c9fb30d2476 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-171b4c39eb26210aad8afd74d63d620bf45f7e0b7f2de3938c7239741ea3f2f4.yml +openapi_spec_hash: 752c05fc817dc766061bd4357bd327ba config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/web_web_scrape_html_response.rb b/lib/context_dev/models/web_web_scrape_html_response.rb index c6706f06..84279a0f 100644 --- a/lib/context_dev/models/web_web_scrape_html_response.rb +++ b/lib/context_dev/models/web_web_scrape_html_response.rb @@ -27,7 +27,8 @@ class WebWebScrapeHTMLResponse < ContextDev::Internal::Type::BaseModel # @!attribute type # Detected content type of the returned `html` field. Sitemaps and feeds are # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as - # `xlsx`/`xls` with the extracted sheets as HTML tables. + # `xlsx`/`xls` with the extracted sheets as HTML tables; PowerPoint presentations + # are surfaced as `pptx`/`ppt` with the extracted slides as HTML. # # @return [Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type] required :type, enum: -> { ContextDev::Models::WebWebScrapeHTMLResponse::Type } @@ -322,7 +323,8 @@ module Success # Detected content type of the returned `html` field. Sitemaps and feeds are # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as - # `xlsx`/`xls` with the extracted sheets as HTML tables. + # `xlsx`/`xls` with the extracted sheets as HTML tables; PowerPoint presentations + # are surfaced as `pptx`/`ppt` with the extracted slides as HTML. # # @see ContextDev::Models::WebWebScrapeHTMLResponse#type module Type @@ -340,6 +342,8 @@ module Type DOC = :doc XLSX = :xlsx XLS = :xls + PPTX = :pptx + PPT = :ppt # @!method self.values # @return [Array] diff --git a/rbi/context_dev/models/web_web_scrape_html_response.rbi b/rbi/context_dev/models/web_web_scrape_html_response.rbi index e897ee14..c4fef9c4 100644 --- a/rbi/context_dev/models/web_web_scrape_html_response.rbi +++ b/rbi/context_dev/models/web_web_scrape_html_response.rbi @@ -39,7 +39,8 @@ module ContextDev # Detected content type of the returned `html` field. Sitemaps and feeds are # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as - # `xlsx`/`xls` with the extracted sheets as HTML tables. + # `xlsx`/`xls` with the extracted sheets as HTML tables; PowerPoint presentations + # are surfaced as `pptx`/`ppt` with the extracted slides as HTML. sig do returns( ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol @@ -92,7 +93,8 @@ module ContextDev success:, # Detected content type of the returned `html` field. Sitemaps and feeds are # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as - # `xlsx`/`xls` with the extracted sheets as HTML tables. + # `xlsx`/`xls` with the extracted sheets as HTML tables; PowerPoint presentations + # are surfaced as `pptx`/`ppt` with the extracted slides as HTML. type:, # The URL that was scraped url:, @@ -610,7 +612,8 @@ module ContextDev # Detected content type of the returned `html` field. Sitemaps and feeds are # surfaced as `xml`; ordinary pages are `html`. Excel workbooks are surfaced as - # `xlsx`/`xls` with the extracted sheets as HTML tables. + # `xlsx`/`xls` with the extracted sheets as HTML tables; PowerPoint presentations + # are surfaced as `pptx`/`ppt` with the extracted slides as HTML. module Type extend ContextDev::Internal::Type::Enum @@ -680,6 +683,16 @@ module ContextDev :xls, ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol ) + PPTX = + T.let( + :pptx, + ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol + ) + PPT = + T.let( + :ppt, + ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol + ) sig do override.returns( diff --git a/sig/context_dev/models/web_web_scrape_html_response.rbs b/sig/context_dev/models/web_web_scrape_html_response.rbs index 7caa55ff..58382156 100644 --- a/sig/context_dev/models/web_web_scrape_html_response.rbs +++ b/sig/context_dev/models/web_web_scrape_html_response.rbs @@ -282,6 +282,8 @@ module ContextDev | :doc | :xlsx | :xls + | :pptx + | :ppt module Type extend ContextDev::Internal::Type::Enum @@ -298,6 +300,8 @@ module ContextDev DOC: :doc XLSX: :xlsx XLS: :xls + PPTX: :pptx + PPT: :ppt def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::type_] end From 4a4a0762b6c422c5507f847bb06b9ac0fb11e605 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 21:59:20 +0000 Subject: [PATCH 10/19] feat(api): api update --- .stats.yml | 4 ++-- .../models/web_web_scrape_images_params.rb | 13 ++++++++++++- lib/context_dev/resources/web.rb | 4 +++- .../models/web_web_scrape_images_params.rbi | 17 +++++++++++++++++ rbi/context_dev/resources/web.rbi | 6 ++++++ .../models/web_web_scrape_images_params.rbs | 7 +++++++ sig/context_dev/resources/web.rbs | 1 + 7 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3840f484..e7ac9695 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-171b4c39eb26210aad8afd74d63d620bf45f7e0b7f2de3938c7239741ea3f2f4.yml -openapi_spec_hash: 752c05fc817dc766061bd4357bd327ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-633097a61ae4e029434e5af07efa3017301fe8b391c27ada3eb68b61d798ef33.yml +openapi_spec_hash: 051b08a4c6530546d520aa7ec18f8123 config_hash: 7ec4851ee8d93177947e95df5ae897b5 diff --git a/lib/context_dev/models/web_web_scrape_images_params.rb b/lib/context_dev/models/web_web_scrape_images_params.rb index 93369385..d8c6269e 100644 --- a/lib/context_dev/models/web_web_scrape_images_params.rb +++ b/lib/context_dev/models/web_web_scrape_images_params.rb @@ -13,6 +13,15 @@ class WebWebScrapeImagesParams < ContextDev::Internal::Type::BaseModel # @return [String] required :url, String + # @!attribute dedupe + # When true, visually duplicate images are removed: every image is loaded and + # perceptually hashed, and only the highest-resolution copy of each duplicate + # group is kept. Images that cannot be downloaded or hashed are kept. Default: + # false. + # + # @return [Boolean, nil] + optional :dedupe, ContextDev::Internal::Type::Boolean + # @!attribute enrichment # Optional per-image processing, sent as deep-object query params such as # enrichment[resolution]=true. @@ -50,12 +59,14 @@ class WebWebScrapeImagesParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :wait_for_ms, Integer - # @!method initialize(url:, enrichment: nil, headers: nil, max_age_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {}) + # @!method initialize(url:, dedupe: nil, enrichment: nil, headers: nil, max_age_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::WebWebScrapeImagesParams} for more details. # # @param url [String] Page URL to inspect. Must include http:// or https://. # + # @param dedupe [Boolean] When true, visually duplicate images are removed: every image is loaded and perc + # # @param enrichment [ContextDev::Models::WebWebScrapeImagesParams::Enrichment] Optional per-image processing, sent as deep-object query params such as enrichme # # @param headers [Hash{Symbol=>String}] Optional outbound HTTP headers forwarded only to the target URL, sent as deep-ob diff --git a/lib/context_dev/resources/web.rb b/lib/context_dev/resources/web.rb index e2b08503..2c1f4590 100644 --- a/lib/context_dev/resources/web.rb +++ b/lib/context_dev/resources/web.rb @@ -386,10 +386,12 @@ def web_scrape_html(params) # embeds. The base request costs 1 credit. When enrichment is enabled, the entire # call costs 5 credits. # - # @overload web_scrape_images(url:, enrichment: nil, headers: nil, max_age_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {}) + # @overload web_scrape_images(url:, dedupe: nil, enrichment: nil, headers: nil, max_age_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {}) # # @param url [String] Page URL to inspect. Must include http:// or https://. # + # @param dedupe [Boolean] When true, visually duplicate images are removed: every image is loaded and perc + # # @param enrichment [ContextDev::Models::WebWebScrapeImagesParams::Enrichment] Optional per-image processing, sent as deep-object query params such as enrichme # # @param headers [Hash{Symbol=>String}] Optional outbound HTTP headers forwarded only to the target URL, sent as deep-ob diff --git a/rbi/context_dev/models/web_web_scrape_images_params.rbi b/rbi/context_dev/models/web_web_scrape_images_params.rbi index bcf78e8b..7a00016e 100644 --- a/rbi/context_dev/models/web_web_scrape_images_params.rbi +++ b/rbi/context_dev/models/web_web_scrape_images_params.rbi @@ -18,6 +18,16 @@ module ContextDev sig { returns(String) } attr_accessor :url + # When true, visually duplicate images are removed: every image is loaded and + # perceptually hashed, and only the highest-resolution copy of each duplicate + # group is kept. Images that cannot be downloaded or hashed are kept. Default: + # false. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :dedupe + + sig { params(dedupe: T::Boolean).void } + attr_writer :dedupe + # Optional per-image processing, sent as deep-object query params such as # enrichment[resolution]=true. sig do @@ -69,6 +79,7 @@ module ContextDev sig do params( url: String, + dedupe: T::Boolean, enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment::OrHash, headers: T::Hash[Symbol, String], max_age_ms: Integer, @@ -80,6 +91,11 @@ module ContextDev def self.new( # Page URL to inspect. Must include http:// or https://. url:, + # When true, visually duplicate images are removed: every image is loaded and + # perceptually hashed, and only the highest-resolution copy of each duplicate + # group is kept. Images that cannot be downloaded or hashed are kept. Default: + # false. + dedupe: nil, # Optional per-image processing, sent as deep-object query params such as # enrichment[resolution]=true. enrichment: nil, @@ -105,6 +121,7 @@ module ContextDev override.returns( { url: String, + dedupe: T::Boolean, enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment, headers: T::Hash[Symbol, String], max_age_ms: Integer, diff --git a/rbi/context_dev/resources/web.rbi b/rbi/context_dev/resources/web.rbi index fd411954..1c5366c6 100644 --- a/rbi/context_dev/resources/web.rbi +++ b/rbi/context_dev/resources/web.rbi @@ -444,6 +444,7 @@ module ContextDev sig do params( url: String, + dedupe: T::Boolean, enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment::OrHash, headers: T::Hash[Symbol, String], max_age_ms: Integer, @@ -455,6 +456,11 @@ module ContextDev def web_scrape_images( # Page URL to inspect. Must include http:// or https://. url:, + # When true, visually duplicate images are removed: every image is loaded and + # perceptually hashed, and only the highest-resolution copy of each duplicate + # group is kept. Images that cannot be downloaded or hashed are kept. Default: + # false. + dedupe: nil, # Optional per-image processing, sent as deep-object query params such as # enrichment[resolution]=true. enrichment: nil, diff --git a/sig/context_dev/models/web_web_scrape_images_params.rbs b/sig/context_dev/models/web_web_scrape_images_params.rbs index e40c7851..c5fa45f4 100644 --- a/sig/context_dev/models/web_web_scrape_images_params.rbs +++ b/sig/context_dev/models/web_web_scrape_images_params.rbs @@ -3,6 +3,7 @@ module ContextDev type web_web_scrape_images_params = { url: String, + dedupe: bool, enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment, headers: ::Hash[Symbol, String], max_age_ms: Integer, @@ -17,6 +18,10 @@ module ContextDev attr_accessor url: String + attr_reader dedupe: bool? + + def dedupe=: (bool) -> bool + attr_reader enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment? def enrichment=: ( @@ -41,6 +46,7 @@ module ContextDev def initialize: ( url: String, + ?dedupe: bool, ?enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment, ?headers: ::Hash[Symbol, String], ?max_age_ms: Integer, @@ -51,6 +57,7 @@ module ContextDev def to_hash: -> { url: String, + dedupe: bool, enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment, headers: ::Hash[Symbol, String], max_age_ms: Integer, diff --git a/sig/context_dev/resources/web.rbs b/sig/context_dev/resources/web.rbs index 167468fe..77075c8e 100644 --- a/sig/context_dev/resources/web.rbs +++ b/sig/context_dev/resources/web.rbs @@ -112,6 +112,7 @@ module ContextDev def web_scrape_images: ( url: String, + ?dedupe: bool, ?enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment, ?headers: ::Hash[Symbol, String], ?max_age_ms: Integer, From 30a77c5b486ae691c2b33e2f44903b911083510e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 01:39:15 +0000 Subject: [PATCH 11/19] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e7ac9695..ea3b8aea 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-633097a61ae4e029434e5af07efa3017301fe8b391c27ada3eb68b61d798ef33.yml -openapi_spec_hash: 051b08a4c6530546d520aa7ec18f8123 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-3bbf1a39f32a13c350bdbc1e8a98ebd3753ec54f70d75cd4656c1773b2d2ecad.yml +openapi_spec_hash: 69beb23616fa92b1c1f6a2a4f7a36390 config_hash: 7ec4851ee8d93177947e95df5ae897b5 From 2bd30cc1016339b2d6be4c931deac873eb0b0c88 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 03:17:55 +0000 Subject: [PATCH 12/19] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea3b8aea..77807bac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-3bbf1a39f32a13c350bdbc1e8a98ebd3753ec54f70d75cd4656c1773b2d2ecad.yml -openapi_spec_hash: 69beb23616fa92b1c1f6a2a4f7a36390 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-4b24bfbe3d1371e5ce175d71f9074b6f6aec35d4c3438013af2a54b776f8f126.yml +openapi_spec_hash: d3b67756889b03f77efaf8571bb09d59 config_hash: 7ec4851ee8d93177947e95df5ae897b5 From 0c7217869afe37beef4114b8c786ce76909116e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 04:28:16 +0000 Subject: [PATCH 13/19] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 77807bac..cb8d47f2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-4b24bfbe3d1371e5ce175d71f9074b6f6aec35d4c3438013af2a54b776f8f126.yml -openapi_spec_hash: d3b67756889b03f77efaf8571bb09d59 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-77005ca6ad90dc48689fe056a1dbd63f8eefb0224dc88530dd921a784a7b0185.yml +openapi_spec_hash: 8f3189c550a36de0ca5e1b032298acfd config_hash: 7ec4851ee8d93177947e95df5ae897b5 From 156ac80c64fe7ec4a4225d2c3add765767ff69c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 05:12:37 +0000 Subject: [PATCH 14/19] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb8d47f2..a272343b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-77005ca6ad90dc48689fe056a1dbd63f8eefb0224dc88530dd921a784a7b0185.yml -openapi_spec_hash: 8f3189c550a36de0ca5e1b032298acfd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-654e47d50a02e8b12f4f035b1a8ec6e864557fed57b744c909ca85127739cc30.yml +openapi_spec_hash: a44b7d4172c8c7cd395237738867d5cb config_hash: 7ec4851ee8d93177947e95df5ae897b5 From fa7f5bfa1e892a7dff26b169bd3ea7a6d0863048 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 05:31:12 +0000 Subject: [PATCH 15/19] feat(api): manual updates --- .stats.yml | 6 +- README.md | 25 +- lib/context_dev.rb | 14 - lib/context_dev/models.rb | 14 - lib/context_dev/models/ai_ai_query_params.rb | 235 - .../models/ai_ai_query_response.rb | 133 - .../brand_identify_from_transaction_params.rb | 474 -- ...rand_identify_from_transaction_response.rb | 1074 ---- .../models/brand_retrieve_by_email_params.rb | 195 - .../brand_retrieve_by_email_response.rb | 1071 ---- .../models/brand_retrieve_by_isin_params.rb | 195 - .../models/brand_retrieve_by_isin_response.rb | 1070 ---- .../models/brand_retrieve_by_name_params.rb | 452 -- .../models/brand_retrieve_by_name_response.rb | 1070 ---- .../models/brand_retrieve_by_ticker_params.rb | 283 -- .../brand_retrieve_by_ticker_response.rb | 1072 ---- .../models/brand_retrieve_params.rb | 1181 ++++- .../utility_prefetch_by_email_params.rb | 37 - .../utility_prefetch_by_email_response.rb | 68 - .../models/utility_prefetch_params.rb | 56 +- .../models/utility_prefetch_response.rb | 24 +- lib/context_dev/resources/ai.rb | 33 - lib/context_dev/resources/brand.rb | 208 +- lib/context_dev/resources/utility.rb | 44 +- rbi/context_dev/models.rbi | 16 - rbi/context_dev/models/ai_ai_query_params.rbi | 504 -- .../models/ai_ai_query_response.rbi | 267 - ...brand_identify_from_transaction_params.rbi | 2020 -------- ...and_identify_from_transaction_response.rbi | 3515 ------------- .../models/brand_retrieve_by_email_params.rbi | 743 --- .../brand_retrieve_by_email_response.rbi | 3511 ------------- .../models/brand_retrieve_by_isin_params.rbi | 743 --- .../brand_retrieve_by_isin_response.rbi | 3510 ------------- .../models/brand_retrieve_by_name_params.rbi | 1982 -------- .../brand_retrieve_by_name_response.rbi | 3510 ------------- .../brand_retrieve_by_ticker_params.rbi | 1153 ----- .../brand_retrieve_by_ticker_response.rbi | 3512 ------------- .../models/brand_retrieve_params.rbi | 4434 ++++++++++++++--- .../utility_prefetch_by_email_params.rbi | 65 - .../utility_prefetch_by_email_response.rbi | 132 - .../models/utility_prefetch_params.rbi | 93 +- .../models/utility_prefetch_response.rbi | 58 +- rbi/context_dev/resources/ai.rbi | 28 - rbi/context_dev/resources/brand.rbi | 242 +- rbi/context_dev/resources/utility.rbi | 39 +- sig/context_dev/models.rbs | 14 - sig/context_dev/models/ai_ai_query_params.rbs | 218 - .../models/ai_ai_query_response.rbs | 121 - ...brand_identify_from_transaction_params.rbs | 822 --- ...and_identify_from_transaction_response.rbs | 1441 ------ .../models/brand_retrieve_by_email_params.rbs | 305 -- .../brand_retrieve_by_email_response.rbs | 1441 ------ .../models/brand_retrieve_by_isin_params.rbs | 305 -- .../brand_retrieve_by_isin_response.rbs | 1441 ------ .../models/brand_retrieve_by_name_params.rbs | 801 --- .../brand_retrieve_by_name_response.rbs | 1441 ------ .../brand_retrieve_by_ticker_params.rbs | 467 -- .../brand_retrieve_by_ticker_response.rbs | 1441 ------ .../models/brand_retrieve_params.rbs | 1816 +++++-- .../utility_prefetch_by_email_params.rbs | 30 - .../utility_prefetch_by_email_response.rbs | 64 - .../models/utility_prefetch_params.rbs | 42 +- .../models/utility_prefetch_response.rbs | 25 +- sig/context_dev/resources/ai.rbs | 8 - sig/context_dev/resources/brand.rbs | 57 +- sig/context_dev/resources/utility.rbs | 9 +- test/context_dev/client_test.rb | 109 +- test/context_dev/resources/ai_test.rb | 31 - test/context_dev/resources/brand_test.rb | 97 +- test/context_dev/resources/utility_test.rb | 24 +- 70 files changed, 6709 insertions(+), 44972 deletions(-) delete mode 100644 lib/context_dev/models/ai_ai_query_params.rb delete mode 100644 lib/context_dev/models/ai_ai_query_response.rb delete mode 100644 lib/context_dev/models/brand_identify_from_transaction_params.rb delete mode 100644 lib/context_dev/models/brand_identify_from_transaction_response.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_email_params.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_email_response.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_isin_params.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_isin_response.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_name_params.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_name_response.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_ticker_params.rb delete mode 100644 lib/context_dev/models/brand_retrieve_by_ticker_response.rb delete mode 100644 lib/context_dev/models/utility_prefetch_by_email_params.rb delete mode 100644 lib/context_dev/models/utility_prefetch_by_email_response.rb delete mode 100644 rbi/context_dev/models/ai_ai_query_params.rbi delete mode 100644 rbi/context_dev/models/ai_ai_query_response.rbi delete mode 100644 rbi/context_dev/models/brand_identify_from_transaction_params.rbi delete mode 100644 rbi/context_dev/models/brand_identify_from_transaction_response.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_email_params.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_email_response.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_isin_params.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_isin_response.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_name_params.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_name_response.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi delete mode 100644 rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi delete mode 100644 rbi/context_dev/models/utility_prefetch_by_email_params.rbi delete mode 100644 rbi/context_dev/models/utility_prefetch_by_email_response.rbi delete mode 100644 sig/context_dev/models/ai_ai_query_params.rbs delete mode 100644 sig/context_dev/models/ai_ai_query_response.rbs delete mode 100644 sig/context_dev/models/brand_identify_from_transaction_params.rbs delete mode 100644 sig/context_dev/models/brand_identify_from_transaction_response.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_email_params.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_email_response.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_isin_params.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_isin_response.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_name_params.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_name_response.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_ticker_params.rbs delete mode 100644 sig/context_dev/models/brand_retrieve_by_ticker_response.rbs delete mode 100644 sig/context_dev/models/utility_prefetch_by_email_params.rbs delete mode 100644 sig/context_dev/models/utility_prefetch_by_email_response.rbs diff --git a/.stats.yml b/.stats.yml index a272343b..151723e6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-654e47d50a02e8b12f4f035b1a8ec6e864557fed57b744c909ca85127739cc30.yml +configured_endpoints: 29 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-2e40370ce4d7d019b30d43020674bb02aaaf2a67a8916772084815c874f99950.yml openapi_spec_hash: a44b7d4172c8c7cd395237738867d5cb -config_hash: 7ec4851ee8d93177947e95df5ae897b5 +config_hash: 472cc1adb51663e5b3d8dce16f6d29d9 diff --git a/README.md b/README.md index 23de0417..fdbf4ee2 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ context_dev = ContextDev::Client.new( api_key: ENV["CONTEXT_DEV_API_KEY"] # This is the default and can be omitted ) -brand = context_dev.brand.retrieve(domain: "REPLACE_ME") +response = context_dev.web.extract -puts(brand.brand) +puts(response.data) ``` ### Handling errors @@ -52,7 +52,7 @@ When the library is unable to connect to the API, or if the API returns a non-su ```ruby begin - brand = context_dev.brand.retrieve(domain: "REPLACE_ME") + web = context_dev.web.extract rescue ContextDev::Errors::APIConnectionError => e puts("The server could not be reached") puts(e.cause) # an underlying Exception, likely raised within `net/http` @@ -95,7 +95,7 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.brand.retrieve(domain: "REPLACE_ME", request_options: {max_retries: 5}) +context_dev.web.extract(request_options: {max_retries: 5}) ``` ### Timeouts @@ -109,7 +109,7 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.brand.retrieve(domain: "REPLACE_ME", request_options: {timeout: 5}) +context_dev.web.extract(request_options: {timeout: 5}) ``` On timeout, `ContextDev::Errors::APITimeoutError` is raised. @@ -139,9 +139,8 @@ You can send undocumented parameters to any endpoint, and read undocumented resp Note: the `extra_` parameters of the same name overrides the documented parameters. ```ruby -brand = - context_dev.brand.retrieve( - domain: "REPLACE_ME", +response = + context_dev.web.extract( request_options: { extra_query: {my_query_parameter: value}, extra_body: {my_body_parameter: value}, @@ -149,7 +148,7 @@ brand = } ) -puts(brand[:my_undocumented_property]) +puts(response[:my_undocumented_property]) ``` #### Undocumented request params @@ -187,18 +186,18 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio You can provide typesafe request parameters like so: ```ruby -context_dev.brand.retrieve(domain: "REPLACE_ME") +context_dev.web.extract ``` Or, equivalently: ```ruby # Hashes work, but are not typesafe: -context_dev.brand.retrieve(domain: "REPLACE_ME") +context_dev.web.extract # You can also splat a full Params class: -params = ContextDev::BrandRetrieveParams.new(domain: "REPLACE_ME") -context_dev.brand.retrieve(**params) +params = ContextDev::WebExtractParams.new +context_dev.web.extract(**params) ``` ### Enums diff --git a/lib/context_dev.rb b/lib/context_dev.rb index a97c18a2..9763b745 100644 --- a/lib/context_dev.rb +++ b/lib/context_dev.rb @@ -52,22 +52,10 @@ require_relative "context_dev/internal/transport/base_client" require_relative "context_dev/internal/transport/pooled_net_requester" require_relative "context_dev/client" -require_relative "context_dev/models/ai_ai_query_params" -require_relative "context_dev/models/ai_ai_query_response" require_relative "context_dev/models/ai_extract_product_params" require_relative "context_dev/models/ai_extract_product_response" require_relative "context_dev/models/ai_extract_products_params" require_relative "context_dev/models/ai_extract_products_response" -require_relative "context_dev/models/brand_identify_from_transaction_params" -require_relative "context_dev/models/brand_identify_from_transaction_response" -require_relative "context_dev/models/brand_retrieve_by_email_params" -require_relative "context_dev/models/brand_retrieve_by_email_response" -require_relative "context_dev/models/brand_retrieve_by_isin_params" -require_relative "context_dev/models/brand_retrieve_by_isin_response" -require_relative "context_dev/models/brand_retrieve_by_name_params" -require_relative "context_dev/models/brand_retrieve_by_name_response" -require_relative "context_dev/models/brand_retrieve_by_ticker_params" -require_relative "context_dev/models/brand_retrieve_by_ticker_response" require_relative "context_dev/models/brand_retrieve_params" require_relative "context_dev/models/brand_retrieve_response" require_relative "context_dev/models/brand_retrieve_simplified_params" @@ -98,8 +86,6 @@ require_relative "context_dev/models/monitor_run_response" require_relative "context_dev/models/monitor_update_params" require_relative "context_dev/models/monitor_update_response" -require_relative "context_dev/models/utility_prefetch_by_email_params" -require_relative "context_dev/models/utility_prefetch_by_email_response" require_relative "context_dev/models/utility_prefetch_params" require_relative "context_dev/models/utility_prefetch_response" require_relative "context_dev/models/web_extract_competitors_params" diff --git a/lib/context_dev/models.rb b/lib/context_dev/models.rb index f06c4897..c1d9bfbd 100644 --- a/lib/context_dev/models.rb +++ b/lib/context_dev/models.rb @@ -39,22 +39,10 @@ module ContextDev mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } } end - AIAIQueryParams = ContextDev::Models::AIAIQueryParams - AIExtractProductParams = ContextDev::Models::AIExtractProductParams AIExtractProductsParams = ContextDev::Models::AIExtractProductsParams - BrandIdentifyFromTransactionParams = ContextDev::Models::BrandIdentifyFromTransactionParams - - BrandRetrieveByEmailParams = ContextDev::Models::BrandRetrieveByEmailParams - - BrandRetrieveByIsinParams = ContextDev::Models::BrandRetrieveByIsinParams - - BrandRetrieveByNameParams = ContextDev::Models::BrandRetrieveByNameParams - - BrandRetrieveByTickerParams = ContextDev::Models::BrandRetrieveByTickerParams - BrandRetrieveParams = ContextDev::Models::BrandRetrieveParams BrandRetrieveSimplifiedParams = ContextDev::Models::BrandRetrieveSimplifiedParams @@ -85,8 +73,6 @@ module ContextDev MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams - UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams - UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams WebExtractCompetitorsParams = ContextDev::Models::WebExtractCompetitorsParams diff --git a/lib/context_dev/models/ai_ai_query_params.rb b/lib/context_dev/models/ai_ai_query_params.rb deleted file mode 100644 index 750181ef..00000000 --- a/lib/context_dev/models/ai_ai_query_params.rb +++ /dev/null @@ -1,235 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::AI#ai_query - class AIAIQueryParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute data_to_extract - # Array of data points to extract from the website - # - # @return [Array] - required :data_to_extract, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::AIAIQueryParams::DataToExtract] } - - # @!attribute domain - # The domain name to analyze - # - # @return [String] - required :domain, String - - # @!attribute specific_pages - # Optional object specifying which pages to analyze - # - # @return [ContextDev::Models::AIAIQueryParams::SpecificPages, nil] - optional :specific_pages, -> { ContextDev::AIAIQueryParams::SpecificPages } - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer, api_name: :timeoutMS - - # @!method initialize(data_to_extract:, domain:, specific_pages: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::AIAIQueryParams} for more details. - # - # @param data_to_extract [Array] Array of data points to extract from the website - # - # @param domain [String] The domain name to analyze - # - # @param specific_pages [ContextDev::Models::AIAIQueryParams::SpecificPages] Optional object specifying which pages to analyze - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - class DataToExtract < ContextDev::Internal::Type::BaseModel - # @!attribute datapoint_description - # Description of what to extract - # - # @return [String] - required :datapoint_description, String - - # @!attribute datapoint_example - # Example of the expected value - # - # @return [String] - required :datapoint_example, String - - # @!attribute datapoint_name - # Name of the data point to extract - # - # @return [String] - required :datapoint_name, String - - # @!attribute datapoint_type - # Type of the data point - # - # @return [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointType] - required :datapoint_type, enum: -> { ContextDev::AIAIQueryParams::DataToExtract::DatapointType } - - # @!attribute datapoint_list_type - # Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. - # Use 'object' to extract an array of objects matching a schema. - # - # @return [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointListType, nil] - optional :datapoint_list_type, enum: -> { ContextDev::AIAIQueryParams::DataToExtract::DatapointListType } - - # @!attribute datapoint_object_schema - # Schema definition for objects when datapoint_list_type is 'object'. Provide a - # map of field names to their scalar types. - # - # @return [Hash{Symbol=>Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointObjectSchema}, nil] - optional :datapoint_object_schema, - -> { ContextDev::Internal::Type::HashOf[enum: ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema] } - - # @!method initialize(datapoint_description:, datapoint_example:, datapoint_name:, datapoint_type:, datapoint_list_type: nil, datapoint_object_schema: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::AIAIQueryParams::DataToExtract} for more details. - # - # @param datapoint_description [String] Description of what to extract - # - # @param datapoint_example [String] Example of the expected value - # - # @param datapoint_name [String] Name of the data point to extract - # - # @param datapoint_type [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointType] Type of the data point - # - # @param datapoint_list_type [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointListType] Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. U - # - # @param datapoint_object_schema [Hash{Symbol=>Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointObjectSchema}] Schema definition for objects when datapoint_list_type is 'object'. Provide a ma - - # Type of the data point - # - # @see ContextDev::Models::AIAIQueryParams::DataToExtract#datapoint_type - module DatapointType - extend ContextDev::Internal::Type::Enum - - TEXT = :text - NUMBER = :number - DATE = :date - BOOLEAN = :boolean - LIST = :list - URL = :url - - # @!method self.values - # @return [Array] - end - - # Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. - # Use 'object' to extract an array of objects matching a schema. - # - # @see ContextDev::Models::AIAIQueryParams::DataToExtract#datapoint_list_type - module DatapointListType - extend ContextDev::Internal::Type::Enum - - STRING = :string - TEXT = :text - NUMBER = :number - DATE = :date - BOOLEAN = :boolean - LIST = :list - URL = :url - OBJECT = :object - - # @!method self.values - # @return [Array] - end - - module DatapointObjectSchema - extend ContextDev::Internal::Type::Enum - - STRING = :string - NUMBER = :number - DATE = :date - BOOLEAN = :boolean - - # @!method self.values - # @return [Array] - end - end - - class SpecificPages < ContextDev::Internal::Type::BaseModel - # @!attribute about_us - # Whether to analyze the about us page - # - # @return [Boolean, nil] - optional :about_us, ContextDev::Internal::Type::Boolean - - # @!attribute blog - # Whether to analyze the blog - # - # @return [Boolean, nil] - optional :blog, ContextDev::Internal::Type::Boolean - - # @!attribute careers - # Whether to analyze the careers page - # - # @return [Boolean, nil] - optional :careers, ContextDev::Internal::Type::Boolean - - # @!attribute contact_us - # Whether to analyze the contact us page - # - # @return [Boolean, nil] - optional :contact_us, ContextDev::Internal::Type::Boolean - - # @!attribute faq - # Whether to analyze the FAQ page - # - # @return [Boolean, nil] - optional :faq, ContextDev::Internal::Type::Boolean - - # @!attribute home_page - # Whether to analyze the home page - # - # @return [Boolean, nil] - optional :home_page, ContextDev::Internal::Type::Boolean - - # @!attribute pricing - # Whether to analyze the pricing page - # - # @return [Boolean, nil] - optional :pricing, ContextDev::Internal::Type::Boolean - - # @!attribute privacy_policy - # Whether to analyze the privacy policy page - # - # @return [Boolean, nil] - optional :privacy_policy, ContextDev::Internal::Type::Boolean - - # @!attribute terms_and_conditions - # Whether to analyze the terms and conditions page - # - # @return [Boolean, nil] - optional :terms_and_conditions, ContextDev::Internal::Type::Boolean - - # @!method initialize(about_us: nil, blog: nil, careers: nil, contact_us: nil, faq: nil, home_page: nil, pricing: nil, privacy_policy: nil, terms_and_conditions: nil) - # Optional object specifying which pages to analyze - # - # @param about_us [Boolean] Whether to analyze the about us page - # - # @param blog [Boolean] Whether to analyze the blog - # - # @param careers [Boolean] Whether to analyze the careers page - # - # @param contact_us [Boolean] Whether to analyze the contact us page - # - # @param faq [Boolean] Whether to analyze the FAQ page - # - # @param home_page [Boolean] Whether to analyze the home page - # - # @param pricing [Boolean] Whether to analyze the pricing page - # - # @param privacy_policy [Boolean] Whether to analyze the privacy policy page - # - # @param terms_and_conditions [Boolean] Whether to analyze the terms and conditions page - end - end - end -end diff --git a/lib/context_dev/models/ai_ai_query_response.rb b/lib/context_dev/models/ai_ai_query_response.rb deleted file mode 100644 index 90ce1a13..00000000 --- a/lib/context_dev/models/ai_ai_query_response.rb +++ /dev/null @@ -1,133 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::AI#ai_query - class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel - # @!attribute data_extracted - # Array of extracted data points - # - # @return [Array, nil] - optional :data_extracted, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIAIQueryResponse::DataExtracted] } - - # @!attribute domain - # The domain that was analyzed - # - # @return [String, nil] - optional :domain, String - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::AIAIQueryResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::AIAIQueryResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!attribute urls_analyzed - # List of URLs that were analyzed - # - # @return [Array, nil] - optional :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String] - - # @!method initialize(data_extracted: nil, domain: nil, key_metadata: nil, status: nil, urls_analyzed: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::AIAIQueryResponse} for more details. - # - # @param data_extracted [Array] Array of extracted data points - # - # @param domain [String] The domain that was analyzed - # - # @param key_metadata [ContextDev::Models::AIAIQueryResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - # - # @param urls_analyzed [Array] List of URLs that were analyzed - - class DataExtracted < ContextDev::Internal::Type::BaseModel - # @!attribute datapoint_name - # Name of the extracted data point - # - # @return [String, nil] - optional :datapoint_name, String - - # @!attribute datapoint_value - # Value of the extracted data point. Can be a primitive type, an array of - # primitives, or an array of objects when datapoint_list_type is 'object'. - # - # @return [String, Float, Boolean, Array, Array, Array, nil] - optional :datapoint_value, - union: -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue } - - # @!method initialize(datapoint_name: nil, datapoint_value: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::AIAIQueryResponse::DataExtracted} for more details. - # - # @param datapoint_name [String] Name of the extracted data point - # - # @param datapoint_value [String, Float, Boolean, Array, Array, Array] Value of the extracted data point. Can be a primitive type, an array of primitiv - - # Value of the extracted data point. Can be a primitive type, an array of - # primitives, or an array of objects when datapoint_list_type is 'object'. - # - # @see ContextDev::Models::AIAIQueryResponse::DataExtracted#datapoint_value - module DatapointValue - extend ContextDev::Internal::Type::Union - - variant String - - variant Float - - variant ContextDev::Internal::Type::Boolean - - variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::StringArray } - - variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::FloatArray } - - variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::UnionMember5Array } - - # @!method self.variants - # @return [Array(String, Float, Boolean, Array, Array, Array)] - - # @type [ContextDev::Internal::Type::Converter] - StringArray = ContextDev::Internal::Type::ArrayOf[String] - - # @type [ContextDev::Internal::Type::Converter] - FloatArray = ContextDev::Internal::Type::ArrayOf[Float] - - # @type [ContextDev::Internal::Type::Converter] - UnionMember5Array = ContextDev::Internal::Type::ArrayOf[ContextDev::Internal::Type::Unknown] - end - end - - # @see ContextDev::Models::AIAIQueryResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_identify_from_transaction_params.rb b/lib/context_dev/models/brand_identify_from_transaction_params.rb deleted file mode 100644 index 71657bb8..00000000 --- a/lib/context_dev/models/brand_identify_from_transaction_params.rb +++ /dev/null @@ -1,474 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#identify_from_transaction - class BrandIdentifyFromTransactionParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute transaction_info - # Transaction information to identify the brand - # - # @return [String] - required :transaction_info, String - - # @!attribute city - # Optional city name to prioritize when searching for the brand. - # - # @return [String, nil] - optional :city, String - - # @!attribute country_gl - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::CountryGl, nil] - optional :country_gl, enum: -> { ContextDev::BrandIdentifyFromTransactionParams::CountryGl } - - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage } - - # @!attribute high_confidence_only - # When set to true, the API will perform an additional verification steps to - # ensure the identified brand matches the transaction with high confidence. - # - # @return [Boolean, nil] - optional :high_confidence_only, ContextDev::Internal::Type::Boolean - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute mcc - # Optional Merchant Category Code (MCC) to help identify the business - # category/industry. - # - # @return [String, nil] - optional :mcc, String - - # @!attribute phone - # Optional phone number from the transaction to help verify brand match. - # - # @return [Float, nil] - optional :phone, Float - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandIdentifyFromTransactionParams} for more details. - # - # @param transaction_info [String] Transaction information to identify the brand - # - # @param city [String] Optional city name to prioritize when searching for the brand. - # - # @param country_gl [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::CountryGl] Optional country code (GL parameter) to specify the country. This affects the ge - # - # @param force_language [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param high_confidence_only [Boolean] When set to true, the API will perform an additional verification steps to ensur - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind - # - # @param phone [Float] Optional phone number from the transaction to help verify brand match. - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - module CountryGl - extend ContextDev::Internal::Type::Enum - - AD = :ad - AE = :ae - AF = :af - AG = :ag - AI = :ai - AL = :al - AM = :am - AN = :an - AO = :ao - AQ = :aq - AR = :ar - AS = :as - AT = :at - AU = :au - AW = :aw - AZ = :az - BA = :ba - BB = :bb - BD = :bd - BE = :be - BF = :bf - BG = :bg - BH = :bh - BI = :bi - BJ = :bj - BM = :bm - BN = :bn - BO = :bo - BR = :br - BS = :bs - BT = :bt - BV = :bv - BW = :bw - BY = :by - BZ = :bz - CA = :ca - CC = :cc - CD = :cd - CF = :cf - CG = :cg - CH = :ch - CI = :ci - CK = :ck - CL = :cl - CM = :cm - CN = :cn - CO = :co - CR = :cr - CU = :cu - CV = :cv - CX = :cx - CY = :cy - CZ = :cz - DE = :de - DJ = :dj - DK = :dk - DM = :dm - DO = :do - DZ = :dz - EC = :ec - EE = :ee - EG = :eg - EH = :eh - ER = :er - ES = :es - ET = :et - FI = :fi - FJ = :fj - FK = :fk - FM = :fm - FO = :fo - FR = :fr - GA = :ga - GB = :gb - GD = :gd - GE = :ge - GF = :gf - GH = :gh - GI = :gi - GL = :gl - GM = :gm - GN = :gn - GP = :gp - GQ = :gq - GR = :gr - GS = :gs - GT = :gt - GU = :gu - GW = :gw - GY = :gy - HK = :hk - HM = :hm - HN = :hn - HR = :hr - HT = :ht - HU = :hu - ID = :id - IE = :ie - IL = :il - IN = :in - IO = :io - IQ = :iq - IR = :ir - IS = :is - IT = :it - JM = :jm - JO = :jo - JP = :jp - KE = :ke - KG = :kg - KH = :kh - KI = :ki - KM = :km - KN = :kn - KP = :kp - KR = :kr - KW = :kw - KY = :ky - KZ = :kz - LA = :la - LB = :lb - LC = :lc - LI = :li - LK = :lk - LR = :lr - LS = :ls - LT = :lt - LU = :lu - LV = :lv - LY = :ly - MA = :ma - MC = :mc - MD = :md - MG = :mg - MH = :mh - MK = :mk - ML = :ml - MM = :mm - MN = :mn - MO = :mo - MP = :mp - MQ = :mq - MR = :mr - MS = :ms - MT = :mt - MU = :mu - MV = :mv - MW = :mw - MX = :mx - MY = :my - MZ = :mz - NA = :na - NC = :nc - NE = :ne - NF = :nf - NG = :ng - NI = :ni - NL = :nl - NO = :no - NP = :np - NR = :nr - NU = :nu - NZ = :nz - OM = :om - PA = :pa - PE = :pe - PF = :pf - PG = :pg - PH = :ph - PK = :pk - PL = :pl - PM = :pm - PN = :pn - PR = :pr - PS = :ps - PT = :pt - PW = :pw - PY = :py - QA = :qa - RE = :re - RO = :ro - RS = :rs - RU = :ru - RW = :rw - SA = :sa - SB = :sb - SC = :sc - SD = :sd - SE = :se - SG = :sg - SH = :sh - SI = :si - SJ = :sj - SK = :sk - SL = :sl - SM = :sm - SN = :sn - SO = :so - SR = :sr - ST = :st - SV = :sv - SY = :sy - SZ = :sz - TC = :tc - TD = :td - TF = :tf - TG = :tg - TH = :th - TJ = :tj - TK = :tk - TL = :tl - TM = :tm - TN = :tn - TO = :to - TR = :tr - TT = :tt - TV = :tv - TW = :tw - TZ = :tz - UA = :ua - UG = :ug - UM = :um - US = :us - UY = :uy - UZ = :uz - VA = :va - VC = :vc - VE = :ve - VG = :vg - VI = :vi - VN = :vn - VU = :vu - WF = :wf - WS = :ws - YE = :ye - YT = :yt - ZA = :za - ZM = :zm - ZW = :zw - - # @!method self.values - # @return [Array] - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/context_dev/models/brand_identify_from_transaction_response.rb b/lib/context_dev/models/brand_identify_from_transaction_response.rb deleted file mode 100644 index 8cca129b..00000000 --- a/lib/context_dev/models/brand_identify_from_transaction_response.rb +++ /dev/null @@ -1,1074 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#identify_from_transaction - class BrandIdentifyFromTransactionResponse < ContextDev::Internal::Type::BaseModel - # @!attribute brand - # Detailed brand information - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, nil] - optional :brand, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand } - - # @!attribute code - # HTTP status code - # - # @return [Integer, nil] - optional :code, Integer - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandIdentifyFromTransactionResponse} for more details. - # - # @param brand [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand] Detailed brand information - # - # @param code [Integer] HTTP status code - # - # @param key_metadata [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse#brand - class Brand < ContextDev::Internal::Type::BaseModel - # @!attribute address - # Physical address of the brand - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, nil] - optional :address, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address } - - # @!attribute backdrops - # An array of backdrop images for the brand - # - # @return [Array, nil] - optional :backdrops, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop] } - - # @!attribute colors - # An array of brand colors - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color] } - - # @!attribute description - # A brief description of the brand - # - # @return [String, nil] - optional :description, String - - # @!attribute domain - # The domain name of the brand - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Company email address - # - # @return [String, nil] - optional :email, String - - # @!attribute industries - # Industry classification information for the brand - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, nil] - optional :industries, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries } - - # @!attribute is_nsfw - # Indicates whether the brand content is not safe for work (NSFW) - # - # @return [Boolean, nil] - optional :is_nsfw, ContextDev::Internal::Type::Boolean - - # @!attribute links - # Important website links for the brand - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, nil] - optional :links, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links } - - # @!attribute logos - # An array of logos associated with the brand - # - # @return [Array, nil] - optional :logos, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo] } - - # @!attribute phone - # Company phone number - # - # @return [String, nil] - optional :phone, String - - # @!attribute primary_language - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage, nil] - optional :primary_language, - enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage }, - nil?: true - - # @!attribute slogan - # The brand's slogan - # - # @return [String, nil] - optional :slogan, String - - # @!attribute socials - # An array of social media links for the brand - # - # @return [Array, nil] - optional :socials, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social] } - - # @!attribute stock - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, nil] - optional :stock, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock } - - # @!attribute title - # The title or name of the brand - # - # @return [String, nil] - optional :title, String - - # @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand} for more - # details. - # - # Detailed brand information - # - # @param address [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address] Physical address of the brand - # - # @param backdrops [Array] An array of backdrop images for the brand - # - # @param colors [Array] An array of brand colors - # - # @param description [String] A brief description of the brand - # - # @param domain [String] The domain name of the brand - # - # @param email [String] Company email address - # - # @param industries [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries] Industry classification information for the brand - # - # @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW) - # - # @param links [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links] Important website links for the brand - # - # @param logos [Array] An array of logos associated with the brand - # - # @param phone [String] Company phone number - # - # @param primary_language [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang - # - # @param slogan [String] The brand's slogan - # - # @param socials [Array] An array of social media links for the brand - # - # @param stock [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c - # - # @param title [String] The title or name of the brand - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand#address - class Address < ContextDev::Internal::Type::BaseModel - # @!attribute city - # City name - # - # @return [String, nil] - optional :city, String - - # @!attribute country - # Country name - # - # @return [String, nil] - optional :country, String - - # @!attribute country_code - # Country code - # - # @return [String, nil] - optional :country_code, String - - # @!attribute postal_code - # Postal or ZIP code - # - # @return [String, nil] - optional :postal_code, String - - # @!attribute state_code - # State or province code - # - # @return [String, nil] - optional :state_code, String - - # @!attribute state_province - # State or province name - # - # @return [String, nil] - optional :state_province, String - - # @!attribute street - # Street address - # - # @return [String, nil] - optional :street, String - - # @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil) - # Physical address of the brand - # - # @param city [String] City name - # - # @param country [String] Country name - # - # @param country_code [String] Country code - # - # @param postal_code [String] Postal or ZIP code - # - # @param state_code [String] State or province code - # - # @param state_province [String] State or province name - # - # @param street [String] Street address - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the backdrop image - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color] } - - # @!attribute resolution - # Resolution of the backdrop image - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, nil] - optional :resolution, - -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution } - - # @!attribute url - # URL of the backdrop image - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, resolution: nil, url: nil) - # @param colors [Array] Array of colors in the backdrop image - # - # @param resolution [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image - # - # @param url [String] URL of the backdrop image - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the backdrop image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - end - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand#industries - class Industries < ContextDev::Internal::Type::BaseModel - # @!attribute eic - # Easy Industry Classification - array of industry and subindustry pairs - # - # @return [Array, nil] - optional :eic, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] } - - # @!method initialize(eic: nil) - # Industry classification information for the brand - # - # @param eic [Array] Easy Industry Classification - array of industry and subindustry pairs - - class Eic < ContextDev::Internal::Type::BaseModel - # @!attribute industry - # Industry classification enum - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry] - required :industry, - enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry } - - # @!attribute subindustry - # Subindustry classification enum - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry] - required :subindustry, - enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry } - - # @!method initialize(industry:, subindustry:) - # @param industry [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry] Industry classification enum - # - # @param subindustry [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry] Subindustry classification enum - - # Industry classification enum - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic#industry - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE = :"Aerospace & Defense" - TECHNOLOGY = :Technology - FINANCE = :Finance - HEALTHCARE = :Healthcare - RETAIL_E_COMMERCE = :"Retail & E-commerce" - ENTERTAINMENT = :Entertainment - EDUCATION = :Education - GOVERNMENT_NONPROFIT = :"Government & Nonprofit" - INDUSTRIAL_ENERGY = :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION = :"Automotive & Transportation" - LIFESTYLE_LEISURE = :"Lifestyle & Leisure" - LUXURY_FASHION = :"Luxury & Fashion" - NEWS_MEDIA = :"News & Media" - SPORTS = :Sports - REAL_ESTATE_PROP_TECH = :"Real Estate & PropTech" - LEGAL_COMPLIANCE = :"Legal & Compliance" - TELECOMMUNICATIONS = :Telecommunications - AGRICULTURE_FOOD = :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES = :"Professional Services & Agencies" - CHEMICALS_MATERIALS = :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN = :"Logistics & Supply Chain" - HOSPITALITY_TOURISM = :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT = :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG = :"Consumer Packaged Goods (CPG)" - - # @!method self.values - # @return [Array] - end - - # Subindustry classification enum - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic#subindustry - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING = :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY = :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS = :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY = :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION = :"Defense IT & Systems Integration" - SOFTWARE_B2_B = :"Software (B2B)" - SOFTWARE_B2_C = :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS = :"Cloud Infrastructure & DevOps" - CYBERSECURITY = :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS = :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS = :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE = :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS = :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS = :"Developer Tools & APIs" - WEB3_BLOCKCHAIN = :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING = :"XR & Spatial Computing" - BANKING_LENDING = :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH = :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH = :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT = :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS = :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS = :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT = :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS = :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING = :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES = :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT = :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS = :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS = :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE = :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH = :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS = :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS = :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS = :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS = :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES = :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS = :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL = :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE = :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL = :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE = :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT = :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING = :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS = :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT = :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS = :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH = :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS = :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION = :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING = :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING = :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING = :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES = :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING = :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES = :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES = :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION = :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH = :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE = :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT = :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES = :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY = :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S = :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT = :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY = :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS = :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES = :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY = :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT = :"Aviation & Aerospace Transport" - MARITIME_SHIPPING = :"Maritime Shipping" - FITNESS_WELLNESS = :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE = :"Beauty & Personal Care" - HOME_LIVING = :"Home & Living" - DATING_RELATIONSHIPS = :"Dating & Relationships" - HOBBIES_CRAFTS_DIY = :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR = :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL = :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES = :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS = :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE = :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS = :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION = :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION = :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS = :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY = :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE = :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM = :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS = :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO = :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA = :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS = :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA = :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA = :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS = :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS = :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES = :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING = :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS = :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS = :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT = :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING = :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT = :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES = :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS = :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS = :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES = :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE = :"Property Management Software" - RENTAL_PLATFORMS = :"Rental Platforms" - MORTGAGE_LENDING_TECH = :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS = :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES = :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION = :"Legal Tech & Automation" - REGULATORY_COMPLIANCE = :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS = :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT = :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC = :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT = :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE = :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION = :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING = :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET = :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS = :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE = :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS = :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS = :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS = :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS = :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH = :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION = :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION = :"Food Distribution" - RESTAURANTS_FOOD_SERVICE = :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT = :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE = :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE = :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING = :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES = :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS = :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES = :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT = :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS = :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS = :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO = :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING = :"Professional Training & Coaching" - SPECIALTY_CHEMICALS = :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS = :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER = :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS = :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES = :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES = :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE = :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS = :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH = :"Freight & Transportation Tech" - LAST_MILE_DELIVERY = :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION = :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES = :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING = :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS = :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS = :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH = :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION = :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS = :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT = :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS = :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES = :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM = :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS = :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT = :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT = :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION = :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE = :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS = :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES = :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT = :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT = :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT = :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING = :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION = :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE = :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY = :"Smart Building Technology" - FOOD_BEVERAGE_CPG = :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG = :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS = :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS = :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION = :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING = :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE = :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING = :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG = :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG = :"Health & Wellness CPG" - - # @!method self.values - # @return [Array] - end - end - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand#links - class Links < ContextDev::Internal::Type::BaseModel - # @!attribute blog - # URL to the brand's blog or news page - # - # @return [String, nil] - optional :blog, String, nil?: true - - # @!attribute careers - # URL to the brand's careers or job opportunities page - # - # @return [String, nil] - optional :careers, String, nil?: true - - # @!attribute contact - # URL to the brand's contact or contact us page - # - # @return [String, nil] - optional :contact, String, nil?: true - - # @!attribute pricing - # URL to the brand's pricing or plans page - # - # @return [String, nil] - optional :pricing, String, nil?: true - - # @!attribute privacy - # URL to the brand's privacy policy page - # - # @return [String, nil] - optional :privacy, String, nil?: true - - # @!attribute terms - # URL to the brand's terms of service or terms and conditions page - # - # @return [String, nil] - optional :terms, String, nil?: true - - # @!method initialize(blog: nil, careers: nil, contact: nil, pricing: nil, privacy: nil, terms: nil) - # Important website links for the brand - # - # @param blog [String, nil] URL to the brand's blog or news page - # - # @param careers [String, nil] URL to the brand's careers or job opportunities page - # - # @param contact [String, nil] URL to the brand's contact or contact us page - # - # @param pricing [String, nil] URL to the brand's pricing or plans page - # - # @param privacy [String, nil] URL to the brand's privacy policy page - # - # @param terms [String, nil] URL to the brand's terms of service or terms and conditions page - end - - class Logo < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the logo - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color] } - - # @!attribute mode - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode, nil] - optional :mode, enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode } - - # @!attribute resolution - # Resolution of the logo image - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, nil] - optional :resolution, - -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution } - - # @!attribute type - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type } - - # @!attribute url - # CDN hosted url of the logo (ready for display) - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo} for more - # details. - # - # @param colors [Array] Array of colors in the logo - # - # @param mode [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b - # - # @param resolution [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution] Resolution of the logo image - # - # @param type [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @param url [String] CDN hosted url of the logo (ready for display) - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo#mode - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT = :light - DARK = :dark - HAS_OPAQUE_BACKGROUND = :has_opaque_background - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the logo image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo#type - module Type - extend ContextDev::Internal::Type::Enum - - ICON = :icon - LOGO = :logo - - # @!method self.values - # @return [Array] - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand#primary_language - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - class Social < ContextDev::Internal::Type::BaseModel - # @!attribute type - # Type of social media platform - # - # @return [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type } - - # @!attribute url - # URL of the social media page - # - # @return [String, nil] - optional :url, String - - # @!method initialize(type: nil, url: nil) - # @param type [Symbol, ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type] Type of social media platform - # - # @param url [String] URL of the social media page - - # Type of social media platform - # - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social#type - module Type - extend ContextDev::Internal::Type::Enum - - X = :x - FACEBOOK = :facebook - INSTAGRAM = :instagram - LINKEDIN = :linkedin - YOUTUBE = :youtube - PINTEREST = :pinterest - TIKTOK = :tiktok - DRIBBBLE = :dribbble - GITHUB = :github - BEHANCE = :behance - SNAPCHAT = :snapchat - WHATSAPP = :whatsapp - TELEGRAM = :telegram - LINE = :line - DISCORD = :discord - TWITCH = :twitch - VIMEO = :vimeo - IMDB = :imdb - TUMBLR = :tumblr - FLICKR = :flickr - GIPHY = :giphy - MEDIUM = :medium - SPOTIFY = :spotify - SOUNDCLOUD = :soundcloud - TRIPADVISOR = :tripadvisor - YELP = :yelp - PRODUCTHUNT = :producthunt - REDDIT = :reddit - CRUNCHBASE = :crunchbase - APPSTORE = :appstore - PLAYSTORE = :playstore - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand#stock - class Stock < ContextDev::Internal::Type::BaseModel - # @!attribute exchange - # Stock exchange name - # - # @return [String, nil] - optional :exchange, String - - # @!attribute ticker - # Stock ticker symbol - # - # @return [String, nil] - optional :ticker, String - - # @!method initialize(exchange: nil, ticker: nil) - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @param exchange [String] Stock exchange name - # - # @param ticker [String] Stock ticker symbol - end - end - - # @see ContextDev::Models::BrandIdentifyFromTransactionResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_email_params.rb b/lib/context_dev/models/brand_retrieve_by_email_params.rb deleted file mode 100644 index 96cb957b..00000000 --- a/lib/context_dev/models/brand_retrieve_by_email_params.rb +++ /dev/null @@ -1,195 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_email - class BrandRetrieveByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute email - # Email address to retrieve brand data for (e.g., 'contact@example.com'). The - # domain will be extracted from the email. Free email providers (gmail.com, - # yahoo.com, etc.) and disposable email addresses are not allowed. - # - # @return [String] - required :email, String - - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandRetrieveByEmailParams::ForceLanguage } - - # @!attribute max_age_ms - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - # - # @return [Integer, nil] - optional :max_age_ms, Integer - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByEmailParams} for more details. - # - # @param email [String] Email address to retrieve brand data for (e.g., 'contact@example.com'). The doma - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByEmailParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_email_response.rb b/lib/context_dev/models/brand_retrieve_by_email_response.rb deleted file mode 100644 index 00181f2a..00000000 --- a/lib/context_dev/models/brand_retrieve_by_email_response.rb +++ /dev/null @@ -1,1071 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_email - class BrandRetrieveByEmailResponse < ContextDev::Internal::Type::BaseModel - # @!attribute brand - # Detailed brand information - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand, nil] - optional :brand, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand } - - # @!attribute code - # HTTP status code - # - # @return [Integer, nil] - optional :code, Integer - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByEmailResponse} for more details. - # - # @param brand [ContextDev::Models::BrandRetrieveByEmailResponse::Brand] Detailed brand information - # - # @param code [Integer] HTTP status code - # - # @param key_metadata [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::BrandRetrieveByEmailResponse#brand - class Brand < ContextDev::Internal::Type::BaseModel - # @!attribute address - # Physical address of the brand - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, nil] - optional :address, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address } - - # @!attribute backdrops - # An array of backdrop images for the brand - # - # @return [Array, nil] - optional :backdrops, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop] } - - # @!attribute colors - # An array of brand colors - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color] } - - # @!attribute description - # A brief description of the brand - # - # @return [String, nil] - optional :description, String - - # @!attribute domain - # The domain name of the brand - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Company email address - # - # @return [String, nil] - optional :email, String - - # @!attribute industries - # Industry classification information for the brand - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, nil] - optional :industries, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries } - - # @!attribute is_nsfw - # Indicates whether the brand content is not safe for work (NSFW) - # - # @return [Boolean, nil] - optional :is_nsfw, ContextDev::Internal::Type::Boolean - - # @!attribute links - # Important website links for the brand - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, nil] - optional :links, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links } - - # @!attribute logos - # An array of logos associated with the brand - # - # @return [Array, nil] - optional :logos, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo] } - - # @!attribute phone - # Company phone number - # - # @return [String, nil] - optional :phone, String - - # @!attribute primary_language - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage, nil] - optional :primary_language, - enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage }, - nil?: true - - # @!attribute slogan - # The brand's slogan - # - # @return [String, nil] - optional :slogan, String - - # @!attribute socials - # An array of social media links for the brand - # - # @return [Array, nil] - optional :socials, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social] } - - # @!attribute stock - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, nil] - optional :stock, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock } - - # @!attribute title - # The title or name of the brand - # - # @return [String, nil] - optional :title, String - - # @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByEmailResponse::Brand} for more details. - # - # Detailed brand information - # - # @param address [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address] Physical address of the brand - # - # @param backdrops [Array] An array of backdrop images for the brand - # - # @param colors [Array] An array of brand colors - # - # @param description [String] A brief description of the brand - # - # @param domain [String] The domain name of the brand - # - # @param email [String] Company email address - # - # @param industries [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries] Industry classification information for the brand - # - # @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW) - # - # @param links [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links] Important website links for the brand - # - # @param logos [Array] An array of logos associated with the brand - # - # @param phone [String] Company phone number - # - # @param primary_language [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang - # - # @param slogan [String] The brand's slogan - # - # @param socials [Array] An array of social media links for the brand - # - # @param stock [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c - # - # @param title [String] The title or name of the brand - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand#address - class Address < ContextDev::Internal::Type::BaseModel - # @!attribute city - # City name - # - # @return [String, nil] - optional :city, String - - # @!attribute country - # Country name - # - # @return [String, nil] - optional :country, String - - # @!attribute country_code - # Country code - # - # @return [String, nil] - optional :country_code, String - - # @!attribute postal_code - # Postal or ZIP code - # - # @return [String, nil] - optional :postal_code, String - - # @!attribute state_code - # State or province code - # - # @return [String, nil] - optional :state_code, String - - # @!attribute state_province - # State or province name - # - # @return [String, nil] - optional :state_province, String - - # @!attribute street - # Street address - # - # @return [String, nil] - optional :street, String - - # @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil) - # Physical address of the brand - # - # @param city [String] City name - # - # @param country [String] Country name - # - # @param country_code [String] Country code - # - # @param postal_code [String] Postal or ZIP code - # - # @param state_code [String] State or province code - # - # @param state_province [String] State or province name - # - # @param street [String] Street address - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the backdrop image - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color] } - - # @!attribute resolution - # Resolution of the backdrop image - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution } - - # @!attribute url - # URL of the backdrop image - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, resolution: nil, url: nil) - # @param colors [Array] Array of colors in the backdrop image - # - # @param resolution [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image - # - # @param url [String] URL of the backdrop image - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the backdrop image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - end - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand#industries - class Industries < ContextDev::Internal::Type::BaseModel - # @!attribute eic - # Easy Industry Classification - array of industry and subindustry pairs - # - # @return [Array, nil] - optional :eic, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] } - - # @!method initialize(eic: nil) - # Industry classification information for the brand - # - # @param eic [Array] Easy Industry Classification - array of industry and subindustry pairs - - class Eic < ContextDev::Internal::Type::BaseModel - # @!attribute industry - # Industry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry] - required :industry, - enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry } - - # @!attribute subindustry - # Subindustry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry] - required :subindustry, - enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry } - - # @!method initialize(industry:, subindustry:) - # @param industry [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry] Industry classification enum - # - # @param subindustry [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry] Subindustry classification enum - - # Industry classification enum - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic#industry - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE = :"Aerospace & Defense" - TECHNOLOGY = :Technology - FINANCE = :Finance - HEALTHCARE = :Healthcare - RETAIL_E_COMMERCE = :"Retail & E-commerce" - ENTERTAINMENT = :Entertainment - EDUCATION = :Education - GOVERNMENT_NONPROFIT = :"Government & Nonprofit" - INDUSTRIAL_ENERGY = :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION = :"Automotive & Transportation" - LIFESTYLE_LEISURE = :"Lifestyle & Leisure" - LUXURY_FASHION = :"Luxury & Fashion" - NEWS_MEDIA = :"News & Media" - SPORTS = :Sports - REAL_ESTATE_PROP_TECH = :"Real Estate & PropTech" - LEGAL_COMPLIANCE = :"Legal & Compliance" - TELECOMMUNICATIONS = :Telecommunications - AGRICULTURE_FOOD = :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES = :"Professional Services & Agencies" - CHEMICALS_MATERIALS = :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN = :"Logistics & Supply Chain" - HOSPITALITY_TOURISM = :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT = :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG = :"Consumer Packaged Goods (CPG)" - - # @!method self.values - # @return [Array] - end - - # Subindustry classification enum - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic#subindustry - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING = :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY = :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS = :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY = :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION = :"Defense IT & Systems Integration" - SOFTWARE_B2_B = :"Software (B2B)" - SOFTWARE_B2_C = :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS = :"Cloud Infrastructure & DevOps" - CYBERSECURITY = :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS = :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS = :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE = :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS = :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS = :"Developer Tools & APIs" - WEB3_BLOCKCHAIN = :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING = :"XR & Spatial Computing" - BANKING_LENDING = :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH = :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH = :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT = :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS = :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS = :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT = :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS = :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING = :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES = :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT = :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS = :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS = :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE = :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH = :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS = :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS = :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS = :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS = :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES = :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS = :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL = :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE = :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL = :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE = :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT = :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING = :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS = :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT = :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS = :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH = :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS = :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION = :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING = :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING = :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING = :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES = :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING = :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES = :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES = :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION = :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH = :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE = :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT = :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES = :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY = :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S = :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT = :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY = :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS = :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES = :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY = :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT = :"Aviation & Aerospace Transport" - MARITIME_SHIPPING = :"Maritime Shipping" - FITNESS_WELLNESS = :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE = :"Beauty & Personal Care" - HOME_LIVING = :"Home & Living" - DATING_RELATIONSHIPS = :"Dating & Relationships" - HOBBIES_CRAFTS_DIY = :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR = :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL = :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES = :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS = :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE = :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS = :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION = :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION = :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS = :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY = :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE = :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM = :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS = :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO = :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA = :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS = :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA = :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA = :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS = :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS = :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES = :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING = :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS = :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS = :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT = :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING = :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT = :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES = :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS = :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS = :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES = :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE = :"Property Management Software" - RENTAL_PLATFORMS = :"Rental Platforms" - MORTGAGE_LENDING_TECH = :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS = :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES = :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION = :"Legal Tech & Automation" - REGULATORY_COMPLIANCE = :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS = :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT = :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC = :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT = :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE = :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION = :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING = :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET = :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS = :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE = :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS = :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS = :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS = :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS = :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH = :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION = :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION = :"Food Distribution" - RESTAURANTS_FOOD_SERVICE = :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT = :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE = :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE = :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING = :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES = :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS = :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES = :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT = :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS = :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS = :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO = :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING = :"Professional Training & Coaching" - SPECIALTY_CHEMICALS = :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS = :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER = :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS = :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES = :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES = :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE = :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS = :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH = :"Freight & Transportation Tech" - LAST_MILE_DELIVERY = :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION = :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES = :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING = :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS = :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS = :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH = :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION = :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS = :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT = :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS = :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES = :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM = :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS = :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT = :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT = :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION = :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE = :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS = :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES = :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT = :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT = :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT = :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING = :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION = :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE = :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY = :"Smart Building Technology" - FOOD_BEVERAGE_CPG = :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG = :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS = :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS = :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION = :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING = :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE = :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING = :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG = :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG = :"Health & Wellness CPG" - - # @!method self.values - # @return [Array] - end - end - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand#links - class Links < ContextDev::Internal::Type::BaseModel - # @!attribute blog - # URL to the brand's blog or news page - # - # @return [String, nil] - optional :blog, String, nil?: true - - # @!attribute careers - # URL to the brand's careers or job opportunities page - # - # @return [String, nil] - optional :careers, String, nil?: true - - # @!attribute contact - # URL to the brand's contact or contact us page - # - # @return [String, nil] - optional :contact, String, nil?: true - - # @!attribute pricing - # URL to the brand's pricing or plans page - # - # @return [String, nil] - optional :pricing, String, nil?: true - - # @!attribute privacy - # URL to the brand's privacy policy page - # - # @return [String, nil] - optional :privacy, String, nil?: true - - # @!attribute terms - # URL to the brand's terms of service or terms and conditions page - # - # @return [String, nil] - optional :terms, String, nil?: true - - # @!method initialize(blog: nil, careers: nil, contact: nil, pricing: nil, privacy: nil, terms: nil) - # Important website links for the brand - # - # @param blog [String, nil] URL to the brand's blog or news page - # - # @param careers [String, nil] URL to the brand's careers or job opportunities page - # - # @param contact [String, nil] URL to the brand's contact or contact us page - # - # @param pricing [String, nil] URL to the brand's pricing or plans page - # - # @param privacy [String, nil] URL to the brand's privacy policy page - # - # @param terms [String, nil] URL to the brand's terms of service or terms and conditions page - end - - class Logo < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the logo - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color] } - - # @!attribute mode - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode, nil] - optional :mode, enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode } - - # @!attribute resolution - # Resolution of the logo image - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution } - - # @!attribute type - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type } - - # @!attribute url - # CDN hosted url of the logo (ready for display) - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo} for more - # details. - # - # @param colors [Array] Array of colors in the logo - # - # @param mode [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b - # - # @param resolution [ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution] Resolution of the logo image - # - # @param type [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @param url [String] CDN hosted url of the logo (ready for display) - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo#mode - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT = :light - DARK = :dark - HAS_OPAQUE_BACKGROUND = :has_opaque_background - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the logo image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo#type - module Type - extend ContextDev::Internal::Type::Enum - - ICON = :icon - LOGO = :logo - - # @!method self.values - # @return [Array] - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand#primary_language - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - class Social < ContextDev::Internal::Type::BaseModel - # @!attribute type - # Type of social media platform - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type } - - # @!attribute url - # URL of the social media page - # - # @return [String, nil] - optional :url, String - - # @!method initialize(type: nil, url: nil) - # @param type [Symbol, ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type] Type of social media platform - # - # @param url [String] URL of the social media page - - # Type of social media platform - # - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social#type - module Type - extend ContextDev::Internal::Type::Enum - - X = :x - FACEBOOK = :facebook - INSTAGRAM = :instagram - LINKEDIN = :linkedin - YOUTUBE = :youtube - PINTEREST = :pinterest - TIKTOK = :tiktok - DRIBBBLE = :dribbble - GITHUB = :github - BEHANCE = :behance - SNAPCHAT = :snapchat - WHATSAPP = :whatsapp - TELEGRAM = :telegram - LINE = :line - DISCORD = :discord - TWITCH = :twitch - VIMEO = :vimeo - IMDB = :imdb - TUMBLR = :tumblr - FLICKR = :flickr - GIPHY = :giphy - MEDIUM = :medium - SPOTIFY = :spotify - SOUNDCLOUD = :soundcloud - TRIPADVISOR = :tripadvisor - YELP = :yelp - PRODUCTHUNT = :producthunt - REDDIT = :reddit - CRUNCHBASE = :crunchbase - APPSTORE = :appstore - PLAYSTORE = :playstore - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse::Brand#stock - class Stock < ContextDev::Internal::Type::BaseModel - # @!attribute exchange - # Stock exchange name - # - # @return [String, nil] - optional :exchange, String - - # @!attribute ticker - # Stock ticker symbol - # - # @return [String, nil] - optional :ticker, String - - # @!method initialize(exchange: nil, ticker: nil) - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @param exchange [String] Stock exchange name - # - # @param ticker [String] Stock ticker symbol - end - end - - # @see ContextDev::Models::BrandRetrieveByEmailResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_isin_params.rb b/lib/context_dev/models/brand_retrieve_by_isin_params.rb deleted file mode 100644 index 1da0d6d2..00000000 --- a/lib/context_dev/models/brand_retrieve_by_isin_params.rb +++ /dev/null @@ -1,195 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_isin - class BrandRetrieveByIsinParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute isin - # ISIN (International Securities Identification Number) to retrieve brand data for - # (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters - # followed by 9 alphanumeric characters and ending with a digit. - # - # @return [String] - required :isin, String - - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandRetrieveByIsinParams::ForceLanguage } - - # @!attribute max_age_ms - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - # - # @return [Integer, nil] - optional :max_age_ms, Integer - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(isin:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByIsinParams} for more details. - # - # @param isin [String] ISIN (International Securities Identification Number) to retrieve brand data for - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByIsinParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_isin_response.rb b/lib/context_dev/models/brand_retrieve_by_isin_response.rb deleted file mode 100644 index 9838df5c..00000000 --- a/lib/context_dev/models/brand_retrieve_by_isin_response.rb +++ /dev/null @@ -1,1070 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_isin - class BrandRetrieveByIsinResponse < ContextDev::Internal::Type::BaseModel - # @!attribute brand - # Detailed brand information - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand, nil] - optional :brand, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand } - - # @!attribute code - # HTTP status code - # - # @return [Integer, nil] - optional :code, Integer - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByIsinResponse} for more details. - # - # @param brand [ContextDev::Models::BrandRetrieveByIsinResponse::Brand] Detailed brand information - # - # @param code [Integer] HTTP status code - # - # @param key_metadata [ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::BrandRetrieveByIsinResponse#brand - class Brand < ContextDev::Internal::Type::BaseModel - # @!attribute address - # Physical address of the brand - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, nil] - optional :address, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address } - - # @!attribute backdrops - # An array of backdrop images for the brand - # - # @return [Array, nil] - optional :backdrops, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop] } - - # @!attribute colors - # An array of brand colors - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color] } - - # @!attribute description - # A brief description of the brand - # - # @return [String, nil] - optional :description, String - - # @!attribute domain - # The domain name of the brand - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Company email address - # - # @return [String, nil] - optional :email, String - - # @!attribute industries - # Industry classification information for the brand - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, nil] - optional :industries, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries } - - # @!attribute is_nsfw - # Indicates whether the brand content is not safe for work (NSFW) - # - # @return [Boolean, nil] - optional :is_nsfw, ContextDev::Internal::Type::Boolean - - # @!attribute links - # Important website links for the brand - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, nil] - optional :links, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links } - - # @!attribute logos - # An array of logos associated with the brand - # - # @return [Array, nil] - optional :logos, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo] } - - # @!attribute phone - # Company phone number - # - # @return [String, nil] - optional :phone, String - - # @!attribute primary_language - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage, nil] - optional :primary_language, - enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage }, - nil?: true - - # @!attribute slogan - # The brand's slogan - # - # @return [String, nil] - optional :slogan, String - - # @!attribute socials - # An array of social media links for the brand - # - # @return [Array, nil] - optional :socials, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social] } - - # @!attribute stock - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, nil] - optional :stock, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock } - - # @!attribute title - # The title or name of the brand - # - # @return [String, nil] - optional :title, String - - # @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByIsinResponse::Brand} for more details. - # - # Detailed brand information - # - # @param address [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address] Physical address of the brand - # - # @param backdrops [Array] An array of backdrop images for the brand - # - # @param colors [Array] An array of brand colors - # - # @param description [String] A brief description of the brand - # - # @param domain [String] The domain name of the brand - # - # @param email [String] Company email address - # - # @param industries [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries] Industry classification information for the brand - # - # @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW) - # - # @param links [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links] Important website links for the brand - # - # @param logos [Array] An array of logos associated with the brand - # - # @param phone [String] Company phone number - # - # @param primary_language [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang - # - # @param slogan [String] The brand's slogan - # - # @param socials [Array] An array of social media links for the brand - # - # @param stock [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c - # - # @param title [String] The title or name of the brand - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand#address - class Address < ContextDev::Internal::Type::BaseModel - # @!attribute city - # City name - # - # @return [String, nil] - optional :city, String - - # @!attribute country - # Country name - # - # @return [String, nil] - optional :country, String - - # @!attribute country_code - # Country code - # - # @return [String, nil] - optional :country_code, String - - # @!attribute postal_code - # Postal or ZIP code - # - # @return [String, nil] - optional :postal_code, String - - # @!attribute state_code - # State or province code - # - # @return [String, nil] - optional :state_code, String - - # @!attribute state_province - # State or province name - # - # @return [String, nil] - optional :state_province, String - - # @!attribute street - # Street address - # - # @return [String, nil] - optional :street, String - - # @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil) - # Physical address of the brand - # - # @param city [String] City name - # - # @param country [String] Country name - # - # @param country_code [String] Country code - # - # @param postal_code [String] Postal or ZIP code - # - # @param state_code [String] State or province code - # - # @param state_province [String] State or province name - # - # @param street [String] Street address - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the backdrop image - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color] } - - # @!attribute resolution - # Resolution of the backdrop image - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution } - - # @!attribute url - # URL of the backdrop image - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, resolution: nil, url: nil) - # @param colors [Array] Array of colors in the backdrop image - # - # @param resolution [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image - # - # @param url [String] URL of the backdrop image - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the backdrop image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - end - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand#industries - class Industries < ContextDev::Internal::Type::BaseModel - # @!attribute eic - # Easy Industry Classification - array of industry and subindustry pairs - # - # @return [Array, nil] - optional :eic, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] } - - # @!method initialize(eic: nil) - # Industry classification information for the brand - # - # @param eic [Array] Easy Industry Classification - array of industry and subindustry pairs - - class Eic < ContextDev::Internal::Type::BaseModel - # @!attribute industry - # Industry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry] - required :industry, - enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry } - - # @!attribute subindustry - # Subindustry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry] - required :subindustry, - enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry } - - # @!method initialize(industry:, subindustry:) - # @param industry [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry] Industry classification enum - # - # @param subindustry [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry] Subindustry classification enum - - # Industry classification enum - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic#industry - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE = :"Aerospace & Defense" - TECHNOLOGY = :Technology - FINANCE = :Finance - HEALTHCARE = :Healthcare - RETAIL_E_COMMERCE = :"Retail & E-commerce" - ENTERTAINMENT = :Entertainment - EDUCATION = :Education - GOVERNMENT_NONPROFIT = :"Government & Nonprofit" - INDUSTRIAL_ENERGY = :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION = :"Automotive & Transportation" - LIFESTYLE_LEISURE = :"Lifestyle & Leisure" - LUXURY_FASHION = :"Luxury & Fashion" - NEWS_MEDIA = :"News & Media" - SPORTS = :Sports - REAL_ESTATE_PROP_TECH = :"Real Estate & PropTech" - LEGAL_COMPLIANCE = :"Legal & Compliance" - TELECOMMUNICATIONS = :Telecommunications - AGRICULTURE_FOOD = :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES = :"Professional Services & Agencies" - CHEMICALS_MATERIALS = :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN = :"Logistics & Supply Chain" - HOSPITALITY_TOURISM = :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT = :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG = :"Consumer Packaged Goods (CPG)" - - # @!method self.values - # @return [Array] - end - - # Subindustry classification enum - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic#subindustry - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING = :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY = :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS = :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY = :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION = :"Defense IT & Systems Integration" - SOFTWARE_B2_B = :"Software (B2B)" - SOFTWARE_B2_C = :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS = :"Cloud Infrastructure & DevOps" - CYBERSECURITY = :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS = :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS = :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE = :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS = :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS = :"Developer Tools & APIs" - WEB3_BLOCKCHAIN = :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING = :"XR & Spatial Computing" - BANKING_LENDING = :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH = :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH = :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT = :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS = :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS = :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT = :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS = :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING = :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES = :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT = :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS = :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS = :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE = :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH = :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS = :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS = :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS = :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS = :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES = :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS = :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL = :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE = :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL = :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE = :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT = :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING = :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS = :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT = :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS = :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH = :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS = :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION = :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING = :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING = :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING = :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES = :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING = :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES = :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES = :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION = :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH = :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE = :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT = :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES = :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY = :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S = :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT = :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY = :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS = :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES = :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY = :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT = :"Aviation & Aerospace Transport" - MARITIME_SHIPPING = :"Maritime Shipping" - FITNESS_WELLNESS = :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE = :"Beauty & Personal Care" - HOME_LIVING = :"Home & Living" - DATING_RELATIONSHIPS = :"Dating & Relationships" - HOBBIES_CRAFTS_DIY = :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR = :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL = :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES = :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS = :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE = :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS = :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION = :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION = :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS = :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY = :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE = :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM = :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS = :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO = :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA = :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS = :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA = :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA = :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS = :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS = :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES = :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING = :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS = :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS = :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT = :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING = :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT = :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES = :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS = :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS = :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES = :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE = :"Property Management Software" - RENTAL_PLATFORMS = :"Rental Platforms" - MORTGAGE_LENDING_TECH = :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS = :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES = :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION = :"Legal Tech & Automation" - REGULATORY_COMPLIANCE = :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS = :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT = :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC = :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT = :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE = :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION = :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING = :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET = :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS = :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE = :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS = :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS = :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS = :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS = :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH = :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION = :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION = :"Food Distribution" - RESTAURANTS_FOOD_SERVICE = :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT = :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE = :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE = :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING = :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES = :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS = :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES = :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT = :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS = :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS = :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO = :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING = :"Professional Training & Coaching" - SPECIALTY_CHEMICALS = :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS = :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER = :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS = :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES = :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES = :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE = :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS = :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH = :"Freight & Transportation Tech" - LAST_MILE_DELIVERY = :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION = :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES = :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING = :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS = :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS = :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH = :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION = :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS = :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT = :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS = :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES = :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM = :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS = :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT = :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT = :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION = :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE = :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS = :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES = :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT = :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT = :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT = :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING = :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION = :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE = :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY = :"Smart Building Technology" - FOOD_BEVERAGE_CPG = :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG = :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS = :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS = :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION = :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING = :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE = :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING = :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG = :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG = :"Health & Wellness CPG" - - # @!method self.values - # @return [Array] - end - end - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand#links - class Links < ContextDev::Internal::Type::BaseModel - # @!attribute blog - # URL to the brand's blog or news page - # - # @return [String, nil] - optional :blog, String, nil?: true - - # @!attribute careers - # URL to the brand's careers or job opportunities page - # - # @return [String, nil] - optional :careers, String, nil?: true - - # @!attribute contact - # URL to the brand's contact or contact us page - # - # @return [String, nil] - optional :contact, String, nil?: true - - # @!attribute pricing - # URL to the brand's pricing or plans page - # - # @return [String, nil] - optional :pricing, String, nil?: true - - # @!attribute privacy - # URL to the brand's privacy policy page - # - # @return [String, nil] - optional :privacy, String, nil?: true - - # @!attribute terms - # URL to the brand's terms of service or terms and conditions page - # - # @return [String, nil] - optional :terms, String, nil?: true - - # @!method initialize(blog: nil, careers: nil, contact: nil, pricing: nil, privacy: nil, terms: nil) - # Important website links for the brand - # - # @param blog [String, nil] URL to the brand's blog or news page - # - # @param careers [String, nil] URL to the brand's careers or job opportunities page - # - # @param contact [String, nil] URL to the brand's contact or contact us page - # - # @param pricing [String, nil] URL to the brand's pricing or plans page - # - # @param privacy [String, nil] URL to the brand's privacy policy page - # - # @param terms [String, nil] URL to the brand's terms of service or terms and conditions page - end - - class Logo < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the logo - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color] } - - # @!attribute mode - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode, nil] - optional :mode, enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode } - - # @!attribute resolution - # Resolution of the logo image - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution } - - # @!attribute type - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type } - - # @!attribute url - # CDN hosted url of the logo (ready for display) - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo} for more details. - # - # @param colors [Array] Array of colors in the logo - # - # @param mode [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b - # - # @param resolution [ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution] Resolution of the logo image - # - # @param type [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @param url [String] CDN hosted url of the logo (ready for display) - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo#mode - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT = :light - DARK = :dark - HAS_OPAQUE_BACKGROUND = :has_opaque_background - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the logo image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo#type - module Type - extend ContextDev::Internal::Type::Enum - - ICON = :icon - LOGO = :logo - - # @!method self.values - # @return [Array] - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand#primary_language - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - class Social < ContextDev::Internal::Type::BaseModel - # @!attribute type - # Type of social media platform - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type } - - # @!attribute url - # URL of the social media page - # - # @return [String, nil] - optional :url, String - - # @!method initialize(type: nil, url: nil) - # @param type [Symbol, ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type] Type of social media platform - # - # @param url [String] URL of the social media page - - # Type of social media platform - # - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social#type - module Type - extend ContextDev::Internal::Type::Enum - - X = :x - FACEBOOK = :facebook - INSTAGRAM = :instagram - LINKEDIN = :linkedin - YOUTUBE = :youtube - PINTEREST = :pinterest - TIKTOK = :tiktok - DRIBBBLE = :dribbble - GITHUB = :github - BEHANCE = :behance - SNAPCHAT = :snapchat - WHATSAPP = :whatsapp - TELEGRAM = :telegram - LINE = :line - DISCORD = :discord - TWITCH = :twitch - VIMEO = :vimeo - IMDB = :imdb - TUMBLR = :tumblr - FLICKR = :flickr - GIPHY = :giphy - MEDIUM = :medium - SPOTIFY = :spotify - SOUNDCLOUD = :soundcloud - TRIPADVISOR = :tripadvisor - YELP = :yelp - PRODUCTHUNT = :producthunt - REDDIT = :reddit - CRUNCHBASE = :crunchbase - APPSTORE = :appstore - PLAYSTORE = :playstore - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse::Brand#stock - class Stock < ContextDev::Internal::Type::BaseModel - # @!attribute exchange - # Stock exchange name - # - # @return [String, nil] - optional :exchange, String - - # @!attribute ticker - # Stock ticker symbol - # - # @return [String, nil] - optional :ticker, String - - # @!method initialize(exchange: nil, ticker: nil) - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @param exchange [String] Stock exchange name - # - # @param ticker [String] Stock ticker symbol - end - end - - # @see ContextDev::Models::BrandRetrieveByIsinResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_name_params.rb b/lib/context_dev/models/brand_retrieve_by_name_params.rb deleted file mode 100644 index 3754e592..00000000 --- a/lib/context_dev/models/brand_retrieve_by_name_params.rb +++ /dev/null @@ -1,452 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_name - class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute name - # Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft - # Corporation'). Must be 3-30 characters. - # - # @return [String] - required :name, String - - # @!attribute country_gl - # Optional country code hint (GL parameter) to specify the country for the company - # name. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl, nil] - optional :country_gl, enum: -> { ContextDev::BrandRetrieveByNameParams::CountryGl } - - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandRetrieveByNameParams::ForceLanguage } - - # @!attribute max_age_ms - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - # - # @return [Integer, nil] - optional :max_age_ms, Integer - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByNameParams} for more details. - # - # @param name [String] Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft Corporati - # - # @param country_gl [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl] Optional country code hint (GL parameter) to specify the country for the company - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByNameParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - # Optional country code hint (GL parameter) to specify the country for the company - # name. - module CountryGl - extend ContextDev::Internal::Type::Enum - - AD = :ad - AE = :ae - AF = :af - AG = :ag - AI = :ai - AL = :al - AM = :am - AN = :an - AO = :ao - AQ = :aq - AR = :ar - AS = :as - AT = :at - AU = :au - AW = :aw - AZ = :az - BA = :ba - BB = :bb - BD = :bd - BE = :be - BF = :bf - BG = :bg - BH = :bh - BI = :bi - BJ = :bj - BM = :bm - BN = :bn - BO = :bo - BR = :br - BS = :bs - BT = :bt - BV = :bv - BW = :bw - BY = :by - BZ = :bz - CA = :ca - CC = :cc - CD = :cd - CF = :cf - CG = :cg - CH = :ch - CI = :ci - CK = :ck - CL = :cl - CM = :cm - CN = :cn - CO = :co - CR = :cr - CU = :cu - CV = :cv - CX = :cx - CY = :cy - CZ = :cz - DE = :de - DJ = :dj - DK = :dk - DM = :dm - DO = :do - DZ = :dz - EC = :ec - EE = :ee - EG = :eg - EH = :eh - ER = :er - ES = :es - ET = :et - FI = :fi - FJ = :fj - FK = :fk - FM = :fm - FO = :fo - FR = :fr - GA = :ga - GB = :gb - GD = :gd - GE = :ge - GF = :gf - GH = :gh - GI = :gi - GL = :gl - GM = :gm - GN = :gn - GP = :gp - GQ = :gq - GR = :gr - GS = :gs - GT = :gt - GU = :gu - GW = :gw - GY = :gy - HK = :hk - HM = :hm - HN = :hn - HR = :hr - HT = :ht - HU = :hu - ID = :id - IE = :ie - IL = :il - IN = :in - IO = :io - IQ = :iq - IR = :ir - IS = :is - IT = :it - JM = :jm - JO = :jo - JP = :jp - KE = :ke - KG = :kg - KH = :kh - KI = :ki - KM = :km - KN = :kn - KP = :kp - KR = :kr - KW = :kw - KY = :ky - KZ = :kz - LA = :la - LB = :lb - LC = :lc - LI = :li - LK = :lk - LR = :lr - LS = :ls - LT = :lt - LU = :lu - LV = :lv - LY = :ly - MA = :ma - MC = :mc - MD = :md - MG = :mg - MH = :mh - MK = :mk - ML = :ml - MM = :mm - MN = :mn - MO = :mo - MP = :mp - MQ = :mq - MR = :mr - MS = :ms - MT = :mt - MU = :mu - MV = :mv - MW = :mw - MX = :mx - MY = :my - MZ = :mz - NA = :na - NC = :nc - NE = :ne - NF = :nf - NG = :ng - NI = :ni - NL = :nl - NO = :no - NP = :np - NR = :nr - NU = :nu - NZ = :nz - OM = :om - PA = :pa - PE = :pe - PF = :pf - PG = :pg - PH = :ph - PK = :pk - PL = :pl - PM = :pm - PN = :pn - PR = :pr - PS = :ps - PT = :pt - PW = :pw - PY = :py - QA = :qa - RE = :re - RO = :ro - RS = :rs - RU = :ru - RW = :rw - SA = :sa - SB = :sb - SC = :sc - SD = :sd - SE = :se - SG = :sg - SH = :sh - SI = :si - SJ = :sj - SK = :sk - SL = :sl - SM = :sm - SN = :sn - SO = :so - SR = :sr - ST = :st - SV = :sv - SY = :sy - SZ = :sz - TC = :tc - TD = :td - TF = :tf - TG = :tg - TH = :th - TJ = :tj - TK = :tk - TL = :tl - TM = :tm - TN = :tn - TO = :to - TR = :tr - TT = :tt - TV = :tv - TW = :tw - TZ = :tz - UA = :ua - UG = :ug - UM = :um - US = :us - UY = :uy - UZ = :uz - VA = :va - VC = :vc - VE = :ve - VG = :vg - VI = :vi - VN = :vn - VU = :vu - WF = :wf - WS = :ws - YE = :ye - YT = :yt - ZA = :za - ZM = :zm - ZW = :zw - - # @!method self.values - # @return [Array] - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_name_response.rb b/lib/context_dev/models/brand_retrieve_by_name_response.rb deleted file mode 100644 index d9153858..00000000 --- a/lib/context_dev/models/brand_retrieve_by_name_response.rb +++ /dev/null @@ -1,1070 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_name - class BrandRetrieveByNameResponse < ContextDev::Internal::Type::BaseModel - # @!attribute brand - # Detailed brand information - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand, nil] - optional :brand, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand } - - # @!attribute code - # HTTP status code - # - # @return [Integer, nil] - optional :code, Integer - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByNameResponse} for more details. - # - # @param brand [ContextDev::Models::BrandRetrieveByNameResponse::Brand] Detailed brand information - # - # @param code [Integer] HTTP status code - # - # @param key_metadata [ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::BrandRetrieveByNameResponse#brand - class Brand < ContextDev::Internal::Type::BaseModel - # @!attribute address - # Physical address of the brand - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, nil] - optional :address, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address } - - # @!attribute backdrops - # An array of backdrop images for the brand - # - # @return [Array, nil] - optional :backdrops, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop] } - - # @!attribute colors - # An array of brand colors - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color] } - - # @!attribute description - # A brief description of the brand - # - # @return [String, nil] - optional :description, String - - # @!attribute domain - # The domain name of the brand - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Company email address - # - # @return [String, nil] - optional :email, String - - # @!attribute industries - # Industry classification information for the brand - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, nil] - optional :industries, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries } - - # @!attribute is_nsfw - # Indicates whether the brand content is not safe for work (NSFW) - # - # @return [Boolean, nil] - optional :is_nsfw, ContextDev::Internal::Type::Boolean - - # @!attribute links - # Important website links for the brand - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, nil] - optional :links, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links } - - # @!attribute logos - # An array of logos associated with the brand - # - # @return [Array, nil] - optional :logos, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo] } - - # @!attribute phone - # Company phone number - # - # @return [String, nil] - optional :phone, String - - # @!attribute primary_language - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage, nil] - optional :primary_language, - enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage }, - nil?: true - - # @!attribute slogan - # The brand's slogan - # - # @return [String, nil] - optional :slogan, String - - # @!attribute socials - # An array of social media links for the brand - # - # @return [Array, nil] - optional :socials, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social] } - - # @!attribute stock - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, nil] - optional :stock, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock } - - # @!attribute title - # The title or name of the brand - # - # @return [String, nil] - optional :title, String - - # @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByNameResponse::Brand} for more details. - # - # Detailed brand information - # - # @param address [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address] Physical address of the brand - # - # @param backdrops [Array] An array of backdrop images for the brand - # - # @param colors [Array] An array of brand colors - # - # @param description [String] A brief description of the brand - # - # @param domain [String] The domain name of the brand - # - # @param email [String] Company email address - # - # @param industries [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries] Industry classification information for the brand - # - # @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW) - # - # @param links [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links] Important website links for the brand - # - # @param logos [Array] An array of logos associated with the brand - # - # @param phone [String] Company phone number - # - # @param primary_language [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang - # - # @param slogan [String] The brand's slogan - # - # @param socials [Array] An array of social media links for the brand - # - # @param stock [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c - # - # @param title [String] The title or name of the brand - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand#address - class Address < ContextDev::Internal::Type::BaseModel - # @!attribute city - # City name - # - # @return [String, nil] - optional :city, String - - # @!attribute country - # Country name - # - # @return [String, nil] - optional :country, String - - # @!attribute country_code - # Country code - # - # @return [String, nil] - optional :country_code, String - - # @!attribute postal_code - # Postal or ZIP code - # - # @return [String, nil] - optional :postal_code, String - - # @!attribute state_code - # State or province code - # - # @return [String, nil] - optional :state_code, String - - # @!attribute state_province - # State or province name - # - # @return [String, nil] - optional :state_province, String - - # @!attribute street - # Street address - # - # @return [String, nil] - optional :street, String - - # @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil) - # Physical address of the brand - # - # @param city [String] City name - # - # @param country [String] Country name - # - # @param country_code [String] Country code - # - # @param postal_code [String] Postal or ZIP code - # - # @param state_code [String] State or province code - # - # @param state_province [String] State or province name - # - # @param street [String] Street address - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the backdrop image - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color] } - - # @!attribute resolution - # Resolution of the backdrop image - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution } - - # @!attribute url - # URL of the backdrop image - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, resolution: nil, url: nil) - # @param colors [Array] Array of colors in the backdrop image - # - # @param resolution [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image - # - # @param url [String] URL of the backdrop image - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the backdrop image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - end - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand#industries - class Industries < ContextDev::Internal::Type::BaseModel - # @!attribute eic - # Easy Industry Classification - array of industry and subindustry pairs - # - # @return [Array, nil] - optional :eic, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] } - - # @!method initialize(eic: nil) - # Industry classification information for the brand - # - # @param eic [Array] Easy Industry Classification - array of industry and subindustry pairs - - class Eic < ContextDev::Internal::Type::BaseModel - # @!attribute industry - # Industry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry] - required :industry, - enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry } - - # @!attribute subindustry - # Subindustry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry] - required :subindustry, - enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry } - - # @!method initialize(industry:, subindustry:) - # @param industry [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry] Industry classification enum - # - # @param subindustry [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry] Subindustry classification enum - - # Industry classification enum - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic#industry - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE = :"Aerospace & Defense" - TECHNOLOGY = :Technology - FINANCE = :Finance - HEALTHCARE = :Healthcare - RETAIL_E_COMMERCE = :"Retail & E-commerce" - ENTERTAINMENT = :Entertainment - EDUCATION = :Education - GOVERNMENT_NONPROFIT = :"Government & Nonprofit" - INDUSTRIAL_ENERGY = :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION = :"Automotive & Transportation" - LIFESTYLE_LEISURE = :"Lifestyle & Leisure" - LUXURY_FASHION = :"Luxury & Fashion" - NEWS_MEDIA = :"News & Media" - SPORTS = :Sports - REAL_ESTATE_PROP_TECH = :"Real Estate & PropTech" - LEGAL_COMPLIANCE = :"Legal & Compliance" - TELECOMMUNICATIONS = :Telecommunications - AGRICULTURE_FOOD = :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES = :"Professional Services & Agencies" - CHEMICALS_MATERIALS = :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN = :"Logistics & Supply Chain" - HOSPITALITY_TOURISM = :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT = :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG = :"Consumer Packaged Goods (CPG)" - - # @!method self.values - # @return [Array] - end - - # Subindustry classification enum - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic#subindustry - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING = :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY = :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS = :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY = :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION = :"Defense IT & Systems Integration" - SOFTWARE_B2_B = :"Software (B2B)" - SOFTWARE_B2_C = :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS = :"Cloud Infrastructure & DevOps" - CYBERSECURITY = :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS = :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS = :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE = :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS = :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS = :"Developer Tools & APIs" - WEB3_BLOCKCHAIN = :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING = :"XR & Spatial Computing" - BANKING_LENDING = :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH = :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH = :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT = :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS = :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS = :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT = :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS = :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING = :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES = :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT = :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS = :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS = :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE = :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH = :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS = :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS = :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS = :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS = :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES = :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS = :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL = :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE = :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL = :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE = :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT = :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING = :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS = :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT = :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS = :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH = :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS = :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION = :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING = :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING = :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING = :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES = :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING = :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES = :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES = :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION = :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH = :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE = :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT = :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES = :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY = :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S = :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT = :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY = :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS = :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES = :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY = :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT = :"Aviation & Aerospace Transport" - MARITIME_SHIPPING = :"Maritime Shipping" - FITNESS_WELLNESS = :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE = :"Beauty & Personal Care" - HOME_LIVING = :"Home & Living" - DATING_RELATIONSHIPS = :"Dating & Relationships" - HOBBIES_CRAFTS_DIY = :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR = :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL = :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES = :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS = :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE = :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS = :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION = :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION = :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS = :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY = :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE = :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM = :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS = :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO = :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA = :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS = :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA = :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA = :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS = :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS = :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES = :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING = :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS = :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS = :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT = :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING = :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT = :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES = :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS = :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS = :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES = :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE = :"Property Management Software" - RENTAL_PLATFORMS = :"Rental Platforms" - MORTGAGE_LENDING_TECH = :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS = :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES = :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION = :"Legal Tech & Automation" - REGULATORY_COMPLIANCE = :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS = :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT = :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC = :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT = :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE = :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION = :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING = :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET = :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS = :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE = :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS = :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS = :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS = :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS = :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH = :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION = :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION = :"Food Distribution" - RESTAURANTS_FOOD_SERVICE = :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT = :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE = :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE = :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING = :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES = :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS = :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES = :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT = :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS = :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS = :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO = :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING = :"Professional Training & Coaching" - SPECIALTY_CHEMICALS = :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS = :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER = :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS = :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES = :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES = :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE = :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS = :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH = :"Freight & Transportation Tech" - LAST_MILE_DELIVERY = :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION = :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES = :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING = :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS = :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS = :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH = :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION = :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS = :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT = :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS = :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES = :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM = :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS = :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT = :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT = :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION = :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE = :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS = :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES = :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT = :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT = :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT = :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING = :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION = :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE = :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY = :"Smart Building Technology" - FOOD_BEVERAGE_CPG = :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG = :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS = :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS = :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION = :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING = :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE = :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING = :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG = :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG = :"Health & Wellness CPG" - - # @!method self.values - # @return [Array] - end - end - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand#links - class Links < ContextDev::Internal::Type::BaseModel - # @!attribute blog - # URL to the brand's blog or news page - # - # @return [String, nil] - optional :blog, String, nil?: true - - # @!attribute careers - # URL to the brand's careers or job opportunities page - # - # @return [String, nil] - optional :careers, String, nil?: true - - # @!attribute contact - # URL to the brand's contact or contact us page - # - # @return [String, nil] - optional :contact, String, nil?: true - - # @!attribute pricing - # URL to the brand's pricing or plans page - # - # @return [String, nil] - optional :pricing, String, nil?: true - - # @!attribute privacy - # URL to the brand's privacy policy page - # - # @return [String, nil] - optional :privacy, String, nil?: true - - # @!attribute terms - # URL to the brand's terms of service or terms and conditions page - # - # @return [String, nil] - optional :terms, String, nil?: true - - # @!method initialize(blog: nil, careers: nil, contact: nil, pricing: nil, privacy: nil, terms: nil) - # Important website links for the brand - # - # @param blog [String, nil] URL to the brand's blog or news page - # - # @param careers [String, nil] URL to the brand's careers or job opportunities page - # - # @param contact [String, nil] URL to the brand's contact or contact us page - # - # @param pricing [String, nil] URL to the brand's pricing or plans page - # - # @param privacy [String, nil] URL to the brand's privacy policy page - # - # @param terms [String, nil] URL to the brand's terms of service or terms and conditions page - end - - class Logo < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the logo - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color] } - - # @!attribute mode - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode, nil] - optional :mode, enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode } - - # @!attribute resolution - # Resolution of the logo image - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution } - - # @!attribute type - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type } - - # @!attribute url - # CDN hosted url of the logo (ready for display) - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo} for more details. - # - # @param colors [Array] Array of colors in the logo - # - # @param mode [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b - # - # @param resolution [ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution] Resolution of the logo image - # - # @param type [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @param url [String] CDN hosted url of the logo (ready for display) - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo#mode - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT = :light - DARK = :dark - HAS_OPAQUE_BACKGROUND = :has_opaque_background - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the logo image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo#type - module Type - extend ContextDev::Internal::Type::Enum - - ICON = :icon - LOGO = :logo - - # @!method self.values - # @return [Array] - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand#primary_language - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - class Social < ContextDev::Internal::Type::BaseModel - # @!attribute type - # Type of social media platform - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type } - - # @!attribute url - # URL of the social media page - # - # @return [String, nil] - optional :url, String - - # @!method initialize(type: nil, url: nil) - # @param type [Symbol, ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type] Type of social media platform - # - # @param url [String] URL of the social media page - - # Type of social media platform - # - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social#type - module Type - extend ContextDev::Internal::Type::Enum - - X = :x - FACEBOOK = :facebook - INSTAGRAM = :instagram - LINKEDIN = :linkedin - YOUTUBE = :youtube - PINTEREST = :pinterest - TIKTOK = :tiktok - DRIBBBLE = :dribbble - GITHUB = :github - BEHANCE = :behance - SNAPCHAT = :snapchat - WHATSAPP = :whatsapp - TELEGRAM = :telegram - LINE = :line - DISCORD = :discord - TWITCH = :twitch - VIMEO = :vimeo - IMDB = :imdb - TUMBLR = :tumblr - FLICKR = :flickr - GIPHY = :giphy - MEDIUM = :medium - SPOTIFY = :spotify - SOUNDCLOUD = :soundcloud - TRIPADVISOR = :tripadvisor - YELP = :yelp - PRODUCTHUNT = :producthunt - REDDIT = :reddit - CRUNCHBASE = :crunchbase - APPSTORE = :appstore - PLAYSTORE = :playstore - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse::Brand#stock - class Stock < ContextDev::Internal::Type::BaseModel - # @!attribute exchange - # Stock exchange name - # - # @return [String, nil] - optional :exchange, String - - # @!attribute ticker - # Stock ticker symbol - # - # @return [String, nil] - optional :ticker, String - - # @!method initialize(exchange: nil, ticker: nil) - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @param exchange [String] Stock exchange name - # - # @param ticker [String] Stock ticker symbol - end - end - - # @see ContextDev::Models::BrandRetrieveByNameResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_ticker_params.rb b/lib/context_dev/models/brand_retrieve_by_ticker_params.rb deleted file mode 100644 index 86f6aab2..00000000 --- a/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +++ /dev/null @@ -1,283 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_ticker - class BrandRetrieveByTickerParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute ticker - # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # Must be 1-15 characters, letters/numbers/dots only. - # - # @return [String] - required :ticker, String - - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandRetrieveByTickerParams::ForceLanguage } - - # @!attribute max_age_ms - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - # - # @return [Integer, nil] - optional :max_age_ms, Integer - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute ticker_exchange - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::TickerExchange, nil] - optional :ticker_exchange, enum: -> { ContextDev::BrandRetrieveByTickerParams::TickerExchange } - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByTickerParams} for more details. - # - # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param ticker_exchange [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::TickerExchange] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - module TickerExchange - extend ContextDev::Internal::Type::Enum - - AMEX = :AMEX - AMS = :AMS - AQS = :AQS - ASX = :ASX - ATH = :ATH - BER = :BER - BME = :BME - BRU = :BRU - BSE = :BSE - BUD = :BUD - BUE = :BUE - BVC = :BVC - CBOE = :CBOE - CNQ = :CNQ - CPH = :CPH - DFM = :DFM - DOH = :DOH - DUB = :DUB - DUS = :DUS - DXE = :DXE - EGX = :EGX - FSX = :FSX - HAM = :HAM - HEL = :HEL - HKSE = :HKSE - HOSE = :HOSE - ICE = :ICE - IOB = :IOB - IST = :IST - JKT = :JKT - JNB = :JNB - JPX = :JPX - KLS = :KLS - KOE = :KOE - KSC = :KSC - KUW = :KUW - LIS = :LIS - LSE = :LSE - MCX = :MCX - MEX = :MEX - MIL = :MIL - MUN = :MUN - NASDAQ = :NASDAQ - NEO = :NEO - NSE = :NSE - NYSE = :NYSE - NZE = :NZE - OSL = :OSL - OTC = :OTC - PAR = :PAR - PNK = :PNK - PRA = :PRA - RIS = :RIS - SAO = :SAO - SAU = :SAU - SES = :SES - SET = :SET - SGO = :SGO - SHH = :SHH - SHZ = :SHZ - SIX = :SIX - STO = :STO - STU = :STU - TAI = :TAI - TAL = :TAL - TLV = :TLV - TSX = :TSX - TSXV = :TSXV - TWO = :TWO - VIE = :VIE - WSE = :WSE - XETRA = :XETRA - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_by_ticker_response.rb b/lib/context_dev/models/brand_retrieve_by_ticker_response.rb deleted file mode 100644 index f39b84c2..00000000 --- a/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +++ /dev/null @@ -1,1072 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Brand#retrieve_by_ticker - class BrandRetrieveByTickerResponse < ContextDev::Internal::Type::BaseModel - # @!attribute brand - # Detailed brand information - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand, nil] - optional :brand, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand } - - # @!attribute code - # HTTP status code - # - # @return [Integer, nil] - optional :code, Integer - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata } - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByTickerResponse} for more details. - # - # @param brand [ContextDev::Models::BrandRetrieveByTickerResponse::Brand] Detailed brand information - # - # @param code [Integer] HTTP status code - # - # @param key_metadata [ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::BrandRetrieveByTickerResponse#brand - class Brand < ContextDev::Internal::Type::BaseModel - # @!attribute address - # Physical address of the brand - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, nil] - optional :address, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address } - - # @!attribute backdrops - # An array of backdrop images for the brand - # - # @return [Array, nil] - optional :backdrops, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop] } - - # @!attribute colors - # An array of brand colors - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color] } - - # @!attribute description - # A brief description of the brand - # - # @return [String, nil] - optional :description, String - - # @!attribute domain - # The domain name of the brand - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Company email address - # - # @return [String, nil] - optional :email, String - - # @!attribute industries - # Industry classification information for the brand - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, nil] - optional :industries, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries } - - # @!attribute is_nsfw - # Indicates whether the brand content is not safe for work (NSFW) - # - # @return [Boolean, nil] - optional :is_nsfw, ContextDev::Internal::Type::Boolean - - # @!attribute links - # Important website links for the brand - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, nil] - optional :links, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links } - - # @!attribute logos - # An array of logos associated with the brand - # - # @return [Array, nil] - optional :logos, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo] } - - # @!attribute phone - # Company phone number - # - # @return [String, nil] - optional :phone, String - - # @!attribute primary_language - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage, nil] - optional :primary_language, - enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage }, - nil?: true - - # @!attribute slogan - # The brand's slogan - # - # @return [String, nil] - optional :slogan, String - - # @!attribute socials - # An array of social media links for the brand - # - # @return [Array, nil] - optional :socials, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social] } - - # @!attribute stock - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, nil] - optional :stock, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock } - - # @!attribute title - # The title or name of the brand - # - # @return [String, nil] - optional :title, String - - # @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByTickerResponse::Brand} for more details. - # - # Detailed brand information - # - # @param address [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address] Physical address of the brand - # - # @param backdrops [Array] An array of backdrop images for the brand - # - # @param colors [Array] An array of brand colors - # - # @param description [String] A brief description of the brand - # - # @param domain [String] The domain name of the brand - # - # @param email [String] Company email address - # - # @param industries [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries] Industry classification information for the brand - # - # @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW) - # - # @param links [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links] Important website links for the brand - # - # @param logos [Array] An array of logos associated with the brand - # - # @param phone [String] Company phone number - # - # @param primary_language [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang - # - # @param slogan [String] The brand's slogan - # - # @param socials [Array] An array of social media links for the brand - # - # @param stock [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock] Stock market information for this brand (will be null if not a publicly traded c - # - # @param title [String] The title or name of the brand - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#address - class Address < ContextDev::Internal::Type::BaseModel - # @!attribute city - # City name - # - # @return [String, nil] - optional :city, String - - # @!attribute country - # Country name - # - # @return [String, nil] - optional :country, String - - # @!attribute country_code - # Country code - # - # @return [String, nil] - optional :country_code, String - - # @!attribute postal_code - # Postal or ZIP code - # - # @return [String, nil] - optional :postal_code, String - - # @!attribute state_code - # State or province code - # - # @return [String, nil] - optional :state_code, String - - # @!attribute state_province - # State or province name - # - # @return [String, nil] - optional :state_province, String - - # @!attribute street - # Street address - # - # @return [String, nil] - optional :street, String - - # @!method initialize(city: nil, country: nil, country_code: nil, postal_code: nil, state_code: nil, state_province: nil, street: nil) - # Physical address of the brand - # - # @param city [String] City name - # - # @param country [String] Country name - # - # @param country_code [String] Country code - # - # @param postal_code [String] Postal or ZIP code - # - # @param state_code [String] State or province code - # - # @param state_province [String] State or province name - # - # @param street [String] Street address - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the backdrop image - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color] } - - # @!attribute resolution - # Resolution of the backdrop image - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, nil] - optional :resolution, - -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution } - - # @!attribute url - # URL of the backdrop image - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, resolution: nil, url: nil) - # @param colors [Array] Array of colors in the backdrop image - # - # @param resolution [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution] Resolution of the backdrop image - # - # @param url [String] URL of the backdrop image - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the backdrop image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - end - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#industries - class Industries < ContextDev::Internal::Type::BaseModel - # @!attribute eic - # Easy Industry Classification - array of industry and subindustry pairs - # - # @return [Array, nil] - optional :eic, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] } - - # @!method initialize(eic: nil) - # Industry classification information for the brand - # - # @param eic [Array] Easy Industry Classification - array of industry and subindustry pairs - - class Eic < ContextDev::Internal::Type::BaseModel - # @!attribute industry - # Industry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry] - required :industry, - enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry } - - # @!attribute subindustry - # Subindustry classification enum - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry] - required :subindustry, - enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry } - - # @!method initialize(industry:, subindustry:) - # @param industry [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry] Industry classification enum - # - # @param subindustry [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry] Subindustry classification enum - - # Industry classification enum - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic#industry - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE = :"Aerospace & Defense" - TECHNOLOGY = :Technology - FINANCE = :Finance - HEALTHCARE = :Healthcare - RETAIL_E_COMMERCE = :"Retail & E-commerce" - ENTERTAINMENT = :Entertainment - EDUCATION = :Education - GOVERNMENT_NONPROFIT = :"Government & Nonprofit" - INDUSTRIAL_ENERGY = :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION = :"Automotive & Transportation" - LIFESTYLE_LEISURE = :"Lifestyle & Leisure" - LUXURY_FASHION = :"Luxury & Fashion" - NEWS_MEDIA = :"News & Media" - SPORTS = :Sports - REAL_ESTATE_PROP_TECH = :"Real Estate & PropTech" - LEGAL_COMPLIANCE = :"Legal & Compliance" - TELECOMMUNICATIONS = :Telecommunications - AGRICULTURE_FOOD = :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES = :"Professional Services & Agencies" - CHEMICALS_MATERIALS = :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN = :"Logistics & Supply Chain" - HOSPITALITY_TOURISM = :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT = :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG = :"Consumer Packaged Goods (CPG)" - - # @!method self.values - # @return [Array] - end - - # Subindustry classification enum - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic#subindustry - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING = :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY = :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS = :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY = :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION = :"Defense IT & Systems Integration" - SOFTWARE_B2_B = :"Software (B2B)" - SOFTWARE_B2_C = :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS = :"Cloud Infrastructure & DevOps" - CYBERSECURITY = :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS = :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS = :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE = :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS = :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS = :"Developer Tools & APIs" - WEB3_BLOCKCHAIN = :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING = :"XR & Spatial Computing" - BANKING_LENDING = :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH = :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH = :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT = :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS = :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS = :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT = :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS = :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING = :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES = :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT = :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS = :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS = :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE = :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH = :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS = :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS = :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS = :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS = :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES = :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS = :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL = :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE = :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL = :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE = :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT = :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING = :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS = :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT = :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS = :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH = :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS = :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION = :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING = :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING = :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING = :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES = :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING = :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES = :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES = :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION = :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH = :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE = :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT = :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES = :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY = :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S = :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT = :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY = :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS = :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES = :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY = :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT = :"Aviation & Aerospace Transport" - MARITIME_SHIPPING = :"Maritime Shipping" - FITNESS_WELLNESS = :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE = :"Beauty & Personal Care" - HOME_LIVING = :"Home & Living" - DATING_RELATIONSHIPS = :"Dating & Relationships" - HOBBIES_CRAFTS_DIY = :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR = :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL = :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES = :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS = :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE = :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS = :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION = :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION = :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS = :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY = :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE = :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM = :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS = :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO = :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA = :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS = :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA = :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA = :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS = :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS = :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES = :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING = :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS = :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS = :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT = :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING = :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT = :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES = :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS = :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS = :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES = :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE = :"Property Management Software" - RENTAL_PLATFORMS = :"Rental Platforms" - MORTGAGE_LENDING_TECH = :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS = :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES = :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION = :"Legal Tech & Automation" - REGULATORY_COMPLIANCE = :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS = :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT = :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC = :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT = :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE = :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION = :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING = :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET = :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS = :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE = :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS = :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS = :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS = :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS = :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH = :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION = :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION = :"Food Distribution" - RESTAURANTS_FOOD_SERVICE = :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT = :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE = :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE = :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING = :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES = :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS = :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES = :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT = :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS = :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS = :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO = :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING = :"Professional Training & Coaching" - SPECIALTY_CHEMICALS = :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS = :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER = :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS = :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES = :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES = :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE = :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS = :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH = :"Freight & Transportation Tech" - LAST_MILE_DELIVERY = :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION = :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES = :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING = :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS = :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS = :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH = :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION = :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS = :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT = :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS = :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES = :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM = :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS = :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT = :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT = :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION = :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE = :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS = :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES = :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT = :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT = :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT = :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING = :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION = :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE = :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY = :"Smart Building Technology" - FOOD_BEVERAGE_CPG = :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG = :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS = :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS = :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION = :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING = :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE = :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING = :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG = :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG = :"Health & Wellness CPG" - - # @!method self.values - # @return [Array] - end - end - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#links - class Links < ContextDev::Internal::Type::BaseModel - # @!attribute blog - # URL to the brand's blog or news page - # - # @return [String, nil] - optional :blog, String, nil?: true - - # @!attribute careers - # URL to the brand's careers or job opportunities page - # - # @return [String, nil] - optional :careers, String, nil?: true - - # @!attribute contact - # URL to the brand's contact or contact us page - # - # @return [String, nil] - optional :contact, String, nil?: true - - # @!attribute pricing - # URL to the brand's pricing or plans page - # - # @return [String, nil] - optional :pricing, String, nil?: true - - # @!attribute privacy - # URL to the brand's privacy policy page - # - # @return [String, nil] - optional :privacy, String, nil?: true - - # @!attribute terms - # URL to the brand's terms of service or terms and conditions page - # - # @return [String, nil] - optional :terms, String, nil?: true - - # @!method initialize(blog: nil, careers: nil, contact: nil, pricing: nil, privacy: nil, terms: nil) - # Important website links for the brand - # - # @param blog [String, nil] URL to the brand's blog or news page - # - # @param careers [String, nil] URL to the brand's careers or job opportunities page - # - # @param contact [String, nil] URL to the brand's contact or contact us page - # - # @param pricing [String, nil] URL to the brand's pricing or plans page - # - # @param privacy [String, nil] URL to the brand's privacy policy page - # - # @param terms [String, nil] URL to the brand's terms of service or terms and conditions page - end - - class Logo < ContextDev::Internal::Type::BaseModel - # @!attribute colors - # Array of colors in the logo - # - # @return [Array, nil] - optional :colors, - -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color] } - - # @!attribute mode - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode, nil] - optional :mode, enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode } - - # @!attribute resolution - # Resolution of the logo image - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, nil] - optional :resolution, -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution } - - # @!attribute type - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type } - - # @!attribute url - # CDN hosted url of the logo (ready for display) - # - # @return [String, nil] - optional :url, String - - # @!method initialize(colors: nil, mode: nil, resolution: nil, type: nil, url: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo} for more - # details. - # - # @param colors [Array] Array of colors in the logo - # - # @param mode [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode] Indicates when this logo is best used: 'light' = best for light mode, 'dark' = b - # - # @param resolution [ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution] Resolution of the logo image - # - # @param type [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type] Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @param url [String] CDN hosted url of the logo (ready for display) - - class Color < ContextDev::Internal::Type::BaseModel - # @!attribute hex - # Color in hexadecimal format - # - # @return [String, nil] - optional :hex, String - - # @!attribute name - # Name of the color - # - # @return [String, nil] - optional :name, String - - # @!method initialize(hex: nil, name: nil) - # @param hex [String] Color in hexadecimal format - # - # @param name [String] Name of the color - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#mode - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT = :light - DARK = :dark - HAS_OPAQUE_BACKGROUND = :has_opaque_background - - # @!method self.values - # @return [Array] - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#resolution - class Resolution < ContextDev::Internal::Type::BaseModel - # @!attribute aspect_ratio - # Aspect ratio of the image (width/height) - # - # @return [Float, nil] - optional :aspect_ratio, Float - - # @!attribute height - # Height of the image in pixels - # - # @return [Integer, nil] - optional :height, Integer - - # @!attribute width - # Width of the image in pixels - # - # @return [Integer, nil] - optional :width, Integer - - # @!method initialize(aspect_ratio: nil, height: nil, width: nil) - # Resolution of the logo image - # - # @param aspect_ratio [Float] Aspect ratio of the image (width/height) - # - # @param height [Integer] Height of the image in pixels - # - # @param width [Integer] Width of the image in pixels - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo#type - module Type - extend ContextDev::Internal::Type::Enum - - ICON = :icon - LOGO = :logo - - # @!method self.values - # @return [Array] - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#primary_language - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] - end - - class Social < ContextDev::Internal::Type::BaseModel - # @!attribute type - # Type of social media platform - # - # @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type, nil] - optional :type, enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type } - - # @!attribute url - # URL of the social media page - # - # @return [String, nil] - optional :url, String - - # @!method initialize(type: nil, url: nil) - # @param type [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type] Type of social media platform - # - # @param url [String] URL of the social media page - - # Type of social media platform - # - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social#type - module Type - extend ContextDev::Internal::Type::Enum - - X = :x - FACEBOOK = :facebook - INSTAGRAM = :instagram - LINKEDIN = :linkedin - YOUTUBE = :youtube - PINTEREST = :pinterest - TIKTOK = :tiktok - DRIBBBLE = :dribbble - GITHUB = :github - BEHANCE = :behance - SNAPCHAT = :snapchat - WHATSAPP = :whatsapp - TELEGRAM = :telegram - LINE = :line - DISCORD = :discord - TWITCH = :twitch - VIMEO = :vimeo - IMDB = :imdb - TUMBLR = :tumblr - FLICKR = :flickr - GIPHY = :giphy - MEDIUM = :medium - SPOTIFY = :spotify - SOUNDCLOUD = :soundcloud - TRIPADVISOR = :tripadvisor - YELP = :yelp - PRODUCTHUNT = :producthunt - REDDIT = :reddit - CRUNCHBASE = :crunchbase - APPSTORE = :appstore - PLAYSTORE = :playstore - - # @!method self.values - # @return [Array] - end - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#stock - class Stock < ContextDev::Internal::Type::BaseModel - # @!attribute exchange - # Stock exchange name - # - # @return [String, nil] - optional :exchange, String - - # @!attribute ticker - # Stock ticker symbol - # - # @return [String, nil] - optional :ticker, String - - # @!method initialize(exchange: nil, ticker: nil) - # Stock market information for this brand (will be null if not a publicly traded - # company) - # - # @param exchange [String] Stock exchange name - # - # @param ticker [String] Stock ticker symbol - end - end - - # @see ContextDev::Models::BrandRetrieveByTickerResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/brand_retrieve_params.rb b/lib/context_dev/models/brand_retrieve_params.rb index e3e033de..4cd44cd4 100644 --- a/lib/context_dev/models/brand_retrieve_params.rb +++ b/lib/context_dev/models/brand_retrieve_params.rb @@ -7,187 +7,1022 @@ class BrandRetrieveParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - # @!attribute domain - # Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). - # Cannot be used with name or ticker parameters. + # @!attribute body + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. # - # @return [String] - required :domain, String + # @return [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] + required :body, union: -> { ContextDev::BrandRetrieveParams::Body } - # @!attribute force_language - # Optional parameter to force the language of the retrieved brand data. - # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage, nil] - optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::ForceLanguage } - - # @!attribute max_age_ms - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - # - # @return [Integer, nil] - optional :max_age_ms, Integer - - # @!attribute max_speed - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. Works with all three lookup methods. - # - # @return [Boolean, nil] - optional :max_speed, ContextDev::Internal::Type::Boolean - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer - - # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) + # @!method initialize(body:, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::BrandRetrieveParams} for more details. # - # @param domain [String] Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). Cann - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # @param body [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] Exactly one of domain, name, email, ticker, or transaction_info must be provided # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS = :afrikaans - ALBANIAN = :albanian - AMHARIC = :amharic - ARABIC = :arabic - ARMENIAN = :armenian - ASSAMESE = :assamese - AYMARA = :aymara - AZERI = :azeri - BASQUE = :basque - BELARUSIAN = :belarusian - BENGALI = :bengali - BOSNIAN = :bosnian - BULGARIAN = :bulgarian - BURMESE = :burmese - CANTONESE = :cantonese - CATALAN = :catalan - CEBUANO = :cebuano - CHINESE = :chinese - CORSICAN = :corsican - CROATIAN = :croatian - CZECH = :czech - DANISH = :danish - DUTCH = :dutch - ENGLISH = :english - ESPERANTO = :esperanto - ESTONIAN = :estonian - FARSI = :farsi - FIJIAN = :fijian - FINNISH = :finnish - FRENCH = :french - GALICIAN = :galician - GEORGIAN = :georgian - GERMAN = :german - GREEK = :greek - GUARANI = :guarani - GUJARATI = :gujarati - HAITIAN_CREOLE = :"haitian-creole" - HAUSA = :hausa - HAWAIIAN = :hawaiian - HEBREW = :hebrew - HINDI = :hindi - HMONG = :hmong - HUNGARIAN = :hungarian - ICELANDIC = :icelandic - IGBO = :igbo - INDONESIAN = :indonesian - IRISH = :irish - ITALIAN = :italian - JAPANESE = :japanese - JAVANESE = :javanese - KANNADA = :kannada - KAZAKH = :kazakh - KHMER = :khmer - KINYARWANDA = :kinyarwanda - KOREAN = :korean - KURDISH = :kurdish - KYRGYZ = :kyrgyz - LAO = :lao - LATIN = :latin - LATVIAN = :latvian - LINGALA = :lingala - LITHUANIAN = :lithuanian - LUXEMBOURGISH = :luxembourgish - MACEDONIAN = :macedonian - MALAGASY = :malagasy - MALAY = :malay - MALAYALAM = :malayalam - MALTESE = :maltese - MAORI = :maori - MARATHI = :marathi - MONGOLIAN = :mongolian - NEPALI = :nepali - NORWEGIAN = :norwegian - ODIA = :odia - OROMO = :oromo - PASHTO = :pashto - PIDGIN = :pidgin - POLISH = :polish - PORTUGUESE = :portuguese - PUNJABI = :punjabi - QUECHUA = :quechua - ROMANIAN = :romanian - RUSSIAN = :russian - SAMOAN = :samoan - SCOTTISH_GAELIC = :"scottish-gaelic" - SERBIAN = :serbian - SESOTHO = :sesotho - SHONA = :shona - SINDHI = :sindhi - SINHALA = :sinhala - SLOVAK = :slovak - SLOVENE = :slovene - SOMALI = :somali - SPANISH = :spanish - SUNDANESE = :sundanese - SWAHILI = :swahili - SWEDISH = :swedish - TAGALOG = :tagalog - TAJIK = :tajik - TAMIL = :tamil - TATAR = :tatar - TELUGU = :telugu - THAI = :thai - TIBETAN = :tibetan - TIGRINYA = :tigrinya - TONGAN = :tongan - TSWANA = :tswana - TURKISH = :turkish - TURKMEN = :turkmen - UKRAINIAN = :ukrainian - URDU = :urdu - UYGHUR = :uyghur - UZBEK = :uzbek - VIETNAMESE = :vietnamese - WELSH = :welsh - WOLOF = :wolof - XHOSA = :xhosa - YIDDISH = :yiddish - YORUBA = :yoruba - ZULU = :zulu - - # @!method self.values - # @return [Array] + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. + module Body + extend ContextDev::Internal::Type::Union + + # Retrieve brand data by domain. Cannot be combined with name, email, or ticker. + variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest } + + # Retrieve brand data by company name. Cannot be combined with domain, email, or ticker. + variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest } + + # Retrieve brand data by email address. The domain is extracted from the email. Free and disposable email providers are rejected with 422. Cannot be combined with domain, name, or ticker. + variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest } + + # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or email. + variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest } + + # Identify brand data from a transaction descriptor. Cannot be combined with domain, name, email, or ticker. + variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest } + + class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + # @!attribute domain + # Domain name to retrieve brand data for (e.g., 'stripe.com'). + # + # @return [String] + required :domain, String + + # @!attribute force_language + # + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage, nil] + optional :force_language, + enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage } + + # @!attribute max_age_ms + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + # + # @return [Integer, nil] + optional :max_age_ms, Integer, api_name: :maxAgeMs + + # @!attribute max_speed + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + # + # @return [Boolean, nil] + optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed + + # @!attribute timeout_ms + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + # + # @return [Integer, nil] + optional :timeout_ms, Integer, api_name: :timeoutMS + + # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest} + # for more details. + # + # Retrieve brand data by domain. Cannot be combined with name, email, or ticker. + # + # @param domain [String] Domain name to retrieve brand data for (e.g., 'stripe.com'). + # + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage] + # + # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard + # + # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, + # + # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + + # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest#force_language + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS = :afrikaans + ALBANIAN = :albanian + AMHARIC = :amharic + ARABIC = :arabic + ARMENIAN = :armenian + ASSAMESE = :assamese + AYMARA = :aymara + AZERI = :azeri + BASQUE = :basque + BELARUSIAN = :belarusian + BENGALI = :bengali + BOSNIAN = :bosnian + BULGARIAN = :bulgarian + BURMESE = :burmese + CANTONESE = :cantonese + CATALAN = :catalan + CEBUANO = :cebuano + CHINESE = :chinese + CORSICAN = :corsican + CROATIAN = :croatian + CZECH = :czech + DANISH = :danish + DUTCH = :dutch + ENGLISH = :english + ESPERANTO = :esperanto + ESTONIAN = :estonian + FARSI = :farsi + FIJIAN = :fijian + FINNISH = :finnish + FRENCH = :french + GALICIAN = :galician + GEORGIAN = :georgian + GERMAN = :german + GREEK = :greek + GUARANI = :guarani + GUJARATI = :gujarati + HAITIAN_CREOLE = :"haitian-creole" + HAUSA = :hausa + HAWAIIAN = :hawaiian + HEBREW = :hebrew + HINDI = :hindi + HMONG = :hmong + HUNGARIAN = :hungarian + ICELANDIC = :icelandic + IGBO = :igbo + INDONESIAN = :indonesian + IRISH = :irish + ITALIAN = :italian + JAPANESE = :japanese + JAVANESE = :javanese + KANNADA = :kannada + KAZAKH = :kazakh + KHMER = :khmer + KINYARWANDA = :kinyarwanda + KOREAN = :korean + KURDISH = :kurdish + KYRGYZ = :kyrgyz + LAO = :lao + LATIN = :latin + LATVIAN = :latvian + LINGALA = :lingala + LITHUANIAN = :lithuanian + LUXEMBOURGISH = :luxembourgish + MACEDONIAN = :macedonian + MALAGASY = :malagasy + MALAY = :malay + MALAYALAM = :malayalam + MALTESE = :maltese + MAORI = :maori + MARATHI = :marathi + MONGOLIAN = :mongolian + NEPALI = :nepali + NORWEGIAN = :norwegian + ODIA = :odia + OROMO = :oromo + PASHTO = :pashto + PIDGIN = :pidgin + POLISH = :polish + PORTUGUESE = :portuguese + PUNJABI = :punjabi + QUECHUA = :quechua + ROMANIAN = :romanian + RUSSIAN = :russian + SAMOAN = :samoan + SCOTTISH_GAELIC = :"scottish-gaelic" + SERBIAN = :serbian + SESOTHO = :sesotho + SHONA = :shona + SINDHI = :sindhi + SINHALA = :sinhala + SLOVAK = :slovak + SLOVENE = :slovene + SOMALI = :somali + SPANISH = :spanish + SUNDANESE = :sundanese + SWAHILI = :swahili + SWEDISH = :swedish + TAGALOG = :tagalog + TAJIK = :tajik + TAMIL = :tamil + TATAR = :tatar + TELUGU = :telugu + THAI = :thai + TIBETAN = :tibetan + TIGRINYA = :tigrinya + TONGAN = :tongan + TSWANA = :tswana + TURKISH = :turkish + TURKMEN = :turkmen + UKRAINIAN = :ukrainian + URDU = :urdu + UYGHUR = :uyghur + UZBEK = :uzbek + VIETNAMESE = :vietnamese + WELSH = :welsh + WOLOF = :wolof + XHOSA = :xhosa + YIDDISH = :yiddish + YORUBA = :yoruba + ZULU = :zulu + + # @!method self.values + # @return [Array] + end + end + + class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + # @!attribute name + # Company name to retrieve brand data for (e.g., 'Apple Inc'). + # + # @return [String] + required :name, String + + # @!attribute country_gl + # Optional country code hint (GL parameter) to specify the country when looking up + # by company name. + # + # @return [String, nil] + optional :country_gl, String + + # @!attribute force_language + # + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage, nil] + optional :force_language, + enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage } + + # @!attribute max_age_ms + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + # + # @return [Integer, nil] + optional :max_age_ms, Integer, api_name: :maxAgeMs + + # @!attribute max_speed + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + # + # @return [Boolean, nil] + optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed + + # @!attribute timeout_ms + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + # + # @return [Integer, nil] + optional :timeout_ms, Integer, api_name: :timeoutMS + + # @!method initialize(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest} for + # more details. + # + # Retrieve brand data by company name. Cannot be combined with domain, email, or + # ticker. + # + # @param name [String] Company name to retrieve brand data for (e.g., 'Apple Inc'). + # + # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when looking up + # + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage] + # + # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard + # + # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, + # + # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + + # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest#force_language + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS = :afrikaans + ALBANIAN = :albanian + AMHARIC = :amharic + ARABIC = :arabic + ARMENIAN = :armenian + ASSAMESE = :assamese + AYMARA = :aymara + AZERI = :azeri + BASQUE = :basque + BELARUSIAN = :belarusian + BENGALI = :bengali + BOSNIAN = :bosnian + BULGARIAN = :bulgarian + BURMESE = :burmese + CANTONESE = :cantonese + CATALAN = :catalan + CEBUANO = :cebuano + CHINESE = :chinese + CORSICAN = :corsican + CROATIAN = :croatian + CZECH = :czech + DANISH = :danish + DUTCH = :dutch + ENGLISH = :english + ESPERANTO = :esperanto + ESTONIAN = :estonian + FARSI = :farsi + FIJIAN = :fijian + FINNISH = :finnish + FRENCH = :french + GALICIAN = :galician + GEORGIAN = :georgian + GERMAN = :german + GREEK = :greek + GUARANI = :guarani + GUJARATI = :gujarati + HAITIAN_CREOLE = :"haitian-creole" + HAUSA = :hausa + HAWAIIAN = :hawaiian + HEBREW = :hebrew + HINDI = :hindi + HMONG = :hmong + HUNGARIAN = :hungarian + ICELANDIC = :icelandic + IGBO = :igbo + INDONESIAN = :indonesian + IRISH = :irish + ITALIAN = :italian + JAPANESE = :japanese + JAVANESE = :javanese + KANNADA = :kannada + KAZAKH = :kazakh + KHMER = :khmer + KINYARWANDA = :kinyarwanda + KOREAN = :korean + KURDISH = :kurdish + KYRGYZ = :kyrgyz + LAO = :lao + LATIN = :latin + LATVIAN = :latvian + LINGALA = :lingala + LITHUANIAN = :lithuanian + LUXEMBOURGISH = :luxembourgish + MACEDONIAN = :macedonian + MALAGASY = :malagasy + MALAY = :malay + MALAYALAM = :malayalam + MALTESE = :maltese + MAORI = :maori + MARATHI = :marathi + MONGOLIAN = :mongolian + NEPALI = :nepali + NORWEGIAN = :norwegian + ODIA = :odia + OROMO = :oromo + PASHTO = :pashto + PIDGIN = :pidgin + POLISH = :polish + PORTUGUESE = :portuguese + PUNJABI = :punjabi + QUECHUA = :quechua + ROMANIAN = :romanian + RUSSIAN = :russian + SAMOAN = :samoan + SCOTTISH_GAELIC = :"scottish-gaelic" + SERBIAN = :serbian + SESOTHO = :sesotho + SHONA = :shona + SINDHI = :sindhi + SINHALA = :sinhala + SLOVAK = :slovak + SLOVENE = :slovene + SOMALI = :somali + SPANISH = :spanish + SUNDANESE = :sundanese + SWAHILI = :swahili + SWEDISH = :swedish + TAGALOG = :tagalog + TAJIK = :tajik + TAMIL = :tamil + TATAR = :tatar + TELUGU = :telugu + THAI = :thai + TIBETAN = :tibetan + TIGRINYA = :tigrinya + TONGAN = :tongan + TSWANA = :tswana + TURKISH = :turkish + TURKMEN = :turkmen + UKRAINIAN = :ukrainian + URDU = :urdu + UYGHUR = :uyghur + UZBEK = :uzbek + VIETNAMESE = :vietnamese + WELSH = :welsh + WOLOF = :wolof + XHOSA = :xhosa + YIDDISH = :yiddish + YORUBA = :yoruba + ZULU = :zulu + + # @!method self.values + # @return [Array] + end + end + + class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + # @!attribute email + # Email address to retrieve brand data for (e.g., 'jane@stripe.com'). + # + # @return [String] + required :email, String + + # @!attribute force_language + # + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage, nil] + optional :force_language, + enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage } + + # @!attribute max_age_ms + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + # + # @return [Integer, nil] + optional :max_age_ms, Integer, api_name: :maxAgeMs + + # @!attribute max_speed + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + # + # @return [Boolean, nil] + optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed + + # @!attribute timeout_ms + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + # + # @return [Integer, nil] + optional :timeout_ms, Integer, api_name: :timeoutMS + + # @!method initialize(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest} for + # more details. + # + # Retrieve brand data by email address. The domain is extracted from the email. + # Free and disposable email providers are rejected with 422. Cannot be combined + # with domain, name, or ticker. + # + # @param email [String] Email address to retrieve brand data for (e.g., 'jane@stripe.com'). + # + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage] + # + # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard + # + # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, + # + # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + + # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest#force_language + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS = :afrikaans + ALBANIAN = :albanian + AMHARIC = :amharic + ARABIC = :arabic + ARMENIAN = :armenian + ASSAMESE = :assamese + AYMARA = :aymara + AZERI = :azeri + BASQUE = :basque + BELARUSIAN = :belarusian + BENGALI = :bengali + BOSNIAN = :bosnian + BULGARIAN = :bulgarian + BURMESE = :burmese + CANTONESE = :cantonese + CATALAN = :catalan + CEBUANO = :cebuano + CHINESE = :chinese + CORSICAN = :corsican + CROATIAN = :croatian + CZECH = :czech + DANISH = :danish + DUTCH = :dutch + ENGLISH = :english + ESPERANTO = :esperanto + ESTONIAN = :estonian + FARSI = :farsi + FIJIAN = :fijian + FINNISH = :finnish + FRENCH = :french + GALICIAN = :galician + GEORGIAN = :georgian + GERMAN = :german + GREEK = :greek + GUARANI = :guarani + GUJARATI = :gujarati + HAITIAN_CREOLE = :"haitian-creole" + HAUSA = :hausa + HAWAIIAN = :hawaiian + HEBREW = :hebrew + HINDI = :hindi + HMONG = :hmong + HUNGARIAN = :hungarian + ICELANDIC = :icelandic + IGBO = :igbo + INDONESIAN = :indonesian + IRISH = :irish + ITALIAN = :italian + JAPANESE = :japanese + JAVANESE = :javanese + KANNADA = :kannada + KAZAKH = :kazakh + KHMER = :khmer + KINYARWANDA = :kinyarwanda + KOREAN = :korean + KURDISH = :kurdish + KYRGYZ = :kyrgyz + LAO = :lao + LATIN = :latin + LATVIAN = :latvian + LINGALA = :lingala + LITHUANIAN = :lithuanian + LUXEMBOURGISH = :luxembourgish + MACEDONIAN = :macedonian + MALAGASY = :malagasy + MALAY = :malay + MALAYALAM = :malayalam + MALTESE = :maltese + MAORI = :maori + MARATHI = :marathi + MONGOLIAN = :mongolian + NEPALI = :nepali + NORWEGIAN = :norwegian + ODIA = :odia + OROMO = :oromo + PASHTO = :pashto + PIDGIN = :pidgin + POLISH = :polish + PORTUGUESE = :portuguese + PUNJABI = :punjabi + QUECHUA = :quechua + ROMANIAN = :romanian + RUSSIAN = :russian + SAMOAN = :samoan + SCOTTISH_GAELIC = :"scottish-gaelic" + SERBIAN = :serbian + SESOTHO = :sesotho + SHONA = :shona + SINDHI = :sindhi + SINHALA = :sinhala + SLOVAK = :slovak + SLOVENE = :slovene + SOMALI = :somali + SPANISH = :spanish + SUNDANESE = :sundanese + SWAHILI = :swahili + SWEDISH = :swedish + TAGALOG = :tagalog + TAJIK = :tajik + TAMIL = :tamil + TATAR = :tatar + TELUGU = :telugu + THAI = :thai + TIBETAN = :tibetan + TIGRINYA = :tigrinya + TONGAN = :tongan + TSWANA = :tswana + TURKISH = :turkish + TURKMEN = :turkmen + UKRAINIAN = :ukrainian + URDU = :urdu + UYGHUR = :uyghur + UZBEK = :uzbek + VIETNAMESE = :vietnamese + WELSH = :welsh + WOLOF = :wolof + XHOSA = :xhosa + YIDDISH = :yiddish + YORUBA = :yoruba + ZULU = :zulu + + # @!method self.values + # @return [Array] + end + end + + class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + # @!attribute ticker + # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). + # + # @return [String] + required :ticker, String + + # @!attribute force_language + # + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage, nil] + optional :force_language, + enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage } + + # @!attribute max_age_ms + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + # + # @return [Integer, nil] + optional :max_age_ms, Integer, api_name: :maxAgeMs + + # @!attribute max_speed + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + # + # @return [Boolean, nil] + optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed + + # @!attribute ticker_exchange + # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. + # + # @return [String, nil] + optional :ticker_exchange, String + + # @!attribute timeout_ms + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + # + # @return [Integer, nil] + optional :timeout_ms, Integer, api_name: :timeoutMS + + # @!method initialize(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest} + # for more details. + # + # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or + # email. + # + # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). + # + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage] + # + # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard + # + # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, + # + # @param ticker_exchange [String] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. + # + # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + + # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest#force_language + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS = :afrikaans + ALBANIAN = :albanian + AMHARIC = :amharic + ARABIC = :arabic + ARMENIAN = :armenian + ASSAMESE = :assamese + AYMARA = :aymara + AZERI = :azeri + BASQUE = :basque + BELARUSIAN = :belarusian + BENGALI = :bengali + BOSNIAN = :bosnian + BULGARIAN = :bulgarian + BURMESE = :burmese + CANTONESE = :cantonese + CATALAN = :catalan + CEBUANO = :cebuano + CHINESE = :chinese + CORSICAN = :corsican + CROATIAN = :croatian + CZECH = :czech + DANISH = :danish + DUTCH = :dutch + ENGLISH = :english + ESPERANTO = :esperanto + ESTONIAN = :estonian + FARSI = :farsi + FIJIAN = :fijian + FINNISH = :finnish + FRENCH = :french + GALICIAN = :galician + GEORGIAN = :georgian + GERMAN = :german + GREEK = :greek + GUARANI = :guarani + GUJARATI = :gujarati + HAITIAN_CREOLE = :"haitian-creole" + HAUSA = :hausa + HAWAIIAN = :hawaiian + HEBREW = :hebrew + HINDI = :hindi + HMONG = :hmong + HUNGARIAN = :hungarian + ICELANDIC = :icelandic + IGBO = :igbo + INDONESIAN = :indonesian + IRISH = :irish + ITALIAN = :italian + JAPANESE = :japanese + JAVANESE = :javanese + KANNADA = :kannada + KAZAKH = :kazakh + KHMER = :khmer + KINYARWANDA = :kinyarwanda + KOREAN = :korean + KURDISH = :kurdish + KYRGYZ = :kyrgyz + LAO = :lao + LATIN = :latin + LATVIAN = :latvian + LINGALA = :lingala + LITHUANIAN = :lithuanian + LUXEMBOURGISH = :luxembourgish + MACEDONIAN = :macedonian + MALAGASY = :malagasy + MALAY = :malay + MALAYALAM = :malayalam + MALTESE = :maltese + MAORI = :maori + MARATHI = :marathi + MONGOLIAN = :mongolian + NEPALI = :nepali + NORWEGIAN = :norwegian + ODIA = :odia + OROMO = :oromo + PASHTO = :pashto + PIDGIN = :pidgin + POLISH = :polish + PORTUGUESE = :portuguese + PUNJABI = :punjabi + QUECHUA = :quechua + ROMANIAN = :romanian + RUSSIAN = :russian + SAMOAN = :samoan + SCOTTISH_GAELIC = :"scottish-gaelic" + SERBIAN = :serbian + SESOTHO = :sesotho + SHONA = :shona + SINDHI = :sindhi + SINHALA = :sinhala + SLOVAK = :slovak + SLOVENE = :slovene + SOMALI = :somali + SPANISH = :spanish + SUNDANESE = :sundanese + SWAHILI = :swahili + SWEDISH = :swedish + TAGALOG = :tagalog + TAJIK = :tajik + TAMIL = :tamil + TATAR = :tatar + TELUGU = :telugu + THAI = :thai + TIBETAN = :tibetan + TIGRINYA = :tigrinya + TONGAN = :tongan + TSWANA = :tswana + TURKISH = :turkish + TURKMEN = :turkmen + UKRAINIAN = :ukrainian + URDU = :urdu + UYGHUR = :uyghur + UZBEK = :uzbek + VIETNAMESE = :vietnamese + WELSH = :welsh + WOLOF = :wolof + XHOSA = :xhosa + YIDDISH = :yiddish + YORUBA = :yoruba + ZULU = :zulu + + # @!method self.values + # @return [Array] + end + end + + class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + # @!attribute transaction_info + # Transaction information to identify the brand. + # + # @return [String] + required :transaction_info, String + + # @!attribute city + # Optional city name to prioritize when searching for the brand. + # + # @return [String, nil] + optional :city, String + + # @!attribute country_gl + # Optional country code hint (GL parameter) to specify the country when + # identifying a transaction. + # + # @return [String, nil] + optional :country_gl, String + + # @!attribute force_language + # + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage, nil] + optional :force_language, + enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage } + + # @!attribute high_confidence_only + # When set to true, the API performs additional verification to ensure the + # identified brand matches the transaction with high confidence. + # + # @return [Boolean, nil] + optional :high_confidence_only, ContextDev::Internal::Type::Boolean + + # @!attribute max_speed + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + # + # @return [Boolean, nil] + optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed + + # @!attribute mcc + # Optional Merchant Category Code (MCC) to help identify the business category or + # industry. + # + # @return [Integer, nil] + optional :mcc, Integer + + # @!attribute phone + # Optional phone number from the transaction to help verify brand match. + # + # @return [Float, nil] + optional :phone, Float + + # @!attribute timeout_ms + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + # + # @return [Integer, nil] + optional :timeout_ms, Integer, api_name: :timeoutMS + + # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest} + # for more details. + # + # Identify brand data from a transaction descriptor. Cannot be combined with + # domain, name, email, or ticker. + # + # @param transaction_info [String] Transaction information to identify the brand. + # + # @param city [String] Optional city name to prioritize when searching for the brand. + # + # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when identifyin + # + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage] + # + # @param high_confidence_only [Boolean] When set to true, the API performs additional verification to ensure the identif + # + # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, + # + # @param mcc [Integer] Optional Merchant Category Code (MCC) to help identify the business category or + # + # @param phone [Float] Optional phone number from the transaction to help verify brand match. + # + # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + + # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest#force_language + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS = :afrikaans + ALBANIAN = :albanian + AMHARIC = :amharic + ARABIC = :arabic + ARMENIAN = :armenian + ASSAMESE = :assamese + AYMARA = :aymara + AZERI = :azeri + BASQUE = :basque + BELARUSIAN = :belarusian + BENGALI = :bengali + BOSNIAN = :bosnian + BULGARIAN = :bulgarian + BURMESE = :burmese + CANTONESE = :cantonese + CATALAN = :catalan + CEBUANO = :cebuano + CHINESE = :chinese + CORSICAN = :corsican + CROATIAN = :croatian + CZECH = :czech + DANISH = :danish + DUTCH = :dutch + ENGLISH = :english + ESPERANTO = :esperanto + ESTONIAN = :estonian + FARSI = :farsi + FIJIAN = :fijian + FINNISH = :finnish + FRENCH = :french + GALICIAN = :galician + GEORGIAN = :georgian + GERMAN = :german + GREEK = :greek + GUARANI = :guarani + GUJARATI = :gujarati + HAITIAN_CREOLE = :"haitian-creole" + HAUSA = :hausa + HAWAIIAN = :hawaiian + HEBREW = :hebrew + HINDI = :hindi + HMONG = :hmong + HUNGARIAN = :hungarian + ICELANDIC = :icelandic + IGBO = :igbo + INDONESIAN = :indonesian + IRISH = :irish + ITALIAN = :italian + JAPANESE = :japanese + JAVANESE = :javanese + KANNADA = :kannada + KAZAKH = :kazakh + KHMER = :khmer + KINYARWANDA = :kinyarwanda + KOREAN = :korean + KURDISH = :kurdish + KYRGYZ = :kyrgyz + LAO = :lao + LATIN = :latin + LATVIAN = :latvian + LINGALA = :lingala + LITHUANIAN = :lithuanian + LUXEMBOURGISH = :luxembourgish + MACEDONIAN = :macedonian + MALAGASY = :malagasy + MALAY = :malay + MALAYALAM = :malayalam + MALTESE = :maltese + MAORI = :maori + MARATHI = :marathi + MONGOLIAN = :mongolian + NEPALI = :nepali + NORWEGIAN = :norwegian + ODIA = :odia + OROMO = :oromo + PASHTO = :pashto + PIDGIN = :pidgin + POLISH = :polish + PORTUGUESE = :portuguese + PUNJABI = :punjabi + QUECHUA = :quechua + ROMANIAN = :romanian + RUSSIAN = :russian + SAMOAN = :samoan + SCOTTISH_GAELIC = :"scottish-gaelic" + SERBIAN = :serbian + SESOTHO = :sesotho + SHONA = :shona + SINDHI = :sindhi + SINHALA = :sinhala + SLOVAK = :slovak + SLOVENE = :slovene + SOMALI = :somali + SPANISH = :spanish + SUNDANESE = :sundanese + SWAHILI = :swahili + SWEDISH = :swedish + TAGALOG = :tagalog + TAJIK = :tajik + TAMIL = :tamil + TATAR = :tatar + TELUGU = :telugu + THAI = :thai + TIBETAN = :tibetan + TIGRINYA = :tigrinya + TONGAN = :tongan + TSWANA = :tswana + TURKISH = :turkish + TURKMEN = :turkmen + UKRAINIAN = :ukrainian + URDU = :urdu + UYGHUR = :uyghur + UZBEK = :uzbek + VIETNAMESE = :vietnamese + WELSH = :welsh + WOLOF = :wolof + XHOSA = :xhosa + YIDDISH = :yiddish + YORUBA = :yoruba + ZULU = :zulu + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest)] end end end diff --git a/lib/context_dev/models/utility_prefetch_by_email_params.rb b/lib/context_dev/models/utility_prefetch_by_email_params.rb deleted file mode 100644 index 6ee39c3c..00000000 --- a/lib/context_dev/models/utility_prefetch_by_email_params.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Utility#prefetch_by_email - class UtilityPrefetchByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - # @!attribute email - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - # - # @return [String] - required :email, String - - # @!attribute timeout_ms - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - # - # @return [Integer, nil] - optional :timeout_ms, Integer, api_name: :timeoutMS - - # @!method initialize(email:, timeout_ms: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::UtilityPrefetchByEmailParams} for more details. - # - # @param email [String] Email address to prefetch brand data for. The domain will be extracted from the - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - end - end -end diff --git a/lib/context_dev/models/utility_prefetch_by_email_response.rb b/lib/context_dev/models/utility_prefetch_by_email_response.rb deleted file mode 100644 index 419957e9..00000000 --- a/lib/context_dev/models/utility_prefetch_by_email_response.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true - -module ContextDev - module Models - # @see ContextDev::Resources::Utility#prefetch_by_email - class UtilityPrefetchByEmailResponse < ContextDev::Internal::Type::BaseModel - # @!attribute domain - # The domain that was queued for prefetching - # - # @return [String, nil] - optional :domain, String - - # @!attribute key_metadata - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @return [ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, nil] - optional :key_metadata, -> { ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata } - - # @!attribute message - # Success message - # - # @return [String, nil] - optional :message, String - - # @!attribute status - # Status of the response, e.g., 'ok' - # - # @return [String, nil] - optional :status, String - - # @!method initialize(domain: nil, key_metadata: nil, message: nil, status: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::UtilityPrefetchByEmailResponse} for more details. - # - # @param domain [String] The domain that was queued for prefetching - # - # @param key_metadata [ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when - # - # @param message [String] Success message - # - # @param status [String] Status of the response, e.g., 'ok' - - # @see ContextDev::Models::UtilityPrefetchByEmailResponse#key_metadata - class KeyMetadata < ContextDev::Internal::Type::BaseModel - # @!attribute credits_consumed - # The number of credits consumed by this request. - # - # @return [Integer] - required :credits_consumed, Integer - - # @!attribute credits_remaining - # The number of credits remaining for your organization after this request. - # - # @return [Integer] - required :credits_remaining, Integer - - # @!method initialize(credits_consumed:, credits_remaining:) - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - # - # @param credits_consumed [Integer] The number of credits consumed by this request. - # - # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. - end - end - end -end diff --git a/lib/context_dev/models/utility_prefetch_params.rb b/lib/context_dev/models/utility_prefetch_params.rb index 58b3e170..69cff945 100644 --- a/lib/context_dev/models/utility_prefetch_params.rb +++ b/lib/context_dev/models/utility_prefetch_params.rb @@ -7,11 +7,17 @@ class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - # @!attribute domain - # Domain name to prefetch brand data for + # @!attribute identifier + # Identifier of the brand to prefetch. Provide exactly one of domain or email. # - # @return [String] - required :domain, String + # @return [ContextDev::Models::UtilityPrefetchParams::Identifier] + required :identifier, -> { ContextDev::UtilityPrefetchParams::Identifier } + + # @!attribute type + # What to prefetch. Currently only 'brand' is supported. + # + # @return [Symbol, ContextDev::Models::UtilityPrefetchParams::Type] + required :type, enum: -> { ContextDev::UtilityPrefetchParams::Type } # @!attribute timeout_ms # Optional timeout in milliseconds for the request. If the request takes longer @@ -21,15 +27,53 @@ class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(domain:, timeout_ms: nil, request_options: {}) + # @!method initialize(identifier:, type:, timeout_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {ContextDev::Models::UtilityPrefetchParams} for more details. # - # @param domain [String] Domain name to prefetch brand data for + # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. + # + # @param type [Symbol, ContextDev::Models::UtilityPrefetchParams::Type] What to prefetch. Currently only 'brand' is supported. # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] + + class Identifier < ContextDev::Internal::Type::BaseModel + # @!attribute domain + # Domain name to prefetch brand data for + # + # @return [String, nil] + optional :domain, String + + # @!attribute email + # Email address to prefetch brand data for. The domain will be extracted from the + # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email + # addresses are not allowed. + # + # @return [String, nil] + optional :email, String + + # @!method initialize(domain: nil, email: nil) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::UtilityPrefetchParams::Identifier} for more details. + # + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + # + # @param domain [String] Domain name to prefetch brand data for + # + # @param email [String] Email address to prefetch brand data for. The domain will be extracted from the + end + + # What to prefetch. Currently only 'brand' is supported. + module Type + extend ContextDev::Internal::Type::Enum + + BRAND = :brand + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/models/utility_prefetch_response.rb b/lib/context_dev/models/utility_prefetch_response.rb index 92f6b5ae..da00765a 100644 --- a/lib/context_dev/models/utility_prefetch_response.rb +++ b/lib/context_dev/models/utility_prefetch_response.rb @@ -29,7 +29,14 @@ class UtilityPrefetchResponse < ContextDev::Internal::Type::BaseModel # @return [String, nil] optional :status, String - # @!method initialize(domain: nil, key_metadata: nil, message: nil, status: nil) + # @!attribute type + # The type of prefetch that was queued, echoed from the request (currently always + # 'brand') + # + # @return [Symbol, ContextDev::Models::UtilityPrefetchResponse::Type, nil] + optional :type, enum: -> { ContextDev::Models::UtilityPrefetchResponse::Type } + + # @!method initialize(domain: nil, key_metadata: nil, message: nil, status: nil, type: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::UtilityPrefetchResponse} for more details. # @@ -40,6 +47,8 @@ class UtilityPrefetchResponse < ContextDev::Internal::Type::BaseModel # @param message [String] Success message # # @param status [String] Status of the response, e.g., 'ok' + # + # @param type [Symbol, ContextDev::Models::UtilityPrefetchResponse::Type] The type of prefetch that was queued, echoed from the request (currently always # @see ContextDev::Models::UtilityPrefetchResponse#key_metadata class KeyMetadata < ContextDev::Internal::Type::BaseModel @@ -63,6 +72,19 @@ class KeyMetadata < ContextDev::Internal::Type::BaseModel # # @param credits_remaining [Integer] The number of credits remaining for your organization after this request. end + + # The type of prefetch that was queued, echoed from the request (currently always + # 'brand') + # + # @see ContextDev::Models::UtilityPrefetchResponse#type + module Type + extend ContextDev::Internal::Type::Enum + + BRAND = :brand + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/context_dev/resources/ai.rb b/lib/context_dev/resources/ai.rb index bd295fbd..6fd8c181 100644 --- a/lib/context_dev/resources/ai.rb +++ b/lib/context_dev/resources/ai.rb @@ -3,39 +3,6 @@ module ContextDev module Resources class AI - # Some parameter documentations has been truncated, see - # {ContextDev::Models::AIAIQueryParams} for more details. - # - # Use AI to extract specific data points from a brand's website. The AI will crawl - # the website and extract the requested information based on the provided data - # points. - # - # @overload ai_query(data_to_extract:, domain:, specific_pages: nil, timeout_ms: nil, request_options: {}) - # - # @param data_to_extract [Array] Array of data points to extract from the website - # - # @param domain [String] The domain name to analyze - # - # @param specific_pages [ContextDev::Models::AIAIQueryParams::SpecificPages] Optional object specifying which pages to analyze - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::AIAIQueryResponse] - # - # @see ContextDev::Models::AIAIQueryParams - def ai_query(params) - parsed, options = ContextDev::AIAIQueryParams.dump_request(params) - @client.request( - method: :post, - path: "brand/ai/query", - body: parsed, - model: ContextDev::Models::AIAIQueryResponse, - options: options - ) - end - # Some parameter documentations has been truncated, see # {ContextDev::Models::AIExtractProductParams} for more details. # diff --git a/lib/context_dev/resources/brand.rb b/lib/context_dev/resources/brand.rb index 2f552710..e92e9a46 100644 --- a/lib/context_dev/resources/brand.rb +++ b/lib/context_dev/resources/brand.rb @@ -6,20 +6,13 @@ class Brand # Some parameter documentations has been truncated, see # {ContextDev::Models::BrandRetrieveParams} for more details. # - # Retrieve logos, backdrops, colors, industry, description, and more from any - # domain + # Retrieve logos, backdrops, colors, industry, description, and more. Provide + # exactly one lookup identifier in the request body: a domain, company name, email + # address, stock ticker, or transaction descriptor. # - # @overload retrieve(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) + # @overload retrieve(body:, request_options: {}) # - # @param domain [String] Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). Cann - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # @param body [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] Exactly one of domain, name, email, ticker, or transaction_info must be provided # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -28,202 +21,15 @@ class Brand # @see ContextDev::Models::BrandRetrieveParams def retrieve(params) parsed, options = ContextDev::BrandRetrieveParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) @client.request( - method: :get, + method: :post, path: "brand/retrieve", - query: query.transform_keys(max_age_ms: "maxAgeMs", max_speed: "maxSpeed", timeout_ms: "timeoutMS"), + body: parsed[:body], model: ContextDev::Models::BrandRetrieveResponse, options: options ) end - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandIdentifyFromTransactionParams} for more details. - # - # Endpoint specially designed for platforms that want to identify transaction data - # by the transaction title. - # - # @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {}) - # - # @param transaction_info [String] Transaction information to identify the brand - # - # @param city [String] Optional city name to prioritize when searching for the brand. - # - # @param country_gl [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::CountryGl] Optional country code (GL parameter) to specify the country. This affects the ge - # - # @param force_language [Symbol, ContextDev::Models::BrandIdentifyFromTransactionParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param high_confidence_only [Boolean] When set to true, the API will perform an additional verification steps to ensur - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind - # - # @param phone [Float] Optional phone number from the transaction to help verify brand match. - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::BrandIdentifyFromTransactionResponse] - # - # @see ContextDev::Models::BrandIdentifyFromTransactionParams - def identify_from_transaction(params) - parsed, options = ContextDev::BrandIdentifyFromTransactionParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) - @client.request( - method: :get, - path: "brand/transaction_identifier", - query: query.transform_keys(max_speed: "maxSpeed", timeout_ms: "timeoutMS"), - model: ContextDev::Models::BrandIdentifyFromTransactionResponse, - options: options - ) - end - - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByEmailParams} for more details. - # - # Retrieve brand information using an email address while detecting disposable and - # free email addresses. Disposable and free email addresses (like gmail.com, - # yahoo.com) will throw a 422 error. - # - # @overload retrieve_by_email(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # - # @param email [String] Email address to retrieve brand data for (e.g., 'contact@example.com'). The doma - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByEmailParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::BrandRetrieveByEmailResponse] - # - # @see ContextDev::Models::BrandRetrieveByEmailParams - def retrieve_by_email(params) - parsed, options = ContextDev::BrandRetrieveByEmailParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) - @client.request( - method: :get, - path: "brand/retrieve-by-email", - query: query.transform_keys(max_age_ms: "maxAgeMs", max_speed: "maxSpeed", timeout_ms: "timeoutMS"), - model: ContextDev::Models::BrandRetrieveByEmailResponse, - options: options - ) - end - - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByIsinParams} for more details. - # - # Retrieve brand information using an ISIN (International Securities - # Identification Number). - # - # @overload retrieve_by_isin(isin:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # - # @param isin [String] ISIN (International Securities Identification Number) to retrieve brand data for - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByIsinParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::BrandRetrieveByIsinResponse] - # - # @see ContextDev::Models::BrandRetrieveByIsinParams - def retrieve_by_isin(params) - parsed, options = ContextDev::BrandRetrieveByIsinParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) - @client.request( - method: :get, - path: "brand/retrieve-by-isin", - query: query.transform_keys(max_age_ms: "maxAgeMs", max_speed: "maxSpeed", timeout_ms: "timeoutMS"), - model: ContextDev::Models::BrandRetrieveByIsinResponse, - options: options - ) - end - - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByNameParams} for more details. - # - # Retrieve brand information using a company name. - # - # @overload retrieve_by_name(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {}) - # - # @param name [String] Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft Corporati - # - # @param country_gl [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl] Optional country code hint (GL parameter) to specify the country for the company - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByNameParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::BrandRetrieveByNameResponse] - # - # @see ContextDev::Models::BrandRetrieveByNameParams - def retrieve_by_name(params) - parsed, options = ContextDev::BrandRetrieveByNameParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) - @client.request( - method: :get, - path: "brand/retrieve-by-name", - query: query.transform_keys(max_age_ms: "maxAgeMs", max_speed: "maxSpeed", timeout_ms: "timeoutMS"), - model: ContextDev::Models::BrandRetrieveByNameResponse, - options: options - ) - end - - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveByTickerParams} for more details. - # - # Retrieve brand information using a stock ticker symbol. - # - # @overload retrieve_by_ticker(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil, request_options: {}) - # - # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data. - # - # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard - # - # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, - # - # @param ticker_exchange [Symbol, ContextDev::Models::BrandRetrieveByTickerParams::TickerExchange] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::BrandRetrieveByTickerResponse] - # - # @see ContextDev::Models::BrandRetrieveByTickerParams - def retrieve_by_ticker(params) - parsed, options = ContextDev::BrandRetrieveByTickerParams.dump_request(params) - query = ContextDev::Internal::Util.encode_query_params(parsed) - @client.request( - method: :get, - path: "brand/retrieve-by-ticker", - query: query.transform_keys(max_age_ms: "maxAgeMs", max_speed: "maxSpeed", timeout_ms: "timeoutMS"), - model: ContextDev::Models::BrandRetrieveByTickerResponse, - options: options - ) - end - # Some parameter documentations has been truncated, see # {ContextDev::Models::BrandRetrieveSimplifiedParams} for more details. # diff --git a/lib/context_dev/resources/utility.rb b/lib/context_dev/resources/utility.rb index 1729a6f3..41710901 100644 --- a/lib/context_dev/resources/utility.rb +++ b/lib/context_dev/resources/utility.rb @@ -6,12 +6,16 @@ class Utility # Some parameter documentations has been truncated, see # {ContextDev::Models::UtilityPrefetchParams} for more details. # - # Signal that you may fetch brand data for a particular domain soon to improve - # latency. + # Signal that you may fetch brand data soon to improve latency. The type field + # selects what to prefetch (currently only 'brand') and identifier carries exactly + # one lookup key: a domain, or an email whose domain is extracted and validated + # (free email providers and disposable email addresses are not allowed). # - # @overload prefetch(domain:, timeout_ms: nil, request_options: {}) + # @overload prefetch(identifier:, type:, timeout_ms: nil, request_options: {}) # - # @param domain [String] Domain name to prefetch brand data for + # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. + # + # @param type [Symbol, ContextDev::Models::UtilityPrefetchParams::Type] What to prefetch. Currently only 'brand' is supported. # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # @@ -24,43 +28,13 @@ def prefetch(params) parsed, options = ContextDev::UtilityPrefetchParams.dump_request(params) @client.request( method: :post, - path: "brand/prefetch", + path: "utility/prefetch", body: parsed, model: ContextDev::Models::UtilityPrefetchResponse, options: options ) end - # Some parameter documentations has been truncated, see - # {ContextDev::Models::UtilityPrefetchByEmailParams} for more details. - # - # Signal that you may fetch brand data for a particular domain soon to improve - # latency. This endpoint accepts an email address, extracts the domain from it, - # validates that it's not a disposable or free email provider, and queues the - # domain for prefetching. - # - # @overload prefetch_by_email(email:, timeout_ms: nil, request_options: {}) - # - # @param email [String] Email address to prefetch brand data for. The domain will be extracted from the - # - # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th - # - # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [ContextDev::Models::UtilityPrefetchByEmailResponse] - # - # @see ContextDev::Models::UtilityPrefetchByEmailParams - def prefetch_by_email(params) - parsed, options = ContextDev::UtilityPrefetchByEmailParams.dump_request(params) - @client.request( - method: :post, - path: "brand/prefetch-by-email", - body: parsed, - model: ContextDev::Models::UtilityPrefetchByEmailResponse, - options: options - ) - end - # @api private # # @param client [ContextDev::Client] diff --git a/rbi/context_dev/models.rbi b/rbi/context_dev/models.rbi index 9c94f5ff..771a2040 100644 --- a/rbi/context_dev/models.rbi +++ b/rbi/context_dev/models.rbi @@ -1,23 +1,10 @@ # typed: strong module ContextDev - AIAIQueryParams = ContextDev::Models::AIAIQueryParams - AIExtractProductParams = ContextDev::Models::AIExtractProductParams AIExtractProductsParams = ContextDev::Models::AIExtractProductsParams - BrandIdentifyFromTransactionParams = - ContextDev::Models::BrandIdentifyFromTransactionParams - - BrandRetrieveByEmailParams = ContextDev::Models::BrandRetrieveByEmailParams - - BrandRetrieveByIsinParams = ContextDev::Models::BrandRetrieveByIsinParams - - BrandRetrieveByNameParams = ContextDev::Models::BrandRetrieveByNameParams - - BrandRetrieveByTickerParams = ContextDev::Models::BrandRetrieveByTickerParams - BrandRetrieveParams = ContextDev::Models::BrandRetrieveParams BrandRetrieveSimplifiedParams = @@ -51,9 +38,6 @@ module ContextDev MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams - UtilityPrefetchByEmailParams = - ContextDev::Models::UtilityPrefetchByEmailParams - UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams WebExtractCompetitorsParams = ContextDev::Models::WebExtractCompetitorsParams diff --git a/rbi/context_dev/models/ai_ai_query_params.rbi b/rbi/context_dev/models/ai_ai_query_params.rbi deleted file mode 100644 index d7aa7632..00000000 --- a/rbi/context_dev/models/ai_ai_query_params.rbi +++ /dev/null @@ -1,504 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class AIAIQueryParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any(ContextDev::AIAIQueryParams, ContextDev::Internal::AnyHash) - end - - # Array of data points to extract from the website - sig { returns(T::Array[ContextDev::AIAIQueryParams::DataToExtract]) } - attr_accessor :data_to_extract - - # The domain name to analyze - sig { returns(String) } - attr_accessor :domain - - # Optional object specifying which pages to analyze - sig { returns(T.nilable(ContextDev::AIAIQueryParams::SpecificPages)) } - attr_reader :specific_pages - - sig do - params( - specific_pages: ContextDev::AIAIQueryParams::SpecificPages::OrHash - ).void - end - attr_writer :specific_pages - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - data_to_extract: - T::Array[ContextDev::AIAIQueryParams::DataToExtract::OrHash], - domain: String, - specific_pages: ContextDev::AIAIQueryParams::SpecificPages::OrHash, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Array of data points to extract from the website - data_to_extract:, - # The domain name to analyze - domain:, - # Optional object specifying which pages to analyze - specific_pages: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - data_to_extract: - T::Array[ContextDev::AIAIQueryParams::DataToExtract], - domain: String, - specific_pages: ContextDev::AIAIQueryParams::SpecificPages, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - class DataToExtract < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::AIAIQueryParams::DataToExtract, - ContextDev::Internal::AnyHash - ) - end - - # Description of what to extract - sig { returns(String) } - attr_accessor :datapoint_description - - # Example of the expected value - sig { returns(String) } - attr_accessor :datapoint_example - - # Name of the data point to extract - sig { returns(String) } - attr_accessor :datapoint_name - - # Type of the data point - sig do - returns( - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::OrSymbol - ) - end - attr_accessor :datapoint_type - - # Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. - # Use 'object' to extract an array of objects matching a schema. - sig do - returns( - T.nilable( - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::OrSymbol - ) - ) - end - attr_reader :datapoint_list_type - - sig do - params( - datapoint_list_type: - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::OrSymbol - ).void - end - attr_writer :datapoint_list_type - - # Schema definition for objects when datapoint_list_type is 'object'. Provide a - # map of field names to their scalar types. - sig do - returns( - T.nilable( - T::Hash[ - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol - ] - ) - ) - end - attr_reader :datapoint_object_schema - - sig do - params( - datapoint_object_schema: - T::Hash[ - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol - ] - ).void - end - attr_writer :datapoint_object_schema - - sig do - params( - datapoint_description: String, - datapoint_example: String, - datapoint_name: String, - datapoint_type: - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::OrSymbol, - datapoint_list_type: - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::OrSymbol, - datapoint_object_schema: - T::Hash[ - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol - ] - ).returns(T.attached_class) - end - def self.new( - # Description of what to extract - datapoint_description:, - # Example of the expected value - datapoint_example:, - # Name of the data point to extract - datapoint_name:, - # Type of the data point - datapoint_type:, - # Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. - # Use 'object' to extract an array of objects matching a schema. - datapoint_list_type: nil, - # Schema definition for objects when datapoint_list_type is 'object'. Provide a - # map of field names to their scalar types. - datapoint_object_schema: nil - ) - end - - sig do - override.returns( - { - datapoint_description: String, - datapoint_example: String, - datapoint_name: String, - datapoint_type: - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::OrSymbol, - datapoint_list_type: - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::OrSymbol, - datapoint_object_schema: - T::Hash[ - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol - ] - } - ) - end - def to_hash - end - - # Type of the data point - module DatapointType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TEXT = - T.let( - :text, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - NUMBER = - T.let( - :number, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - DATE = - T.let( - :date, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - BOOLEAN = - T.let( - :boolean, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - LIST = - T.let( - :list, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - URL = - T.let( - :url, - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::AIAIQueryParams::DataToExtract::DatapointType::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. - # Use 'object' to extract an array of objects matching a schema. - module DatapointListType - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - STRING = - T.let( - :string, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - TEXT = - T.let( - :text, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - NUMBER = - T.let( - :number, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - DATE = - T.let( - :date, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - BOOLEAN = - T.let( - :boolean, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - LIST = - T.let( - :list, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - URL = - T.let( - :url, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - OBJECT = - T.let( - :object, - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::AIAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol - ] - ) - end - def self.values - end - end - - module DatapointObjectSchema - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - STRING = - T.let( - :string, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol - ) - NUMBER = - T.let( - :number, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol - ) - DATE = - T.let( - :date, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol - ) - BOOLEAN = - T.let( - :boolean, - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class SpecificPages < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::AIAIQueryParams::SpecificPages, - ContextDev::Internal::AnyHash - ) - end - - # Whether to analyze the about us page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :about_us - - sig { params(about_us: T::Boolean).void } - attr_writer :about_us - - # Whether to analyze the blog - sig { returns(T.nilable(T::Boolean)) } - attr_reader :blog - - sig { params(blog: T::Boolean).void } - attr_writer :blog - - # Whether to analyze the careers page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :careers - - sig { params(careers: T::Boolean).void } - attr_writer :careers - - # Whether to analyze the contact us page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :contact_us - - sig { params(contact_us: T::Boolean).void } - attr_writer :contact_us - - # Whether to analyze the FAQ page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :faq - - sig { params(faq: T::Boolean).void } - attr_writer :faq - - # Whether to analyze the home page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :home_page - - sig { params(home_page: T::Boolean).void } - attr_writer :home_page - - # Whether to analyze the pricing page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :pricing - - sig { params(pricing: T::Boolean).void } - attr_writer :pricing - - # Whether to analyze the privacy policy page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :privacy_policy - - sig { params(privacy_policy: T::Boolean).void } - attr_writer :privacy_policy - - # Whether to analyze the terms and conditions page - sig { returns(T.nilable(T::Boolean)) } - attr_reader :terms_and_conditions - - sig { params(terms_and_conditions: T::Boolean).void } - attr_writer :terms_and_conditions - - # Optional object specifying which pages to analyze - sig do - params( - about_us: T::Boolean, - blog: T::Boolean, - careers: T::Boolean, - contact_us: T::Boolean, - faq: T::Boolean, - home_page: T::Boolean, - pricing: T::Boolean, - privacy_policy: T::Boolean, - terms_and_conditions: T::Boolean - ).returns(T.attached_class) - end - def self.new( - # Whether to analyze the about us page - about_us: nil, - # Whether to analyze the blog - blog: nil, - # Whether to analyze the careers page - careers: nil, - # Whether to analyze the contact us page - contact_us: nil, - # Whether to analyze the FAQ page - faq: nil, - # Whether to analyze the home page - home_page: nil, - # Whether to analyze the pricing page - pricing: nil, - # Whether to analyze the privacy policy page - privacy_policy: nil, - # Whether to analyze the terms and conditions page - terms_and_conditions: nil - ) - end - - sig do - override.returns( - { - about_us: T::Boolean, - blog: T::Boolean, - careers: T::Boolean, - contact_us: T::Boolean, - faq: T::Boolean, - home_page: T::Boolean, - pricing: T::Boolean, - privacy_policy: T::Boolean, - terms_and_conditions: T::Boolean - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/ai_ai_query_response.rbi b/rbi/context_dev/models/ai_ai_query_response.rbi deleted file mode 100644 index 1072844c..00000000 --- a/rbi/context_dev/models/ai_ai_query_response.rbi +++ /dev/null @@ -1,267 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::AIAIQueryResponse, - ContextDev::Internal::AnyHash - ) - end - - # Array of extracted data points - sig do - returns( - T.nilable( - T::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted] - ) - ) - end - attr_reader :data_extracted - - sig do - params( - data_extracted: - T::Array[ - ContextDev::Models::AIAIQueryResponse::DataExtracted::OrHash - ] - ).void - end - attr_writer :data_extracted - - # The domain that was analyzed - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns(T.nilable(ContextDev::Models::AIAIQueryResponse::KeyMetadata)) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::AIAIQueryResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - # List of URLs that were analyzed - sig { returns(T.nilable(T::Array[String])) } - attr_reader :urls_analyzed - - sig { params(urls_analyzed: T::Array[String]).void } - attr_writer :urls_analyzed - - sig do - params( - data_extracted: - T::Array[ - ContextDev::Models::AIAIQueryResponse::DataExtracted::OrHash - ], - domain: String, - key_metadata: - ContextDev::Models::AIAIQueryResponse::KeyMetadata::OrHash, - status: String, - urls_analyzed: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # Array of extracted data points - data_extracted: nil, - # The domain that was analyzed - domain: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil, - # List of URLs that were analyzed - urls_analyzed: nil - ) - end - - sig do - override.returns( - { - data_extracted: - T::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted], - domain: String, - key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata, - status: String, - urls_analyzed: T::Array[String] - } - ) - end - def to_hash - end - - class DataExtracted < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::AIAIQueryResponse::DataExtracted, - ContextDev::Internal::AnyHash - ) - end - - # Name of the extracted data point - sig { returns(T.nilable(String)) } - attr_reader :datapoint_name - - sig { params(datapoint_name: String).void } - attr_writer :datapoint_name - - # Value of the extracted data point. Can be a primitive type, an array of - # primitives, or an array of objects when datapoint_list_type is 'object'. - sig do - returns( - T.nilable( - ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants - ) - ) - end - attr_reader :datapoint_value - - sig do - params( - datapoint_value: - ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants - ).void - end - attr_writer :datapoint_value - - sig do - params( - datapoint_name: String, - datapoint_value: - ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants - ).returns(T.attached_class) - end - def self.new( - # Name of the extracted data point - datapoint_name: nil, - # Value of the extracted data point. Can be a primitive type, an array of - # primitives, or an array of objects when datapoint_list_type is 'object'. - datapoint_value: nil - ) - end - - sig do - override.returns( - { - datapoint_name: String, - datapoint_value: - ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants - } - ) - end - def to_hash - end - - # Value of the extracted data point. Can be a primitive type, an array of - # primitives, or an array of objects when datapoint_list_type is 'object'. - module DatapointValue - extend ContextDev::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - String, - Float, - T::Boolean, - T::Array[String], - T::Array[Float], - T::Array[T.anything] - ) - end - - sig do - override.returns( - T::Array[ - ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - ContextDev::Internal::Type::ArrayOf[String], - ContextDev::Internal::Type::Converter - ) - - FloatArray = - T.let( - ContextDev::Internal::Type::ArrayOf[Float], - ContextDev::Internal::Type::Converter - ) - - UnionMember5Array = - T.let( - ContextDev::Internal::Type::ArrayOf[ - ContextDev::Internal::Type::Unknown - ], - ContextDev::Internal::Type::Converter - ) - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::AIAIQueryResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_identify_from_transaction_params.rbi b/rbi/context_dev/models/brand_identify_from_transaction_params.rbi deleted file mode 100644 index bb349bf9..00000000 --- a/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +++ /dev/null @@ -1,2020 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandIdentifyFromTransactionParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::BrandIdentifyFromTransactionParams, - ContextDev::Internal::AnyHash - ) - end - - # Transaction information to identify the brand - sig { returns(String) } - attr_accessor :transaction_info - - # Optional city name to prioritize when searching for the brand. - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - sig do - returns( - T.nilable( - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol - ) - ) - end - attr_reader :country_gl - - sig do - params( - country_gl: - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol - ).void - end - attr_writer :country_gl - - # Optional parameter to force the language of the retrieved brand data. - sig do - returns( - T.nilable( - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol - ) - ) - end - attr_reader :force_language - - sig do - params( - force_language: - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # When set to true, the API will perform an additional verification steps to - # ensure the identified brand matches the transaction with high confidence. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :high_confidence_only - - sig { params(high_confidence_only: T::Boolean).void } - attr_writer :high_confidence_only - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional Merchant Category Code (MCC) to help identify the business - # category/industry. - sig { returns(T.nilable(String)) } - attr_reader :mcc - - sig { params(mcc: String).void } - attr_writer :mcc - - # Optional phone number from the transaction to help verify brand match. - sig { returns(T.nilable(Float)) } - attr_reader :phone - - sig { params(phone: Float).void } - attr_writer :phone - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - transaction_info: String, - city: String, - country_gl: - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, - high_confidence_only: T::Boolean, - max_speed: T::Boolean, - mcc: String, - phone: Float, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Transaction information to identify the brand - transaction_info:, - # Optional city name to prioritize when searching for the brand. - city: nil, - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - country_gl: nil, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # When set to true, the API will perform an additional verification steps to - # ensure the identified brand matches the transaction with high confidence. - high_confidence_only: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional Merchant Category Code (MCC) to help identify the business - # category/industry. - mcc: nil, - # Optional phone number from the transaction to help verify brand match. - phone: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - transaction_info: String, - city: String, - country_gl: - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, - high_confidence_only: T::Boolean, - max_speed: T::Boolean, - mcc: String, - phone: Float, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - module CountryGl - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AD = - T.let( - :ad, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AE = - T.let( - :ae, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AF = - T.let( - :af, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AG = - T.let( - :ag, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AI = - T.let( - :ai, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AL = - T.let( - :al, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AM = - T.let( - :am, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AN = - T.let( - :an, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AO = - T.let( - :ao, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AQ = - T.let( - :aq, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AR = - T.let( - :ar, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AS = - T.let( - :as, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AT = - T.let( - :at, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AU = - T.let( - :au, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AW = - T.let( - :aw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - AZ = - T.let( - :az, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BA = - T.let( - :ba, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BB = - T.let( - :bb, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BD = - T.let( - :bd, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BE = - T.let( - :be, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BF = - T.let( - :bf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BG = - T.let( - :bg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BH = - T.let( - :bh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BI = - T.let( - :bi, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BJ = - T.let( - :bj, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BM = - T.let( - :bm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BN = - T.let( - :bn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BO = - T.let( - :bo, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BR = - T.let( - :br, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BS = - T.let( - :bs, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BT = - T.let( - :bt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BV = - T.let( - :bv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BW = - T.let( - :bw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BY = - T.let( - :by, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - BZ = - T.let( - :bz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CA = - T.let( - :ca, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CC = - T.let( - :cc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CD = - T.let( - :cd, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CF = - T.let( - :cf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CG = - T.let( - :cg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CH = - T.let( - :ch, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CI = - T.let( - :ci, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CK = - T.let( - :ck, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CL = - T.let( - :cl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CM = - T.let( - :cm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CN = - T.let( - :cn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CO = - T.let( - :co, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CR = - T.let( - :cr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CU = - T.let( - :cu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CV = - T.let( - :cv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CX = - T.let( - :cx, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CY = - T.let( - :cy, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - CZ = - T.let( - :cz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DE = - T.let( - :de, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DJ = - T.let( - :dj, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DK = - T.let( - :dk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DM = - T.let( - :dm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DO = - T.let( - :do, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - DZ = - T.let( - :dz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - EC = - T.let( - :ec, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - EE = - T.let( - :ee, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - EG = - T.let( - :eg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - EH = - T.let( - :eh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ER = - T.let( - :er, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ES = - T.let( - :es, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ET = - T.let( - :et, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FI = - T.let( - :fi, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FJ = - T.let( - :fj, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FK = - T.let( - :fk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FM = - T.let( - :fm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FO = - T.let( - :fo, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - FR = - T.let( - :fr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GA = - T.let( - :ga, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GB = - T.let( - :gb, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GD = - T.let( - :gd, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GE = - T.let( - :ge, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GF = - T.let( - :gf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GH = - T.let( - :gh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GI = - T.let( - :gi, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GL = - T.let( - :gl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GM = - T.let( - :gm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GN = - T.let( - :gn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GP = - T.let( - :gp, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GQ = - T.let( - :gq, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GR = - T.let( - :gr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GS = - T.let( - :gs, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GT = - T.let( - :gt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GU = - T.let( - :gu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GW = - T.let( - :gw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - GY = - T.let( - :gy, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HK = - T.let( - :hk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HM = - T.let( - :hm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HN = - T.let( - :hn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HR = - T.let( - :hr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HT = - T.let( - :ht, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - HU = - T.let( - :hu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ID = - T.let( - :id, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IE = - T.let( - :ie, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IL = - T.let( - :il, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IN = - T.let( - :in, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IO = - T.let( - :io, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IQ = - T.let( - :iq, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IR = - T.let( - :ir, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IS = - T.let( - :is, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - IT = - T.let( - :it, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - JM = - T.let( - :jm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - JO = - T.let( - :jo, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - JP = - T.let( - :jp, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KE = - T.let( - :ke, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KG = - T.let( - :kg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KH = - T.let( - :kh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KI = - T.let( - :ki, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KM = - T.let( - :km, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KN = - T.let( - :kn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KP = - T.let( - :kp, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KR = - T.let( - :kr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KW = - T.let( - :kw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KY = - T.let( - :ky, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - KZ = - T.let( - :kz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LA = - T.let( - :la, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LB = - T.let( - :lb, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LC = - T.let( - :lc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LI = - T.let( - :li, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LK = - T.let( - :lk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LR = - T.let( - :lr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LS = - T.let( - :ls, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LT = - T.let( - :lt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LU = - T.let( - :lu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LV = - T.let( - :lv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - LY = - T.let( - :ly, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MA = - T.let( - :ma, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MC = - T.let( - :mc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MD = - T.let( - :md, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MG = - T.let( - :mg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MH = - T.let( - :mh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MK = - T.let( - :mk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ML = - T.let( - :ml, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MM = - T.let( - :mm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MN = - T.let( - :mn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MO = - T.let( - :mo, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MP = - T.let( - :mp, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MQ = - T.let( - :mq, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MR = - T.let( - :mr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MS = - T.let( - :ms, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MT = - T.let( - :mt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MU = - T.let( - :mu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MV = - T.let( - :mv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MW = - T.let( - :mw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MX = - T.let( - :mx, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MY = - T.let( - :my, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - MZ = - T.let( - :mz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NA = - T.let( - :na, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NC = - T.let( - :nc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NE = - T.let( - :ne, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NF = - T.let( - :nf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NG = - T.let( - :ng, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NI = - T.let( - :ni, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NL = - T.let( - :nl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NO = - T.let( - :no, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NP = - T.let( - :np, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NR = - T.let( - :nr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NU = - T.let( - :nu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - NZ = - T.let( - :nz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - OM = - T.let( - :om, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PA = - T.let( - :pa, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PE = - T.let( - :pe, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PF = - T.let( - :pf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PG = - T.let( - :pg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PH = - T.let( - :ph, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PK = - T.let( - :pk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PL = - T.let( - :pl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PM = - T.let( - :pm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PN = - T.let( - :pn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PR = - T.let( - :pr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PS = - T.let( - :ps, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PT = - T.let( - :pt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PW = - T.let( - :pw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - PY = - T.let( - :py, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - QA = - T.let( - :qa, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - RE = - T.let( - :re, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - RO = - T.let( - :ro, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - RS = - T.let( - :rs, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - RU = - T.let( - :ru, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - RW = - T.let( - :rw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SA = - T.let( - :sa, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SB = - T.let( - :sb, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SC = - T.let( - :sc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SD = - T.let( - :sd, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SE = - T.let( - :se, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SG = - T.let( - :sg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SH = - T.let( - :sh, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SI = - T.let( - :si, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SJ = - T.let( - :sj, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SK = - T.let( - :sk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SL = - T.let( - :sl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SM = - T.let( - :sm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SN = - T.let( - :sn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SO = - T.let( - :so, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SR = - T.let( - :sr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ST = - T.let( - :st, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SV = - T.let( - :sv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SY = - T.let( - :sy, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - SZ = - T.let( - :sz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TC = - T.let( - :tc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TD = - T.let( - :td, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TF = - T.let( - :tf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TG = - T.let( - :tg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TH = - T.let( - :th, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TJ = - T.let( - :tj, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TK = - T.let( - :tk, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TL = - T.let( - :tl, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TM = - T.let( - :tm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TN = - T.let( - :tn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TO = - T.let( - :to, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TR = - T.let( - :tr, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TT = - T.let( - :tt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TV = - T.let( - :tv, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TW = - T.let( - :tw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - TZ = - T.let( - :tz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - UA = - T.let( - :ua, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - UG = - T.let( - :ug, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - UM = - T.let( - :um, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - US = - T.let( - :us, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - UY = - T.let( - :uy, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - UZ = - T.let( - :uz, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VA = - T.let( - :va, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VC = - T.let( - :vc, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VE = - T.let( - :ve, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VG = - T.let( - :vg, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VI = - T.let( - :vi, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VN = - T.let( - :vn, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - VU = - T.let( - :vu, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - WF = - T.let( - :wf, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - WS = - T.let( - :ws, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - YE = - T.let( - :ye, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - YT = - T.let( - :yt, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ZA = - T.let( - :za, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ZM = - T.let( - :zm, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - ZW = - T.let( - :zw, - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_identify_from_transaction_response.rbi b/rbi/context_dev/models/brand_identify_from_transaction_response.rbi deleted file mode 100644 index d691769f..00000000 --- a/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +++ /dev/null @@ -1,3515 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandIdentifyFromTransactionResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse, - ContextDev::Internal::AnyHash - ) - end - - # Detailed brand information - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand - ) - ) - end - attr_reader :brand - - sig do - params( - brand: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::OrHash - ).void - end - attr_writer :brand - - # HTTP status code - sig { returns(T.nilable(Integer)) } - attr_reader :code - - sig { params(code: Integer).void } - attr_writer :code - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - brand: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::OrHash, - code: Integer, - key_metadata: - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata::OrHash, - status: String - ).returns(T.attached_class) - end - def self.new( - # Detailed brand information - brand: nil, - # HTTP status code - code: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - brand: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, - code: Integer, - key_metadata: - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, - status: String - } - ) - end - def to_hash - end - - class Brand < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, - ContextDev::Internal::AnyHash - ) - end - - # Physical address of the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address - ) - ) - end - attr_reader :address - - sig do - params( - address: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address::OrHash - ).void - end - attr_writer :address - - # An array of backdrop images for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop - ] - ) - ) - end - attr_reader :backdrops - - sig do - params( - backdrops: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::OrHash - ] - ).void - end - attr_writer :backdrops - - # An array of brand colors - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color::OrHash - ] - ).void - end - attr_writer :colors - - # A brief description of the brand - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # The domain name of the brand - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Company email address - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Industry classification information for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries - ) - ) - end - attr_reader :industries - - sig do - params( - industries: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::OrHash - ).void - end - attr_writer :industries - - # Indicates whether the brand content is not safe for work (NSFW) - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_nsfw - - sig { params(is_nsfw: T::Boolean).void } - attr_writer :is_nsfw - - # Important website links for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links - ) - ) - end - attr_reader :links - - sig do - params( - links: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links::OrHash - ).void - end - attr_writer :links - - # An array of logos associated with the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo - ] - ) - ) - end - attr_reader :logos - - sig do - params( - logos: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::OrHash - ] - ).void - end - attr_writer :logos - - # Company phone number - sig { returns(T.nilable(String)) } - attr_reader :phone - - sig { params(phone: String).void } - attr_writer :phone - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ) - end - attr_accessor :primary_language - - # The brand's slogan - sig { returns(T.nilable(String)) } - attr_reader :slogan - - sig { params(slogan: String).void } - attr_writer :slogan - - # An array of social media links for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social - ] - ) - ) - end - attr_reader :socials - - sig do - params( - socials: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::OrHash - ] - ).void - end - attr_writer :socials - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock - ) - ) - end - attr_reader :stock - - sig do - params( - stock: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock::OrHash - ).void - end - attr_writer :stock - - # The title or name of the brand - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - # Detailed brand information - sig do - params( - address: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address::OrHash, - backdrops: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::OrHash - ], - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color::OrHash - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::OrHash, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links::OrHash, - logos: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::OrHash - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::OrSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::OrHash - ], - stock: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock::OrHash, - title: String - ).returns(T.attached_class) - end - def self.new( - # Physical address of the brand - address: nil, - # An array of backdrop images for the brand - backdrops: nil, - # An array of brand colors - colors: nil, - # A brief description of the brand - description: nil, - # The domain name of the brand - domain: nil, - # Company email address - email: nil, - # Industry classification information for the brand - industries: nil, - # Indicates whether the brand content is not safe for work (NSFW) - is_nsfw: nil, - # Important website links for the brand - links: nil, - # An array of logos associated with the brand - logos: nil, - # Company phone number - phone: nil, - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - primary_language: nil, - # The brand's slogan - slogan: nil, - # An array of social media links for the brand - socials: nil, - # Stock market information for this brand (will be null if not a publicly traded - # company) - stock: nil, - # The title or name of the brand - title: nil - ) - end - - sig do - override.returns( - { - address: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, - backdrops: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop - ], - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, - logos: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social - ], - stock: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, - title: String - } - ) - end - def to_hash - end - - class Address < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, - ContextDev::Internal::AnyHash - ) - end - - # City name - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Country name - sig { returns(T.nilable(String)) } - attr_reader :country - - sig { params(country: String).void } - attr_writer :country - - # Country code - sig { returns(T.nilable(String)) } - attr_reader :country_code - - sig { params(country_code: String).void } - attr_writer :country_code - - # Postal or ZIP code - sig { returns(T.nilable(String)) } - attr_reader :postal_code - - sig { params(postal_code: String).void } - attr_writer :postal_code - - # State or province code - sig { returns(T.nilable(String)) } - attr_reader :state_code - - sig { params(state_code: String).void } - attr_writer :state_code - - # State or province name - sig { returns(T.nilable(String)) } - attr_reader :state_province - - sig { params(state_province: String).void } - attr_writer :state_province - - # Street address - sig { returns(T.nilable(String)) } - attr_reader :street - - sig { params(street: String).void } - attr_writer :street - - # Physical address of the brand - sig do - params( - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - ).returns(T.attached_class) - end - def self.new( - # City name - city: nil, - # Country name - country: nil, - # Country code - country_code: nil, - # Postal or ZIP code - postal_code: nil, - # State or province code - state_code: nil, - # State or province name - state_province: nil, - # Street address - street: nil - ) - end - - sig do - override.returns( - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - ) - end - def to_hash - end - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the backdrop image - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Resolution of the backdrop image - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution::OrHash - ).void - end - attr_writer :resolution - - # URL of the backdrop image - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color::OrHash - ], - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution::OrHash, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the backdrop image - colors: nil, - # Resolution of the backdrop image - resolution: nil, - # URL of the backdrop image - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color - ], - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the backdrop image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Industries < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, - ContextDev::Internal::AnyHash - ) - end - - # Easy Industry Classification - array of industry and subindustry pairs - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic - ] - ) - ) - end - attr_reader :eic - - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::OrHash - ] - ).void - end - attr_writer :eic - - # Industry classification information for the brand - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # Easy Industry Classification - array of industry and subindustry pairs - eic: nil - ) - end - - sig do - override.returns( - { - eic: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic - ] - } - ) - end - def to_hash - end - - class Eic < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic, - ContextDev::Internal::AnyHash - ) - end - - # Industry classification enum - sig do - returns( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - end - attr_accessor :industry - - # Subindustry classification enum - sig do - returns( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - end - attr_accessor :subindustry - - sig do - params( - industry: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::OrSymbol, - subindustry: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Industry classification enum - industry:, - # Subindustry classification enum - subindustry: - ) - end - - sig do - override.returns( - { - industry: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol, - subindustry: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - } - ) - end - def to_hash - end - - # Industry classification enum - module Industry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AEROSPACE_DEFENSE = - T.let( - :"Aerospace & Defense", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TECHNOLOGY = - T.let( - :Technology, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - FINANCE = - T.let( - :Finance, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HEALTHCARE = - T.let( - :Healthcare, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - RETAIL_E_COMMERCE = - T.let( - :"Retail & E-commerce", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - ENTERTAINMENT = - T.let( - :Entertainment, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - EDUCATION = - T.let( - :Education, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - GOVERNMENT_NONPROFIT = - T.let( - :"Government & Nonprofit", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - INDUSTRIAL_ENERGY = - T.let( - :"Industrial & Energy", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AUTOMOTIVE_TRANSPORTATION = - T.let( - :"Automotive & Transportation", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LIFESTYLE_LEISURE = - T.let( - :"Lifestyle & Leisure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LUXURY_FASHION = - T.let( - :"Luxury & Fashion", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - NEWS_MEDIA = - T.let( - :"News & Media", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - SPORTS = - T.let( - :Sports, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - REAL_ESTATE_PROP_TECH = - T.let( - :"Real Estate & PropTech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LEGAL_COMPLIANCE = - T.let( - :"Legal & Compliance", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TELECOMMUNICATIONS = - T.let( - :Telecommunications, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AGRICULTURE_FOOD = - T.let( - :"Agriculture & Food", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - PROFESSIONAL_SERVICES_AGENCIES = - T.let( - :"Professional Services & Agencies", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CHEMICALS_MATERIALS = - T.let( - :"Chemicals & Materials", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LOGISTICS_SUPPLY_CHAIN = - T.let( - :"Logistics & Supply Chain", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HOSPITALITY_TOURISM = - T.let( - :"Hospitality & Tourism", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSTRUCTION_BUILT_ENVIRONMENT = - T.let( - :"Construction & Built Environment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSUMER_PACKAGED_GOODS_CPG = - T.let( - :"Consumer Packaged Goods (CPG)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Subindustry classification enum - module Subindustry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = - T.let( - :"Defense Systems & Military Hardware", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AEROSPACE_MANUFACTURING = - T.let( - :"Aerospace Manufacturing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIONICS_NAVIGATION_TECHNOLOGY = - T.let( - :"Avionics & Navigation Technology", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSEA_NAVAL_DEFENSE_SYSTEMS = - T.let( - :"Subsea & Naval Defense Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPACE_SATELLITE_TECHNOLOGY = - T.let( - :"Space & Satellite Technology", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEFENSE_IT_SYSTEMS_INTEGRATION = - T.let( - :"Defense IT & Systems Integration", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_B = - T.let( - :"Software (B2B)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_C = - T.let( - :"Software (B2C)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLOUD_INFRASTRUCTURE_DEV_OPS = - T.let( - :"Cloud Infrastructure & DevOps", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CYBERSECURITY = - T.let( - :Cybersecurity, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = - T.let( - :"Artificial Intelligence & Machine Learning", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATA_INFRASTRUCTURE_ANALYTICS = - T.let( - :"Data Infrastructure & Analytics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HARDWARE_SEMICONDUCTORS = - T.let( - :"Hardware & Semiconductors", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINTECH_INFRASTRUCTURE = - T.let( - :"Fintech Infrastructure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_MARKETPLACE_PLATFORMS = - T.let( - :"eCommerce & Marketplace Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEVELOPER_TOOLS_APIS = - T.let( - :"Developer Tools & APIs", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WEB3_BLOCKCHAIN = - T.let( - :"Web3 & Blockchain", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - XR_SPATIAL_COMPUTING = - T.let( - :"XR & Spatial Computing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BANKING_LENDING = - T.let( - :"Banking & Lending", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INVESTMENT_MANAGEMENT_WEALTH_TECH = - T.let( - :"Investment Management & WealthTech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INSURANCE_INSUR_TECH = - T.let( - :"Insurance & InsurTech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PAYMENTS_MONEY_MOVEMENT = - T.let( - :"Payments & Money Movement", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = - T.let( - :"Accounting, Tax & Financial Planning Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CAPITAL_MARKETS_TRADING_PLATFORMS = - T.let( - :"Capital Markets & Trading Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINANCIAL_INFRASTRUCTURE_APIS = - T.let( - :"Financial Infrastructure & APIs", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREDIT_SCORING_RISK_MANAGEMENT = - T.let( - :"Credit Scoring & Risk Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRYPTOCURRENCY_DIGITAL_ASSETS = - T.let( - :"Cryptocurrency & Digital Assets", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BNPL_ALTERNATIVE_FINANCING = - T.let( - :"BNPL & Alternative Financing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_PROVIDERS_SERVICES = - T.let( - :"Healthcare Providers & Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHARMACEUTICALS_DRUG_DEVELOPMENT = - T.let( - :"Pharmaceuticals & Drug Development", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDICAL_DEVICES_DIAGNOSTICS = - T.let( - :"Medical Devices & Diagnostics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIOTECHNOLOGY_GENOMICS = - T.let( - :"Biotechnology & Genomics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_HEALTH_TELEMEDICINE = - T.let( - :"Digital Health & Telemedicine", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_INSURANCE_BENEFITS_TECH = - T.let( - :"Health Insurance & Benefits Tech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLINICAL_TRIALS_RESEARCH_PLATFORMS = - T.let( - :"Clinical Trials & Research Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MENTAL_HEALTH_WELLNESS = - T.let( - :"Mental Health & Wellness", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_IT_EHR_SYSTEMS = - T.let( - :"Healthcare IT & EHR Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSUMER_HEALTH_WELLNESS_PRODUCTS = - T.let( - :"Consumer Health & Wellness Products", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_MARKETPLACES = - T.let( - :"Online Marketplaces", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_DTC_BRANDS = - T.let( - :"Direct-to-Consumer (DTC) Brands", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = - T.let( - :"Retail Tech & Point-of-Sale Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OMNICHANNEL_IN_STORE_RETAIL = - T.let( - :"Omnichannel & In-Store Retail", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = - T.let( - :"E-commerce Enablement & Infrastructure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSCRIPTION_MEMBERSHIP_COMMERCE = - T.let( - :"Subscription & Membership Commerce", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = - T.let( - :"Social Commerce & Influencer Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_APPAREL_RETAIL = - T.let( - :"Fashion & Apparel Retail", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_GROCERY_E_COMMERCE = - T.let( - :"Food, Beverage & Grocery E-commerce", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = - T.let( - :"Streaming Platforms (Video, Music, Audio)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GAMING_INTERACTIVE_ENTERTAINMENT = - T.let( - :"Gaming & Interactive Entertainment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = - T.let( - :"Creator Economy & Influencer Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVERTISING_ADTECH_MEDIA_BUYING = - T.let( - :"Advertising, Adtech & Media Buying", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FILM_TV_PRODUCTION_STUDIOS = - T.let( - :"Film, TV & Production Studios", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_VENUES_LIVE_ENTERTAINMENT = - T.let( - :"Events, Venues & Live Entertainment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = - T.let( - :"Virtual Worlds & Metaverse Experiences", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - K_12_EDUCATION_PLATFORMS_TOOLS = - T.let( - :"K-12 Education Platforms & Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HIGHER_EDUCATION_UNIVERSITY_TECH = - T.let( - :"Higher Education & University Tech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_LEARNING_MOO_CS = - T.let( - :"Online Learning & MOOCs", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TEST_PREP_CERTIFICATION = - T.let( - :"Test Prep & Certification", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAINING_UPSKILLING = - T.let( - :"Corporate Training & Upskilling", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TUTORING_SUPPLEMENTAL_LEARNING = - T.let( - :"Tutoring & Supplemental Learning", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = - T.let( - :"Education Management Systems (LMS/SIS)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LANGUAGE_LEARNING = - T.let( - :"Language Learning", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_LED_COHORT_BASED_COURSES = - T.let( - :"Creator-Led & Cohort-Based Courses", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = - T.let( - :"Special Education & Accessibility Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = - T.let( - :"Government Technology & Digital Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = - T.let( - :"Civic Engagement & Policy Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = - T.let( - :"International Development & Humanitarian Aid", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHILANTHROPY_GRANTMAKING = - T.let( - :"Philanthropy & Grantmaking", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = - T.let( - :"Nonprofit Operations & Fundraising Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_HEALTH_SOCIAL_SERVICES = - T.let( - :"Public Health & Social Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = - T.let( - :"Education & Youth Development Programs", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = - T.let( - :"Environmental & Climate Action Organizations", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = - T.let( - :"Legal Aid & Social Justice Advocacy", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MUNICIPAL_INFRASTRUCTURE_SERVICES = - T.let( - :"Municipal & Infrastructure Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANUFACTURING_INDUSTRIAL_AUTOMATION = - T.let( - :"Manufacturing & Industrial Automation", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = - T.let( - :"Energy Production (Oil, Gas, Nuclear)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENEWABLE_ENERGY_CLEANTECH = - T.let( - :"Renewable Energy & Cleantech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - UTILITIES_GRID_INFRASTRUCTURE = - T.let( - :"Utilities & Grid Infrastructure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = - T.let( - :"Industrial IoT & Monitoring Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_HEAVY_EQUIPMENT = - T.let( - :"Construction & Heavy Equipment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MINING_NATURAL_RESOURCES = - T.let( - :"Mining & Natural Resources", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = - T.let( - :"Environmental Engineering & Sustainability", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_STORAGE_BATTERY_TECHNOLOGY = - T.let( - :"Energy Storage & Battery Technology", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = - T.let( - :"Automotive OEMs & Vehicle Manufacturing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = - T.let( - :"Electric Vehicles (EVs) & Charging Infrastructure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILITY_AS_A_SERVICE_MAA_S = - T.let( - :"Mobility-as-a-Service (MaaS)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FLEET_MANAGEMENT = - T.let( - :"Fleet Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_TRANSIT_URBAN_MOBILITY = - T.let( - :"Public Transit & Urban Mobility", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTONOMOUS_VEHICLES_ADAS = - T.let( - :"Autonomous Vehicles & ADAS", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AFTERMARKET_PARTS_SERVICES = - T.let( - :"Aftermarket Parts & Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELEMATICS_VEHICLE_CONNECTIVITY = - T.let( - :"Telematics & Vehicle Connectivity", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIATION_AEROSPACE_TRANSPORT = - T.let( - :"Aviation & Aerospace Transport", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARITIME_SHIPPING = - T.let( - :"Maritime Shipping", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_WELLNESS = - T.let( - :"Fitness & Wellness", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_PERSONAL_CARE = - T.let( - :"Beauty & Personal Care", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_LIVING = - T.let( - :"Home & Living", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATING_RELATIONSHIPS = - T.let( - :"Dating & Relationships", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOBBIES_CRAFTS_DIY = - T.let( - :"Hobbies, Crafts & DIY", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OUTDOOR_RECREATIONAL_GEAR = - T.let( - :"Outdoor & Recreational Gear", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = - T.let( - :"Events, Experiences & Ticketing Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGNER_LUXURY_APPAREL = - T.let( - :"Designer & Luxury Apparel", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCESSORIES_JEWELRY_WATCHES = - T.let( - :"Accessories, Jewelry & Watches", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOTWEAR_LEATHER_GOODS = - T.let( - :"Footwear & Leather Goods", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_FRAGRANCE_SKINCARE = - T.let( - :"Beauty, Fragrance & Skincare", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_MARKETPLACES_RETAIL_PLATFORMS = - T.let( - :"Fashion Marketplaces & Retail Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_ETHICAL_FASHION = - T.let( - :"Sustainable & Ethical Fashion", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESALE_VINTAGE_CIRCULAR_FASHION = - T.let( - :"Resale, Vintage & Circular Fashion", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_TECH_VIRTUAL_TRY_ONS = - T.let( - :"Fashion Tech & Virtual Try-Ons", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREETWEAR_EMERGING_LUXURY = - T.let( - :"Streetwear & Emerging Luxury", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COUTURE_MADE_TO_MEASURE = - T.let( - :"Couture & Made-to-Measure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_PUBLISHING_JOURNALISM = - T.let( - :"News Publishing & Journalism", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_MEDIA_CONTENT_PLATFORMS = - T.let( - :"Digital Media & Content Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADCASTING_TV_RADIO = - T.let( - :"Broadcasting (TV & Radio)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PODCASTING_AUDIO_MEDIA = - T.let( - :"Podcasting & Audio Media", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_AGGREGATORS_CURATION_TOOLS = - T.let( - :"News Aggregators & Curation Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDEPENDENT_CREATOR_LED_MEDIA = - T.let( - :"Independent & Creator-Led Media", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = - T.let( - :"Newsletters & Substack-Style Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLITICAL_INVESTIGATIVE_MEDIA = - T.let( - :"Political & Investigative Media", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRADE_NICHE_PUBLICATIONS = - T.let( - :"Trade & Niche Publications", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDIA_MONITORING_ANALYTICS = - T.let( - :"Media Monitoring & Analytics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TEAMS_LEAGUES = - T.let( - :"Professional Teams & Leagues", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_MEDIA_BROADCASTING = - T.let( - :"Sports Media & Broadcasting", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_BETTING_FANTASY_SPORTS = - T.let( - :"Sports Betting & Fantasy Sports", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_ATHLETIC_TRAINING_PLATFORMS = - T.let( - :"Fitness & Athletic Training Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTSWEAR_EQUIPMENT = - T.let( - :"Sportswear & Equipment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ESPORTS_COMPETITIVE_GAMING = - T.let( - :"Esports & Competitive Gaming", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_VENUES_EVENT_MANAGEMENT = - T.let( - :"Sports Venues & Event Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ATHLETE_MANAGEMENT_TALENT_AGENCIES = - T.let( - :"Athlete Management & Talent Agencies", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_TECH_PERFORMANCE_ANALYTICS = - T.let( - :"Sports Tech & Performance Analytics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - YOUTH_AMATEUR_COLLEGIATE_SPORTS = - T.let( - :"Youth, Amateur & Collegiate Sports", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_MARKETPLACES = - T.let( - :"Real Estate Marketplaces", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROPERTY_MANAGEMENT_SOFTWARE = - T.let( - :"Property Management Software", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENTAL_PLATFORMS = - T.let( - :"Rental Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MORTGAGE_LENDING_TECH = - T.let( - :"Mortgage & Lending Tech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_INVESTMENT_PLATFORMS = - T.let( - :"Real Estate Investment Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAW_FIRMS_LEGAL_SERVICES = - T.let( - :"Law Firms & Legal Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_TECH_AUTOMATION = - T.let( - :"Legal Tech & Automation", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REGULATORY_COMPLIANCE = - T.let( - :"Regulatory Compliance", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_DISCOVERY_LITIGATION_TOOLS = - T.let( - :"E-Discovery & Litigation Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONTRACT_MANAGEMENT = - T.let( - :"Contract Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNANCE_RISK_COMPLIANCE_GRC = - T.let( - :"Governance, Risk & Compliance (GRC)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IP_TRADEMARK_MANAGEMENT = - T.let( - :"IP & Trademark Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_RESEARCH_INTELLIGENCE = - T.let( - :"Legal Research & Intelligence", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMPLIANCE_TRAINING_CERTIFICATION = - T.let( - :"Compliance Training & Certification", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WHISTLEBLOWER_ETHICS_REPORTING = - T.let( - :"Whistleblower & Ethics Reporting", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = - T.let( - :"Mobile & Wireless Networks (3G/4G/5G)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADBAND_FIBER_INTERNET = - T.let( - :"Broadband & Fiber Internet", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SATELLITE_SPACE_BASED_COMMUNICATIONS = - T.let( - :"Satellite & Space-Based Communications", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NETWORK_EQUIPMENT_INFRASTRUCTURE = - T.let( - :"Network Equipment & Infrastructure", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELECOM_BILLING_OSS_BSS_SYSTEMS = - T.let( - :"Telecom Billing & OSS/BSS Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VO_IP_UNIFIED_COMMUNICATIONS = - T.let( - :"VoIP & Unified Communications", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNET_SERVICE_PROVIDERS_IS_PS = - T.let( - :"Internet Service Providers (ISPs)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = - T.let( - :"Edge Computing & Network Virtualization", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IO_T_CONNECTIVITY_PLATFORMS = - T.let( - :"IoT Connectivity Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRECISION_AGRICULTURE_AG_TECH = - T.let( - :"Precision Agriculture & AgTech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROP_LIVESTOCK_PRODUCTION = - T.let( - :"Crop & Livestock Production", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = - T.let( - :"Food & Beverage Manufacturing & Processing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_DISTRIBUTION = - T.let( - :"Food Distribution", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANTS_FOOD_SERVICE = - T.let( - :"Restaurants & Food Service", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGRICULTURAL_INPUTS_EQUIPMENT = - T.let( - :"Agricultural Inputs & Equipment", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_REGENERATIVE_AGRICULTURE = - T.let( - :"Sustainable & Regenerative Agriculture", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SEAFOOD_AQUACULTURE = - T.let( - :"Seafood & Aquaculture", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANAGEMENT_CONSULTING = - T.let( - :"Management Consulting", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARKETING_ADVERTISING_AGENCIES = - T.let( - :"Marketing & Advertising Agencies", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGN_BRANDING_CREATIVE_STUDIOS = - T.let( - :"Design, Branding & Creative Studios", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IT_SERVICES_MANAGED_SERVICES = - T.let( - :"IT Services & Managed Services", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STAFFING_RECRUITING_TALENT = - T.let( - :"Staffing, Recruiting & Talent", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FIRMS = - T.let( - :"Accounting & Tax Firms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_RELATIONS_COMMUNICATIONS = - T.let( - :"Public Relations & Communications", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUSINESS_PROCESS_OUTSOURCING_BPO = - T.let( - :"Business Process Outsourcing (BPO)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TRAINING_COACHING = - T.let( - :"Professional Training & Coaching", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIALTY_CHEMICALS = - T.let( - :"Specialty Chemicals", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMMODITY_PETROCHEMICALS = - T.let( - :"Commodity & Petrochemicals", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLYMERS_PLASTICS_RUBBER = - T.let( - :"Polymers, Plastics & Rubber", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COATINGS_ADHESIVES_SEALANTS = - T.let( - :"Coatings, Adhesives & Sealants", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_GASES = - T.let( - :"Industrial Gases", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVANCED_MATERIALS_COMPOSITES = - T.let( - :"Advanced Materials & Composites", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BATTERY_MATERIALS_ENERGY_STORAGE = - T.let( - :"Battery Materials & Energy Storage", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = - T.let( - :"Electronic Materials & Semiconductor Chemicals", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGROCHEMICALS_FERTILIZERS = - T.let( - :"Agrochemicals & Fertilizers", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FREIGHT_TRANSPORTATION_TECH = - T.let( - :"Freight & Transportation Tech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAST_MILE_DELIVERY = - T.let( - :"Last-Mile Delivery", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WAREHOUSE_AUTOMATION = - T.let( - :"Warehouse Automation", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = - T.let( - :"Supply Chain Visibility Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LOGISTICS_MARKETPLACES = - T.let( - :"Logistics Marketplaces", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SHIPPING_FREIGHT_FORWARDING = - T.let( - :"Shipping & Freight Forwarding", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COLD_CHAIN_LOGISTICS = - T.let( - :"Cold Chain Logistics", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REVERSE_LOGISTICS_RETURNS = - T.let( - :"Reverse Logistics & Returns", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROSS_BORDER_TRADE_TECH = - T.let( - :"Cross-Border Trade Tech", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = - T.let( - :"Transportation Management Systems (TMS)", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOTELS_ACCOMMODATION = - T.let( - :"Hotels & Accommodation", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VACATION_RENTALS_SHORT_TERM_STAYS = - T.let( - :"Vacation Rentals & Short-Term Stays", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANT_TECH_MANAGEMENT = - T.let( - :"Restaurant Tech & Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_BOOKING_PLATFORMS = - T.let( - :"Travel Booking Platforms", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TOURISM_EXPERIENCES_ACTIVITIES = - T.let( - :"Tourism Experiences & Activities", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRUISE_LINES_MARINE_TOURISM = - T.let( - :"Cruise Lines & Marine Tourism", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOSPITALITY_MANAGEMENT_SYSTEMS = - T.let( - :"Hospitality Management Systems", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENT_VENUE_MANAGEMENT = - T.let( - :"Event & Venue Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAVEL_MANAGEMENT = - T.let( - :"Corporate Travel Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_INSURANCE_PROTECTION = - T.let( - :"Travel Insurance & Protection", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MANAGEMENT_SOFTWARE = - T.let( - :"Construction Management Software", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIM_CAD_DESIGN_TOOLS = - T.let( - :"BIM/CAD & Design Tools", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MARKETPLACES = - T.let( - :"Construction Marketplaces", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EQUIPMENT_RENTAL_MANAGEMENT = - T.let( - :"Equipment Rental & Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUILDING_MATERIALS_PROCUREMENT = - T.let( - :"Building Materials & Procurement", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_WORKFORCE_MANAGEMENT = - T.let( - :"Construction Workforce Management", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROJECT_ESTIMATION_BIDDING = - T.let( - :"Project Estimation & Bidding", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MODULAR_PREFAB_CONSTRUCTION = - T.let( - :"Modular & Prefab Construction", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_SAFETY_COMPLIANCE = - T.let( - :"Construction Safety & Compliance", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SMART_BUILDING_TECHNOLOGY = - T.let( - :"Smart Building Technology", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_CPG = - T.let( - :"Food & Beverage CPG", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_PERSONAL_CARE_CPG = - T.let( - :"Home & Personal Care CPG", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_ANALYTICS_INSIGHTS = - T.let( - :"CPG Analytics & Insights", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_CPG_BRANDS = - T.let( - :"Direct-to-Consumer CPG Brands", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_SUPPLY_CHAIN_DISTRIBUTION = - T.let( - :"CPG Supply Chain & Distribution", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRIVATE_LABEL_MANUFACTURING = - T.let( - :"Private Label Manufacturing", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_RETAIL_INTELLIGENCE = - T.let( - :"CPG Retail Intelligence", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_CPG_PACKAGING = - T.let( - :"Sustainable CPG & Packaging", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_COSMETICS_CPG = - T.let( - :"Beauty & Cosmetics CPG", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_WELLNESS_CPG = - T.let( - :"Health & Wellness CPG", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - - class Links < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, - ContextDev::Internal::AnyHash - ) - end - - # URL to the brand's blog or news page - sig { returns(T.nilable(String)) } - attr_accessor :blog - - # URL to the brand's careers or job opportunities page - sig { returns(T.nilable(String)) } - attr_accessor :careers - - # URL to the brand's contact or contact us page - sig { returns(T.nilable(String)) } - attr_accessor :contact - - # URL to the brand's pricing or plans page - sig { returns(T.nilable(String)) } - attr_accessor :pricing - - # URL to the brand's privacy policy page - sig { returns(T.nilable(String)) } - attr_accessor :privacy - - # URL to the brand's terms of service or terms and conditions page - sig { returns(T.nilable(String)) } - attr_accessor :terms - - # Important website links for the brand - sig do - params( - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # URL to the brand's blog or news page - blog: nil, - # URL to the brand's careers or job opportunities page - careers: nil, - # URL to the brand's contact or contact us page - contact: nil, - # URL to the brand's pricing or plans page - pricing: nil, - # URL to the brand's privacy policy page - privacy: nil, - # URL to the brand's terms of service or terms and conditions page - terms: nil - ) - end - - sig do - override.returns( - { - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - } - ) - end - def to_hash - end - end - - class Logo < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the logo - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol - ) - ) - end - attr_reader :mode - - sig do - params( - mode: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::OrSymbol - ).void - end - attr_writer :mode - - # Resolution of the logo image - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution::OrHash - ).void - end - attr_writer :resolution - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::OrSymbol - ).void - end - attr_writer :type - - # CDN hosted url of the logo (ready for display) - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color::OrHash - ], - mode: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::OrSymbol, - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution::OrHash, - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the logo - colors: nil, - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - mode: nil, - # Resolution of the logo image - resolution: nil, - # Type of the logo based on resolution (e.g., 'icon', 'logo') - type: nil, - # CDN hosted url of the logo (ready for display) - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color - ], - mode: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol, - resolution: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - module Mode - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LIGHT = - T.let( - :light, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol - ) - DARK = - T.let( - :dark, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol - ) - HAS_OPAQUE_BACKGROUND = - T.let( - :has_opaque_background, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Mode::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the logo image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ICON = - T.let( - :icon, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::TaggedSymbol - ) - LOGO = - T.let( - :logo, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::PrimaryLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Social < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social, - ContextDev::Internal::AnyHash - ) - end - - # Type of social media platform - sig do - returns( - T.nilable( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::OrSymbol - ).void - end - attr_writer :type - - # URL of the social media page - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Type of social media platform - type: nil, - # URL of the social media page - url: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - # Type of social media platform - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - X = - T.let( - :x, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - FACEBOOK = - T.let( - :facebook, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - INSTAGRAM = - T.let( - :instagram, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - LINKEDIN = - T.let( - :linkedin, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - YOUTUBE = - T.let( - :youtube, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - PINTEREST = - T.let( - :pinterest, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - TIKTOK = - T.let( - :tiktok, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - DRIBBBLE = - T.let( - :dribbble, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - GITHUB = - T.let( - :github, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - BEHANCE = - T.let( - :behance, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - SNAPCHAT = - T.let( - :snapchat, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - WHATSAPP = - T.let( - :whatsapp, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - TELEGRAM = - T.let( - :telegram, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - LINE = - T.let( - :line, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - DISCORD = - T.let( - :discord, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - TWITCH = - T.let( - :twitch, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - VIMEO = - T.let( - :vimeo, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - IMDB = - T.let( - :imdb, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - TUMBLR = - T.let( - :tumblr, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - FLICKR = - T.let( - :flickr, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - GIPHY = - T.let( - :giphy, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - SPOTIFY = - T.let( - :spotify, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - SOUNDCLOUD = - T.let( - :soundcloud, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - TRIPADVISOR = - T.let( - :tripadvisor, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - YELP = - T.let( - :yelp, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - PRODUCTHUNT = - T.let( - :producthunt, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - REDDIT = - T.let( - :reddit, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - CRUNCHBASE = - T.let( - :crunchbase, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - APPSTORE = - T.let( - :appstore, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - PLAYSTORE = - T.let( - :playstore, - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Stock < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, - ContextDev::Internal::AnyHash - ) - end - - # Stock exchange name - sig { returns(T.nilable(String)) } - attr_reader :exchange - - sig { params(exchange: String).void } - attr_writer :exchange - - # Stock ticker symbol - sig { returns(T.nilable(String)) } - attr_reader :ticker - - sig { params(ticker: String).void } - attr_writer :ticker - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - params(exchange: String, ticker: String).returns(T.attached_class) - end - def self.new( - # Stock exchange name - exchange: nil, - # Stock ticker symbol - ticker: nil - ) - end - - sig { override.returns({ exchange: String, ticker: String }) } - def to_hash - end - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_email_params.rbi b/rbi/context_dev/models/brand_retrieve_by_email_params.rbi deleted file mode 100644 index a998fbec..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +++ /dev/null @@ -1,743 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::BrandRetrieveByEmailParams, - ContextDev::Internal::AnyHash - ) - end - - # Email address to retrieve brand data for (e.g., 'contact@example.com'). The - # domain will be extracted from the email. Free email providers (gmail.com, - # yahoo.com, etc.) and disposable email addresses are not allowed. - sig { returns(String) } - attr_accessor :email - - # Optional parameter to force the language of the retrieved brand data. - sig do - returns( - T.nilable( - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol - ) - ) - end - attr_reader :force_language - - sig do - params( - force_language: - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - sig { returns(T.nilable(Integer)) } - attr_reader :max_age_ms - - sig { params(max_age_ms: Integer).void } - attr_writer :max_age_ms - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - email: String, - force_language: - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Email address to retrieve brand data for (e.g., 'contact@example.com'). The - # domain will be extracted from the email. Free email providers (gmail.com, - # yahoo.com, etc.) and disposable email addresses are not allowed. - email:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - email: String, - force_language: - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, ContextDev::BrandRetrieveByEmailParams::ForceLanguage) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_email_response.rbi b/rbi/context_dev/models/brand_retrieve_by_email_response.rbi deleted file mode 100644 index 4038beb3..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +++ /dev/null @@ -1,3511 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByEmailResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse, - ContextDev::Internal::AnyHash - ) - end - - # Detailed brand information - sig do - returns( - T.nilable(ContextDev::Models::BrandRetrieveByEmailResponse::Brand) - ) - end - attr_reader :brand - - sig do - params( - brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::OrHash - ).void - end - attr_writer :brand - - # HTTP status code - sig { returns(T.nilable(Integer)) } - attr_reader :code - - sig { params(code: Integer).void } - attr_writer :code - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - brand: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::OrHash, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata::OrHash, - status: String - ).returns(T.attached_class) - end - def self.new( - # Detailed brand information - brand: nil, - # HTTP status code - code: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, - status: String - } - ) - end - def to_hash - end - - class Brand < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand, - ContextDev::Internal::AnyHash - ) - end - - # Physical address of the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address - ) - ) - end - attr_reader :address - - sig do - params( - address: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address::OrHash - ).void - end - attr_writer :address - - # An array of backdrop images for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop - ] - ) - ) - end - attr_reader :backdrops - - sig do - params( - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::OrHash - ] - ).void - end - attr_writer :backdrops - - # An array of brand colors - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color::OrHash - ] - ).void - end - attr_writer :colors - - # A brief description of the brand - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # The domain name of the brand - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Company email address - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Industry classification information for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries - ) - ) - end - attr_reader :industries - - sig do - params( - industries: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::OrHash - ).void - end - attr_writer :industries - - # Indicates whether the brand content is not safe for work (NSFW) - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_nsfw - - sig { params(is_nsfw: T::Boolean).void } - attr_writer :is_nsfw - - # Important website links for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links - ) - ) - end - attr_reader :links - - sig do - params( - links: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links::OrHash - ).void - end - attr_writer :links - - # An array of logos associated with the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo - ] - ) - ) - end - attr_reader :logos - - sig do - params( - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::OrHash - ] - ).void - end - attr_writer :logos - - # Company phone number - sig { returns(T.nilable(String)) } - attr_reader :phone - - sig { params(phone: String).void } - attr_writer :phone - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ) - end - attr_accessor :primary_language - - # The brand's slogan - sig { returns(T.nilable(String)) } - attr_reader :slogan - - sig { params(slogan: String).void } - attr_writer :slogan - - # An array of social media links for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social - ] - ) - ) - end - attr_reader :socials - - sig do - params( - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::OrHash - ] - ).void - end - attr_writer :socials - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock - ) - ) - end - attr_reader :stock - - sig do - params( - stock: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock::OrHash - ).void - end - attr_writer :stock - - # The title or name of the brand - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - # Detailed brand information - sig do - params( - address: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address::OrHash, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::OrHash - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color::OrHash - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::OrHash, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links::OrHash, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::OrHash - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::OrSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::OrHash - ], - stock: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock::OrHash, - title: String - ).returns(T.attached_class) - end - def self.new( - # Physical address of the brand - address: nil, - # An array of backdrop images for the brand - backdrops: nil, - # An array of brand colors - colors: nil, - # A brief description of the brand - description: nil, - # The domain name of the brand - domain: nil, - # Company email address - email: nil, - # Industry classification information for the brand - industries: nil, - # Indicates whether the brand content is not safe for work (NSFW) - is_nsfw: nil, - # Important website links for the brand - links: nil, - # An array of logos associated with the brand - logos: nil, - # Company phone number - phone: nil, - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - primary_language: nil, - # The brand's slogan - slogan: nil, - # An array of social media links for the brand - socials: nil, - # Stock market information for this brand (will be null if not a publicly traded - # company) - stock: nil, - # The title or name of the brand - title: nil - ) - end - - sig do - override.returns( - { - address: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social - ], - stock: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, - title: String - } - ) - end - def to_hash - end - - class Address < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, - ContextDev::Internal::AnyHash - ) - end - - # City name - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Country name - sig { returns(T.nilable(String)) } - attr_reader :country - - sig { params(country: String).void } - attr_writer :country - - # Country code - sig { returns(T.nilable(String)) } - attr_reader :country_code - - sig { params(country_code: String).void } - attr_writer :country_code - - # Postal or ZIP code - sig { returns(T.nilable(String)) } - attr_reader :postal_code - - sig { params(postal_code: String).void } - attr_writer :postal_code - - # State or province code - sig { returns(T.nilable(String)) } - attr_reader :state_code - - sig { params(state_code: String).void } - attr_writer :state_code - - # State or province name - sig { returns(T.nilable(String)) } - attr_reader :state_province - - sig { params(state_province: String).void } - attr_writer :state_province - - # Street address - sig { returns(T.nilable(String)) } - attr_reader :street - - sig { params(street: String).void } - attr_writer :street - - # Physical address of the brand - sig do - params( - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - ).returns(T.attached_class) - end - def self.new( - # City name - city: nil, - # Country name - country: nil, - # Country code - country_code: nil, - # Postal or ZIP code - postal_code: nil, - # State or province code - state_code: nil, - # State or province name - state_province: nil, - # Street address - street: nil - ) - end - - sig do - override.returns( - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - ) - end - def to_hash - end - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the backdrop image - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Resolution of the backdrop image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution::OrHash - ).void - end - attr_writer :resolution - - # URL of the backdrop image - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color::OrHash - ], - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution::OrHash, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the backdrop image - colors: nil, - # Resolution of the backdrop image - resolution: nil, - # URL of the backdrop image - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color - ], - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the backdrop image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Industries < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, - ContextDev::Internal::AnyHash - ) - end - - # Easy Industry Classification - array of industry and subindustry pairs - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic - ] - ) - ) - end - attr_reader :eic - - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::OrHash - ] - ).void - end - attr_writer :eic - - # Industry classification information for the brand - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # Easy Industry Classification - array of industry and subindustry pairs - eic: nil - ) - end - - sig do - override.returns( - { - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic - ] - } - ) - end - def to_hash - end - - class Eic < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic, - ContextDev::Internal::AnyHash - ) - end - - # Industry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - end - attr_accessor :industry - - # Subindustry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - end - attr_accessor :subindustry - - sig do - params( - industry: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::OrSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Industry classification enum - industry:, - # Subindustry classification enum - subindustry: - ) - end - - sig do - override.returns( - { - industry: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - } - ) - end - def to_hash - end - - # Industry classification enum - module Industry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AEROSPACE_DEFENSE = - T.let( - :"Aerospace & Defense", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TECHNOLOGY = - T.let( - :Technology, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - FINANCE = - T.let( - :Finance, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HEALTHCARE = - T.let( - :Healthcare, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - RETAIL_E_COMMERCE = - T.let( - :"Retail & E-commerce", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - ENTERTAINMENT = - T.let( - :Entertainment, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - EDUCATION = - T.let( - :Education, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - GOVERNMENT_NONPROFIT = - T.let( - :"Government & Nonprofit", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - INDUSTRIAL_ENERGY = - T.let( - :"Industrial & Energy", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AUTOMOTIVE_TRANSPORTATION = - T.let( - :"Automotive & Transportation", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LIFESTYLE_LEISURE = - T.let( - :"Lifestyle & Leisure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LUXURY_FASHION = - T.let( - :"Luxury & Fashion", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - NEWS_MEDIA = - T.let( - :"News & Media", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - SPORTS = - T.let( - :Sports, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - REAL_ESTATE_PROP_TECH = - T.let( - :"Real Estate & PropTech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LEGAL_COMPLIANCE = - T.let( - :"Legal & Compliance", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TELECOMMUNICATIONS = - T.let( - :Telecommunications, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AGRICULTURE_FOOD = - T.let( - :"Agriculture & Food", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - PROFESSIONAL_SERVICES_AGENCIES = - T.let( - :"Professional Services & Agencies", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CHEMICALS_MATERIALS = - T.let( - :"Chemicals & Materials", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LOGISTICS_SUPPLY_CHAIN = - T.let( - :"Logistics & Supply Chain", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HOSPITALITY_TOURISM = - T.let( - :"Hospitality & Tourism", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSTRUCTION_BUILT_ENVIRONMENT = - T.let( - :"Construction & Built Environment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSUMER_PACKAGED_GOODS_CPG = - T.let( - :"Consumer Packaged Goods (CPG)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Subindustry classification enum - module Subindustry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = - T.let( - :"Defense Systems & Military Hardware", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AEROSPACE_MANUFACTURING = - T.let( - :"Aerospace Manufacturing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIONICS_NAVIGATION_TECHNOLOGY = - T.let( - :"Avionics & Navigation Technology", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSEA_NAVAL_DEFENSE_SYSTEMS = - T.let( - :"Subsea & Naval Defense Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPACE_SATELLITE_TECHNOLOGY = - T.let( - :"Space & Satellite Technology", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEFENSE_IT_SYSTEMS_INTEGRATION = - T.let( - :"Defense IT & Systems Integration", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_B = - T.let( - :"Software (B2B)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_C = - T.let( - :"Software (B2C)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLOUD_INFRASTRUCTURE_DEV_OPS = - T.let( - :"Cloud Infrastructure & DevOps", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CYBERSECURITY = - T.let( - :Cybersecurity, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = - T.let( - :"Artificial Intelligence & Machine Learning", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATA_INFRASTRUCTURE_ANALYTICS = - T.let( - :"Data Infrastructure & Analytics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HARDWARE_SEMICONDUCTORS = - T.let( - :"Hardware & Semiconductors", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINTECH_INFRASTRUCTURE = - T.let( - :"Fintech Infrastructure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_MARKETPLACE_PLATFORMS = - T.let( - :"eCommerce & Marketplace Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEVELOPER_TOOLS_APIS = - T.let( - :"Developer Tools & APIs", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WEB3_BLOCKCHAIN = - T.let( - :"Web3 & Blockchain", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - XR_SPATIAL_COMPUTING = - T.let( - :"XR & Spatial Computing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BANKING_LENDING = - T.let( - :"Banking & Lending", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INVESTMENT_MANAGEMENT_WEALTH_TECH = - T.let( - :"Investment Management & WealthTech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INSURANCE_INSUR_TECH = - T.let( - :"Insurance & InsurTech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PAYMENTS_MONEY_MOVEMENT = - T.let( - :"Payments & Money Movement", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = - T.let( - :"Accounting, Tax & Financial Planning Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CAPITAL_MARKETS_TRADING_PLATFORMS = - T.let( - :"Capital Markets & Trading Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINANCIAL_INFRASTRUCTURE_APIS = - T.let( - :"Financial Infrastructure & APIs", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREDIT_SCORING_RISK_MANAGEMENT = - T.let( - :"Credit Scoring & Risk Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRYPTOCURRENCY_DIGITAL_ASSETS = - T.let( - :"Cryptocurrency & Digital Assets", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BNPL_ALTERNATIVE_FINANCING = - T.let( - :"BNPL & Alternative Financing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_PROVIDERS_SERVICES = - T.let( - :"Healthcare Providers & Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHARMACEUTICALS_DRUG_DEVELOPMENT = - T.let( - :"Pharmaceuticals & Drug Development", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDICAL_DEVICES_DIAGNOSTICS = - T.let( - :"Medical Devices & Diagnostics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIOTECHNOLOGY_GENOMICS = - T.let( - :"Biotechnology & Genomics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_HEALTH_TELEMEDICINE = - T.let( - :"Digital Health & Telemedicine", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_INSURANCE_BENEFITS_TECH = - T.let( - :"Health Insurance & Benefits Tech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLINICAL_TRIALS_RESEARCH_PLATFORMS = - T.let( - :"Clinical Trials & Research Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MENTAL_HEALTH_WELLNESS = - T.let( - :"Mental Health & Wellness", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_IT_EHR_SYSTEMS = - T.let( - :"Healthcare IT & EHR Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSUMER_HEALTH_WELLNESS_PRODUCTS = - T.let( - :"Consumer Health & Wellness Products", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_MARKETPLACES = - T.let( - :"Online Marketplaces", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_DTC_BRANDS = - T.let( - :"Direct-to-Consumer (DTC) Brands", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = - T.let( - :"Retail Tech & Point-of-Sale Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OMNICHANNEL_IN_STORE_RETAIL = - T.let( - :"Omnichannel & In-Store Retail", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = - T.let( - :"E-commerce Enablement & Infrastructure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSCRIPTION_MEMBERSHIP_COMMERCE = - T.let( - :"Subscription & Membership Commerce", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = - T.let( - :"Social Commerce & Influencer Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_APPAREL_RETAIL = - T.let( - :"Fashion & Apparel Retail", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_GROCERY_E_COMMERCE = - T.let( - :"Food, Beverage & Grocery E-commerce", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = - T.let( - :"Streaming Platforms (Video, Music, Audio)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GAMING_INTERACTIVE_ENTERTAINMENT = - T.let( - :"Gaming & Interactive Entertainment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = - T.let( - :"Creator Economy & Influencer Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVERTISING_ADTECH_MEDIA_BUYING = - T.let( - :"Advertising, Adtech & Media Buying", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FILM_TV_PRODUCTION_STUDIOS = - T.let( - :"Film, TV & Production Studios", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_VENUES_LIVE_ENTERTAINMENT = - T.let( - :"Events, Venues & Live Entertainment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = - T.let( - :"Virtual Worlds & Metaverse Experiences", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - K_12_EDUCATION_PLATFORMS_TOOLS = - T.let( - :"K-12 Education Platforms & Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HIGHER_EDUCATION_UNIVERSITY_TECH = - T.let( - :"Higher Education & University Tech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_LEARNING_MOO_CS = - T.let( - :"Online Learning & MOOCs", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TEST_PREP_CERTIFICATION = - T.let( - :"Test Prep & Certification", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAINING_UPSKILLING = - T.let( - :"Corporate Training & Upskilling", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TUTORING_SUPPLEMENTAL_LEARNING = - T.let( - :"Tutoring & Supplemental Learning", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = - T.let( - :"Education Management Systems (LMS/SIS)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LANGUAGE_LEARNING = - T.let( - :"Language Learning", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_LED_COHORT_BASED_COURSES = - T.let( - :"Creator-Led & Cohort-Based Courses", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = - T.let( - :"Special Education & Accessibility Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = - T.let( - :"Government Technology & Digital Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = - T.let( - :"Civic Engagement & Policy Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = - T.let( - :"International Development & Humanitarian Aid", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHILANTHROPY_GRANTMAKING = - T.let( - :"Philanthropy & Grantmaking", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = - T.let( - :"Nonprofit Operations & Fundraising Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_HEALTH_SOCIAL_SERVICES = - T.let( - :"Public Health & Social Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = - T.let( - :"Education & Youth Development Programs", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = - T.let( - :"Environmental & Climate Action Organizations", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = - T.let( - :"Legal Aid & Social Justice Advocacy", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MUNICIPAL_INFRASTRUCTURE_SERVICES = - T.let( - :"Municipal & Infrastructure Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANUFACTURING_INDUSTRIAL_AUTOMATION = - T.let( - :"Manufacturing & Industrial Automation", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = - T.let( - :"Energy Production (Oil, Gas, Nuclear)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENEWABLE_ENERGY_CLEANTECH = - T.let( - :"Renewable Energy & Cleantech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - UTILITIES_GRID_INFRASTRUCTURE = - T.let( - :"Utilities & Grid Infrastructure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = - T.let( - :"Industrial IoT & Monitoring Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_HEAVY_EQUIPMENT = - T.let( - :"Construction & Heavy Equipment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MINING_NATURAL_RESOURCES = - T.let( - :"Mining & Natural Resources", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = - T.let( - :"Environmental Engineering & Sustainability", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_STORAGE_BATTERY_TECHNOLOGY = - T.let( - :"Energy Storage & Battery Technology", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = - T.let( - :"Automotive OEMs & Vehicle Manufacturing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = - T.let( - :"Electric Vehicles (EVs) & Charging Infrastructure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILITY_AS_A_SERVICE_MAA_S = - T.let( - :"Mobility-as-a-Service (MaaS)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FLEET_MANAGEMENT = - T.let( - :"Fleet Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_TRANSIT_URBAN_MOBILITY = - T.let( - :"Public Transit & Urban Mobility", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTONOMOUS_VEHICLES_ADAS = - T.let( - :"Autonomous Vehicles & ADAS", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AFTERMARKET_PARTS_SERVICES = - T.let( - :"Aftermarket Parts & Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELEMATICS_VEHICLE_CONNECTIVITY = - T.let( - :"Telematics & Vehicle Connectivity", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIATION_AEROSPACE_TRANSPORT = - T.let( - :"Aviation & Aerospace Transport", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARITIME_SHIPPING = - T.let( - :"Maritime Shipping", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_WELLNESS = - T.let( - :"Fitness & Wellness", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_PERSONAL_CARE = - T.let( - :"Beauty & Personal Care", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_LIVING = - T.let( - :"Home & Living", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATING_RELATIONSHIPS = - T.let( - :"Dating & Relationships", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOBBIES_CRAFTS_DIY = - T.let( - :"Hobbies, Crafts & DIY", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OUTDOOR_RECREATIONAL_GEAR = - T.let( - :"Outdoor & Recreational Gear", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = - T.let( - :"Events, Experiences & Ticketing Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGNER_LUXURY_APPAREL = - T.let( - :"Designer & Luxury Apparel", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCESSORIES_JEWELRY_WATCHES = - T.let( - :"Accessories, Jewelry & Watches", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOTWEAR_LEATHER_GOODS = - T.let( - :"Footwear & Leather Goods", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_FRAGRANCE_SKINCARE = - T.let( - :"Beauty, Fragrance & Skincare", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_MARKETPLACES_RETAIL_PLATFORMS = - T.let( - :"Fashion Marketplaces & Retail Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_ETHICAL_FASHION = - T.let( - :"Sustainable & Ethical Fashion", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESALE_VINTAGE_CIRCULAR_FASHION = - T.let( - :"Resale, Vintage & Circular Fashion", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_TECH_VIRTUAL_TRY_ONS = - T.let( - :"Fashion Tech & Virtual Try-Ons", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREETWEAR_EMERGING_LUXURY = - T.let( - :"Streetwear & Emerging Luxury", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COUTURE_MADE_TO_MEASURE = - T.let( - :"Couture & Made-to-Measure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_PUBLISHING_JOURNALISM = - T.let( - :"News Publishing & Journalism", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_MEDIA_CONTENT_PLATFORMS = - T.let( - :"Digital Media & Content Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADCASTING_TV_RADIO = - T.let( - :"Broadcasting (TV & Radio)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PODCASTING_AUDIO_MEDIA = - T.let( - :"Podcasting & Audio Media", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_AGGREGATORS_CURATION_TOOLS = - T.let( - :"News Aggregators & Curation Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDEPENDENT_CREATOR_LED_MEDIA = - T.let( - :"Independent & Creator-Led Media", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = - T.let( - :"Newsletters & Substack-Style Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLITICAL_INVESTIGATIVE_MEDIA = - T.let( - :"Political & Investigative Media", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRADE_NICHE_PUBLICATIONS = - T.let( - :"Trade & Niche Publications", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDIA_MONITORING_ANALYTICS = - T.let( - :"Media Monitoring & Analytics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TEAMS_LEAGUES = - T.let( - :"Professional Teams & Leagues", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_MEDIA_BROADCASTING = - T.let( - :"Sports Media & Broadcasting", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_BETTING_FANTASY_SPORTS = - T.let( - :"Sports Betting & Fantasy Sports", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_ATHLETIC_TRAINING_PLATFORMS = - T.let( - :"Fitness & Athletic Training Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTSWEAR_EQUIPMENT = - T.let( - :"Sportswear & Equipment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ESPORTS_COMPETITIVE_GAMING = - T.let( - :"Esports & Competitive Gaming", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_VENUES_EVENT_MANAGEMENT = - T.let( - :"Sports Venues & Event Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ATHLETE_MANAGEMENT_TALENT_AGENCIES = - T.let( - :"Athlete Management & Talent Agencies", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_TECH_PERFORMANCE_ANALYTICS = - T.let( - :"Sports Tech & Performance Analytics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - YOUTH_AMATEUR_COLLEGIATE_SPORTS = - T.let( - :"Youth, Amateur & Collegiate Sports", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_MARKETPLACES = - T.let( - :"Real Estate Marketplaces", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROPERTY_MANAGEMENT_SOFTWARE = - T.let( - :"Property Management Software", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENTAL_PLATFORMS = - T.let( - :"Rental Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MORTGAGE_LENDING_TECH = - T.let( - :"Mortgage & Lending Tech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_INVESTMENT_PLATFORMS = - T.let( - :"Real Estate Investment Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAW_FIRMS_LEGAL_SERVICES = - T.let( - :"Law Firms & Legal Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_TECH_AUTOMATION = - T.let( - :"Legal Tech & Automation", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REGULATORY_COMPLIANCE = - T.let( - :"Regulatory Compliance", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_DISCOVERY_LITIGATION_TOOLS = - T.let( - :"E-Discovery & Litigation Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONTRACT_MANAGEMENT = - T.let( - :"Contract Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNANCE_RISK_COMPLIANCE_GRC = - T.let( - :"Governance, Risk & Compliance (GRC)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IP_TRADEMARK_MANAGEMENT = - T.let( - :"IP & Trademark Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_RESEARCH_INTELLIGENCE = - T.let( - :"Legal Research & Intelligence", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMPLIANCE_TRAINING_CERTIFICATION = - T.let( - :"Compliance Training & Certification", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WHISTLEBLOWER_ETHICS_REPORTING = - T.let( - :"Whistleblower & Ethics Reporting", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = - T.let( - :"Mobile & Wireless Networks (3G/4G/5G)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADBAND_FIBER_INTERNET = - T.let( - :"Broadband & Fiber Internet", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SATELLITE_SPACE_BASED_COMMUNICATIONS = - T.let( - :"Satellite & Space-Based Communications", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NETWORK_EQUIPMENT_INFRASTRUCTURE = - T.let( - :"Network Equipment & Infrastructure", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELECOM_BILLING_OSS_BSS_SYSTEMS = - T.let( - :"Telecom Billing & OSS/BSS Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VO_IP_UNIFIED_COMMUNICATIONS = - T.let( - :"VoIP & Unified Communications", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNET_SERVICE_PROVIDERS_IS_PS = - T.let( - :"Internet Service Providers (ISPs)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = - T.let( - :"Edge Computing & Network Virtualization", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IO_T_CONNECTIVITY_PLATFORMS = - T.let( - :"IoT Connectivity Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRECISION_AGRICULTURE_AG_TECH = - T.let( - :"Precision Agriculture & AgTech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROP_LIVESTOCK_PRODUCTION = - T.let( - :"Crop & Livestock Production", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = - T.let( - :"Food & Beverage Manufacturing & Processing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_DISTRIBUTION = - T.let( - :"Food Distribution", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANTS_FOOD_SERVICE = - T.let( - :"Restaurants & Food Service", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGRICULTURAL_INPUTS_EQUIPMENT = - T.let( - :"Agricultural Inputs & Equipment", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_REGENERATIVE_AGRICULTURE = - T.let( - :"Sustainable & Regenerative Agriculture", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SEAFOOD_AQUACULTURE = - T.let( - :"Seafood & Aquaculture", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANAGEMENT_CONSULTING = - T.let( - :"Management Consulting", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARKETING_ADVERTISING_AGENCIES = - T.let( - :"Marketing & Advertising Agencies", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGN_BRANDING_CREATIVE_STUDIOS = - T.let( - :"Design, Branding & Creative Studios", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IT_SERVICES_MANAGED_SERVICES = - T.let( - :"IT Services & Managed Services", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STAFFING_RECRUITING_TALENT = - T.let( - :"Staffing, Recruiting & Talent", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FIRMS = - T.let( - :"Accounting & Tax Firms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_RELATIONS_COMMUNICATIONS = - T.let( - :"Public Relations & Communications", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUSINESS_PROCESS_OUTSOURCING_BPO = - T.let( - :"Business Process Outsourcing (BPO)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TRAINING_COACHING = - T.let( - :"Professional Training & Coaching", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIALTY_CHEMICALS = - T.let( - :"Specialty Chemicals", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMMODITY_PETROCHEMICALS = - T.let( - :"Commodity & Petrochemicals", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLYMERS_PLASTICS_RUBBER = - T.let( - :"Polymers, Plastics & Rubber", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COATINGS_ADHESIVES_SEALANTS = - T.let( - :"Coatings, Adhesives & Sealants", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_GASES = - T.let( - :"Industrial Gases", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVANCED_MATERIALS_COMPOSITES = - T.let( - :"Advanced Materials & Composites", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BATTERY_MATERIALS_ENERGY_STORAGE = - T.let( - :"Battery Materials & Energy Storage", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = - T.let( - :"Electronic Materials & Semiconductor Chemicals", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGROCHEMICALS_FERTILIZERS = - T.let( - :"Agrochemicals & Fertilizers", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FREIGHT_TRANSPORTATION_TECH = - T.let( - :"Freight & Transportation Tech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAST_MILE_DELIVERY = - T.let( - :"Last-Mile Delivery", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WAREHOUSE_AUTOMATION = - T.let( - :"Warehouse Automation", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = - T.let( - :"Supply Chain Visibility Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LOGISTICS_MARKETPLACES = - T.let( - :"Logistics Marketplaces", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SHIPPING_FREIGHT_FORWARDING = - T.let( - :"Shipping & Freight Forwarding", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COLD_CHAIN_LOGISTICS = - T.let( - :"Cold Chain Logistics", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REVERSE_LOGISTICS_RETURNS = - T.let( - :"Reverse Logistics & Returns", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROSS_BORDER_TRADE_TECH = - T.let( - :"Cross-Border Trade Tech", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = - T.let( - :"Transportation Management Systems (TMS)", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOTELS_ACCOMMODATION = - T.let( - :"Hotels & Accommodation", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VACATION_RENTALS_SHORT_TERM_STAYS = - T.let( - :"Vacation Rentals & Short-Term Stays", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANT_TECH_MANAGEMENT = - T.let( - :"Restaurant Tech & Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_BOOKING_PLATFORMS = - T.let( - :"Travel Booking Platforms", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TOURISM_EXPERIENCES_ACTIVITIES = - T.let( - :"Tourism Experiences & Activities", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRUISE_LINES_MARINE_TOURISM = - T.let( - :"Cruise Lines & Marine Tourism", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOSPITALITY_MANAGEMENT_SYSTEMS = - T.let( - :"Hospitality Management Systems", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENT_VENUE_MANAGEMENT = - T.let( - :"Event & Venue Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAVEL_MANAGEMENT = - T.let( - :"Corporate Travel Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_INSURANCE_PROTECTION = - T.let( - :"Travel Insurance & Protection", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MANAGEMENT_SOFTWARE = - T.let( - :"Construction Management Software", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIM_CAD_DESIGN_TOOLS = - T.let( - :"BIM/CAD & Design Tools", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MARKETPLACES = - T.let( - :"Construction Marketplaces", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EQUIPMENT_RENTAL_MANAGEMENT = - T.let( - :"Equipment Rental & Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUILDING_MATERIALS_PROCUREMENT = - T.let( - :"Building Materials & Procurement", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_WORKFORCE_MANAGEMENT = - T.let( - :"Construction Workforce Management", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROJECT_ESTIMATION_BIDDING = - T.let( - :"Project Estimation & Bidding", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MODULAR_PREFAB_CONSTRUCTION = - T.let( - :"Modular & Prefab Construction", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_SAFETY_COMPLIANCE = - T.let( - :"Construction Safety & Compliance", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SMART_BUILDING_TECHNOLOGY = - T.let( - :"Smart Building Technology", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_CPG = - T.let( - :"Food & Beverage CPG", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_PERSONAL_CARE_CPG = - T.let( - :"Home & Personal Care CPG", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_ANALYTICS_INSIGHTS = - T.let( - :"CPG Analytics & Insights", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_CPG_BRANDS = - T.let( - :"Direct-to-Consumer CPG Brands", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_SUPPLY_CHAIN_DISTRIBUTION = - T.let( - :"CPG Supply Chain & Distribution", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRIVATE_LABEL_MANUFACTURING = - T.let( - :"Private Label Manufacturing", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_RETAIL_INTELLIGENCE = - T.let( - :"CPG Retail Intelligence", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_CPG_PACKAGING = - T.let( - :"Sustainable CPG & Packaging", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_COSMETICS_CPG = - T.let( - :"Beauty & Cosmetics CPG", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_WELLNESS_CPG = - T.let( - :"Health & Wellness CPG", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - - class Links < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, - ContextDev::Internal::AnyHash - ) - end - - # URL to the brand's blog or news page - sig { returns(T.nilable(String)) } - attr_accessor :blog - - # URL to the brand's careers or job opportunities page - sig { returns(T.nilable(String)) } - attr_accessor :careers - - # URL to the brand's contact or contact us page - sig { returns(T.nilable(String)) } - attr_accessor :contact - - # URL to the brand's pricing or plans page - sig { returns(T.nilable(String)) } - attr_accessor :pricing - - # URL to the brand's privacy policy page - sig { returns(T.nilable(String)) } - attr_accessor :privacy - - # URL to the brand's terms of service or terms and conditions page - sig { returns(T.nilable(String)) } - attr_accessor :terms - - # Important website links for the brand - sig do - params( - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # URL to the brand's blog or news page - blog: nil, - # URL to the brand's careers or job opportunities page - careers: nil, - # URL to the brand's contact or contact us page - contact: nil, - # URL to the brand's pricing or plans page - pricing: nil, - # URL to the brand's privacy policy page - privacy: nil, - # URL to the brand's terms of service or terms and conditions page - terms: nil - ) - end - - sig do - override.returns( - { - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - } - ) - end - def to_hash - end - end - - class Logo < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the logo - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol - ) - ) - end - attr_reader :mode - - sig do - params( - mode: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::OrSymbol - ).void - end - attr_writer :mode - - # Resolution of the logo image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution::OrHash - ).void - end - attr_writer :resolution - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::OrSymbol - ).void - end - attr_writer :type - - # CDN hosted url of the logo (ready for display) - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color::OrHash - ], - mode: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::OrSymbol, - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution::OrHash, - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the logo - colors: nil, - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - mode: nil, - # Resolution of the logo image - resolution: nil, - # Type of the logo based on resolution (e.g., 'icon', 'logo') - type: nil, - # CDN hosted url of the logo (ready for display) - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color - ], - mode: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol, - resolution: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - module Mode - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LIGHT = - T.let( - :light, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol - ) - DARK = - T.let( - :dark, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol - ) - HAS_OPAQUE_BACKGROUND = - T.let( - :has_opaque_background, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Mode::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the logo image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ICON = - T.let( - :icon, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::TaggedSymbol - ) - LOGO = - T.let( - :logo, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::PrimaryLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Social < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social, - ContextDev::Internal::AnyHash - ) - end - - # Type of social media platform - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::OrSymbol - ).void - end - attr_writer :type - - # URL of the social media page - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Type of social media platform - type: nil, - # URL of the social media page - url: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - # Type of social media platform - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - X = - T.let( - :x, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - FACEBOOK = - T.let( - :facebook, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - INSTAGRAM = - T.let( - :instagram, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - LINKEDIN = - T.let( - :linkedin, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - YOUTUBE = - T.let( - :youtube, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - PINTEREST = - T.let( - :pinterest, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - TIKTOK = - T.let( - :tiktok, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - DRIBBBLE = - T.let( - :dribbble, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - GITHUB = - T.let( - :github, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - BEHANCE = - T.let( - :behance, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - SNAPCHAT = - T.let( - :snapchat, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - WHATSAPP = - T.let( - :whatsapp, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - TELEGRAM = - T.let( - :telegram, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - LINE = - T.let( - :line, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - DISCORD = - T.let( - :discord, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - TWITCH = - T.let( - :twitch, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - VIMEO = - T.let( - :vimeo, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - IMDB = - T.let( - :imdb, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - TUMBLR = - T.let( - :tumblr, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - FLICKR = - T.let( - :flickr, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - GIPHY = - T.let( - :giphy, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - SPOTIFY = - T.let( - :spotify, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - SOUNDCLOUD = - T.let( - :soundcloud, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - TRIPADVISOR = - T.let( - :tripadvisor, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - YELP = - T.let( - :yelp, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - PRODUCTHUNT = - T.let( - :producthunt, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - REDDIT = - T.let( - :reddit, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - CRUNCHBASE = - T.let( - :crunchbase, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - APPSTORE = - T.let( - :appstore, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - PLAYSTORE = - T.let( - :playstore, - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Stock < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, - ContextDev::Internal::AnyHash - ) - end - - # Stock exchange name - sig { returns(T.nilable(String)) } - attr_reader :exchange - - sig { params(exchange: String).void } - attr_writer :exchange - - # Stock ticker symbol - sig { returns(T.nilable(String)) } - attr_reader :ticker - - sig { params(ticker: String).void } - attr_writer :ticker - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - params(exchange: String, ticker: String).returns(T.attached_class) - end - def self.new( - # Stock exchange name - exchange: nil, - # Stock ticker symbol - ticker: nil - ) - end - - sig { override.returns({ exchange: String, ticker: String }) } - def to_hash - end - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi b/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi deleted file mode 100644 index 7bccefbc..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +++ /dev/null @@ -1,743 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByIsinParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::BrandRetrieveByIsinParams, - ContextDev::Internal::AnyHash - ) - end - - # ISIN (International Securities Identification Number) to retrieve brand data for - # (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters - # followed by 9 alphanumeric characters and ending with a digit. - sig { returns(String) } - attr_accessor :isin - - # Optional parameter to force the language of the retrieved brand data. - sig do - returns( - T.nilable( - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::OrSymbol - ) - ) - end - attr_reader :force_language - - sig do - params( - force_language: - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - sig { returns(T.nilable(Integer)) } - attr_reader :max_age_ms - - sig { params(max_age_ms: Integer).void } - attr_writer :max_age_ms - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - isin: String, - force_language: - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # ISIN (International Securities Identification Number) to retrieve brand data for - # (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters - # followed by 9 alphanumeric characters and ending with a digit. - isin:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - isin: String, - force_language: - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, ContextDev::BrandRetrieveByIsinParams::ForceLanguage) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi b/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi deleted file mode 100644 index 93f1941d..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +++ /dev/null @@ -1,3510 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByIsinResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse, - ContextDev::Internal::AnyHash - ) - end - - # Detailed brand information - sig do - returns( - T.nilable(ContextDev::Models::BrandRetrieveByIsinResponse::Brand) - ) - end - attr_reader :brand - - sig do - params( - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::OrHash - ).void - end - attr_writer :brand - - # HTTP status code - sig { returns(T.nilable(Integer)) } - attr_reader :code - - sig { params(code: Integer).void } - attr_writer :code - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::OrHash, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata::OrHash, - status: String - ).returns(T.attached_class) - end - def self.new( - # Detailed brand information - brand: nil, - # HTTP status code - code: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, - status: String - } - ) - end - def to_hash - end - - class Brand < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand, - ContextDev::Internal::AnyHash - ) - end - - # Physical address of the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address - ) - ) - end - attr_reader :address - - sig do - params( - address: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address::OrHash - ).void - end - attr_writer :address - - # An array of backdrop images for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop - ] - ) - ) - end - attr_reader :backdrops - - sig do - params( - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::OrHash - ] - ).void - end - attr_writer :backdrops - - # An array of brand colors - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color::OrHash - ] - ).void - end - attr_writer :colors - - # A brief description of the brand - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # The domain name of the brand - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Company email address - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Industry classification information for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries - ) - ) - end - attr_reader :industries - - sig do - params( - industries: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::OrHash - ).void - end - attr_writer :industries - - # Indicates whether the brand content is not safe for work (NSFW) - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_nsfw - - sig { params(is_nsfw: T::Boolean).void } - attr_writer :is_nsfw - - # Important website links for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links - ) - ) - end - attr_reader :links - - sig do - params( - links: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links::OrHash - ).void - end - attr_writer :links - - # An array of logos associated with the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo - ] - ) - ) - end - attr_reader :logos - - sig do - params( - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::OrHash - ] - ).void - end - attr_writer :logos - - # Company phone number - sig { returns(T.nilable(String)) } - attr_reader :phone - - sig { params(phone: String).void } - attr_writer :phone - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ) - end - attr_accessor :primary_language - - # The brand's slogan - sig { returns(T.nilable(String)) } - attr_reader :slogan - - sig { params(slogan: String).void } - attr_writer :slogan - - # An array of social media links for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social - ] - ) - ) - end - attr_reader :socials - - sig do - params( - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::OrHash - ] - ).void - end - attr_writer :socials - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock - ) - ) - end - attr_reader :stock - - sig do - params( - stock: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock::OrHash - ).void - end - attr_writer :stock - - # The title or name of the brand - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - # Detailed brand information - sig do - params( - address: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address::OrHash, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::OrHash - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color::OrHash - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::OrHash, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links::OrHash, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::OrHash - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::OrSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::OrHash - ], - stock: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock::OrHash, - title: String - ).returns(T.attached_class) - end - def self.new( - # Physical address of the brand - address: nil, - # An array of backdrop images for the brand - backdrops: nil, - # An array of brand colors - colors: nil, - # A brief description of the brand - description: nil, - # The domain name of the brand - domain: nil, - # Company email address - email: nil, - # Industry classification information for the brand - industries: nil, - # Indicates whether the brand content is not safe for work (NSFW) - is_nsfw: nil, - # Important website links for the brand - links: nil, - # An array of logos associated with the brand - logos: nil, - # Company phone number - phone: nil, - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - primary_language: nil, - # The brand's slogan - slogan: nil, - # An array of social media links for the brand - socials: nil, - # Stock market information for this brand (will be null if not a publicly traded - # company) - stock: nil, - # The title or name of the brand - title: nil - ) - end - - sig do - override.returns( - { - address: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social - ], - stock: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, - title: String - } - ) - end - def to_hash - end - - class Address < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, - ContextDev::Internal::AnyHash - ) - end - - # City name - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Country name - sig { returns(T.nilable(String)) } - attr_reader :country - - sig { params(country: String).void } - attr_writer :country - - # Country code - sig { returns(T.nilable(String)) } - attr_reader :country_code - - sig { params(country_code: String).void } - attr_writer :country_code - - # Postal or ZIP code - sig { returns(T.nilable(String)) } - attr_reader :postal_code - - sig { params(postal_code: String).void } - attr_writer :postal_code - - # State or province code - sig { returns(T.nilable(String)) } - attr_reader :state_code - - sig { params(state_code: String).void } - attr_writer :state_code - - # State or province name - sig { returns(T.nilable(String)) } - attr_reader :state_province - - sig { params(state_province: String).void } - attr_writer :state_province - - # Street address - sig { returns(T.nilable(String)) } - attr_reader :street - - sig { params(street: String).void } - attr_writer :street - - # Physical address of the brand - sig do - params( - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - ).returns(T.attached_class) - end - def self.new( - # City name - city: nil, - # Country name - country: nil, - # Country code - country_code: nil, - # Postal or ZIP code - postal_code: nil, - # State or province code - state_code: nil, - # State or province name - state_province: nil, - # Street address - street: nil - ) - end - - sig do - override.returns( - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - ) - end - def to_hash - end - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the backdrop image - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Resolution of the backdrop image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution::OrHash - ).void - end - attr_writer :resolution - - # URL of the backdrop image - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color::OrHash - ], - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution::OrHash, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the backdrop image - colors: nil, - # Resolution of the backdrop image - resolution: nil, - # URL of the backdrop image - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color - ], - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the backdrop image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Industries < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, - ContextDev::Internal::AnyHash - ) - end - - # Easy Industry Classification - array of industry and subindustry pairs - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic - ] - ) - ) - end - attr_reader :eic - - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::OrHash - ] - ).void - end - attr_writer :eic - - # Industry classification information for the brand - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # Easy Industry Classification - array of industry and subindustry pairs - eic: nil - ) - end - - sig do - override.returns( - { - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic - ] - } - ) - end - def to_hash - end - - class Eic < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic, - ContextDev::Internal::AnyHash - ) - end - - # Industry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - end - attr_accessor :industry - - # Subindustry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - end - attr_accessor :subindustry - - sig do - params( - industry: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::OrSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Industry classification enum - industry:, - # Subindustry classification enum - subindustry: - ) - end - - sig do - override.returns( - { - industry: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - } - ) - end - def to_hash - end - - # Industry classification enum - module Industry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AEROSPACE_DEFENSE = - T.let( - :"Aerospace & Defense", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TECHNOLOGY = - T.let( - :Technology, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - FINANCE = - T.let( - :Finance, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HEALTHCARE = - T.let( - :Healthcare, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - RETAIL_E_COMMERCE = - T.let( - :"Retail & E-commerce", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - ENTERTAINMENT = - T.let( - :Entertainment, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - EDUCATION = - T.let( - :Education, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - GOVERNMENT_NONPROFIT = - T.let( - :"Government & Nonprofit", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - INDUSTRIAL_ENERGY = - T.let( - :"Industrial & Energy", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AUTOMOTIVE_TRANSPORTATION = - T.let( - :"Automotive & Transportation", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LIFESTYLE_LEISURE = - T.let( - :"Lifestyle & Leisure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LUXURY_FASHION = - T.let( - :"Luxury & Fashion", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - NEWS_MEDIA = - T.let( - :"News & Media", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - SPORTS = - T.let( - :Sports, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - REAL_ESTATE_PROP_TECH = - T.let( - :"Real Estate & PropTech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LEGAL_COMPLIANCE = - T.let( - :"Legal & Compliance", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TELECOMMUNICATIONS = - T.let( - :Telecommunications, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AGRICULTURE_FOOD = - T.let( - :"Agriculture & Food", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - PROFESSIONAL_SERVICES_AGENCIES = - T.let( - :"Professional Services & Agencies", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CHEMICALS_MATERIALS = - T.let( - :"Chemicals & Materials", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LOGISTICS_SUPPLY_CHAIN = - T.let( - :"Logistics & Supply Chain", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HOSPITALITY_TOURISM = - T.let( - :"Hospitality & Tourism", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSTRUCTION_BUILT_ENVIRONMENT = - T.let( - :"Construction & Built Environment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSUMER_PACKAGED_GOODS_CPG = - T.let( - :"Consumer Packaged Goods (CPG)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Subindustry classification enum - module Subindustry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = - T.let( - :"Defense Systems & Military Hardware", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AEROSPACE_MANUFACTURING = - T.let( - :"Aerospace Manufacturing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIONICS_NAVIGATION_TECHNOLOGY = - T.let( - :"Avionics & Navigation Technology", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSEA_NAVAL_DEFENSE_SYSTEMS = - T.let( - :"Subsea & Naval Defense Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPACE_SATELLITE_TECHNOLOGY = - T.let( - :"Space & Satellite Technology", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEFENSE_IT_SYSTEMS_INTEGRATION = - T.let( - :"Defense IT & Systems Integration", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_B = - T.let( - :"Software (B2B)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_C = - T.let( - :"Software (B2C)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLOUD_INFRASTRUCTURE_DEV_OPS = - T.let( - :"Cloud Infrastructure & DevOps", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CYBERSECURITY = - T.let( - :Cybersecurity, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = - T.let( - :"Artificial Intelligence & Machine Learning", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATA_INFRASTRUCTURE_ANALYTICS = - T.let( - :"Data Infrastructure & Analytics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HARDWARE_SEMICONDUCTORS = - T.let( - :"Hardware & Semiconductors", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINTECH_INFRASTRUCTURE = - T.let( - :"Fintech Infrastructure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_MARKETPLACE_PLATFORMS = - T.let( - :"eCommerce & Marketplace Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEVELOPER_TOOLS_APIS = - T.let( - :"Developer Tools & APIs", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WEB3_BLOCKCHAIN = - T.let( - :"Web3 & Blockchain", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - XR_SPATIAL_COMPUTING = - T.let( - :"XR & Spatial Computing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BANKING_LENDING = - T.let( - :"Banking & Lending", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INVESTMENT_MANAGEMENT_WEALTH_TECH = - T.let( - :"Investment Management & WealthTech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INSURANCE_INSUR_TECH = - T.let( - :"Insurance & InsurTech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PAYMENTS_MONEY_MOVEMENT = - T.let( - :"Payments & Money Movement", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = - T.let( - :"Accounting, Tax & Financial Planning Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CAPITAL_MARKETS_TRADING_PLATFORMS = - T.let( - :"Capital Markets & Trading Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINANCIAL_INFRASTRUCTURE_APIS = - T.let( - :"Financial Infrastructure & APIs", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREDIT_SCORING_RISK_MANAGEMENT = - T.let( - :"Credit Scoring & Risk Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRYPTOCURRENCY_DIGITAL_ASSETS = - T.let( - :"Cryptocurrency & Digital Assets", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BNPL_ALTERNATIVE_FINANCING = - T.let( - :"BNPL & Alternative Financing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_PROVIDERS_SERVICES = - T.let( - :"Healthcare Providers & Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHARMACEUTICALS_DRUG_DEVELOPMENT = - T.let( - :"Pharmaceuticals & Drug Development", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDICAL_DEVICES_DIAGNOSTICS = - T.let( - :"Medical Devices & Diagnostics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIOTECHNOLOGY_GENOMICS = - T.let( - :"Biotechnology & Genomics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_HEALTH_TELEMEDICINE = - T.let( - :"Digital Health & Telemedicine", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_INSURANCE_BENEFITS_TECH = - T.let( - :"Health Insurance & Benefits Tech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLINICAL_TRIALS_RESEARCH_PLATFORMS = - T.let( - :"Clinical Trials & Research Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MENTAL_HEALTH_WELLNESS = - T.let( - :"Mental Health & Wellness", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_IT_EHR_SYSTEMS = - T.let( - :"Healthcare IT & EHR Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSUMER_HEALTH_WELLNESS_PRODUCTS = - T.let( - :"Consumer Health & Wellness Products", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_MARKETPLACES = - T.let( - :"Online Marketplaces", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_DTC_BRANDS = - T.let( - :"Direct-to-Consumer (DTC) Brands", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = - T.let( - :"Retail Tech & Point-of-Sale Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OMNICHANNEL_IN_STORE_RETAIL = - T.let( - :"Omnichannel & In-Store Retail", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = - T.let( - :"E-commerce Enablement & Infrastructure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSCRIPTION_MEMBERSHIP_COMMERCE = - T.let( - :"Subscription & Membership Commerce", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = - T.let( - :"Social Commerce & Influencer Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_APPAREL_RETAIL = - T.let( - :"Fashion & Apparel Retail", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_GROCERY_E_COMMERCE = - T.let( - :"Food, Beverage & Grocery E-commerce", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = - T.let( - :"Streaming Platforms (Video, Music, Audio)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GAMING_INTERACTIVE_ENTERTAINMENT = - T.let( - :"Gaming & Interactive Entertainment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = - T.let( - :"Creator Economy & Influencer Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVERTISING_ADTECH_MEDIA_BUYING = - T.let( - :"Advertising, Adtech & Media Buying", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FILM_TV_PRODUCTION_STUDIOS = - T.let( - :"Film, TV & Production Studios", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_VENUES_LIVE_ENTERTAINMENT = - T.let( - :"Events, Venues & Live Entertainment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = - T.let( - :"Virtual Worlds & Metaverse Experiences", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - K_12_EDUCATION_PLATFORMS_TOOLS = - T.let( - :"K-12 Education Platforms & Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HIGHER_EDUCATION_UNIVERSITY_TECH = - T.let( - :"Higher Education & University Tech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_LEARNING_MOO_CS = - T.let( - :"Online Learning & MOOCs", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TEST_PREP_CERTIFICATION = - T.let( - :"Test Prep & Certification", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAINING_UPSKILLING = - T.let( - :"Corporate Training & Upskilling", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TUTORING_SUPPLEMENTAL_LEARNING = - T.let( - :"Tutoring & Supplemental Learning", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = - T.let( - :"Education Management Systems (LMS/SIS)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LANGUAGE_LEARNING = - T.let( - :"Language Learning", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_LED_COHORT_BASED_COURSES = - T.let( - :"Creator-Led & Cohort-Based Courses", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = - T.let( - :"Special Education & Accessibility Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = - T.let( - :"Government Technology & Digital Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = - T.let( - :"Civic Engagement & Policy Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = - T.let( - :"International Development & Humanitarian Aid", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHILANTHROPY_GRANTMAKING = - T.let( - :"Philanthropy & Grantmaking", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = - T.let( - :"Nonprofit Operations & Fundraising Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_HEALTH_SOCIAL_SERVICES = - T.let( - :"Public Health & Social Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = - T.let( - :"Education & Youth Development Programs", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = - T.let( - :"Environmental & Climate Action Organizations", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = - T.let( - :"Legal Aid & Social Justice Advocacy", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MUNICIPAL_INFRASTRUCTURE_SERVICES = - T.let( - :"Municipal & Infrastructure Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANUFACTURING_INDUSTRIAL_AUTOMATION = - T.let( - :"Manufacturing & Industrial Automation", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = - T.let( - :"Energy Production (Oil, Gas, Nuclear)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENEWABLE_ENERGY_CLEANTECH = - T.let( - :"Renewable Energy & Cleantech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - UTILITIES_GRID_INFRASTRUCTURE = - T.let( - :"Utilities & Grid Infrastructure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = - T.let( - :"Industrial IoT & Monitoring Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_HEAVY_EQUIPMENT = - T.let( - :"Construction & Heavy Equipment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MINING_NATURAL_RESOURCES = - T.let( - :"Mining & Natural Resources", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = - T.let( - :"Environmental Engineering & Sustainability", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_STORAGE_BATTERY_TECHNOLOGY = - T.let( - :"Energy Storage & Battery Technology", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = - T.let( - :"Automotive OEMs & Vehicle Manufacturing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = - T.let( - :"Electric Vehicles (EVs) & Charging Infrastructure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILITY_AS_A_SERVICE_MAA_S = - T.let( - :"Mobility-as-a-Service (MaaS)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FLEET_MANAGEMENT = - T.let( - :"Fleet Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_TRANSIT_URBAN_MOBILITY = - T.let( - :"Public Transit & Urban Mobility", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTONOMOUS_VEHICLES_ADAS = - T.let( - :"Autonomous Vehicles & ADAS", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AFTERMARKET_PARTS_SERVICES = - T.let( - :"Aftermarket Parts & Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELEMATICS_VEHICLE_CONNECTIVITY = - T.let( - :"Telematics & Vehicle Connectivity", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIATION_AEROSPACE_TRANSPORT = - T.let( - :"Aviation & Aerospace Transport", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARITIME_SHIPPING = - T.let( - :"Maritime Shipping", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_WELLNESS = - T.let( - :"Fitness & Wellness", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_PERSONAL_CARE = - T.let( - :"Beauty & Personal Care", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_LIVING = - T.let( - :"Home & Living", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATING_RELATIONSHIPS = - T.let( - :"Dating & Relationships", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOBBIES_CRAFTS_DIY = - T.let( - :"Hobbies, Crafts & DIY", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OUTDOOR_RECREATIONAL_GEAR = - T.let( - :"Outdoor & Recreational Gear", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = - T.let( - :"Events, Experiences & Ticketing Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGNER_LUXURY_APPAREL = - T.let( - :"Designer & Luxury Apparel", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCESSORIES_JEWELRY_WATCHES = - T.let( - :"Accessories, Jewelry & Watches", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOTWEAR_LEATHER_GOODS = - T.let( - :"Footwear & Leather Goods", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_FRAGRANCE_SKINCARE = - T.let( - :"Beauty, Fragrance & Skincare", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_MARKETPLACES_RETAIL_PLATFORMS = - T.let( - :"Fashion Marketplaces & Retail Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_ETHICAL_FASHION = - T.let( - :"Sustainable & Ethical Fashion", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESALE_VINTAGE_CIRCULAR_FASHION = - T.let( - :"Resale, Vintage & Circular Fashion", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_TECH_VIRTUAL_TRY_ONS = - T.let( - :"Fashion Tech & Virtual Try-Ons", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREETWEAR_EMERGING_LUXURY = - T.let( - :"Streetwear & Emerging Luxury", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COUTURE_MADE_TO_MEASURE = - T.let( - :"Couture & Made-to-Measure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_PUBLISHING_JOURNALISM = - T.let( - :"News Publishing & Journalism", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_MEDIA_CONTENT_PLATFORMS = - T.let( - :"Digital Media & Content Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADCASTING_TV_RADIO = - T.let( - :"Broadcasting (TV & Radio)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PODCASTING_AUDIO_MEDIA = - T.let( - :"Podcasting & Audio Media", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_AGGREGATORS_CURATION_TOOLS = - T.let( - :"News Aggregators & Curation Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDEPENDENT_CREATOR_LED_MEDIA = - T.let( - :"Independent & Creator-Led Media", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = - T.let( - :"Newsletters & Substack-Style Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLITICAL_INVESTIGATIVE_MEDIA = - T.let( - :"Political & Investigative Media", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRADE_NICHE_PUBLICATIONS = - T.let( - :"Trade & Niche Publications", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDIA_MONITORING_ANALYTICS = - T.let( - :"Media Monitoring & Analytics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TEAMS_LEAGUES = - T.let( - :"Professional Teams & Leagues", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_MEDIA_BROADCASTING = - T.let( - :"Sports Media & Broadcasting", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_BETTING_FANTASY_SPORTS = - T.let( - :"Sports Betting & Fantasy Sports", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_ATHLETIC_TRAINING_PLATFORMS = - T.let( - :"Fitness & Athletic Training Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTSWEAR_EQUIPMENT = - T.let( - :"Sportswear & Equipment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ESPORTS_COMPETITIVE_GAMING = - T.let( - :"Esports & Competitive Gaming", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_VENUES_EVENT_MANAGEMENT = - T.let( - :"Sports Venues & Event Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ATHLETE_MANAGEMENT_TALENT_AGENCIES = - T.let( - :"Athlete Management & Talent Agencies", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_TECH_PERFORMANCE_ANALYTICS = - T.let( - :"Sports Tech & Performance Analytics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - YOUTH_AMATEUR_COLLEGIATE_SPORTS = - T.let( - :"Youth, Amateur & Collegiate Sports", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_MARKETPLACES = - T.let( - :"Real Estate Marketplaces", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROPERTY_MANAGEMENT_SOFTWARE = - T.let( - :"Property Management Software", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENTAL_PLATFORMS = - T.let( - :"Rental Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MORTGAGE_LENDING_TECH = - T.let( - :"Mortgage & Lending Tech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_INVESTMENT_PLATFORMS = - T.let( - :"Real Estate Investment Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAW_FIRMS_LEGAL_SERVICES = - T.let( - :"Law Firms & Legal Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_TECH_AUTOMATION = - T.let( - :"Legal Tech & Automation", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REGULATORY_COMPLIANCE = - T.let( - :"Regulatory Compliance", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_DISCOVERY_LITIGATION_TOOLS = - T.let( - :"E-Discovery & Litigation Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONTRACT_MANAGEMENT = - T.let( - :"Contract Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNANCE_RISK_COMPLIANCE_GRC = - T.let( - :"Governance, Risk & Compliance (GRC)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IP_TRADEMARK_MANAGEMENT = - T.let( - :"IP & Trademark Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_RESEARCH_INTELLIGENCE = - T.let( - :"Legal Research & Intelligence", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMPLIANCE_TRAINING_CERTIFICATION = - T.let( - :"Compliance Training & Certification", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WHISTLEBLOWER_ETHICS_REPORTING = - T.let( - :"Whistleblower & Ethics Reporting", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = - T.let( - :"Mobile & Wireless Networks (3G/4G/5G)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADBAND_FIBER_INTERNET = - T.let( - :"Broadband & Fiber Internet", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SATELLITE_SPACE_BASED_COMMUNICATIONS = - T.let( - :"Satellite & Space-Based Communications", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NETWORK_EQUIPMENT_INFRASTRUCTURE = - T.let( - :"Network Equipment & Infrastructure", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELECOM_BILLING_OSS_BSS_SYSTEMS = - T.let( - :"Telecom Billing & OSS/BSS Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VO_IP_UNIFIED_COMMUNICATIONS = - T.let( - :"VoIP & Unified Communications", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNET_SERVICE_PROVIDERS_IS_PS = - T.let( - :"Internet Service Providers (ISPs)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = - T.let( - :"Edge Computing & Network Virtualization", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IO_T_CONNECTIVITY_PLATFORMS = - T.let( - :"IoT Connectivity Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRECISION_AGRICULTURE_AG_TECH = - T.let( - :"Precision Agriculture & AgTech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROP_LIVESTOCK_PRODUCTION = - T.let( - :"Crop & Livestock Production", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = - T.let( - :"Food & Beverage Manufacturing & Processing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_DISTRIBUTION = - T.let( - :"Food Distribution", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANTS_FOOD_SERVICE = - T.let( - :"Restaurants & Food Service", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGRICULTURAL_INPUTS_EQUIPMENT = - T.let( - :"Agricultural Inputs & Equipment", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_REGENERATIVE_AGRICULTURE = - T.let( - :"Sustainable & Regenerative Agriculture", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SEAFOOD_AQUACULTURE = - T.let( - :"Seafood & Aquaculture", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANAGEMENT_CONSULTING = - T.let( - :"Management Consulting", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARKETING_ADVERTISING_AGENCIES = - T.let( - :"Marketing & Advertising Agencies", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGN_BRANDING_CREATIVE_STUDIOS = - T.let( - :"Design, Branding & Creative Studios", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IT_SERVICES_MANAGED_SERVICES = - T.let( - :"IT Services & Managed Services", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STAFFING_RECRUITING_TALENT = - T.let( - :"Staffing, Recruiting & Talent", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FIRMS = - T.let( - :"Accounting & Tax Firms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_RELATIONS_COMMUNICATIONS = - T.let( - :"Public Relations & Communications", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUSINESS_PROCESS_OUTSOURCING_BPO = - T.let( - :"Business Process Outsourcing (BPO)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TRAINING_COACHING = - T.let( - :"Professional Training & Coaching", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIALTY_CHEMICALS = - T.let( - :"Specialty Chemicals", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMMODITY_PETROCHEMICALS = - T.let( - :"Commodity & Petrochemicals", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLYMERS_PLASTICS_RUBBER = - T.let( - :"Polymers, Plastics & Rubber", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COATINGS_ADHESIVES_SEALANTS = - T.let( - :"Coatings, Adhesives & Sealants", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_GASES = - T.let( - :"Industrial Gases", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVANCED_MATERIALS_COMPOSITES = - T.let( - :"Advanced Materials & Composites", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BATTERY_MATERIALS_ENERGY_STORAGE = - T.let( - :"Battery Materials & Energy Storage", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = - T.let( - :"Electronic Materials & Semiconductor Chemicals", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGROCHEMICALS_FERTILIZERS = - T.let( - :"Agrochemicals & Fertilizers", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FREIGHT_TRANSPORTATION_TECH = - T.let( - :"Freight & Transportation Tech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAST_MILE_DELIVERY = - T.let( - :"Last-Mile Delivery", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WAREHOUSE_AUTOMATION = - T.let( - :"Warehouse Automation", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = - T.let( - :"Supply Chain Visibility Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LOGISTICS_MARKETPLACES = - T.let( - :"Logistics Marketplaces", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SHIPPING_FREIGHT_FORWARDING = - T.let( - :"Shipping & Freight Forwarding", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COLD_CHAIN_LOGISTICS = - T.let( - :"Cold Chain Logistics", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REVERSE_LOGISTICS_RETURNS = - T.let( - :"Reverse Logistics & Returns", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROSS_BORDER_TRADE_TECH = - T.let( - :"Cross-Border Trade Tech", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = - T.let( - :"Transportation Management Systems (TMS)", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOTELS_ACCOMMODATION = - T.let( - :"Hotels & Accommodation", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VACATION_RENTALS_SHORT_TERM_STAYS = - T.let( - :"Vacation Rentals & Short-Term Stays", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANT_TECH_MANAGEMENT = - T.let( - :"Restaurant Tech & Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_BOOKING_PLATFORMS = - T.let( - :"Travel Booking Platforms", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TOURISM_EXPERIENCES_ACTIVITIES = - T.let( - :"Tourism Experiences & Activities", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRUISE_LINES_MARINE_TOURISM = - T.let( - :"Cruise Lines & Marine Tourism", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOSPITALITY_MANAGEMENT_SYSTEMS = - T.let( - :"Hospitality Management Systems", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENT_VENUE_MANAGEMENT = - T.let( - :"Event & Venue Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAVEL_MANAGEMENT = - T.let( - :"Corporate Travel Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_INSURANCE_PROTECTION = - T.let( - :"Travel Insurance & Protection", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MANAGEMENT_SOFTWARE = - T.let( - :"Construction Management Software", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIM_CAD_DESIGN_TOOLS = - T.let( - :"BIM/CAD & Design Tools", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MARKETPLACES = - T.let( - :"Construction Marketplaces", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EQUIPMENT_RENTAL_MANAGEMENT = - T.let( - :"Equipment Rental & Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUILDING_MATERIALS_PROCUREMENT = - T.let( - :"Building Materials & Procurement", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_WORKFORCE_MANAGEMENT = - T.let( - :"Construction Workforce Management", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROJECT_ESTIMATION_BIDDING = - T.let( - :"Project Estimation & Bidding", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MODULAR_PREFAB_CONSTRUCTION = - T.let( - :"Modular & Prefab Construction", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_SAFETY_COMPLIANCE = - T.let( - :"Construction Safety & Compliance", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SMART_BUILDING_TECHNOLOGY = - T.let( - :"Smart Building Technology", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_CPG = - T.let( - :"Food & Beverage CPG", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_PERSONAL_CARE_CPG = - T.let( - :"Home & Personal Care CPG", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_ANALYTICS_INSIGHTS = - T.let( - :"CPG Analytics & Insights", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_CPG_BRANDS = - T.let( - :"Direct-to-Consumer CPG Brands", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_SUPPLY_CHAIN_DISTRIBUTION = - T.let( - :"CPG Supply Chain & Distribution", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRIVATE_LABEL_MANUFACTURING = - T.let( - :"Private Label Manufacturing", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_RETAIL_INTELLIGENCE = - T.let( - :"CPG Retail Intelligence", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_CPG_PACKAGING = - T.let( - :"Sustainable CPG & Packaging", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_COSMETICS_CPG = - T.let( - :"Beauty & Cosmetics CPG", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_WELLNESS_CPG = - T.let( - :"Health & Wellness CPG", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - - class Links < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, - ContextDev::Internal::AnyHash - ) - end - - # URL to the brand's blog or news page - sig { returns(T.nilable(String)) } - attr_accessor :blog - - # URL to the brand's careers or job opportunities page - sig { returns(T.nilable(String)) } - attr_accessor :careers - - # URL to the brand's contact or contact us page - sig { returns(T.nilable(String)) } - attr_accessor :contact - - # URL to the brand's pricing or plans page - sig { returns(T.nilable(String)) } - attr_accessor :pricing - - # URL to the brand's privacy policy page - sig { returns(T.nilable(String)) } - attr_accessor :privacy - - # URL to the brand's terms of service or terms and conditions page - sig { returns(T.nilable(String)) } - attr_accessor :terms - - # Important website links for the brand - sig do - params( - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # URL to the brand's blog or news page - blog: nil, - # URL to the brand's careers or job opportunities page - careers: nil, - # URL to the brand's contact or contact us page - contact: nil, - # URL to the brand's pricing or plans page - pricing: nil, - # URL to the brand's privacy policy page - privacy: nil, - # URL to the brand's terms of service or terms and conditions page - terms: nil - ) - end - - sig do - override.returns( - { - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - } - ) - end - def to_hash - end - end - - class Logo < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the logo - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol - ) - ) - end - attr_reader :mode - - sig do - params( - mode: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::OrSymbol - ).void - end - attr_writer :mode - - # Resolution of the logo image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution::OrHash - ).void - end - attr_writer :resolution - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::OrSymbol - ).void - end - attr_writer :type - - # CDN hosted url of the logo (ready for display) - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color::OrHash - ], - mode: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::OrSymbol, - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution::OrHash, - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the logo - colors: nil, - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - mode: nil, - # Resolution of the logo image - resolution: nil, - # Type of the logo based on resolution (e.g., 'icon', 'logo') - type: nil, - # CDN hosted url of the logo (ready for display) - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color - ], - mode: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol, - resolution: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - module Mode - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LIGHT = - T.let( - :light, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol - ) - DARK = - T.let( - :dark, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol - ) - HAS_OPAQUE_BACKGROUND = - T.let( - :has_opaque_background, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Mode::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the logo image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ICON = - T.let( - :icon, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::TaggedSymbol - ) - LOGO = - T.let( - :logo, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::PrimaryLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Social < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social, - ContextDev::Internal::AnyHash - ) - end - - # Type of social media platform - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::OrSymbol - ).void - end - attr_writer :type - - # URL of the social media page - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Type of social media platform - type: nil, - # URL of the social media page - url: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - # Type of social media platform - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - X = - T.let( - :x, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - FACEBOOK = - T.let( - :facebook, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - INSTAGRAM = - T.let( - :instagram, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - LINKEDIN = - T.let( - :linkedin, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - YOUTUBE = - T.let( - :youtube, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - PINTEREST = - T.let( - :pinterest, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - TIKTOK = - T.let( - :tiktok, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - DRIBBBLE = - T.let( - :dribbble, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - GITHUB = - T.let( - :github, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - BEHANCE = - T.let( - :behance, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - SNAPCHAT = - T.let( - :snapchat, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - WHATSAPP = - T.let( - :whatsapp, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - TELEGRAM = - T.let( - :telegram, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - LINE = - T.let( - :line, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - DISCORD = - T.let( - :discord, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - TWITCH = - T.let( - :twitch, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - VIMEO = - T.let( - :vimeo, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - IMDB = - T.let( - :imdb, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - TUMBLR = - T.let( - :tumblr, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - FLICKR = - T.let( - :flickr, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - GIPHY = - T.let( - :giphy, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - SPOTIFY = - T.let( - :spotify, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - SOUNDCLOUD = - T.let( - :soundcloud, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - TRIPADVISOR = - T.let( - :tripadvisor, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - YELP = - T.let( - :yelp, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - PRODUCTHUNT = - T.let( - :producthunt, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - REDDIT = - T.let( - :reddit, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - CRUNCHBASE = - T.let( - :crunchbase, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - APPSTORE = - T.let( - :appstore, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - PLAYSTORE = - T.let( - :playstore, - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Stock < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, - ContextDev::Internal::AnyHash - ) - end - - # Stock exchange name - sig { returns(T.nilable(String)) } - attr_reader :exchange - - sig { params(exchange: String).void } - attr_writer :exchange - - # Stock ticker symbol - sig { returns(T.nilable(String)) } - attr_reader :ticker - - sig { params(ticker: String).void } - attr_writer :ticker - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - params(exchange: String, ticker: String).returns(T.attached_class) - end - def self.new( - # Stock exchange name - exchange: nil, - # Stock ticker symbol - ticker: nil - ) - end - - sig { override.returns({ exchange: String, ticker: String }) } - def to_hash - end - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_name_params.rbi b/rbi/context_dev/models/brand_retrieve_by_name_params.rbi deleted file mode 100644 index c77386f7..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +++ /dev/null @@ -1,1982 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::BrandRetrieveByNameParams, - ContextDev::Internal::AnyHash - ) - end - - # Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft - # Corporation'). Must be 3-30 characters. - sig { returns(String) } - attr_accessor :name - - # Optional country code hint (GL parameter) to specify the country for the company - # name. - sig do - returns( - T.nilable(ContextDev::BrandRetrieveByNameParams::CountryGl::OrSymbol) - ) - end - attr_reader :country_gl - - sig do - params( - country_gl: ContextDev::BrandRetrieveByNameParams::CountryGl::OrSymbol - ).void - end - attr_writer :country_gl - - # Optional parameter to force the language of the retrieved brand data. - sig do - returns( - T.nilable( - ContextDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol - ) - ) - end - attr_reader :force_language - - sig do - params( - force_language: - ContextDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - sig { returns(T.nilable(Integer)) } - attr_reader :max_age_ms - - sig { params(max_age_ms: Integer).void } - attr_writer :max_age_ms - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - name: String, - country_gl: - ContextDev::BrandRetrieveByNameParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft - # Corporation'). Must be 3-30 characters. - name:, - # Optional country code hint (GL parameter) to specify the country for the company - # name. - country_gl: nil, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - name: String, - country_gl: - ContextDev::BrandRetrieveByNameParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - # Optional country code hint (GL parameter) to specify the country for the company - # name. - module CountryGl - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, ContextDev::BrandRetrieveByNameParams::CountryGl) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AD = - T.let( - :ad, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AE = - T.let( - :ae, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AF = - T.let( - :af, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AG = - T.let( - :ag, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AI = - T.let( - :ai, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AL = - T.let( - :al, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AM = - T.let( - :am, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AN = - T.let( - :an, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AO = - T.let( - :ao, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AQ = - T.let( - :aq, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AR = - T.let( - :ar, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AS = - T.let( - :as, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AT = - T.let( - :at, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AU = - T.let( - :au, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AW = - T.let( - :aw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - AZ = - T.let( - :az, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BA = - T.let( - :ba, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BB = - T.let( - :bb, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BD = - T.let( - :bd, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BE = - T.let( - :be, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BF = - T.let( - :bf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BG = - T.let( - :bg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BH = - T.let( - :bh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BI = - T.let( - :bi, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BJ = - T.let( - :bj, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BM = - T.let( - :bm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BN = - T.let( - :bn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BO = - T.let( - :bo, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BR = - T.let( - :br, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BS = - T.let( - :bs, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BT = - T.let( - :bt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BV = - T.let( - :bv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BW = - T.let( - :bw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BY = - T.let( - :by, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - BZ = - T.let( - :bz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CA = - T.let( - :ca, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CC = - T.let( - :cc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CD = - T.let( - :cd, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CF = - T.let( - :cf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CG = - T.let( - :cg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CH = - T.let( - :ch, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CI = - T.let( - :ci, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CK = - T.let( - :ck, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CL = - T.let( - :cl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CM = - T.let( - :cm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CN = - T.let( - :cn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CO = - T.let( - :co, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CR = - T.let( - :cr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CU = - T.let( - :cu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CV = - T.let( - :cv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CX = - T.let( - :cx, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CY = - T.let( - :cy, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - CZ = - T.let( - :cz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DE = - T.let( - :de, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DJ = - T.let( - :dj, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DK = - T.let( - :dk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DM = - T.let( - :dm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DO = - T.let( - :do, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - DZ = - T.let( - :dz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - EC = - T.let( - :ec, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - EE = - T.let( - :ee, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - EG = - T.let( - :eg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - EH = - T.let( - :eh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ER = - T.let( - :er, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ES = - T.let( - :es, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ET = - T.let( - :et, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FI = - T.let( - :fi, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FJ = - T.let( - :fj, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FK = - T.let( - :fk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FM = - T.let( - :fm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FO = - T.let( - :fo, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - FR = - T.let( - :fr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GA = - T.let( - :ga, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GB = - T.let( - :gb, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GD = - T.let( - :gd, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GE = - T.let( - :ge, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GF = - T.let( - :gf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GH = - T.let( - :gh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GI = - T.let( - :gi, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GL = - T.let( - :gl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GM = - T.let( - :gm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GN = - T.let( - :gn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GP = - T.let( - :gp, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GQ = - T.let( - :gq, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GR = - T.let( - :gr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GS = - T.let( - :gs, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GT = - T.let( - :gt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GU = - T.let( - :gu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GW = - T.let( - :gw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - GY = - T.let( - :gy, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HK = - T.let( - :hk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HM = - T.let( - :hm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HN = - T.let( - :hn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HR = - T.let( - :hr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HT = - T.let( - :ht, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - HU = - T.let( - :hu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ID = - T.let( - :id, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IE = - T.let( - :ie, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IL = - T.let( - :il, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IN = - T.let( - :in, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IO = - T.let( - :io, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IQ = - T.let( - :iq, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IR = - T.let( - :ir, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IS = - T.let( - :is, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - IT = - T.let( - :it, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - JM = - T.let( - :jm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - JO = - T.let( - :jo, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - JP = - T.let( - :jp, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KE = - T.let( - :ke, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KG = - T.let( - :kg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KH = - T.let( - :kh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KI = - T.let( - :ki, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KM = - T.let( - :km, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KN = - T.let( - :kn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KP = - T.let( - :kp, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KR = - T.let( - :kr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KW = - T.let( - :kw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KY = - T.let( - :ky, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - KZ = - T.let( - :kz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LA = - T.let( - :la, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LB = - T.let( - :lb, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LC = - T.let( - :lc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LI = - T.let( - :li, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LK = - T.let( - :lk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LR = - T.let( - :lr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LS = - T.let( - :ls, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LT = - T.let( - :lt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LU = - T.let( - :lu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LV = - T.let( - :lv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - LY = - T.let( - :ly, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MA = - T.let( - :ma, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MC = - T.let( - :mc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MD = - T.let( - :md, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MG = - T.let( - :mg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MH = - T.let( - :mh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MK = - T.let( - :mk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ML = - T.let( - :ml, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MM = - T.let( - :mm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MN = - T.let( - :mn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MO = - T.let( - :mo, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MP = - T.let( - :mp, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MQ = - T.let( - :mq, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MR = - T.let( - :mr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MS = - T.let( - :ms, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MT = - T.let( - :mt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MU = - T.let( - :mu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MV = - T.let( - :mv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MW = - T.let( - :mw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MX = - T.let( - :mx, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MY = - T.let( - :my, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - MZ = - T.let( - :mz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NA = - T.let( - :na, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NC = - T.let( - :nc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NE = - T.let( - :ne, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NF = - T.let( - :nf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NG = - T.let( - :ng, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NI = - T.let( - :ni, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NL = - T.let( - :nl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NO = - T.let( - :no, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NP = - T.let( - :np, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NR = - T.let( - :nr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NU = - T.let( - :nu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - NZ = - T.let( - :nz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - OM = - T.let( - :om, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PA = - T.let( - :pa, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PE = - T.let( - :pe, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PF = - T.let( - :pf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PG = - T.let( - :pg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PH = - T.let( - :ph, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PK = - T.let( - :pk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PL = - T.let( - :pl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PM = - T.let( - :pm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PN = - T.let( - :pn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PR = - T.let( - :pr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PS = - T.let( - :ps, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PT = - T.let( - :pt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PW = - T.let( - :pw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - PY = - T.let( - :py, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - QA = - T.let( - :qa, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - RE = - T.let( - :re, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - RO = - T.let( - :ro, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - RS = - T.let( - :rs, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - RU = - T.let( - :ru, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - RW = - T.let( - :rw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SA = - T.let( - :sa, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SB = - T.let( - :sb, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SC = - T.let( - :sc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SD = - T.let( - :sd, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SE = - T.let( - :se, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SG = - T.let( - :sg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SH = - T.let( - :sh, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SI = - T.let( - :si, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SJ = - T.let( - :sj, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SK = - T.let( - :sk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SL = - T.let( - :sl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SM = - T.let( - :sm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SN = - T.let( - :sn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SO = - T.let( - :so, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SR = - T.let( - :sr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ST = - T.let( - :st, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SV = - T.let( - :sv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SY = - T.let( - :sy, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - SZ = - T.let( - :sz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TC = - T.let( - :tc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TD = - T.let( - :td, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TF = - T.let( - :tf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TG = - T.let( - :tg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TH = - T.let( - :th, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TJ = - T.let( - :tj, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TK = - T.let( - :tk, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TL = - T.let( - :tl, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TM = - T.let( - :tm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TN = - T.let( - :tn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TO = - T.let( - :to, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TR = - T.let( - :tr, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TT = - T.let( - :tt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TV = - T.let( - :tv, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TW = - T.let( - :tw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - TZ = - T.let( - :tz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - UA = - T.let( - :ua, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - UG = - T.let( - :ug, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - UM = - T.let( - :um, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - US = - T.let( - :us, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - UY = - T.let( - :uy, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - UZ = - T.let( - :uz, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VA = - T.let( - :va, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VC = - T.let( - :vc, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VE = - T.let( - :ve, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VG = - T.let( - :vg, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VI = - T.let( - :vi, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VN = - T.let( - :vn, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - VU = - T.let( - :vu, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - WF = - T.let( - :wf, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - WS = - T.let( - :ws, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - YE = - T.let( - :ye, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - YT = - T.let( - :yt, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ZA = - T.let( - :za, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ZM = - T.let( - :zm, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - ZW = - T.let( - :zw, - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByNameParams::CountryGl::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, ContextDev::BrandRetrieveByNameParams::ForceLanguage) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByNameParams::ForceLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_name_response.rbi b/rbi/context_dev/models/brand_retrieve_by_name_response.rbi deleted file mode 100644 index 39a006cf..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +++ /dev/null @@ -1,3510 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByNameResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse, - ContextDev::Internal::AnyHash - ) - end - - # Detailed brand information - sig do - returns( - T.nilable(ContextDev::Models::BrandRetrieveByNameResponse::Brand) - ) - end - attr_reader :brand - - sig do - params( - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand::OrHash - ).void - end - attr_writer :brand - - # HTTP status code - sig { returns(T.nilable(Integer)) } - attr_reader :code - - sig { params(code: Integer).void } - attr_writer :code - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand::OrHash, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata::OrHash, - status: String - ).returns(T.attached_class) - end - def self.new( - # Detailed brand information - brand: nil, - # HTTP status code - code: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, - status: String - } - ) - end - def to_hash - end - - class Brand < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand, - ContextDev::Internal::AnyHash - ) - end - - # Physical address of the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address - ) - ) - end - attr_reader :address - - sig do - params( - address: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address::OrHash - ).void - end - attr_writer :address - - # An array of backdrop images for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop - ] - ) - ) - end - attr_reader :backdrops - - sig do - params( - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::OrHash - ] - ).void - end - attr_writer :backdrops - - # An array of brand colors - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color::OrHash - ] - ).void - end - attr_writer :colors - - # A brief description of the brand - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # The domain name of the brand - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Company email address - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Industry classification information for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries - ) - ) - end - attr_reader :industries - - sig do - params( - industries: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::OrHash - ).void - end - attr_writer :industries - - # Indicates whether the brand content is not safe for work (NSFW) - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_nsfw - - sig { params(is_nsfw: T::Boolean).void } - attr_writer :is_nsfw - - # Important website links for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links - ) - ) - end - attr_reader :links - - sig do - params( - links: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links::OrHash - ).void - end - attr_writer :links - - # An array of logos associated with the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo - ] - ) - ) - end - attr_reader :logos - - sig do - params( - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::OrHash - ] - ).void - end - attr_writer :logos - - # Company phone number - sig { returns(T.nilable(String)) } - attr_reader :phone - - sig { params(phone: String).void } - attr_writer :phone - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ) - end - attr_accessor :primary_language - - # The brand's slogan - sig { returns(T.nilable(String)) } - attr_reader :slogan - - sig { params(slogan: String).void } - attr_writer :slogan - - # An array of social media links for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social - ] - ) - ) - end - attr_reader :socials - - sig do - params( - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::OrHash - ] - ).void - end - attr_writer :socials - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock - ) - ) - end - attr_reader :stock - - sig do - params( - stock: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock::OrHash - ).void - end - attr_writer :stock - - # The title or name of the brand - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - # Detailed brand information - sig do - params( - address: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address::OrHash, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::OrHash - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color::OrHash - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::OrHash, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links::OrHash, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::OrHash - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::OrSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::OrHash - ], - stock: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock::OrHash, - title: String - ).returns(T.attached_class) - end - def self.new( - # Physical address of the brand - address: nil, - # An array of backdrop images for the brand - backdrops: nil, - # An array of brand colors - colors: nil, - # A brief description of the brand - description: nil, - # The domain name of the brand - domain: nil, - # Company email address - email: nil, - # Industry classification information for the brand - industries: nil, - # Indicates whether the brand content is not safe for work (NSFW) - is_nsfw: nil, - # Important website links for the brand - links: nil, - # An array of logos associated with the brand - logos: nil, - # Company phone number - phone: nil, - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - primary_language: nil, - # The brand's slogan - slogan: nil, - # An array of social media links for the brand - socials: nil, - # Stock market information for this brand (will be null if not a publicly traded - # company) - stock: nil, - # The title or name of the brand - title: nil - ) - end - - sig do - override.returns( - { - address: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social - ], - stock: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, - title: String - } - ) - end - def to_hash - end - - class Address < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, - ContextDev::Internal::AnyHash - ) - end - - # City name - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Country name - sig { returns(T.nilable(String)) } - attr_reader :country - - sig { params(country: String).void } - attr_writer :country - - # Country code - sig { returns(T.nilable(String)) } - attr_reader :country_code - - sig { params(country_code: String).void } - attr_writer :country_code - - # Postal or ZIP code - sig { returns(T.nilable(String)) } - attr_reader :postal_code - - sig { params(postal_code: String).void } - attr_writer :postal_code - - # State or province code - sig { returns(T.nilable(String)) } - attr_reader :state_code - - sig { params(state_code: String).void } - attr_writer :state_code - - # State or province name - sig { returns(T.nilable(String)) } - attr_reader :state_province - - sig { params(state_province: String).void } - attr_writer :state_province - - # Street address - sig { returns(T.nilable(String)) } - attr_reader :street - - sig { params(street: String).void } - attr_writer :street - - # Physical address of the brand - sig do - params( - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - ).returns(T.attached_class) - end - def self.new( - # City name - city: nil, - # Country name - country: nil, - # Country code - country_code: nil, - # Postal or ZIP code - postal_code: nil, - # State or province code - state_code: nil, - # State or province name - state_province: nil, - # Street address - street: nil - ) - end - - sig do - override.returns( - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - ) - end - def to_hash - end - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the backdrop image - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Resolution of the backdrop image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution::OrHash - ).void - end - attr_writer :resolution - - # URL of the backdrop image - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color::OrHash - ], - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution::OrHash, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the backdrop image - colors: nil, - # Resolution of the backdrop image - resolution: nil, - # URL of the backdrop image - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color - ], - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the backdrop image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Industries < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, - ContextDev::Internal::AnyHash - ) - end - - # Easy Industry Classification - array of industry and subindustry pairs - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic - ] - ) - ) - end - attr_reader :eic - - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::OrHash - ] - ).void - end - attr_writer :eic - - # Industry classification information for the brand - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # Easy Industry Classification - array of industry and subindustry pairs - eic: nil - ) - end - - sig do - override.returns( - { - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic - ] - } - ) - end - def to_hash - end - - class Eic < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic, - ContextDev::Internal::AnyHash - ) - end - - # Industry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - end - attr_accessor :industry - - # Subindustry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - end - attr_accessor :subindustry - - sig do - params( - industry: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::OrSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Industry classification enum - industry:, - # Subindustry classification enum - subindustry: - ) - end - - sig do - override.returns( - { - industry: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - } - ) - end - def to_hash - end - - # Industry classification enum - module Industry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AEROSPACE_DEFENSE = - T.let( - :"Aerospace & Defense", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TECHNOLOGY = - T.let( - :Technology, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - FINANCE = - T.let( - :Finance, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HEALTHCARE = - T.let( - :Healthcare, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - RETAIL_E_COMMERCE = - T.let( - :"Retail & E-commerce", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - ENTERTAINMENT = - T.let( - :Entertainment, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - EDUCATION = - T.let( - :Education, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - GOVERNMENT_NONPROFIT = - T.let( - :"Government & Nonprofit", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - INDUSTRIAL_ENERGY = - T.let( - :"Industrial & Energy", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AUTOMOTIVE_TRANSPORTATION = - T.let( - :"Automotive & Transportation", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LIFESTYLE_LEISURE = - T.let( - :"Lifestyle & Leisure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LUXURY_FASHION = - T.let( - :"Luxury & Fashion", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - NEWS_MEDIA = - T.let( - :"News & Media", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - SPORTS = - T.let( - :Sports, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - REAL_ESTATE_PROP_TECH = - T.let( - :"Real Estate & PropTech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LEGAL_COMPLIANCE = - T.let( - :"Legal & Compliance", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TELECOMMUNICATIONS = - T.let( - :Telecommunications, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AGRICULTURE_FOOD = - T.let( - :"Agriculture & Food", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - PROFESSIONAL_SERVICES_AGENCIES = - T.let( - :"Professional Services & Agencies", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CHEMICALS_MATERIALS = - T.let( - :"Chemicals & Materials", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LOGISTICS_SUPPLY_CHAIN = - T.let( - :"Logistics & Supply Chain", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HOSPITALITY_TOURISM = - T.let( - :"Hospitality & Tourism", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSTRUCTION_BUILT_ENVIRONMENT = - T.let( - :"Construction & Built Environment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSUMER_PACKAGED_GOODS_CPG = - T.let( - :"Consumer Packaged Goods (CPG)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Subindustry classification enum - module Subindustry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = - T.let( - :"Defense Systems & Military Hardware", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AEROSPACE_MANUFACTURING = - T.let( - :"Aerospace Manufacturing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIONICS_NAVIGATION_TECHNOLOGY = - T.let( - :"Avionics & Navigation Technology", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSEA_NAVAL_DEFENSE_SYSTEMS = - T.let( - :"Subsea & Naval Defense Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPACE_SATELLITE_TECHNOLOGY = - T.let( - :"Space & Satellite Technology", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEFENSE_IT_SYSTEMS_INTEGRATION = - T.let( - :"Defense IT & Systems Integration", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_B = - T.let( - :"Software (B2B)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_C = - T.let( - :"Software (B2C)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLOUD_INFRASTRUCTURE_DEV_OPS = - T.let( - :"Cloud Infrastructure & DevOps", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CYBERSECURITY = - T.let( - :Cybersecurity, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = - T.let( - :"Artificial Intelligence & Machine Learning", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATA_INFRASTRUCTURE_ANALYTICS = - T.let( - :"Data Infrastructure & Analytics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HARDWARE_SEMICONDUCTORS = - T.let( - :"Hardware & Semiconductors", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINTECH_INFRASTRUCTURE = - T.let( - :"Fintech Infrastructure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_MARKETPLACE_PLATFORMS = - T.let( - :"eCommerce & Marketplace Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEVELOPER_TOOLS_APIS = - T.let( - :"Developer Tools & APIs", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WEB3_BLOCKCHAIN = - T.let( - :"Web3 & Blockchain", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - XR_SPATIAL_COMPUTING = - T.let( - :"XR & Spatial Computing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BANKING_LENDING = - T.let( - :"Banking & Lending", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INVESTMENT_MANAGEMENT_WEALTH_TECH = - T.let( - :"Investment Management & WealthTech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INSURANCE_INSUR_TECH = - T.let( - :"Insurance & InsurTech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PAYMENTS_MONEY_MOVEMENT = - T.let( - :"Payments & Money Movement", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = - T.let( - :"Accounting, Tax & Financial Planning Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CAPITAL_MARKETS_TRADING_PLATFORMS = - T.let( - :"Capital Markets & Trading Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINANCIAL_INFRASTRUCTURE_APIS = - T.let( - :"Financial Infrastructure & APIs", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREDIT_SCORING_RISK_MANAGEMENT = - T.let( - :"Credit Scoring & Risk Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRYPTOCURRENCY_DIGITAL_ASSETS = - T.let( - :"Cryptocurrency & Digital Assets", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BNPL_ALTERNATIVE_FINANCING = - T.let( - :"BNPL & Alternative Financing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_PROVIDERS_SERVICES = - T.let( - :"Healthcare Providers & Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHARMACEUTICALS_DRUG_DEVELOPMENT = - T.let( - :"Pharmaceuticals & Drug Development", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDICAL_DEVICES_DIAGNOSTICS = - T.let( - :"Medical Devices & Diagnostics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIOTECHNOLOGY_GENOMICS = - T.let( - :"Biotechnology & Genomics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_HEALTH_TELEMEDICINE = - T.let( - :"Digital Health & Telemedicine", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_INSURANCE_BENEFITS_TECH = - T.let( - :"Health Insurance & Benefits Tech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLINICAL_TRIALS_RESEARCH_PLATFORMS = - T.let( - :"Clinical Trials & Research Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MENTAL_HEALTH_WELLNESS = - T.let( - :"Mental Health & Wellness", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_IT_EHR_SYSTEMS = - T.let( - :"Healthcare IT & EHR Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSUMER_HEALTH_WELLNESS_PRODUCTS = - T.let( - :"Consumer Health & Wellness Products", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_MARKETPLACES = - T.let( - :"Online Marketplaces", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_DTC_BRANDS = - T.let( - :"Direct-to-Consumer (DTC) Brands", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = - T.let( - :"Retail Tech & Point-of-Sale Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OMNICHANNEL_IN_STORE_RETAIL = - T.let( - :"Omnichannel & In-Store Retail", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = - T.let( - :"E-commerce Enablement & Infrastructure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSCRIPTION_MEMBERSHIP_COMMERCE = - T.let( - :"Subscription & Membership Commerce", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = - T.let( - :"Social Commerce & Influencer Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_APPAREL_RETAIL = - T.let( - :"Fashion & Apparel Retail", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_GROCERY_E_COMMERCE = - T.let( - :"Food, Beverage & Grocery E-commerce", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = - T.let( - :"Streaming Platforms (Video, Music, Audio)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GAMING_INTERACTIVE_ENTERTAINMENT = - T.let( - :"Gaming & Interactive Entertainment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = - T.let( - :"Creator Economy & Influencer Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVERTISING_ADTECH_MEDIA_BUYING = - T.let( - :"Advertising, Adtech & Media Buying", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FILM_TV_PRODUCTION_STUDIOS = - T.let( - :"Film, TV & Production Studios", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_VENUES_LIVE_ENTERTAINMENT = - T.let( - :"Events, Venues & Live Entertainment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = - T.let( - :"Virtual Worlds & Metaverse Experiences", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - K_12_EDUCATION_PLATFORMS_TOOLS = - T.let( - :"K-12 Education Platforms & Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HIGHER_EDUCATION_UNIVERSITY_TECH = - T.let( - :"Higher Education & University Tech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_LEARNING_MOO_CS = - T.let( - :"Online Learning & MOOCs", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TEST_PREP_CERTIFICATION = - T.let( - :"Test Prep & Certification", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAINING_UPSKILLING = - T.let( - :"Corporate Training & Upskilling", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TUTORING_SUPPLEMENTAL_LEARNING = - T.let( - :"Tutoring & Supplemental Learning", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = - T.let( - :"Education Management Systems (LMS/SIS)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LANGUAGE_LEARNING = - T.let( - :"Language Learning", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_LED_COHORT_BASED_COURSES = - T.let( - :"Creator-Led & Cohort-Based Courses", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = - T.let( - :"Special Education & Accessibility Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = - T.let( - :"Government Technology & Digital Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = - T.let( - :"Civic Engagement & Policy Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = - T.let( - :"International Development & Humanitarian Aid", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHILANTHROPY_GRANTMAKING = - T.let( - :"Philanthropy & Grantmaking", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = - T.let( - :"Nonprofit Operations & Fundraising Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_HEALTH_SOCIAL_SERVICES = - T.let( - :"Public Health & Social Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = - T.let( - :"Education & Youth Development Programs", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = - T.let( - :"Environmental & Climate Action Organizations", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = - T.let( - :"Legal Aid & Social Justice Advocacy", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MUNICIPAL_INFRASTRUCTURE_SERVICES = - T.let( - :"Municipal & Infrastructure Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANUFACTURING_INDUSTRIAL_AUTOMATION = - T.let( - :"Manufacturing & Industrial Automation", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = - T.let( - :"Energy Production (Oil, Gas, Nuclear)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENEWABLE_ENERGY_CLEANTECH = - T.let( - :"Renewable Energy & Cleantech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - UTILITIES_GRID_INFRASTRUCTURE = - T.let( - :"Utilities & Grid Infrastructure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = - T.let( - :"Industrial IoT & Monitoring Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_HEAVY_EQUIPMENT = - T.let( - :"Construction & Heavy Equipment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MINING_NATURAL_RESOURCES = - T.let( - :"Mining & Natural Resources", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = - T.let( - :"Environmental Engineering & Sustainability", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_STORAGE_BATTERY_TECHNOLOGY = - T.let( - :"Energy Storage & Battery Technology", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = - T.let( - :"Automotive OEMs & Vehicle Manufacturing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = - T.let( - :"Electric Vehicles (EVs) & Charging Infrastructure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILITY_AS_A_SERVICE_MAA_S = - T.let( - :"Mobility-as-a-Service (MaaS)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FLEET_MANAGEMENT = - T.let( - :"Fleet Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_TRANSIT_URBAN_MOBILITY = - T.let( - :"Public Transit & Urban Mobility", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTONOMOUS_VEHICLES_ADAS = - T.let( - :"Autonomous Vehicles & ADAS", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AFTERMARKET_PARTS_SERVICES = - T.let( - :"Aftermarket Parts & Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELEMATICS_VEHICLE_CONNECTIVITY = - T.let( - :"Telematics & Vehicle Connectivity", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIATION_AEROSPACE_TRANSPORT = - T.let( - :"Aviation & Aerospace Transport", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARITIME_SHIPPING = - T.let( - :"Maritime Shipping", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_WELLNESS = - T.let( - :"Fitness & Wellness", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_PERSONAL_CARE = - T.let( - :"Beauty & Personal Care", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_LIVING = - T.let( - :"Home & Living", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATING_RELATIONSHIPS = - T.let( - :"Dating & Relationships", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOBBIES_CRAFTS_DIY = - T.let( - :"Hobbies, Crafts & DIY", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OUTDOOR_RECREATIONAL_GEAR = - T.let( - :"Outdoor & Recreational Gear", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = - T.let( - :"Events, Experiences & Ticketing Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGNER_LUXURY_APPAREL = - T.let( - :"Designer & Luxury Apparel", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCESSORIES_JEWELRY_WATCHES = - T.let( - :"Accessories, Jewelry & Watches", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOTWEAR_LEATHER_GOODS = - T.let( - :"Footwear & Leather Goods", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_FRAGRANCE_SKINCARE = - T.let( - :"Beauty, Fragrance & Skincare", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_MARKETPLACES_RETAIL_PLATFORMS = - T.let( - :"Fashion Marketplaces & Retail Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_ETHICAL_FASHION = - T.let( - :"Sustainable & Ethical Fashion", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESALE_VINTAGE_CIRCULAR_FASHION = - T.let( - :"Resale, Vintage & Circular Fashion", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_TECH_VIRTUAL_TRY_ONS = - T.let( - :"Fashion Tech & Virtual Try-Ons", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREETWEAR_EMERGING_LUXURY = - T.let( - :"Streetwear & Emerging Luxury", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COUTURE_MADE_TO_MEASURE = - T.let( - :"Couture & Made-to-Measure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_PUBLISHING_JOURNALISM = - T.let( - :"News Publishing & Journalism", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_MEDIA_CONTENT_PLATFORMS = - T.let( - :"Digital Media & Content Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADCASTING_TV_RADIO = - T.let( - :"Broadcasting (TV & Radio)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PODCASTING_AUDIO_MEDIA = - T.let( - :"Podcasting & Audio Media", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_AGGREGATORS_CURATION_TOOLS = - T.let( - :"News Aggregators & Curation Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDEPENDENT_CREATOR_LED_MEDIA = - T.let( - :"Independent & Creator-Led Media", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = - T.let( - :"Newsletters & Substack-Style Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLITICAL_INVESTIGATIVE_MEDIA = - T.let( - :"Political & Investigative Media", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRADE_NICHE_PUBLICATIONS = - T.let( - :"Trade & Niche Publications", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDIA_MONITORING_ANALYTICS = - T.let( - :"Media Monitoring & Analytics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TEAMS_LEAGUES = - T.let( - :"Professional Teams & Leagues", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_MEDIA_BROADCASTING = - T.let( - :"Sports Media & Broadcasting", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_BETTING_FANTASY_SPORTS = - T.let( - :"Sports Betting & Fantasy Sports", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_ATHLETIC_TRAINING_PLATFORMS = - T.let( - :"Fitness & Athletic Training Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTSWEAR_EQUIPMENT = - T.let( - :"Sportswear & Equipment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ESPORTS_COMPETITIVE_GAMING = - T.let( - :"Esports & Competitive Gaming", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_VENUES_EVENT_MANAGEMENT = - T.let( - :"Sports Venues & Event Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ATHLETE_MANAGEMENT_TALENT_AGENCIES = - T.let( - :"Athlete Management & Talent Agencies", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_TECH_PERFORMANCE_ANALYTICS = - T.let( - :"Sports Tech & Performance Analytics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - YOUTH_AMATEUR_COLLEGIATE_SPORTS = - T.let( - :"Youth, Amateur & Collegiate Sports", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_MARKETPLACES = - T.let( - :"Real Estate Marketplaces", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROPERTY_MANAGEMENT_SOFTWARE = - T.let( - :"Property Management Software", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENTAL_PLATFORMS = - T.let( - :"Rental Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MORTGAGE_LENDING_TECH = - T.let( - :"Mortgage & Lending Tech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_INVESTMENT_PLATFORMS = - T.let( - :"Real Estate Investment Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAW_FIRMS_LEGAL_SERVICES = - T.let( - :"Law Firms & Legal Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_TECH_AUTOMATION = - T.let( - :"Legal Tech & Automation", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REGULATORY_COMPLIANCE = - T.let( - :"Regulatory Compliance", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_DISCOVERY_LITIGATION_TOOLS = - T.let( - :"E-Discovery & Litigation Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONTRACT_MANAGEMENT = - T.let( - :"Contract Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNANCE_RISK_COMPLIANCE_GRC = - T.let( - :"Governance, Risk & Compliance (GRC)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IP_TRADEMARK_MANAGEMENT = - T.let( - :"IP & Trademark Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_RESEARCH_INTELLIGENCE = - T.let( - :"Legal Research & Intelligence", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMPLIANCE_TRAINING_CERTIFICATION = - T.let( - :"Compliance Training & Certification", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WHISTLEBLOWER_ETHICS_REPORTING = - T.let( - :"Whistleblower & Ethics Reporting", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = - T.let( - :"Mobile & Wireless Networks (3G/4G/5G)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADBAND_FIBER_INTERNET = - T.let( - :"Broadband & Fiber Internet", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SATELLITE_SPACE_BASED_COMMUNICATIONS = - T.let( - :"Satellite & Space-Based Communications", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NETWORK_EQUIPMENT_INFRASTRUCTURE = - T.let( - :"Network Equipment & Infrastructure", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELECOM_BILLING_OSS_BSS_SYSTEMS = - T.let( - :"Telecom Billing & OSS/BSS Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VO_IP_UNIFIED_COMMUNICATIONS = - T.let( - :"VoIP & Unified Communications", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNET_SERVICE_PROVIDERS_IS_PS = - T.let( - :"Internet Service Providers (ISPs)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = - T.let( - :"Edge Computing & Network Virtualization", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IO_T_CONNECTIVITY_PLATFORMS = - T.let( - :"IoT Connectivity Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRECISION_AGRICULTURE_AG_TECH = - T.let( - :"Precision Agriculture & AgTech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROP_LIVESTOCK_PRODUCTION = - T.let( - :"Crop & Livestock Production", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = - T.let( - :"Food & Beverage Manufacturing & Processing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_DISTRIBUTION = - T.let( - :"Food Distribution", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANTS_FOOD_SERVICE = - T.let( - :"Restaurants & Food Service", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGRICULTURAL_INPUTS_EQUIPMENT = - T.let( - :"Agricultural Inputs & Equipment", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_REGENERATIVE_AGRICULTURE = - T.let( - :"Sustainable & Regenerative Agriculture", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SEAFOOD_AQUACULTURE = - T.let( - :"Seafood & Aquaculture", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANAGEMENT_CONSULTING = - T.let( - :"Management Consulting", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARKETING_ADVERTISING_AGENCIES = - T.let( - :"Marketing & Advertising Agencies", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGN_BRANDING_CREATIVE_STUDIOS = - T.let( - :"Design, Branding & Creative Studios", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IT_SERVICES_MANAGED_SERVICES = - T.let( - :"IT Services & Managed Services", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STAFFING_RECRUITING_TALENT = - T.let( - :"Staffing, Recruiting & Talent", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FIRMS = - T.let( - :"Accounting & Tax Firms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_RELATIONS_COMMUNICATIONS = - T.let( - :"Public Relations & Communications", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUSINESS_PROCESS_OUTSOURCING_BPO = - T.let( - :"Business Process Outsourcing (BPO)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TRAINING_COACHING = - T.let( - :"Professional Training & Coaching", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIALTY_CHEMICALS = - T.let( - :"Specialty Chemicals", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMMODITY_PETROCHEMICALS = - T.let( - :"Commodity & Petrochemicals", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLYMERS_PLASTICS_RUBBER = - T.let( - :"Polymers, Plastics & Rubber", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COATINGS_ADHESIVES_SEALANTS = - T.let( - :"Coatings, Adhesives & Sealants", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_GASES = - T.let( - :"Industrial Gases", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVANCED_MATERIALS_COMPOSITES = - T.let( - :"Advanced Materials & Composites", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BATTERY_MATERIALS_ENERGY_STORAGE = - T.let( - :"Battery Materials & Energy Storage", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = - T.let( - :"Electronic Materials & Semiconductor Chemicals", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGROCHEMICALS_FERTILIZERS = - T.let( - :"Agrochemicals & Fertilizers", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FREIGHT_TRANSPORTATION_TECH = - T.let( - :"Freight & Transportation Tech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAST_MILE_DELIVERY = - T.let( - :"Last-Mile Delivery", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WAREHOUSE_AUTOMATION = - T.let( - :"Warehouse Automation", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = - T.let( - :"Supply Chain Visibility Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LOGISTICS_MARKETPLACES = - T.let( - :"Logistics Marketplaces", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SHIPPING_FREIGHT_FORWARDING = - T.let( - :"Shipping & Freight Forwarding", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COLD_CHAIN_LOGISTICS = - T.let( - :"Cold Chain Logistics", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REVERSE_LOGISTICS_RETURNS = - T.let( - :"Reverse Logistics & Returns", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROSS_BORDER_TRADE_TECH = - T.let( - :"Cross-Border Trade Tech", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = - T.let( - :"Transportation Management Systems (TMS)", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOTELS_ACCOMMODATION = - T.let( - :"Hotels & Accommodation", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VACATION_RENTALS_SHORT_TERM_STAYS = - T.let( - :"Vacation Rentals & Short-Term Stays", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANT_TECH_MANAGEMENT = - T.let( - :"Restaurant Tech & Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_BOOKING_PLATFORMS = - T.let( - :"Travel Booking Platforms", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TOURISM_EXPERIENCES_ACTIVITIES = - T.let( - :"Tourism Experiences & Activities", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRUISE_LINES_MARINE_TOURISM = - T.let( - :"Cruise Lines & Marine Tourism", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOSPITALITY_MANAGEMENT_SYSTEMS = - T.let( - :"Hospitality Management Systems", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENT_VENUE_MANAGEMENT = - T.let( - :"Event & Venue Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAVEL_MANAGEMENT = - T.let( - :"Corporate Travel Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_INSURANCE_PROTECTION = - T.let( - :"Travel Insurance & Protection", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MANAGEMENT_SOFTWARE = - T.let( - :"Construction Management Software", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIM_CAD_DESIGN_TOOLS = - T.let( - :"BIM/CAD & Design Tools", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MARKETPLACES = - T.let( - :"Construction Marketplaces", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EQUIPMENT_RENTAL_MANAGEMENT = - T.let( - :"Equipment Rental & Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUILDING_MATERIALS_PROCUREMENT = - T.let( - :"Building Materials & Procurement", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_WORKFORCE_MANAGEMENT = - T.let( - :"Construction Workforce Management", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROJECT_ESTIMATION_BIDDING = - T.let( - :"Project Estimation & Bidding", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MODULAR_PREFAB_CONSTRUCTION = - T.let( - :"Modular & Prefab Construction", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_SAFETY_COMPLIANCE = - T.let( - :"Construction Safety & Compliance", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SMART_BUILDING_TECHNOLOGY = - T.let( - :"Smart Building Technology", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_CPG = - T.let( - :"Food & Beverage CPG", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_PERSONAL_CARE_CPG = - T.let( - :"Home & Personal Care CPG", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_ANALYTICS_INSIGHTS = - T.let( - :"CPG Analytics & Insights", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_CPG_BRANDS = - T.let( - :"Direct-to-Consumer CPG Brands", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_SUPPLY_CHAIN_DISTRIBUTION = - T.let( - :"CPG Supply Chain & Distribution", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRIVATE_LABEL_MANUFACTURING = - T.let( - :"Private Label Manufacturing", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_RETAIL_INTELLIGENCE = - T.let( - :"CPG Retail Intelligence", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_CPG_PACKAGING = - T.let( - :"Sustainable CPG & Packaging", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_COSMETICS_CPG = - T.let( - :"Beauty & Cosmetics CPG", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_WELLNESS_CPG = - T.let( - :"Health & Wellness CPG", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - - class Links < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, - ContextDev::Internal::AnyHash - ) - end - - # URL to the brand's blog or news page - sig { returns(T.nilable(String)) } - attr_accessor :blog - - # URL to the brand's careers or job opportunities page - sig { returns(T.nilable(String)) } - attr_accessor :careers - - # URL to the brand's contact or contact us page - sig { returns(T.nilable(String)) } - attr_accessor :contact - - # URL to the brand's pricing or plans page - sig { returns(T.nilable(String)) } - attr_accessor :pricing - - # URL to the brand's privacy policy page - sig { returns(T.nilable(String)) } - attr_accessor :privacy - - # URL to the brand's terms of service or terms and conditions page - sig { returns(T.nilable(String)) } - attr_accessor :terms - - # Important website links for the brand - sig do - params( - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # URL to the brand's blog or news page - blog: nil, - # URL to the brand's careers or job opportunities page - careers: nil, - # URL to the brand's contact or contact us page - contact: nil, - # URL to the brand's pricing or plans page - pricing: nil, - # URL to the brand's privacy policy page - privacy: nil, - # URL to the brand's terms of service or terms and conditions page - terms: nil - ) - end - - sig do - override.returns( - { - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - } - ) - end - def to_hash - end - end - - class Logo < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the logo - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol - ) - ) - end - attr_reader :mode - - sig do - params( - mode: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::OrSymbol - ).void - end - attr_writer :mode - - # Resolution of the logo image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution::OrHash - ).void - end - attr_writer :resolution - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::OrSymbol - ).void - end - attr_writer :type - - # CDN hosted url of the logo (ready for display) - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color::OrHash - ], - mode: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::OrSymbol, - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution::OrHash, - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the logo - colors: nil, - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - mode: nil, - # Resolution of the logo image - resolution: nil, - # Type of the logo based on resolution (e.g., 'icon', 'logo') - type: nil, - # CDN hosted url of the logo (ready for display) - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color - ], - mode: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol, - resolution: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - module Mode - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LIGHT = - T.let( - :light, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol - ) - DARK = - T.let( - :dark, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol - ) - HAS_OPAQUE_BACKGROUND = - T.let( - :has_opaque_background, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Mode::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the logo image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ICON = - T.let( - :icon, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::TaggedSymbol - ) - LOGO = - T.let( - :logo, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::PrimaryLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Social < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social, - ContextDev::Internal::AnyHash - ) - end - - # Type of social media platform - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::OrSymbol - ).void - end - attr_writer :type - - # URL of the social media page - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Type of social media platform - type: nil, - # URL of the social media page - url: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - # Type of social media platform - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - X = - T.let( - :x, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - FACEBOOK = - T.let( - :facebook, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - INSTAGRAM = - T.let( - :instagram, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - LINKEDIN = - T.let( - :linkedin, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - YOUTUBE = - T.let( - :youtube, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - PINTEREST = - T.let( - :pinterest, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - TIKTOK = - T.let( - :tiktok, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - DRIBBBLE = - T.let( - :dribbble, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - GITHUB = - T.let( - :github, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - BEHANCE = - T.let( - :behance, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - SNAPCHAT = - T.let( - :snapchat, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - WHATSAPP = - T.let( - :whatsapp, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - TELEGRAM = - T.let( - :telegram, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - LINE = - T.let( - :line, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - DISCORD = - T.let( - :discord, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - TWITCH = - T.let( - :twitch, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - VIMEO = - T.let( - :vimeo, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - IMDB = - T.let( - :imdb, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - TUMBLR = - T.let( - :tumblr, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - FLICKR = - T.let( - :flickr, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - GIPHY = - T.let( - :giphy, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - SPOTIFY = - T.let( - :spotify, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - SOUNDCLOUD = - T.let( - :soundcloud, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - TRIPADVISOR = - T.let( - :tripadvisor, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - YELP = - T.let( - :yelp, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - PRODUCTHUNT = - T.let( - :producthunt, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - REDDIT = - T.let( - :reddit, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - CRUNCHBASE = - T.let( - :crunchbase, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - APPSTORE = - T.let( - :appstore, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - PLAYSTORE = - T.let( - :playstore, - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Stock < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, - ContextDev::Internal::AnyHash - ) - end - - # Stock exchange name - sig { returns(T.nilable(String)) } - attr_reader :exchange - - sig { params(exchange: String).void } - attr_writer :exchange - - # Stock ticker symbol - sig { returns(T.nilable(String)) } - attr_reader :ticker - - sig { params(ticker: String).void } - attr_writer :ticker - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - params(exchange: String, ticker: String).returns(T.attached_class) - end - def self.new( - # Stock exchange name - exchange: nil, - # Stock ticker symbol - ticker: nil - ) - end - - sig { override.returns({ exchange: String, ticker: String }) } - def to_hash - end - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi b/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi deleted file mode 100644 index 9d23b21a..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +++ /dev/null @@ -1,1153 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByTickerParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::BrandRetrieveByTickerParams, - ContextDev::Internal::AnyHash - ) - end - - # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # Must be 1-15 characters, letters/numbers/dots only. - sig { returns(String) } - attr_accessor :ticker - - # Optional parameter to force the language of the retrieved brand data. - sig do - returns( - T.nilable( - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol - ) - ) - end - attr_reader :force_language - - sig do - params( - force_language: - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - sig { returns(T.nilable(Integer)) } - attr_reader :max_age_ms - - sig { params(max_age_ms: Integer).void } - attr_writer :max_age_ms - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - sig do - returns( - T.nilable( - ContextDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol - ) - ) - end - attr_reader :ticker_exchange - - sig do - params( - ticker_exchange: - ContextDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol - ).void - end - attr_writer :ticker_exchange - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - ticker: String, - force_language: - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - ticker_exchange: - ContextDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # Must be 1-15 characters, letters/numbers/dots only. - ticker:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - ticker_exchange: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - ticker: String, - force_language: - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - ticker_exchange: - ContextDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - module TickerExchange - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::BrandRetrieveByTickerParams::TickerExchange - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AMEX = - T.let( - :AMEX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - AMS = - T.let( - :AMS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - AQS = - T.let( - :AQS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - ASX = - T.let( - :ASX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - ATH = - T.let( - :ATH, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BER = - T.let( - :BER, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BME = - T.let( - :BME, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BRU = - T.let( - :BRU, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BSE = - T.let( - :BSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BUD = - T.let( - :BUD, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BUE = - T.let( - :BUE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - BVC = - T.let( - :BVC, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - CBOE = - T.let( - :CBOE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - CNQ = - T.let( - :CNQ, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - CPH = - T.let( - :CPH, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - DFM = - T.let( - :DFM, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - DOH = - T.let( - :DOH, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - DUB = - T.let( - :DUB, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - DUS = - T.let( - :DUS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - DXE = - T.let( - :DXE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - EGX = - T.let( - :EGX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - FSX = - T.let( - :FSX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - HAM = - T.let( - :HAM, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - HEL = - T.let( - :HEL, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - HKSE = - T.let( - :HKSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - HOSE = - T.let( - :HOSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - ICE = - T.let( - :ICE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - IOB = - T.let( - :IOB, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - IST = - T.let( - :IST, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - JKT = - T.let( - :JKT, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - JNB = - T.let( - :JNB, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - JPX = - T.let( - :JPX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - KLS = - T.let( - :KLS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - KOE = - T.let( - :KOE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - KSC = - T.let( - :KSC, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - KUW = - T.let( - :KUW, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - LIS = - T.let( - :LIS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - LSE = - T.let( - :LSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - MCX = - T.let( - :MCX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - MEX = - T.let( - :MEX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - MIL = - T.let( - :MIL, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - MUN = - T.let( - :MUN, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - NASDAQ = - T.let( - :NASDAQ, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - NEO = - T.let( - :NEO, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - NSE = - T.let( - :NSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - NYSE = - T.let( - :NYSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - NZE = - T.let( - :NZE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - OSL = - T.let( - :OSL, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - OTC = - T.let( - :OTC, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - PAR = - T.let( - :PAR, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - PNK = - T.let( - :PNK, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - PRA = - T.let( - :PRA, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - RIS = - T.let( - :RIS, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SAO = - T.let( - :SAO, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SAU = - T.let( - :SAU, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SES = - T.let( - :SES, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SET = - T.let( - :SET, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SGO = - T.let( - :SGO, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SHH = - T.let( - :SHH, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SHZ = - T.let( - :SHZ, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - SIX = - T.let( - :SIX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - STO = - T.let( - :STO, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - STU = - T.let( - :STU, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TAI = - T.let( - :TAI, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TAL = - T.let( - :TAL, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TLV = - T.let( - :TLV, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TSX = - T.let( - :TSX, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TSXV = - T.let( - :TSXV, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - TWO = - T.let( - :TWO, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - VIE = - T.let( - :VIE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - WSE = - T.let( - :WSE, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - XETRA = - T.let( - :XETRA, - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::BrandRetrieveByTickerParams::TickerExchange::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi b/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi deleted file mode 100644 index 8fa30c31..00000000 --- a/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +++ /dev/null @@ -1,3512 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class BrandRetrieveByTickerResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse, - ContextDev::Internal::AnyHash - ) - end - - # Detailed brand information - sig do - returns( - T.nilable(ContextDev::Models::BrandRetrieveByTickerResponse::Brand) - ) - end - attr_reader :brand - - sig do - params( - brand: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::OrHash - ).void - end - attr_writer :brand - - # HTTP status code - sig { returns(T.nilable(Integer)) } - attr_reader :code - - sig { params(code: Integer).void } - attr_writer :code - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - brand: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::OrHash, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata::OrHash, - status: String - ).returns(T.attached_class) - end - def self.new( - # Detailed brand information - brand: nil, - # HTTP status code - code: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand, - code: Integer, - key_metadata: - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, - status: String - } - ) - end - def to_hash - end - - class Brand < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand, - ContextDev::Internal::AnyHash - ) - end - - # Physical address of the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address - ) - ) - end - attr_reader :address - - sig do - params( - address: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address::OrHash - ).void - end - attr_writer :address - - # An array of backdrop images for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop - ] - ) - ) - end - attr_reader :backdrops - - sig do - params( - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::OrHash - ] - ).void - end - attr_writer :backdrops - - # An array of brand colors - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color::OrHash - ] - ).void - end - attr_writer :colors - - # A brief description of the brand - sig { returns(T.nilable(String)) } - attr_reader :description - - sig { params(description: String).void } - attr_writer :description - - # The domain name of the brand - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Company email address - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Industry classification information for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries - ) - ) - end - attr_reader :industries - - sig do - params( - industries: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::OrHash - ).void - end - attr_writer :industries - - # Indicates whether the brand content is not safe for work (NSFW) - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_nsfw - - sig { params(is_nsfw: T::Boolean).void } - attr_writer :is_nsfw - - # Important website links for the brand - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links - ) - ) - end - attr_reader :links - - sig do - params( - links: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links::OrHash - ).void - end - attr_writer :links - - # An array of logos associated with the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo - ] - ) - ) - end - attr_reader :logos - - sig do - params( - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::OrHash - ] - ).void - end - attr_writer :logos - - # Company phone number - sig { returns(T.nilable(String)) } - attr_reader :phone - - sig { params(phone: String).void } - attr_writer :phone - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ) - end - attr_accessor :primary_language - - # The brand's slogan - sig { returns(T.nilable(String)) } - attr_reader :slogan - - sig { params(slogan: String).void } - attr_writer :slogan - - # An array of social media links for the brand - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social - ] - ) - ) - end - attr_reader :socials - - sig do - params( - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::OrHash - ] - ).void - end - attr_writer :socials - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock - ) - ) - end - attr_reader :stock - - sig do - params( - stock: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock::OrHash - ).void - end - attr_writer :stock - - # The title or name of the brand - sig { returns(T.nilable(String)) } - attr_reader :title - - sig { params(title: String).void } - attr_writer :title - - # Detailed brand information - sig do - params( - address: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address::OrHash, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::OrHash - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color::OrHash - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::OrHash, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links::OrHash, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::OrHash - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::OrSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::OrHash - ], - stock: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock::OrHash, - title: String - ).returns(T.attached_class) - end - def self.new( - # Physical address of the brand - address: nil, - # An array of backdrop images for the brand - backdrops: nil, - # An array of brand colors - colors: nil, - # A brief description of the brand - description: nil, - # The domain name of the brand - domain: nil, - # Company email address - email: nil, - # Industry classification information for the brand - industries: nil, - # Indicates whether the brand content is not safe for work (NSFW) - is_nsfw: nil, - # Important website links for the brand - links: nil, - # An array of logos associated with the brand - logos: nil, - # Company phone number - phone: nil, - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - primary_language: nil, - # The brand's slogan - slogan: nil, - # An array of social media links for the brand - socials: nil, - # Stock market information for this brand (will be null if not a publicly traded - # company) - stock: nil, - # The title or name of the brand - title: nil - ) - end - - sig do - override.returns( - { - address: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, - backdrops: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop - ], - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color - ], - description: String, - domain: String, - email: String, - industries: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, - is_nsfw: T::Boolean, - links: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, - logos: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo - ], - phone: String, - primary_language: - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ), - slogan: String, - socials: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social - ], - stock: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, - title: String - } - ) - end - def to_hash - end - - class Address < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, - ContextDev::Internal::AnyHash - ) - end - - # City name - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - - # Country name - sig { returns(T.nilable(String)) } - attr_reader :country - - sig { params(country: String).void } - attr_writer :country - - # Country code - sig { returns(T.nilable(String)) } - attr_reader :country_code - - sig { params(country_code: String).void } - attr_writer :country_code - - # Postal or ZIP code - sig { returns(T.nilable(String)) } - attr_reader :postal_code - - sig { params(postal_code: String).void } - attr_writer :postal_code - - # State or province code - sig { returns(T.nilable(String)) } - attr_reader :state_code - - sig { params(state_code: String).void } - attr_writer :state_code - - # State or province name - sig { returns(T.nilable(String)) } - attr_reader :state_province - - sig { params(state_province: String).void } - attr_writer :state_province - - # Street address - sig { returns(T.nilable(String)) } - attr_reader :street - - sig { params(street: String).void } - attr_writer :street - - # Physical address of the brand - sig do - params( - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - ).returns(T.attached_class) - end - def self.new( - # City name - city: nil, - # Country name - country: nil, - # Country code - country_code: nil, - # Postal or ZIP code - postal_code: nil, - # State or province code - state_code: nil, - # State or province name - state_province: nil, - # Street address - street: nil - ) - end - - sig do - override.returns( - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - ) - end - def to_hash - end - end - - class Backdrop < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the backdrop image - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Resolution of the backdrop image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution::OrHash - ).void - end - attr_writer :resolution - - # URL of the backdrop image - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color::OrHash - ], - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution::OrHash, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the backdrop image - colors: nil, - # Resolution of the backdrop image - resolution: nil, - # URL of the backdrop image - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color - ], - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the backdrop image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - class Industries < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, - ContextDev::Internal::AnyHash - ) - end - - # Easy Industry Classification - array of industry and subindustry pairs - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic - ] - ) - ) - end - attr_reader :eic - - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::OrHash - ] - ).void - end - attr_writer :eic - - # Industry classification information for the brand - sig do - params( - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # Easy Industry Classification - array of industry and subindustry pairs - eic: nil - ) - end - - sig do - override.returns( - { - eic: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic - ] - } - ) - end - def to_hash - end - - class Eic < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic, - ContextDev::Internal::AnyHash - ) - end - - # Industry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - end - attr_accessor :industry - - # Subindustry classification enum - sig do - returns( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - end - attr_accessor :subindustry - - sig do - params( - industry: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::OrSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Industry classification enum - industry:, - # Subindustry classification enum - subindustry: - ) - end - - sig do - override.returns( - { - industry: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol, - subindustry: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - } - ) - end - def to_hash - end - - # Industry classification enum - module Industry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AEROSPACE_DEFENSE = - T.let( - :"Aerospace & Defense", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TECHNOLOGY = - T.let( - :Technology, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - FINANCE = - T.let( - :Finance, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HEALTHCARE = - T.let( - :Healthcare, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - RETAIL_E_COMMERCE = - T.let( - :"Retail & E-commerce", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - ENTERTAINMENT = - T.let( - :Entertainment, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - EDUCATION = - T.let( - :Education, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - GOVERNMENT_NONPROFIT = - T.let( - :"Government & Nonprofit", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - INDUSTRIAL_ENERGY = - T.let( - :"Industrial & Energy", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AUTOMOTIVE_TRANSPORTATION = - T.let( - :"Automotive & Transportation", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LIFESTYLE_LEISURE = - T.let( - :"Lifestyle & Leisure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LUXURY_FASHION = - T.let( - :"Luxury & Fashion", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - NEWS_MEDIA = - T.let( - :"News & Media", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - SPORTS = - T.let( - :Sports, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - REAL_ESTATE_PROP_TECH = - T.let( - :"Real Estate & PropTech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LEGAL_COMPLIANCE = - T.let( - :"Legal & Compliance", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - TELECOMMUNICATIONS = - T.let( - :Telecommunications, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - AGRICULTURE_FOOD = - T.let( - :"Agriculture & Food", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - PROFESSIONAL_SERVICES_AGENCIES = - T.let( - :"Professional Services & Agencies", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CHEMICALS_MATERIALS = - T.let( - :"Chemicals & Materials", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - LOGISTICS_SUPPLY_CHAIN = - T.let( - :"Logistics & Supply Chain", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - HOSPITALITY_TOURISM = - T.let( - :"Hospitality & Tourism", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSTRUCTION_BUILT_ENVIRONMENT = - T.let( - :"Construction & Built Environment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - CONSUMER_PACKAGED_GOODS_CPG = - T.let( - :"Consumer Packaged Goods (CPG)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Industry::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Subindustry classification enum - module Subindustry - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DEFENSE_SYSTEMS_MILITARY_HARDWARE = - T.let( - :"Defense Systems & Military Hardware", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AEROSPACE_MANUFACTURING = - T.let( - :"Aerospace Manufacturing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIONICS_NAVIGATION_TECHNOLOGY = - T.let( - :"Avionics & Navigation Technology", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSEA_NAVAL_DEFENSE_SYSTEMS = - T.let( - :"Subsea & Naval Defense Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPACE_SATELLITE_TECHNOLOGY = - T.let( - :"Space & Satellite Technology", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEFENSE_IT_SYSTEMS_INTEGRATION = - T.let( - :"Defense IT & Systems Integration", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_B = - T.let( - :"Software (B2B)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOFTWARE_B2_C = - T.let( - :"Software (B2C)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLOUD_INFRASTRUCTURE_DEV_OPS = - T.let( - :"Cloud Infrastructure & DevOps", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CYBERSECURITY = - T.let( - :Cybersecurity, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING = - T.let( - :"Artificial Intelligence & Machine Learning", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATA_INFRASTRUCTURE_ANALYTICS = - T.let( - :"Data Infrastructure & Analytics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HARDWARE_SEMICONDUCTORS = - T.let( - :"Hardware & Semiconductors", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINTECH_INFRASTRUCTURE = - T.let( - :"Fintech Infrastructure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_MARKETPLACE_PLATFORMS = - T.let( - :"eCommerce & Marketplace Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DEVELOPER_TOOLS_APIS = - T.let( - :"Developer Tools & APIs", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WEB3_BLOCKCHAIN = - T.let( - :"Web3 & Blockchain", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - XR_SPATIAL_COMPUTING = - T.let( - :"XR & Spatial Computing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BANKING_LENDING = - T.let( - :"Banking & Lending", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INVESTMENT_MANAGEMENT_WEALTH_TECH = - T.let( - :"Investment Management & WealthTech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INSURANCE_INSUR_TECH = - T.let( - :"Insurance & InsurTech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PAYMENTS_MONEY_MOVEMENT = - T.let( - :"Payments & Money Movement", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS = - T.let( - :"Accounting, Tax & Financial Planning Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CAPITAL_MARKETS_TRADING_PLATFORMS = - T.let( - :"Capital Markets & Trading Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FINANCIAL_INFRASTRUCTURE_APIS = - T.let( - :"Financial Infrastructure & APIs", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREDIT_SCORING_RISK_MANAGEMENT = - T.let( - :"Credit Scoring & Risk Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRYPTOCURRENCY_DIGITAL_ASSETS = - T.let( - :"Cryptocurrency & Digital Assets", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BNPL_ALTERNATIVE_FINANCING = - T.let( - :"BNPL & Alternative Financing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_PROVIDERS_SERVICES = - T.let( - :"Healthcare Providers & Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHARMACEUTICALS_DRUG_DEVELOPMENT = - T.let( - :"Pharmaceuticals & Drug Development", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDICAL_DEVICES_DIAGNOSTICS = - T.let( - :"Medical Devices & Diagnostics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIOTECHNOLOGY_GENOMICS = - T.let( - :"Biotechnology & Genomics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_HEALTH_TELEMEDICINE = - T.let( - :"Digital Health & Telemedicine", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_INSURANCE_BENEFITS_TECH = - T.let( - :"Health Insurance & Benefits Tech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CLINICAL_TRIALS_RESEARCH_PLATFORMS = - T.let( - :"Clinical Trials & Research Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MENTAL_HEALTH_WELLNESS = - T.let( - :"Mental Health & Wellness", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTHCARE_IT_EHR_SYSTEMS = - T.let( - :"Healthcare IT & EHR Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSUMER_HEALTH_WELLNESS_PRODUCTS = - T.let( - :"Consumer Health & Wellness Products", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_MARKETPLACES = - T.let( - :"Online Marketplaces", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_DTC_BRANDS = - T.let( - :"Direct-to-Consumer (DTC) Brands", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RETAIL_TECH_POINT_OF_SALE_SYSTEMS = - T.let( - :"Retail Tech & Point-of-Sale Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OMNICHANNEL_IN_STORE_RETAIL = - T.let( - :"Omnichannel & In-Store Retail", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE = - T.let( - :"E-commerce Enablement & Infrastructure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUBSCRIPTION_MEMBERSHIP_COMMERCE = - T.let( - :"Subscription & Membership Commerce", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS = - T.let( - :"Social Commerce & Influencer Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_APPAREL_RETAIL = - T.let( - :"Fashion & Apparel Retail", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_GROCERY_E_COMMERCE = - T.let( - :"Food, Beverage & Grocery E-commerce", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO = - T.let( - :"Streaming Platforms (Video, Music, Audio)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GAMING_INTERACTIVE_ENTERTAINMENT = - T.let( - :"Gaming & Interactive Entertainment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_ECONOMY_INFLUENCER_PLATFORMS = - T.let( - :"Creator Economy & Influencer Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVERTISING_ADTECH_MEDIA_BUYING = - T.let( - :"Advertising, Adtech & Media Buying", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FILM_TV_PRODUCTION_STUDIOS = - T.let( - :"Film, TV & Production Studios", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_VENUES_LIVE_ENTERTAINMENT = - T.let( - :"Events, Venues & Live Entertainment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES = - T.let( - :"Virtual Worlds & Metaverse Experiences", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - K_12_EDUCATION_PLATFORMS_TOOLS = - T.let( - :"K-12 Education Platforms & Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HIGHER_EDUCATION_UNIVERSITY_TECH = - T.let( - :"Higher Education & University Tech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ONLINE_LEARNING_MOO_CS = - T.let( - :"Online Learning & MOOCs", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TEST_PREP_CERTIFICATION = - T.let( - :"Test Prep & Certification", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAINING_UPSKILLING = - T.let( - :"Corporate Training & Upskilling", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TUTORING_SUPPLEMENTAL_LEARNING = - T.let( - :"Tutoring & Supplemental Learning", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS = - T.let( - :"Education Management Systems (LMS/SIS)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LANGUAGE_LEARNING = - T.let( - :"Language Learning", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CREATOR_LED_COHORT_BASED_COURSES = - T.let( - :"Creator-Led & Cohort-Based Courses", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS = - T.let( - :"Special Education & Accessibility Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES = - T.let( - :"Government Technology & Digital Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CIVIC_ENGAGEMENT_POLICY_PLATFORMS = - T.let( - :"Civic Engagement & Policy Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID = - T.let( - :"International Development & Humanitarian Aid", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PHILANTHROPY_GRANTMAKING = - T.let( - :"Philanthropy & Grantmaking", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS = - T.let( - :"Nonprofit Operations & Fundraising Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_HEALTH_SOCIAL_SERVICES = - T.let( - :"Public Health & Social Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS = - T.let( - :"Education & Youth Development Programs", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS = - T.let( - :"Environmental & Climate Action Organizations", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY = - T.let( - :"Legal Aid & Social Justice Advocacy", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MUNICIPAL_INFRASTRUCTURE_SERVICES = - T.let( - :"Municipal & Infrastructure Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANUFACTURING_INDUSTRIAL_AUTOMATION = - T.let( - :"Manufacturing & Industrial Automation", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR = - T.let( - :"Energy Production (Oil, Gas, Nuclear)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENEWABLE_ENERGY_CLEANTECH = - T.let( - :"Renewable Energy & Cleantech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - UTILITIES_GRID_INFRASTRUCTURE = - T.let( - :"Utilities & Grid Infrastructure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_IO_T_MONITORING_SYSTEMS = - T.let( - :"Industrial IoT & Monitoring Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_HEAVY_EQUIPMENT = - T.let( - :"Construction & Heavy Equipment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MINING_NATURAL_RESOURCES = - T.let( - :"Mining & Natural Resources", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY = - T.let( - :"Environmental Engineering & Sustainability", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ENERGY_STORAGE_BATTERY_TECHNOLOGY = - T.let( - :"Energy Storage & Battery Technology", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING = - T.let( - :"Automotive OEMs & Vehicle Manufacturing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE = - T.let( - :"Electric Vehicles (EVs) & Charging Infrastructure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILITY_AS_A_SERVICE_MAA_S = - T.let( - :"Mobility-as-a-Service (MaaS)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FLEET_MANAGEMENT = - T.let( - :"Fleet Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_TRANSIT_URBAN_MOBILITY = - T.let( - :"Public Transit & Urban Mobility", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AUTONOMOUS_VEHICLES_ADAS = - T.let( - :"Autonomous Vehicles & ADAS", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AFTERMARKET_PARTS_SERVICES = - T.let( - :"Aftermarket Parts & Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELEMATICS_VEHICLE_CONNECTIVITY = - T.let( - :"Telematics & Vehicle Connectivity", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AVIATION_AEROSPACE_TRANSPORT = - T.let( - :"Aviation & Aerospace Transport", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARITIME_SHIPPING = - T.let( - :"Maritime Shipping", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_WELLNESS = - T.let( - :"Fitness & Wellness", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_PERSONAL_CARE = - T.let( - :"Beauty & Personal Care", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_LIVING = - T.let( - :"Home & Living", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DATING_RELATIONSHIPS = - T.let( - :"Dating & Relationships", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOBBIES_CRAFTS_DIY = - T.let( - :"Hobbies, Crafts & DIY", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - OUTDOOR_RECREATIONAL_GEAR = - T.let( - :"Outdoor & Recreational Gear", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENTS_EXPERIENCES_TICKETING_PLATFORMS = - T.let( - :"Events, Experiences & Ticketing Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGNER_LUXURY_APPAREL = - T.let( - :"Designer & Luxury Apparel", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCESSORIES_JEWELRY_WATCHES = - T.let( - :"Accessories, Jewelry & Watches", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOTWEAR_LEATHER_GOODS = - T.let( - :"Footwear & Leather Goods", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_FRAGRANCE_SKINCARE = - T.let( - :"Beauty, Fragrance & Skincare", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_MARKETPLACES_RETAIL_PLATFORMS = - T.let( - :"Fashion Marketplaces & Retail Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_ETHICAL_FASHION = - T.let( - :"Sustainable & Ethical Fashion", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESALE_VINTAGE_CIRCULAR_FASHION = - T.let( - :"Resale, Vintage & Circular Fashion", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FASHION_TECH_VIRTUAL_TRY_ONS = - T.let( - :"Fashion Tech & Virtual Try-Ons", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STREETWEAR_EMERGING_LUXURY = - T.let( - :"Streetwear & Emerging Luxury", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COUTURE_MADE_TO_MEASURE = - T.let( - :"Couture & Made-to-Measure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_PUBLISHING_JOURNALISM = - T.let( - :"News Publishing & Journalism", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIGITAL_MEDIA_CONTENT_PLATFORMS = - T.let( - :"Digital Media & Content Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADCASTING_TV_RADIO = - T.let( - :"Broadcasting (TV & Radio)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PODCASTING_AUDIO_MEDIA = - T.let( - :"Podcasting & Audio Media", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWS_AGGREGATORS_CURATION_TOOLS = - T.let( - :"News Aggregators & Curation Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDEPENDENT_CREATOR_LED_MEDIA = - T.let( - :"Independent & Creator-Led Media", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS = - T.let( - :"Newsletters & Substack-Style Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLITICAL_INVESTIGATIVE_MEDIA = - T.let( - :"Political & Investigative Media", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRADE_NICHE_PUBLICATIONS = - T.let( - :"Trade & Niche Publications", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MEDIA_MONITORING_ANALYTICS = - T.let( - :"Media Monitoring & Analytics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TEAMS_LEAGUES = - T.let( - :"Professional Teams & Leagues", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_MEDIA_BROADCASTING = - T.let( - :"Sports Media & Broadcasting", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_BETTING_FANTASY_SPORTS = - T.let( - :"Sports Betting & Fantasy Sports", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FITNESS_ATHLETIC_TRAINING_PLATFORMS = - T.let( - :"Fitness & Athletic Training Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTSWEAR_EQUIPMENT = - T.let( - :"Sportswear & Equipment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ESPORTS_COMPETITIVE_GAMING = - T.let( - :"Esports & Competitive Gaming", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_VENUES_EVENT_MANAGEMENT = - T.let( - :"Sports Venues & Event Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ATHLETE_MANAGEMENT_TALENT_AGENCIES = - T.let( - :"Athlete Management & Talent Agencies", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPORTS_TECH_PERFORMANCE_ANALYTICS = - T.let( - :"Sports Tech & Performance Analytics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - YOUTH_AMATEUR_COLLEGIATE_SPORTS = - T.let( - :"Youth, Amateur & Collegiate Sports", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_MARKETPLACES = - T.let( - :"Real Estate Marketplaces", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROPERTY_MANAGEMENT_SOFTWARE = - T.let( - :"Property Management Software", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RENTAL_PLATFORMS = - T.let( - :"Rental Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MORTGAGE_LENDING_TECH = - T.let( - :"Mortgage & Lending Tech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REAL_ESTATE_INVESTMENT_PLATFORMS = - T.let( - :"Real Estate Investment Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAW_FIRMS_LEGAL_SERVICES = - T.let( - :"Law Firms & Legal Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_TECH_AUTOMATION = - T.let( - :"Legal Tech & Automation", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REGULATORY_COMPLIANCE = - T.let( - :"Regulatory Compliance", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - E_DISCOVERY_LITIGATION_TOOLS = - T.let( - :"E-Discovery & Litigation Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONTRACT_MANAGEMENT = - T.let( - :"Contract Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - GOVERNANCE_RISK_COMPLIANCE_GRC = - T.let( - :"Governance, Risk & Compliance (GRC)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IP_TRADEMARK_MANAGEMENT = - T.let( - :"IP & Trademark Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LEGAL_RESEARCH_INTELLIGENCE = - T.let( - :"Legal Research & Intelligence", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMPLIANCE_TRAINING_CERTIFICATION = - T.let( - :"Compliance Training & Certification", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WHISTLEBLOWER_ETHICS_REPORTING = - T.let( - :"Whistleblower & Ethics Reporting", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G = - T.let( - :"Mobile & Wireless Networks (3G/4G/5G)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BROADBAND_FIBER_INTERNET = - T.let( - :"Broadband & Fiber Internet", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SATELLITE_SPACE_BASED_COMMUNICATIONS = - T.let( - :"Satellite & Space-Based Communications", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - NETWORK_EQUIPMENT_INFRASTRUCTURE = - T.let( - :"Network Equipment & Infrastructure", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TELECOM_BILLING_OSS_BSS_SYSTEMS = - T.let( - :"Telecom Billing & OSS/BSS Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VO_IP_UNIFIED_COMMUNICATIONS = - T.let( - :"VoIP & Unified Communications", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INTERNET_SERVICE_PROVIDERS_IS_PS = - T.let( - :"Internet Service Providers (ISPs)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EDGE_COMPUTING_NETWORK_VIRTUALIZATION = - T.let( - :"Edge Computing & Network Virtualization", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IO_T_CONNECTIVITY_PLATFORMS = - T.let( - :"IoT Connectivity Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRECISION_AGRICULTURE_AG_TECH = - T.let( - :"Precision Agriculture & AgTech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROP_LIVESTOCK_PRODUCTION = - T.let( - :"Crop & Livestock Production", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_MANUFACTURING_PROCESSING = - T.let( - :"Food & Beverage Manufacturing & Processing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_DISTRIBUTION = - T.let( - :"Food Distribution", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANTS_FOOD_SERVICE = - T.let( - :"Restaurants & Food Service", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGRICULTURAL_INPUTS_EQUIPMENT = - T.let( - :"Agricultural Inputs & Equipment", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_REGENERATIVE_AGRICULTURE = - T.let( - :"Sustainable & Regenerative Agriculture", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SEAFOOD_AQUACULTURE = - T.let( - :"Seafood & Aquaculture", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MANAGEMENT_CONSULTING = - T.let( - :"Management Consulting", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MARKETING_ADVERTISING_AGENCIES = - T.let( - :"Marketing & Advertising Agencies", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DESIGN_BRANDING_CREATIVE_STUDIOS = - T.let( - :"Design, Branding & Creative Studios", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - IT_SERVICES_MANAGED_SERVICES = - T.let( - :"IT Services & Managed Services", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - STAFFING_RECRUITING_TALENT = - T.let( - :"Staffing, Recruiting & Talent", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ACCOUNTING_TAX_FIRMS = - T.let( - :"Accounting & Tax Firms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PUBLIC_RELATIONS_COMMUNICATIONS = - T.let( - :"Public Relations & Communications", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUSINESS_PROCESS_OUTSOURCING_BPO = - T.let( - :"Business Process Outsourcing (BPO)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROFESSIONAL_TRAINING_COACHING = - T.let( - :"Professional Training & Coaching", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SPECIALTY_CHEMICALS = - T.let( - :"Specialty Chemicals", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COMMODITY_PETROCHEMICALS = - T.let( - :"Commodity & Petrochemicals", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - POLYMERS_PLASTICS_RUBBER = - T.let( - :"Polymers, Plastics & Rubber", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COATINGS_ADHESIVES_SEALANTS = - T.let( - :"Coatings, Adhesives & Sealants", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - INDUSTRIAL_GASES = - T.let( - :"Industrial Gases", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ADVANCED_MATERIALS_COMPOSITES = - T.let( - :"Advanced Materials & Composites", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BATTERY_MATERIALS_ENERGY_STORAGE = - T.let( - :"Battery Materials & Energy Storage", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS = - T.let( - :"Electronic Materials & Semiconductor Chemicals", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - AGROCHEMICALS_FERTILIZERS = - T.let( - :"Agrochemicals & Fertilizers", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FREIGHT_TRANSPORTATION_TECH = - T.let( - :"Freight & Transportation Tech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LAST_MILE_DELIVERY = - T.let( - :"Last-Mile Delivery", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - WAREHOUSE_AUTOMATION = - T.let( - :"Warehouse Automation", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUPPLY_CHAIN_VISIBILITY_PLATFORMS = - T.let( - :"Supply Chain Visibility Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - LOGISTICS_MARKETPLACES = - T.let( - :"Logistics Marketplaces", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SHIPPING_FREIGHT_FORWARDING = - T.let( - :"Shipping & Freight Forwarding", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - COLD_CHAIN_LOGISTICS = - T.let( - :"Cold Chain Logistics", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - REVERSE_LOGISTICS_RETURNS = - T.let( - :"Reverse Logistics & Returns", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CROSS_BORDER_TRADE_TECH = - T.let( - :"Cross-Border Trade Tech", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS = - T.let( - :"Transportation Management Systems (TMS)", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOTELS_ACCOMMODATION = - T.let( - :"Hotels & Accommodation", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - VACATION_RENTALS_SHORT_TERM_STAYS = - T.let( - :"Vacation Rentals & Short-Term Stays", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - RESTAURANT_TECH_MANAGEMENT = - T.let( - :"Restaurant Tech & Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_BOOKING_PLATFORMS = - T.let( - :"Travel Booking Platforms", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TOURISM_EXPERIENCES_ACTIVITIES = - T.let( - :"Tourism Experiences & Activities", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CRUISE_LINES_MARINE_TOURISM = - T.let( - :"Cruise Lines & Marine Tourism", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOSPITALITY_MANAGEMENT_SYSTEMS = - T.let( - :"Hospitality Management Systems", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EVENT_VENUE_MANAGEMENT = - T.let( - :"Event & Venue Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CORPORATE_TRAVEL_MANAGEMENT = - T.let( - :"Corporate Travel Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - TRAVEL_INSURANCE_PROTECTION = - T.let( - :"Travel Insurance & Protection", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MANAGEMENT_SOFTWARE = - T.let( - :"Construction Management Software", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BIM_CAD_DESIGN_TOOLS = - T.let( - :"BIM/CAD & Design Tools", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_MARKETPLACES = - T.let( - :"Construction Marketplaces", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - EQUIPMENT_RENTAL_MANAGEMENT = - T.let( - :"Equipment Rental & Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BUILDING_MATERIALS_PROCUREMENT = - T.let( - :"Building Materials & Procurement", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_WORKFORCE_MANAGEMENT = - T.let( - :"Construction Workforce Management", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PROJECT_ESTIMATION_BIDDING = - T.let( - :"Project Estimation & Bidding", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - MODULAR_PREFAB_CONSTRUCTION = - T.let( - :"Modular & Prefab Construction", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CONSTRUCTION_SAFETY_COMPLIANCE = - T.let( - :"Construction Safety & Compliance", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SMART_BUILDING_TECHNOLOGY = - T.let( - :"Smart Building Technology", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - FOOD_BEVERAGE_CPG = - T.let( - :"Food & Beverage CPG", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HOME_PERSONAL_CARE_CPG = - T.let( - :"Home & Personal Care CPG", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_ANALYTICS_INSIGHTS = - T.let( - :"CPG Analytics & Insights", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - DIRECT_TO_CONSUMER_CPG_BRANDS = - T.let( - :"Direct-to-Consumer CPG Brands", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_SUPPLY_CHAIN_DISTRIBUTION = - T.let( - :"CPG Supply Chain & Distribution", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - PRIVATE_LABEL_MANUFACTURING = - T.let( - :"Private Label Manufacturing", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - CPG_RETAIL_INTELLIGENCE = - T.let( - :"CPG Retail Intelligence", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - SUSTAINABLE_CPG_PACKAGING = - T.let( - :"Sustainable CPG & Packaging", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - BEAUTY_COSMETICS_CPG = - T.let( - :"Beauty & Cosmetics CPG", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - HEALTH_WELLNESS_CPG = - T.let( - :"Health & Wellness CPG", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::Subindustry::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - - class Links < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, - ContextDev::Internal::AnyHash - ) - end - - # URL to the brand's blog or news page - sig { returns(T.nilable(String)) } - attr_accessor :blog - - # URL to the brand's careers or job opportunities page - sig { returns(T.nilable(String)) } - attr_accessor :careers - - # URL to the brand's contact or contact us page - sig { returns(T.nilable(String)) } - attr_accessor :contact - - # URL to the brand's pricing or plans page - sig { returns(T.nilable(String)) } - attr_accessor :pricing - - # URL to the brand's privacy policy page - sig { returns(T.nilable(String)) } - attr_accessor :privacy - - # URL to the brand's terms of service or terms and conditions page - sig { returns(T.nilable(String)) } - attr_accessor :terms - - # Important website links for the brand - sig do - params( - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # URL to the brand's blog or news page - blog: nil, - # URL to the brand's careers or job opportunities page - careers: nil, - # URL to the brand's contact or contact us page - contact: nil, - # URL to the brand's pricing or plans page - pricing: nil, - # URL to the brand's privacy policy page - privacy: nil, - # URL to the brand's terms of service or terms and conditions page - terms: nil - ) - end - - sig do - override.returns( - { - blog: T.nilable(String), - careers: T.nilable(String), - contact: T.nilable(String), - pricing: T.nilable(String), - privacy: T.nilable(String), - terms: T.nilable(String) - } - ) - end - def to_hash - end - end - - class Logo < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo, - ContextDev::Internal::AnyHash - ) - end - - # Array of colors in the logo - sig do - returns( - T.nilable( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color - ] - ) - ) - end - attr_reader :colors - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color::OrHash - ] - ).void - end - attr_writer :colors - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol - ) - ) - end - attr_reader :mode - - sig do - params( - mode: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::OrSymbol - ).void - end - attr_writer :mode - - # Resolution of the logo image - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution - ) - ) - end - attr_reader :resolution - - sig do - params( - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution::OrHash - ).void - end - attr_writer :resolution - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::OrSymbol - ).void - end - attr_writer :type - - # CDN hosted url of the logo (ready for display) - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color::OrHash - ], - mode: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::OrSymbol, - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution::OrHash, - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Array of colors in the logo - colors: nil, - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - mode: nil, - # Resolution of the logo image - resolution: nil, - # Type of the logo based on resolution (e.g., 'icon', 'logo') - type: nil, - # CDN hosted url of the logo (ready for display) - url: nil - ) - end - - sig do - override.returns( - { - colors: - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color - ], - mode: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol, - resolution: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - class Color < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color, - ContextDev::Internal::AnyHash - ) - end - - # Color in hexadecimal format - sig { returns(T.nilable(String)) } - attr_reader :hex - - sig { params(hex: String).void } - attr_writer :hex - - # Name of the color - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - sig { params(hex: String, name: String).returns(T.attached_class) } - def self.new( - # Color in hexadecimal format - hex: nil, - # Name of the color - name: nil - ) - end - - sig { override.returns({ hex: String, name: String }) } - def to_hash - end - end - - # Indicates when this logo is best used: 'light' = best for light mode, 'dark' = - # best for dark mode, 'has_opaque_background' = can be used for either as image - # has its own background - module Mode - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LIGHT = - T.let( - :light, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol - ) - DARK = - T.let( - :dark, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol - ) - HAS_OPAQUE_BACKGROUND = - T.let( - :has_opaque_background, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Resolution < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, - ContextDev::Internal::AnyHash - ) - end - - # Aspect ratio of the image (width/height) - sig { returns(T.nilable(Float)) } - attr_reader :aspect_ratio - - sig { params(aspect_ratio: Float).void } - attr_writer :aspect_ratio - - # Height of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :height - - sig { params(height: Integer).void } - attr_writer :height - - # Width of the image in pixels - sig { returns(T.nilable(Integer)) } - attr_reader :width - - sig { params(width: Integer).void } - attr_writer :width - - # Resolution of the logo image - sig do - params( - aspect_ratio: Float, - height: Integer, - width: Integer - ).returns(T.attached_class) - end - def self.new( - # Aspect ratio of the image (width/height) - aspect_ratio: nil, - # Height of the image in pixels - height: nil, - # Width of the image in pixels - width: nil - ) - end - - sig do - override.returns( - { aspect_ratio: Float, height: Integer, width: Integer } - ) - end - def to_hash - end - end - - # Type of the logo based on resolution (e.g., 'icon', 'logo') - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ICON = - T.let( - :icon, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol - ) - LOGO = - T.let( - :logo, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - # The primary language of the brand's website content. Detected from the HTML lang - # tag, page content analysis, or social media descriptions. - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - XHOSA = - T.let( - :xhosa, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YIDDISH = - T.let( - :yiddish, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - YORUBA = - T.let( - :yoruba, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - ZULU = - T.let( - :zulu, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Social < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social, - ContextDev::Internal::AnyHash - ) - end - - # Type of social media platform - sig do - returns( - T.nilable( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::OrSymbol - ).void - end - attr_writer :type - - # URL of the social media page - sig { returns(T.nilable(String)) } - attr_reader :url - - sig { params(url: String).void } - attr_writer :url - - sig do - params( - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::OrSymbol, - url: String - ).returns(T.attached_class) - end - def self.new( - # Type of social media platform - type: nil, - # URL of the social media page - url: nil - ) - end - - sig do - override.returns( - { - type: - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol, - url: String - } - ) - end - def to_hash - end - - # Type of social media platform - module Type - extend ContextDev::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - X = - T.let( - :x, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - FACEBOOK = - T.let( - :facebook, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - INSTAGRAM = - T.let( - :instagram, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - LINKEDIN = - T.let( - :linkedin, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - YOUTUBE = - T.let( - :youtube, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - PINTEREST = - T.let( - :pinterest, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - TIKTOK = - T.let( - :tiktok, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - DRIBBBLE = - T.let( - :dribbble, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - GITHUB = - T.let( - :github, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - BEHANCE = - T.let( - :behance, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - SNAPCHAT = - T.let( - :snapchat, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - WHATSAPP = - T.let( - :whatsapp, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - TELEGRAM = - T.let( - :telegram, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - LINE = - T.let( - :line, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - DISCORD = - T.let( - :discord, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - TWITCH = - T.let( - :twitch, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - VIMEO = - T.let( - :vimeo, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - IMDB = - T.let( - :imdb, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - TUMBLR = - T.let( - :tumblr, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - FLICKR = - T.let( - :flickr, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - GIPHY = - T.let( - :giphy, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - MEDIUM = - T.let( - :medium, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - SPOTIFY = - T.let( - :spotify, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - SOUNDCLOUD = - T.let( - :soundcloud, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - TRIPADVISOR = - T.let( - :tripadvisor, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - YELP = - T.let( - :yelp, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - PRODUCTHUNT = - T.let( - :producthunt, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - REDDIT = - T.let( - :reddit, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - CRUNCHBASE = - T.let( - :crunchbase, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - APPSTORE = - T.let( - :appstore, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - PLAYSTORE = - T.let( - :playstore, - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class Stock < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, - ContextDev::Internal::AnyHash - ) - end - - # Stock exchange name - sig { returns(T.nilable(String)) } - attr_reader :exchange - - sig { params(exchange: String).void } - attr_writer :exchange - - # Stock ticker symbol - sig { returns(T.nilable(String)) } - attr_reader :ticker - - sig { params(ticker: String).void } - attr_writer :ticker - - # Stock market information for this brand (will be null if not a publicly traded - # company) - sig do - params(exchange: String, ticker: String).returns(T.attached_class) - end - def self.new( - # Stock exchange name - exchange: nil, - # Stock ticker symbol - ticker: nil - ) - end - - sig { override.returns({ exchange: String, ticker: String }) } - def to_hash - end - end - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/brand_retrieve_params.rbi b/rbi/context_dev/models/brand_retrieve_params.rbi index 90c2e4bd..1115975a 100644 --- a/rbi/context_dev/models/brand_retrieve_params.rbi +++ b/rbi/context_dev/models/brand_retrieve_params.rbi @@ -11,85 +11,38 @@ module ContextDev T.any(ContextDev::BrandRetrieveParams, ContextDev::Internal::AnyHash) end - # Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). - # Cannot be used with name or ticker parameters. - sig { returns(String) } - attr_accessor :domain - - # Optional parameter to force the language of the retrieved brand data. + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. sig do returns( - T.nilable(ContextDev::BrandRetrieveParams::ForceLanguage::OrSymbol) + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ) ) end - attr_reader :force_language + attr_accessor :body sig do params( - force_language: - ContextDev::BrandRetrieveParams::ForceLanguage::OrSymbol - ).void - end - attr_writer :force_language - - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - sig { returns(T.nilable(Integer)) } - attr_reader :max_age_ms - - sig { params(max_age_ms: Integer).void } - attr_writer :max_age_ms - - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. Works with all three lookup methods. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :max_speed - - sig { params(max_speed: T::Boolean).void } - attr_writer :max_speed - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - domain: String, - force_language: - ContextDev::BrandRetrieveParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, + body: + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::OrHash + ), request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). - # Cannot be used with name or ticker parameters. - domain:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. Works with all three lookup methods. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. + body:, request_options: {} ) end @@ -97,12 +50,14 @@ module ContextDev sig do override.returns( { - domain: String, - force_language: - ContextDev::BrandRetrieveParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, + body: + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ), request_options: ContextDev::RequestOptions } ) @@ -110,625 +65,3746 @@ module ContextDev def to_hash end - # Optional parameter to force the language of the retrieved brand data. - module ForceLanguage - extend ContextDev::Internal::Type::Enum + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. + module Body + extend ContextDev::Internal::Type::Union - TaggedSymbol = + Variants = T.type_alias do - T.all(Symbol, ContextDev::BrandRetrieveParams::ForceLanguage) + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } - AFRIKAANS = - T.let( - :afrikaans, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ALBANIAN = - T.let( - :albanian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - AMHARIC = - T.let( - :amharic, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ARABIC = - T.let( - :arabic, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ARMENIAN = - T.let( - :armenian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ASSAMESE = - T.let( - :assamese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - AYMARA = - T.let( - :aymara, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - AZERI = - T.let( - :azeri, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BASQUE = - T.let( - :basque, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BELARUSIAN = - T.let( - :belarusian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BENGALI = - T.let( - :bengali, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BOSNIAN = - T.let( - :bosnian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BULGARIAN = - T.let( - :bulgarian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - BURMESE = - T.let( - :burmese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CANTONESE = - T.let( - :cantonese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CATALAN = - T.let( - :catalan, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CEBUANO = - T.let( - :cebuano, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CHINESE = - T.let( - :chinese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CORSICAN = - T.let( - :corsican, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CROATIAN = - T.let( - :croatian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - CZECH = - T.let( - :czech, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - DANISH = - T.let( - :danish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - DUTCH = - T.let( - :dutch, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ENGLISH = - T.let( - :english, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ESPERANTO = - T.let( - :esperanto, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ESTONIAN = - T.let( - :estonian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - FARSI = - T.let( - :farsi, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - FIJIAN = - T.let( - :fijian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - FINNISH = - T.let( - :finnish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - FRENCH = - T.let( - :french, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GALICIAN = - T.let( - :galician, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GEORGIAN = - T.let( - :georgian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GERMAN = - T.let( - :german, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GREEK = - T.let( - :greek, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GUARANI = - T.let( - :guarani, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - GUJARATI = - T.let( - :gujarati, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HAITIAN_CREOLE = - T.let( - :"haitian-creole", - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HAUSA = - T.let( - :hausa, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HAWAIIAN = - T.let( - :hawaiian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HEBREW = - T.let( - :hebrew, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HINDI = - T.let( - :hindi, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HMONG = - T.let( - :hmong, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - HUNGARIAN = - T.let( - :hungarian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ICELANDIC = - T.let( - :icelandic, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - IGBO = - T.let( - :igbo, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - INDONESIAN = - T.let( - :indonesian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - IRISH = - T.let( - :irish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ITALIAN = - T.let( - :italian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - JAPANESE = - T.let( - :japanese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - JAVANESE = - T.let( - :javanese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KANNADA = - T.let( - :kannada, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KAZAKH = - T.let( - :kazakh, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KHMER = - T.let( - :khmer, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KINYARWANDA = - T.let( - :kinyarwanda, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KOREAN = - T.let( - :korean, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KURDISH = - T.let( - :kurdish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - KYRGYZ = - T.let( - :kyrgyz, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LAO = - T.let( - :lao, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LATIN = - T.let( - :latin, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LATVIAN = - T.let( - :latvian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LINGALA = - T.let( - :lingala, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LITHUANIAN = - T.let( - :lithuanian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - LUXEMBOURGISH = - T.let( - :luxembourgish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MACEDONIAN = - T.let( - :macedonian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MALAGASY = - T.let( - :malagasy, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MALAY = - T.let( - :malay, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MALAYALAM = - T.let( - :malayalam, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MALTESE = - T.let( - :maltese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MAORI = - T.let( - :maori, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MARATHI = - T.let( - :marathi, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - MONGOLIAN = - T.let( - :mongolian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - NEPALI = - T.let( - :nepali, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - NORWEGIAN = - T.let( - :norwegian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ODIA = - T.let( - :odia, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - OROMO = - T.let( - :oromo, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - PASHTO = - T.let( - :pashto, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - PIDGIN = - T.let( - :pidgin, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - POLISH = - T.let( - :polish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - PORTUGUESE = - T.let( - :portuguese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - PUNJABI = - T.let( - :punjabi, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - QUECHUA = - T.let( - :quechua, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - ROMANIAN = - T.let( - :romanian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - RUSSIAN = - T.let( - :russian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SAMOAN = - T.let( - :samoan, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SCOTTISH_GAELIC = - T.let( - :"scottish-gaelic", - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SERBIAN = - T.let( - :serbian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SESOTHO = - T.let( - :sesotho, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SHONA = - T.let( - :shona, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SINDHI = - T.let( - :sindhi, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SINHALA = - T.let( - :sinhala, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SLOVAK = - T.let( - :slovak, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SLOVENE = - T.let( - :slovene, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SOMALI = - T.let( - :somali, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SPANISH = - T.let( - :spanish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SUNDANESE = - T.let( - :sundanese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SWAHILI = - T.let( - :swahili, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - SWEDISH = - T.let( - :swedish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TAGALOG = - T.let( - :tagalog, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TAJIK = - T.let( - :tajik, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TAMIL = - T.let( - :tamil, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TATAR = - T.let( - :tatar, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TELUGU = - T.let( - :telugu, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - THAI = - T.let( - :thai, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TIBETAN = - T.let( - :tibetan, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TIGRINYA = - T.let( - :tigrinya, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TONGAN = - T.let( - :tongan, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TSWANA = - T.let( - :tswana, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TURKISH = - T.let( - :turkish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - TURKMEN = - T.let( - :turkmen, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - UKRAINIAN = - T.let( - :ukrainian, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - URDU = - T.let( - :urdu, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - UYGHUR = - T.let( - :uyghur, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - UZBEK = - T.let( - :uzbek, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - VIETNAMESE = - T.let( - :vietnamese, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - WELSH = - T.let( - :welsh, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ) - WOLOF = - T.let( - :wolof, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol + class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, + ContextDev::Internal::AnyHash + ) + end + + # Domain name to retrieve brand data for (e.g., 'stripe.com'). + sig { returns(String) } + attr_accessor :domain + + sig do + returns( + T.nilable( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol + ) + ) + end + attr_reader :force_language + + sig do + params( + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol + ).void + end + attr_writer :force_language + + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + sig { returns(T.nilable(Integer)) } + attr_reader :max_age_ms + + sig { params(max_age_ms: Integer).void } + attr_writer :max_age_ms + + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :max_speed + + sig { params(max_speed: T::Boolean).void } + attr_writer :max_speed + + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + sig { returns(T.nilable(Integer)) } + attr_reader :timeout_ms + + sig { params(timeout_ms: Integer).void } + attr_writer :timeout_ms + + # Retrieve brand data by domain. Cannot be combined with name, email, or ticker. + sig do + params( + domain: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + ).returns(T.attached_class) + end + def self.new( + # Domain name to retrieve brand data for (e.g., 'stripe.com'). + domain:, + force_language: nil, + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + max_age_ms: nil, + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + max_speed: nil, + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + timeout_ms: nil ) - XHOSA = - T.let( - :xhosa, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol + end + + sig do + override.returns( + { + domain: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + } + ) + end + def to_hash + end + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AFRIKAANS = + T.let( + :afrikaans, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ALBANIAN = + T.let( + :albanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + AMHARIC = + T.let( + :amharic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ARABIC = + T.let( + :arabic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ARMENIAN = + T.let( + :armenian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ASSAMESE = + T.let( + :assamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + AYMARA = + T.let( + :aymara, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + AZERI = + T.let( + :azeri, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BASQUE = + T.let( + :basque, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BELARUSIAN = + T.let( + :belarusian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BENGALI = + T.let( + :bengali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BOSNIAN = + T.let( + :bosnian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BULGARIAN = + T.let( + :bulgarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + BURMESE = + T.let( + :burmese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CANTONESE = + T.let( + :cantonese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CATALAN = + T.let( + :catalan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CEBUANO = + T.let( + :cebuano, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CHINESE = + T.let( + :chinese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CORSICAN = + T.let( + :corsican, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CROATIAN = + T.let( + :croatian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + CZECH = + T.let( + :czech, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + DANISH = + T.let( + :danish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + DUTCH = + T.let( + :dutch, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ENGLISH = + T.let( + :english, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ESPERANTO = + T.let( + :esperanto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ESTONIAN = + T.let( + :estonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + FARSI = + T.let( + :farsi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + FIJIAN = + T.let( + :fijian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + FINNISH = + T.let( + :finnish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + FRENCH = + T.let( + :french, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GALICIAN = + T.let( + :galician, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GEORGIAN = + T.let( + :georgian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GERMAN = + T.let( + :german, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GREEK = + T.let( + :greek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GUARANI = + T.let( + :guarani, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + GUJARATI = + T.let( + :gujarati, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HAITIAN_CREOLE = + T.let( + :"haitian-creole", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HAUSA = + T.let( + :hausa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HAWAIIAN = + T.let( + :hawaiian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HEBREW = + T.let( + :hebrew, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HINDI = + T.let( + :hindi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HMONG = + T.let( + :hmong, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + HUNGARIAN = + T.let( + :hungarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ICELANDIC = + T.let( + :icelandic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + IGBO = + T.let( + :igbo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + INDONESIAN = + T.let( + :indonesian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + IRISH = + T.let( + :irish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ITALIAN = + T.let( + :italian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + JAPANESE = + T.let( + :japanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + JAVANESE = + T.let( + :javanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KANNADA = + T.let( + :kannada, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KAZAKH = + T.let( + :kazakh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KHMER = + T.let( + :khmer, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KINYARWANDA = + T.let( + :kinyarwanda, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KOREAN = + T.let( + :korean, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KURDISH = + T.let( + :kurdish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + KYRGYZ = + T.let( + :kyrgyz, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LAO = + T.let( + :lao, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LATIN = + T.let( + :latin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LATVIAN = + T.let( + :latvian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LINGALA = + T.let( + :lingala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LITHUANIAN = + T.let( + :lithuanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + LUXEMBOURGISH = + T.let( + :luxembourgish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MACEDONIAN = + T.let( + :macedonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MALAGASY = + T.let( + :malagasy, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MALAY = + T.let( + :malay, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MALAYALAM = + T.let( + :malayalam, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MALTESE = + T.let( + :maltese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MAORI = + T.let( + :maori, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MARATHI = + T.let( + :marathi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + MONGOLIAN = + T.let( + :mongolian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + NEPALI = + T.let( + :nepali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + NORWEGIAN = + T.let( + :norwegian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ODIA = + T.let( + :odia, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + OROMO = + T.let( + :oromo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + PASHTO = + T.let( + :pashto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + PIDGIN = + T.let( + :pidgin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + POLISH = + T.let( + :polish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + PORTUGUESE = + T.let( + :portuguese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + PUNJABI = + T.let( + :punjabi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + QUECHUA = + T.let( + :quechua, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ROMANIAN = + T.let( + :romanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + RUSSIAN = + T.let( + :russian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SAMOAN = + T.let( + :samoan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SCOTTISH_GAELIC = + T.let( + :"scottish-gaelic", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SERBIAN = + T.let( + :serbian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SESOTHO = + T.let( + :sesotho, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SHONA = + T.let( + :shona, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SINDHI = + T.let( + :sindhi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SINHALA = + T.let( + :sinhala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SLOVAK = + T.let( + :slovak, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SLOVENE = + T.let( + :slovene, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SOMALI = + T.let( + :somali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SPANISH = + T.let( + :spanish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SUNDANESE = + T.let( + :sundanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SWAHILI = + T.let( + :swahili, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + SWEDISH = + T.let( + :swedish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TAGALOG = + T.let( + :tagalog, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TAJIK = + T.let( + :tajik, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TAMIL = + T.let( + :tamil, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TATAR = + T.let( + :tatar, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TELUGU = + T.let( + :telugu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + THAI = + T.let( + :thai, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TIBETAN = + T.let( + :tibetan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TIGRINYA = + T.let( + :tigrinya, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TONGAN = + T.let( + :tongan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TSWANA = + T.let( + :tswana, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TURKISH = + T.let( + :turkish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + TURKMEN = + T.let( + :turkmen, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + UKRAINIAN = + T.let( + :ukrainian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + URDU = + T.let( + :urdu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + UYGHUR = + T.let( + :uyghur, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + UZBEK = + T.let( + :uzbek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + VIETNAMESE = + T.let( + :vietnamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + WELSH = + T.let( + :welsh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + WOLOF = + T.let( + :wolof, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + XHOSA = + T.let( + :xhosa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + YIDDISH = + T.let( + :yiddish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + YORUBA = + T.let( + :yoruba, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + ZULU = + T.let( + :zulu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, + ContextDev::Internal::AnyHash + ) + end + + # Company name to retrieve brand data for (e.g., 'Apple Inc'). + sig { returns(String) } + attr_accessor :name + + # Optional country code hint (GL parameter) to specify the country when looking up + # by company name. + sig { returns(T.nilable(String)) } + attr_reader :country_gl + + sig { params(country_gl: String).void } + attr_writer :country_gl + + sig do + returns( + T.nilable( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol + ) + ) + end + attr_reader :force_language + + sig do + params( + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol + ).void + end + attr_writer :force_language + + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + sig { returns(T.nilable(Integer)) } + attr_reader :max_age_ms + + sig { params(max_age_ms: Integer).void } + attr_writer :max_age_ms + + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :max_speed + + sig { params(max_speed: T::Boolean).void } + attr_writer :max_speed + + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + sig { returns(T.nilable(Integer)) } + attr_reader :timeout_ms + + sig { params(timeout_ms: Integer).void } + attr_writer :timeout_ms + + # Retrieve brand data by company name. Cannot be combined with domain, email, or + # ticker. + sig do + params( + name: String, + country_gl: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + ).returns(T.attached_class) + end + def self.new( + # Company name to retrieve brand data for (e.g., 'Apple Inc'). + name:, + # Optional country code hint (GL parameter) to specify the country when looking up + # by company name. + country_gl: nil, + force_language: nil, + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + max_age_ms: nil, + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + max_speed: nil, + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + timeout_ms: nil ) - YIDDISH = - T.let( - :yiddish, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol + end + + sig do + override.returns( + { + name: String, + country_gl: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + } + ) + end + def to_hash + end + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AFRIKAANS = + T.let( + :afrikaans, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ALBANIAN = + T.let( + :albanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + AMHARIC = + T.let( + :amharic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ARABIC = + T.let( + :arabic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ARMENIAN = + T.let( + :armenian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ASSAMESE = + T.let( + :assamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + AYMARA = + T.let( + :aymara, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + AZERI = + T.let( + :azeri, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BASQUE = + T.let( + :basque, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BELARUSIAN = + T.let( + :belarusian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BENGALI = + T.let( + :bengali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BOSNIAN = + T.let( + :bosnian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BULGARIAN = + T.let( + :bulgarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + BURMESE = + T.let( + :burmese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CANTONESE = + T.let( + :cantonese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CATALAN = + T.let( + :catalan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CEBUANO = + T.let( + :cebuano, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CHINESE = + T.let( + :chinese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CORSICAN = + T.let( + :corsican, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CROATIAN = + T.let( + :croatian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + CZECH = + T.let( + :czech, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + DANISH = + T.let( + :danish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + DUTCH = + T.let( + :dutch, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ENGLISH = + T.let( + :english, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ESPERANTO = + T.let( + :esperanto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ESTONIAN = + T.let( + :estonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + FARSI = + T.let( + :farsi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + FIJIAN = + T.let( + :fijian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + FINNISH = + T.let( + :finnish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + FRENCH = + T.let( + :french, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GALICIAN = + T.let( + :galician, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GEORGIAN = + T.let( + :georgian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GERMAN = + T.let( + :german, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GREEK = + T.let( + :greek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GUARANI = + T.let( + :guarani, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + GUJARATI = + T.let( + :gujarati, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HAITIAN_CREOLE = + T.let( + :"haitian-creole", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HAUSA = + T.let( + :hausa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HAWAIIAN = + T.let( + :hawaiian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HEBREW = + T.let( + :hebrew, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HINDI = + T.let( + :hindi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HMONG = + T.let( + :hmong, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + HUNGARIAN = + T.let( + :hungarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ICELANDIC = + T.let( + :icelandic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + IGBO = + T.let( + :igbo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + INDONESIAN = + T.let( + :indonesian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + IRISH = + T.let( + :irish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ITALIAN = + T.let( + :italian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + JAPANESE = + T.let( + :japanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + JAVANESE = + T.let( + :javanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KANNADA = + T.let( + :kannada, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KAZAKH = + T.let( + :kazakh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KHMER = + T.let( + :khmer, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KINYARWANDA = + T.let( + :kinyarwanda, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KOREAN = + T.let( + :korean, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KURDISH = + T.let( + :kurdish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + KYRGYZ = + T.let( + :kyrgyz, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LAO = + T.let( + :lao, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LATIN = + T.let( + :latin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LATVIAN = + T.let( + :latvian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LINGALA = + T.let( + :lingala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LITHUANIAN = + T.let( + :lithuanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + LUXEMBOURGISH = + T.let( + :luxembourgish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MACEDONIAN = + T.let( + :macedonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MALAGASY = + T.let( + :malagasy, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MALAY = + T.let( + :malay, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MALAYALAM = + T.let( + :malayalam, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MALTESE = + T.let( + :maltese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MAORI = + T.let( + :maori, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MARATHI = + T.let( + :marathi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + MONGOLIAN = + T.let( + :mongolian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + NEPALI = + T.let( + :nepali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + NORWEGIAN = + T.let( + :norwegian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ODIA = + T.let( + :odia, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + OROMO = + T.let( + :oromo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + PASHTO = + T.let( + :pashto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + PIDGIN = + T.let( + :pidgin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + POLISH = + T.let( + :polish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + PORTUGUESE = + T.let( + :portuguese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + PUNJABI = + T.let( + :punjabi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + QUECHUA = + T.let( + :quechua, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ROMANIAN = + T.let( + :romanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + RUSSIAN = + T.let( + :russian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SAMOAN = + T.let( + :samoan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SCOTTISH_GAELIC = + T.let( + :"scottish-gaelic", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SERBIAN = + T.let( + :serbian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SESOTHO = + T.let( + :sesotho, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SHONA = + T.let( + :shona, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SINDHI = + T.let( + :sindhi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SINHALA = + T.let( + :sinhala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SLOVAK = + T.let( + :slovak, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SLOVENE = + T.let( + :slovene, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SOMALI = + T.let( + :somali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SPANISH = + T.let( + :spanish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SUNDANESE = + T.let( + :sundanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SWAHILI = + T.let( + :swahili, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + SWEDISH = + T.let( + :swedish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TAGALOG = + T.let( + :tagalog, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TAJIK = + T.let( + :tajik, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TAMIL = + T.let( + :tamil, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TATAR = + T.let( + :tatar, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TELUGU = + T.let( + :telugu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + THAI = + T.let( + :thai, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TIBETAN = + T.let( + :tibetan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TIGRINYA = + T.let( + :tigrinya, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TONGAN = + T.let( + :tongan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TSWANA = + T.let( + :tswana, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TURKISH = + T.let( + :turkish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + TURKMEN = + T.let( + :turkmen, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + UKRAINIAN = + T.let( + :ukrainian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + URDU = + T.let( + :urdu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + UYGHUR = + T.let( + :uyghur, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + UZBEK = + T.let( + :uzbek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + VIETNAMESE = + T.let( + :vietnamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + WELSH = + T.let( + :welsh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + WOLOF = + T.let( + :wolof, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + XHOSA = + T.let( + :xhosa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + YIDDISH = + T.let( + :yiddish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + YORUBA = + T.let( + :yoruba, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + ZULU = + T.let( + :zulu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, + ContextDev::Internal::AnyHash + ) + end + + # Email address to retrieve brand data for (e.g., 'jane@stripe.com'). + sig { returns(String) } + attr_accessor :email + + sig do + returns( + T.nilable( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol + ) + ) + end + attr_reader :force_language + + sig do + params( + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol + ).void + end + attr_writer :force_language + + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + sig { returns(T.nilable(Integer)) } + attr_reader :max_age_ms + + sig { params(max_age_ms: Integer).void } + attr_writer :max_age_ms + + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :max_speed + + sig { params(max_speed: T::Boolean).void } + attr_writer :max_speed + + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + sig { returns(T.nilable(Integer)) } + attr_reader :timeout_ms + + sig { params(timeout_ms: Integer).void } + attr_writer :timeout_ms + + # Retrieve brand data by email address. The domain is extracted from the email. + # Free and disposable email providers are rejected with 422. Cannot be combined + # with domain, name, or ticker. + sig do + params( + email: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + ).returns(T.attached_class) + end + def self.new( + # Email address to retrieve brand data for (e.g., 'jane@stripe.com'). + email:, + force_language: nil, + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + max_age_ms: nil, + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + max_speed: nil, + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + timeout_ms: nil ) - YORUBA = - T.let( - :yoruba, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol + end + + sig do + override.returns( + { + email: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + timeout_ms: Integer + } + ) + end + def to_hash + end + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AFRIKAANS = + T.let( + :afrikaans, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ALBANIAN = + T.let( + :albanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + AMHARIC = + T.let( + :amharic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ARABIC = + T.let( + :arabic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ARMENIAN = + T.let( + :armenian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ASSAMESE = + T.let( + :assamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + AYMARA = + T.let( + :aymara, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + AZERI = + T.let( + :azeri, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BASQUE = + T.let( + :basque, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BELARUSIAN = + T.let( + :belarusian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BENGALI = + T.let( + :bengali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BOSNIAN = + T.let( + :bosnian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BULGARIAN = + T.let( + :bulgarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + BURMESE = + T.let( + :burmese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CANTONESE = + T.let( + :cantonese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CATALAN = + T.let( + :catalan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CEBUANO = + T.let( + :cebuano, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CHINESE = + T.let( + :chinese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CORSICAN = + T.let( + :corsican, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CROATIAN = + T.let( + :croatian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + CZECH = + T.let( + :czech, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + DANISH = + T.let( + :danish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + DUTCH = + T.let( + :dutch, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ENGLISH = + T.let( + :english, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ESPERANTO = + T.let( + :esperanto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ESTONIAN = + T.let( + :estonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + FARSI = + T.let( + :farsi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + FIJIAN = + T.let( + :fijian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + FINNISH = + T.let( + :finnish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + FRENCH = + T.let( + :french, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GALICIAN = + T.let( + :galician, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GEORGIAN = + T.let( + :georgian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GERMAN = + T.let( + :german, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GREEK = + T.let( + :greek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GUARANI = + T.let( + :guarani, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + GUJARATI = + T.let( + :gujarati, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HAITIAN_CREOLE = + T.let( + :"haitian-creole", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HAUSA = + T.let( + :hausa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HAWAIIAN = + T.let( + :hawaiian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HEBREW = + T.let( + :hebrew, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HINDI = + T.let( + :hindi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HMONG = + T.let( + :hmong, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + HUNGARIAN = + T.let( + :hungarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ICELANDIC = + T.let( + :icelandic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + IGBO = + T.let( + :igbo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + INDONESIAN = + T.let( + :indonesian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + IRISH = + T.let( + :irish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ITALIAN = + T.let( + :italian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + JAPANESE = + T.let( + :japanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + JAVANESE = + T.let( + :javanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KANNADA = + T.let( + :kannada, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KAZAKH = + T.let( + :kazakh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KHMER = + T.let( + :khmer, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KINYARWANDA = + T.let( + :kinyarwanda, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KOREAN = + T.let( + :korean, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KURDISH = + T.let( + :kurdish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + KYRGYZ = + T.let( + :kyrgyz, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LAO = + T.let( + :lao, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LATIN = + T.let( + :latin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LATVIAN = + T.let( + :latvian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LINGALA = + T.let( + :lingala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LITHUANIAN = + T.let( + :lithuanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + LUXEMBOURGISH = + T.let( + :luxembourgish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MACEDONIAN = + T.let( + :macedonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MALAGASY = + T.let( + :malagasy, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MALAY = + T.let( + :malay, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MALAYALAM = + T.let( + :malayalam, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MALTESE = + T.let( + :maltese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MAORI = + T.let( + :maori, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MARATHI = + T.let( + :marathi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + MONGOLIAN = + T.let( + :mongolian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + NEPALI = + T.let( + :nepali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + NORWEGIAN = + T.let( + :norwegian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ODIA = + T.let( + :odia, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + OROMO = + T.let( + :oromo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + PASHTO = + T.let( + :pashto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + PIDGIN = + T.let( + :pidgin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + POLISH = + T.let( + :polish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + PORTUGUESE = + T.let( + :portuguese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + PUNJABI = + T.let( + :punjabi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + QUECHUA = + T.let( + :quechua, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ROMANIAN = + T.let( + :romanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + RUSSIAN = + T.let( + :russian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SAMOAN = + T.let( + :samoan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SCOTTISH_GAELIC = + T.let( + :"scottish-gaelic", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SERBIAN = + T.let( + :serbian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SESOTHO = + T.let( + :sesotho, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SHONA = + T.let( + :shona, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SINDHI = + T.let( + :sindhi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SINHALA = + T.let( + :sinhala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SLOVAK = + T.let( + :slovak, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SLOVENE = + T.let( + :slovene, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SOMALI = + T.let( + :somali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SPANISH = + T.let( + :spanish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SUNDANESE = + T.let( + :sundanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SWAHILI = + T.let( + :swahili, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + SWEDISH = + T.let( + :swedish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TAGALOG = + T.let( + :tagalog, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TAJIK = + T.let( + :tajik, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TAMIL = + T.let( + :tamil, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TATAR = + T.let( + :tatar, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TELUGU = + T.let( + :telugu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + THAI = + T.let( + :thai, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TIBETAN = + T.let( + :tibetan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TIGRINYA = + T.let( + :tigrinya, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TONGAN = + T.let( + :tongan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TSWANA = + T.let( + :tswana, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TURKISH = + T.let( + :turkish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + TURKMEN = + T.let( + :turkmen, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + UKRAINIAN = + T.let( + :ukrainian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + URDU = + T.let( + :urdu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + UYGHUR = + T.let( + :uyghur, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + UZBEK = + T.let( + :uzbek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + VIETNAMESE = + T.let( + :vietnamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + WELSH = + T.let( + :welsh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + WOLOF = + T.let( + :wolof, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + XHOSA = + T.let( + :xhosa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + YIDDISH = + T.let( + :yiddish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + YORUBA = + T.let( + :yoruba, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + ZULU = + T.let( + :zulu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, + ContextDev::Internal::AnyHash + ) + end + + # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). + sig { returns(String) } + attr_accessor :ticker + + sig do + returns( + T.nilable( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol + ) + ) + end + attr_reader :force_language + + sig do + params( + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol + ).void + end + attr_writer :force_language + + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + sig { returns(T.nilable(Integer)) } + attr_reader :max_age_ms + + sig { params(max_age_ms: Integer).void } + attr_writer :max_age_ms + + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :max_speed + + sig { params(max_speed: T::Boolean).void } + attr_writer :max_speed + + # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. + sig { returns(T.nilable(String)) } + attr_reader :ticker_exchange + + sig { params(ticker_exchange: String).void } + attr_writer :ticker_exchange + + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + sig { returns(T.nilable(Integer)) } + attr_reader :timeout_ms + + sig { params(timeout_ms: Integer).void } + attr_writer :timeout_ms + + # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or + # email. + sig do + params( + ticker: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + ticker_exchange: String, + timeout_ms: Integer + ).returns(T.attached_class) + end + def self.new( + # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). + ticker:, + force_language: nil, + # Maximum age in milliseconds for cached brand data before the API performs a hard + # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + # year. + max_age_ms: nil, + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + max_speed: nil, + # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. + ticker_exchange: nil, + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + timeout_ms: nil ) - ZULU = - T.let( - :zulu, - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol + end + + sig do + override.returns( + { + ticker: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol, + max_age_ms: Integer, + max_speed: T::Boolean, + ticker_exchange: String, + timeout_ms: Integer + } + ) + end + def to_hash + end + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AFRIKAANS = + T.let( + :afrikaans, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ALBANIAN = + T.let( + :albanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + AMHARIC = + T.let( + :amharic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ARABIC = + T.let( + :arabic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ARMENIAN = + T.let( + :armenian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ASSAMESE = + T.let( + :assamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + AYMARA = + T.let( + :aymara, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + AZERI = + T.let( + :azeri, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BASQUE = + T.let( + :basque, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BELARUSIAN = + T.let( + :belarusian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BENGALI = + T.let( + :bengali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BOSNIAN = + T.let( + :bosnian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BULGARIAN = + T.let( + :bulgarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + BURMESE = + T.let( + :burmese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CANTONESE = + T.let( + :cantonese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CATALAN = + T.let( + :catalan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CEBUANO = + T.let( + :cebuano, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CHINESE = + T.let( + :chinese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CORSICAN = + T.let( + :corsican, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CROATIAN = + T.let( + :croatian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + CZECH = + T.let( + :czech, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + DANISH = + T.let( + :danish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + DUTCH = + T.let( + :dutch, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ENGLISH = + T.let( + :english, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ESPERANTO = + T.let( + :esperanto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ESTONIAN = + T.let( + :estonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + FARSI = + T.let( + :farsi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + FIJIAN = + T.let( + :fijian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + FINNISH = + T.let( + :finnish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + FRENCH = + T.let( + :french, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GALICIAN = + T.let( + :galician, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GEORGIAN = + T.let( + :georgian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GERMAN = + T.let( + :german, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GREEK = + T.let( + :greek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GUARANI = + T.let( + :guarani, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + GUJARATI = + T.let( + :gujarati, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HAITIAN_CREOLE = + T.let( + :"haitian-creole", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HAUSA = + T.let( + :hausa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HAWAIIAN = + T.let( + :hawaiian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HEBREW = + T.let( + :hebrew, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HINDI = + T.let( + :hindi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HMONG = + T.let( + :hmong, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + HUNGARIAN = + T.let( + :hungarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ICELANDIC = + T.let( + :icelandic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + IGBO = + T.let( + :igbo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + INDONESIAN = + T.let( + :indonesian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + IRISH = + T.let( + :irish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ITALIAN = + T.let( + :italian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + JAPANESE = + T.let( + :japanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + JAVANESE = + T.let( + :javanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KANNADA = + T.let( + :kannada, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KAZAKH = + T.let( + :kazakh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KHMER = + T.let( + :khmer, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KINYARWANDA = + T.let( + :kinyarwanda, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KOREAN = + T.let( + :korean, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KURDISH = + T.let( + :kurdish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + KYRGYZ = + T.let( + :kyrgyz, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LAO = + T.let( + :lao, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LATIN = + T.let( + :latin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LATVIAN = + T.let( + :latvian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LINGALA = + T.let( + :lingala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LITHUANIAN = + T.let( + :lithuanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + LUXEMBOURGISH = + T.let( + :luxembourgish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MACEDONIAN = + T.let( + :macedonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MALAGASY = + T.let( + :malagasy, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MALAY = + T.let( + :malay, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MALAYALAM = + T.let( + :malayalam, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MALTESE = + T.let( + :maltese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MAORI = + T.let( + :maori, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MARATHI = + T.let( + :marathi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + MONGOLIAN = + T.let( + :mongolian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + NEPALI = + T.let( + :nepali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + NORWEGIAN = + T.let( + :norwegian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ODIA = + T.let( + :odia, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + OROMO = + T.let( + :oromo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + PASHTO = + T.let( + :pashto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + PIDGIN = + T.let( + :pidgin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + POLISH = + T.let( + :polish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + PORTUGUESE = + T.let( + :portuguese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + PUNJABI = + T.let( + :punjabi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + QUECHUA = + T.let( + :quechua, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ROMANIAN = + T.let( + :romanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + RUSSIAN = + T.let( + :russian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SAMOAN = + T.let( + :samoan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SCOTTISH_GAELIC = + T.let( + :"scottish-gaelic", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SERBIAN = + T.let( + :serbian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SESOTHO = + T.let( + :sesotho, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SHONA = + T.let( + :shona, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SINDHI = + T.let( + :sindhi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SINHALA = + T.let( + :sinhala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SLOVAK = + T.let( + :slovak, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SLOVENE = + T.let( + :slovene, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SOMALI = + T.let( + :somali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SPANISH = + T.let( + :spanish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SUNDANESE = + T.let( + :sundanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SWAHILI = + T.let( + :swahili, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + SWEDISH = + T.let( + :swedish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TAGALOG = + T.let( + :tagalog, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TAJIK = + T.let( + :tajik, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TAMIL = + T.let( + :tamil, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TATAR = + T.let( + :tatar, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TELUGU = + T.let( + :telugu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + THAI = + T.let( + :thai, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TIBETAN = + T.let( + :tibetan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TIGRINYA = + T.let( + :tigrinya, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TONGAN = + T.let( + :tongan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TSWANA = + T.let( + :tswana, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TURKISH = + T.let( + :turkish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + TURKMEN = + T.let( + :turkmen, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + UKRAINIAN = + T.let( + :ukrainian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + URDU = + T.let( + :urdu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + UYGHUR = + T.let( + :uyghur, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + UZBEK = + T.let( + :uzbek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + VIETNAMESE = + T.let( + :vietnamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + WELSH = + T.let( + :welsh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + WOLOF = + T.let( + :wolof, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + XHOSA = + T.let( + :xhosa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + YIDDISH = + T.let( + :yiddish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + YORUBA = + T.let( + :yoruba, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + ZULU = + T.let( + :zulu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest, + ContextDev::Internal::AnyHash + ) + end + + # Transaction information to identify the brand. + sig { returns(String) } + attr_accessor :transaction_info + + # Optional city name to prioritize when searching for the brand. + sig { returns(T.nilable(String)) } + attr_reader :city + + sig { params(city: String).void } + attr_writer :city + + # Optional country code hint (GL parameter) to specify the country when + # identifying a transaction. + sig { returns(T.nilable(String)) } + attr_reader :country_gl + + sig { params(country_gl: String).void } + attr_writer :country_gl + + sig do + returns( + T.nilable( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol + ) + ) + end + attr_reader :force_language + + sig do + params( + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol + ).void + end + attr_writer :force_language + + # When set to true, the API performs additional verification to ensure the + # identified brand matches the transaction with high confidence. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :high_confidence_only + + sig { params(high_confidence_only: T::Boolean).void } + attr_writer :high_confidence_only + + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :max_speed + + sig { params(max_speed: T::Boolean).void } + attr_writer :max_speed + + # Optional Merchant Category Code (MCC) to help identify the business category or + # industry. + sig { returns(T.nilable(Integer)) } + attr_reader :mcc + + sig { params(mcc: Integer).void } + attr_writer :mcc + + # Optional phone number from the transaction to help verify brand match. + sig { returns(T.nilable(Float)) } + attr_reader :phone + + sig { params(phone: Float).void } + attr_writer :phone + + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + sig { returns(T.nilable(Integer)) } + attr_reader :timeout_ms + + sig { params(timeout_ms: Integer).void } + attr_writer :timeout_ms + + # Identify brand data from a transaction descriptor. Cannot be combined with + # domain, name, email, or ticker. + sig do + params( + transaction_info: String, + city: String, + country_gl: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol, + high_confidence_only: T::Boolean, + max_speed: T::Boolean, + mcc: Integer, + phone: Float, + timeout_ms: Integer + ).returns(T.attached_class) + end + def self.new( + # Transaction information to identify the brand. + transaction_info:, + # Optional city name to prioritize when searching for the brand. + city: nil, + # Optional country code hint (GL parameter) to specify the country when + # identifying a transaction. + country_gl: nil, + force_language: nil, + # When set to true, the API performs additional verification to ensure the + # identified brand matches the transaction with high confidence. + high_confidence_only: nil, + # Optional parameter to optimize the API call for maximum speed. When set to true, + # the API will skip time-consuming operations for faster response at the cost of + # less comprehensive data. + max_speed: nil, + # Optional Merchant Category Code (MCC) to help identify the business category or + # industry. + mcc: nil, + # Optional phone number from the transaction to help verify brand match. + phone: nil, + # Optional timeout in milliseconds for the request. If the request takes longer + # than this value, it will be aborted with a 408 status code. Maximum allowed + # value is 300000ms (5 minutes). + timeout_ms: nil ) + end + + sig do + override.returns( + { + transaction_info: String, + city: String, + country_gl: String, + force_language: + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol, + high_confidence_only: T::Boolean, + max_speed: T::Boolean, + mcc: Integer, + phone: Float, + timeout_ms: Integer + } + ) + end + def to_hash + end + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AFRIKAANS = + T.let( + :afrikaans, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ALBANIAN = + T.let( + :albanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + AMHARIC = + T.let( + :amharic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ARABIC = + T.let( + :arabic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ARMENIAN = + T.let( + :armenian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ASSAMESE = + T.let( + :assamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + AYMARA = + T.let( + :aymara, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + AZERI = + T.let( + :azeri, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BASQUE = + T.let( + :basque, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BELARUSIAN = + T.let( + :belarusian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BENGALI = + T.let( + :bengali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BOSNIAN = + T.let( + :bosnian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BULGARIAN = + T.let( + :bulgarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + BURMESE = + T.let( + :burmese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CANTONESE = + T.let( + :cantonese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CATALAN = + T.let( + :catalan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CEBUANO = + T.let( + :cebuano, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CHINESE = + T.let( + :chinese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CORSICAN = + T.let( + :corsican, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CROATIAN = + T.let( + :croatian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + CZECH = + T.let( + :czech, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + DANISH = + T.let( + :danish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + DUTCH = + T.let( + :dutch, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ENGLISH = + T.let( + :english, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ESPERANTO = + T.let( + :esperanto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ESTONIAN = + T.let( + :estonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + FARSI = + T.let( + :farsi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + FIJIAN = + T.let( + :fijian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + FINNISH = + T.let( + :finnish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + FRENCH = + T.let( + :french, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GALICIAN = + T.let( + :galician, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GEORGIAN = + T.let( + :georgian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GERMAN = + T.let( + :german, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GREEK = + T.let( + :greek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GUARANI = + T.let( + :guarani, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + GUJARATI = + T.let( + :gujarati, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HAITIAN_CREOLE = + T.let( + :"haitian-creole", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HAUSA = + T.let( + :hausa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HAWAIIAN = + T.let( + :hawaiian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HEBREW = + T.let( + :hebrew, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HINDI = + T.let( + :hindi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HMONG = + T.let( + :hmong, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + HUNGARIAN = + T.let( + :hungarian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ICELANDIC = + T.let( + :icelandic, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + IGBO = + T.let( + :igbo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + INDONESIAN = + T.let( + :indonesian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + IRISH = + T.let( + :irish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ITALIAN = + T.let( + :italian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + JAPANESE = + T.let( + :japanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + JAVANESE = + T.let( + :javanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KANNADA = + T.let( + :kannada, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KAZAKH = + T.let( + :kazakh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KHMER = + T.let( + :khmer, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KINYARWANDA = + T.let( + :kinyarwanda, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KOREAN = + T.let( + :korean, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KURDISH = + T.let( + :kurdish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + KYRGYZ = + T.let( + :kyrgyz, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LAO = + T.let( + :lao, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LATIN = + T.let( + :latin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LATVIAN = + T.let( + :latvian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LINGALA = + T.let( + :lingala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LITHUANIAN = + T.let( + :lithuanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + LUXEMBOURGISH = + T.let( + :luxembourgish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MACEDONIAN = + T.let( + :macedonian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MALAGASY = + T.let( + :malagasy, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MALAY = + T.let( + :malay, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MALAYALAM = + T.let( + :malayalam, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MALTESE = + T.let( + :maltese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MAORI = + T.let( + :maori, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MARATHI = + T.let( + :marathi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + MONGOLIAN = + T.let( + :mongolian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + NEPALI = + T.let( + :nepali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + NORWEGIAN = + T.let( + :norwegian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ODIA = + T.let( + :odia, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + OROMO = + T.let( + :oromo, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + PASHTO = + T.let( + :pashto, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + PIDGIN = + T.let( + :pidgin, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + POLISH = + T.let( + :polish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + PORTUGUESE = + T.let( + :portuguese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + PUNJABI = + T.let( + :punjabi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + QUECHUA = + T.let( + :quechua, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ROMANIAN = + T.let( + :romanian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + RUSSIAN = + T.let( + :russian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SAMOAN = + T.let( + :samoan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SCOTTISH_GAELIC = + T.let( + :"scottish-gaelic", + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SERBIAN = + T.let( + :serbian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SESOTHO = + T.let( + :sesotho, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SHONA = + T.let( + :shona, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SINDHI = + T.let( + :sindhi, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SINHALA = + T.let( + :sinhala, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SLOVAK = + T.let( + :slovak, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SLOVENE = + T.let( + :slovene, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SOMALI = + T.let( + :somali, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SPANISH = + T.let( + :spanish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SUNDANESE = + T.let( + :sundanese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SWAHILI = + T.let( + :swahili, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + SWEDISH = + T.let( + :swedish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TAGALOG = + T.let( + :tagalog, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TAJIK = + T.let( + :tajik, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TAMIL = + T.let( + :tamil, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TATAR = + T.let( + :tatar, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TELUGU = + T.let( + :telugu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + THAI = + T.let( + :thai, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TIBETAN = + T.let( + :tibetan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TIGRINYA = + T.let( + :tigrinya, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TONGAN = + T.let( + :tongan, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TSWANA = + T.let( + :tswana, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TURKISH = + T.let( + :turkish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + TURKMEN = + T.let( + :turkmen, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + UKRAINIAN = + T.let( + :ukrainian, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + URDU = + T.let( + :urdu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + UYGHUR = + T.let( + :uyghur, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + UZBEK = + T.let( + :uzbek, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + VIETNAMESE = + T.let( + :vietnamese, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + WELSH = + T.let( + :welsh, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + WOLOF = + T.let( + :wolof, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + XHOSA = + T.let( + :xhosa, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + YIDDISH = + T.let( + :yiddish, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + YORUBA = + T.let( + :yoruba, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + ZULU = + T.let( + :zulu, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ] + ) + end + def self.values + end + end + end sig do override.returns( - T::Array[ - ContextDev::BrandRetrieveParams::ForceLanguage::TaggedSymbol - ] + T::Array[ContextDev::BrandRetrieveParams::Body::Variants] ) end - def self.values + def self.variants end end end diff --git a/rbi/context_dev/models/utility_prefetch_by_email_params.rbi b/rbi/context_dev/models/utility_prefetch_by_email_params.rbi deleted file mode 100644 index f4a1ed66..00000000 --- a/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +++ /dev/null @@ -1,65 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class UtilityPrefetchByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - ContextDev::UtilityPrefetchByEmailParams, - ContextDev::Internal::AnyHash - ) - end - - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - sig { returns(String) } - attr_accessor :email - - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - sig { returns(T.nilable(Integer)) } - attr_reader :timeout_ms - - sig { params(timeout_ms: Integer).void } - attr_writer :timeout_ms - - sig do - params( - email: String, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - email:, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - email: String, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - ) - end - def to_hash - end - end - end -end diff --git a/rbi/context_dev/models/utility_prefetch_by_email_response.rbi b/rbi/context_dev/models/utility_prefetch_by_email_response.rbi deleted file mode 100644 index af541bc8..00000000 --- a/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +++ /dev/null @@ -1,132 +0,0 @@ -# typed: strong - -module ContextDev - module Models - class UtilityPrefetchByEmailResponse < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::UtilityPrefetchByEmailResponse, - ContextDev::Internal::AnyHash - ) - end - - # The domain that was queued for prefetching - sig { returns(T.nilable(String)) } - attr_reader :domain - - sig { params(domain: String).void } - attr_writer :domain - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - returns( - T.nilable( - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata - ) - ) - end - attr_reader :key_metadata - - sig do - params( - key_metadata: - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata::OrHash - ).void - end - attr_writer :key_metadata - - # Success message - sig { returns(T.nilable(String)) } - attr_reader :message - - sig { params(message: String).void } - attr_writer :message - - # Status of the response, e.g., 'ok' - sig { returns(T.nilable(String)) } - attr_reader :status - - sig { params(status: String).void } - attr_writer :status - - sig do - params( - domain: String, - key_metadata: - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata::OrHash, - message: String, - status: String - ).returns(T.attached_class) - end - def self.new( - # The domain that was queued for prefetching - domain: nil, - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - key_metadata: nil, - # Success message - message: nil, - # Status of the response, e.g., 'ok' - status: nil - ) - end - - sig do - override.returns( - { - domain: String, - key_metadata: - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, - message: String, - status: String - } - ) - end - def to_hash - end - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, - ContextDev::Internal::AnyHash - ) - end - - # The number of credits consumed by this request. - sig { returns(Integer) } - attr_accessor :credits_consumed - - # The number of credits remaining for your organization after this request. - sig { returns(Integer) } - attr_accessor :credits_remaining - - # Metadata about the API key used for the request. Included in every response - # whenever a valid API key is provided, even when the response status is not 200. - sig do - params(credits_consumed: Integer, credits_remaining: Integer).returns( - T.attached_class - ) - end - def self.new( - # The number of credits consumed by this request. - credits_consumed:, - # The number of credits remaining for your organization after this request. - credits_remaining: - ) - end - - sig do - override.returns( - { credits_consumed: Integer, credits_remaining: Integer } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/context_dev/models/utility_prefetch_params.rbi b/rbi/context_dev/models/utility_prefetch_params.rbi index a7a3554e..a77dfb48 100644 --- a/rbi/context_dev/models/utility_prefetch_params.rbi +++ b/rbi/context_dev/models/utility_prefetch_params.rbi @@ -14,9 +14,20 @@ module ContextDev ) end - # Domain name to prefetch brand data for - sig { returns(String) } - attr_accessor :domain + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + sig { returns(ContextDev::UtilityPrefetchParams::Identifier) } + attr_reader :identifier + + sig do + params( + identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash + ).void + end + attr_writer :identifier + + # What to prefetch. Currently only 'brand' is supported. + sig { returns(ContextDev::UtilityPrefetchParams::Type::OrSymbol) } + attr_accessor :type # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed @@ -29,14 +40,17 @@ module ContextDev sig do params( - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash, + type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # Domain name to prefetch brand data for - domain:, + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + identifier:, + # What to prefetch. Currently only 'brand' is supported. + type:, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -48,7 +62,8 @@ module ContextDev sig do override.returns( { - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier, + type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions } @@ -56,6 +71,70 @@ module ContextDev end def to_hash end + + class Identifier < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::UtilityPrefetchParams::Identifier, + ContextDev::Internal::AnyHash + ) + end + + # Domain name to prefetch brand data for + sig { returns(T.nilable(String)) } + attr_reader :domain + + sig { params(domain: String).void } + attr_writer :domain + + # Email address to prefetch brand data for. The domain will be extracted from the + # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email + # addresses are not allowed. + sig { returns(T.nilable(String)) } + attr_reader :email + + sig { params(email: String).void } + attr_writer :email + + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + sig { params(domain: String, email: String).returns(T.attached_class) } + def self.new( + # Domain name to prefetch brand data for + domain: nil, + # Email address to prefetch brand data for. The domain will be extracted from the + # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email + # addresses are not allowed. + email: nil + ) + end + + sig { override.returns({ domain: String, email: String }) } + def to_hash + end + end + + # What to prefetch. Currently only 'brand' is supported. + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::UtilityPrefetchParams::Type) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + BRAND = + T.let(:brand, ContextDev::UtilityPrefetchParams::Type::TaggedSymbol) + + sig do + override.returns( + T::Array[ContextDev::UtilityPrefetchParams::Type::TaggedSymbol] + ) + end + def self.values + end + end end end end diff --git a/rbi/context_dev/models/utility_prefetch_response.rbi b/rbi/context_dev/models/utility_prefetch_response.rbi index 8d76fc0e..964c1064 100644 --- a/rbi/context_dev/models/utility_prefetch_response.rbi +++ b/rbi/context_dev/models/utility_prefetch_response.rbi @@ -49,13 +49,32 @@ module ContextDev sig { params(status: String).void } attr_writer :status + # The type of prefetch that was queued, echoed from the request (currently always + # 'brand') + sig do + returns( + T.nilable( + ContextDev::Models::UtilityPrefetchResponse::Type::TaggedSymbol + ) + ) + end + attr_reader :type + + sig do + params( + type: ContextDev::Models::UtilityPrefetchResponse::Type::OrSymbol + ).void + end + attr_writer :type + sig do params( domain: String, key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata::OrHash, message: String, - status: String + status: String, + type: ContextDev::Models::UtilityPrefetchResponse::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -67,7 +86,10 @@ module ContextDev # Success message message: nil, # Status of the response, e.g., 'ok' - status: nil + status: nil, + # The type of prefetch that was queued, echoed from the request (currently always + # 'brand') + type: nil ) end @@ -78,7 +100,9 @@ module ContextDev key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata, message: String, - status: String + status: String, + type: + ContextDev::Models::UtilityPrefetchResponse::Type::TaggedSymbol } ) end @@ -125,6 +149,34 @@ module ContextDev def to_hash end end + + # The type of prefetch that was queued, echoed from the request (currently always + # 'brand') + module Type + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, ContextDev::Models::UtilityPrefetchResponse::Type) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + BRAND = + T.let( + :brand, + ContextDev::Models::UtilityPrefetchResponse::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::UtilityPrefetchResponse::Type::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/context_dev/resources/ai.rbi b/rbi/context_dev/resources/ai.rbi index d8382cd7..94f6d182 100644 --- a/rbi/context_dev/resources/ai.rbi +++ b/rbi/context_dev/resources/ai.rbi @@ -3,34 +3,6 @@ module ContextDev module Resources class AI - # Use AI to extract specific data points from a brand's website. The AI will crawl - # the website and extract the requested information based on the provided data - # points. - sig do - params( - data_to_extract: - T::Array[ContextDev::AIAIQueryParams::DataToExtract::OrHash], - domain: String, - specific_pages: ContextDev::AIAIQueryParams::SpecificPages::OrHash, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::AIAIQueryResponse) - end - def ai_query( - # Array of data points to extract from the website - data_to_extract:, - # The domain name to analyze - domain:, - # Optional object specifying which pages to analyze - specific_pages: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - # Given a single URL, determines if it is a product page and extracts the product # information. sig do diff --git a/rbi/context_dev/resources/brand.rbi b/rbi/context_dev/resources/brand.rbi index b0f04496..c80e74a8 100644 --- a/rbi/context_dev/resources/brand.rbi +++ b/rbi/context_dev/resources/brand.rbi @@ -3,240 +3,26 @@ module ContextDev module Resources class Brand - # Retrieve logos, backdrops, colors, industry, description, and more from any - # domain + # Retrieve logos, backdrops, colors, industry, description, and more. Provide + # exactly one lookup identifier in the request body: a domain, company name, email + # address, stock ticker, or transaction descriptor. sig do params( - domain: String, - force_language: - ContextDev::BrandRetrieveParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, + body: + T.any( + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::OrHash, + ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::OrHash + ), request_options: ContextDev::RequestOptions::OrHash ).returns(ContextDev::Models::BrandRetrieveResponse) end def retrieve( - # Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). - # Cannot be used with name or ticker parameters. - domain:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. Works with all three lookup methods. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Endpoint specially designed for platforms that want to identify transaction data - # by the transaction title. - sig do - params( - transaction_info: String, - city: String, - country_gl: - ContextDev::BrandIdentifyFromTransactionParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, - high_confidence_only: T::Boolean, - max_speed: T::Boolean, - mcc: String, - phone: Float, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::BrandIdentifyFromTransactionResponse) - end - def identify_from_transaction( - # Transaction information to identify the brand - transaction_info:, - # Optional city name to prioritize when searching for the brand. - city: nil, - # Optional country code (GL parameter) to specify the country. This affects the - # geographic location used for search queries. - country_gl: nil, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # When set to true, the API will perform an additional verification steps to - # ensure the identified brand matches the transaction with high confidence. - high_confidence_only: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional Merchant Category Code (MCC) to help identify the business - # category/industry. - mcc: nil, - # Optional phone number from the transaction to help verify brand match. - phone: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Retrieve brand information using an email address while detecting disposable and - # free email addresses. Disposable and free email addresses (like gmail.com, - # yahoo.com) will throw a 422 error. - sig do - params( - email: String, - force_language: - ContextDev::BrandRetrieveByEmailParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::BrandRetrieveByEmailResponse) - end - def retrieve_by_email( - # Email address to retrieve brand data for (e.g., 'contact@example.com'). The - # domain will be extracted from the email. Free email providers (gmail.com, - # yahoo.com, etc.) and disposable email addresses are not allowed. - email:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Retrieve brand information using an ISIN (International Securities - # Identification Number). - sig do - params( - isin: String, - force_language: - ContextDev::BrandRetrieveByIsinParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::BrandRetrieveByIsinResponse) - end - def retrieve_by_isin( - # ISIN (International Securities Identification Number) to retrieve brand data for - # (e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters - # followed by 9 alphanumeric characters and ending with a digit. - isin:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Retrieve brand information using a company name. - sig do - params( - name: String, - country_gl: - ContextDev::BrandRetrieveByNameParams::CountryGl::OrSymbol, - force_language: - ContextDev::BrandRetrieveByNameParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::BrandRetrieveByNameResponse) - end - def retrieve_by_name( - # Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft - # Corporation'). Must be 3-30 characters. - name:, - # Optional country code hint (GL parameter) to specify the country for the company - # name. - country_gl: nil, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Retrieve brand information using a stock ticker symbol. - sig do - params( - ticker: String, - force_language: - ContextDev::BrandRetrieveByTickerParams::ForceLanguage::OrSymbol, - max_age_ms: Integer, - max_speed: T::Boolean, - ticker_exchange: - ContextDev::BrandRetrieveByTickerParams::TickerExchange::OrSymbol, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::BrandRetrieveByTickerResponse) - end - def retrieve_by_ticker( - # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A'). - # Must be 1-15 characters, letters/numbers/dots only. - ticker:, - # Optional parameter to force the language of the retrieved brand data. - force_language: nil, - # Maximum age in milliseconds for cached brand data before the API performs a hard - # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) - # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 - # year. - max_age_ms: nil, - # Optional parameter to optimize the API call for maximum speed. When set to true, - # the API will skip time-consuming operations for faster response at the cost of - # less comprehensive data. - max_speed: nil, - # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. - ticker_exchange: nil, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, + # Exactly one of domain, name, email, ticker, or transaction_info must be + # provided. + body:, request_options: {} ) end diff --git a/rbi/context_dev/resources/utility.rbi b/rbi/context_dev/resources/utility.rbi index 8f4452a8..b18ecbb3 100644 --- a/rbi/context_dev/resources/utility.rbi +++ b/rbi/context_dev/resources/utility.rbi @@ -3,42 +3,23 @@ module ContextDev module Resources class Utility - # Signal that you may fetch brand data for a particular domain soon to improve - # latency. + # Signal that you may fetch brand data soon to improve latency. The type field + # selects what to prefetch (currently only 'brand') and identifier carries exactly + # one lookup key: a domain, or an email whose domain is extracted and validated + # (free email providers and disposable email addresses are not allowed). sig do params( - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash, + type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions::OrHash ).returns(ContextDev::Models::UtilityPrefetchResponse) end def prefetch( - # Domain name to prefetch brand data for - domain:, - # Optional timeout in milliseconds for the request. If the request takes longer - # than this value, it will be aborted with a 408 status code. Maximum allowed - # value is 300000ms (5 minutes). - timeout_ms: nil, - request_options: {} - ) - end - - # Signal that you may fetch brand data for a particular domain soon to improve - # latency. This endpoint accepts an email address, extracts the domain from it, - # validates that it's not a disposable or free email provider, and queues the - # domain for prefetching. - sig do - params( - email: String, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions::OrHash - ).returns(ContextDev::Models::UtilityPrefetchByEmailResponse) - end - def prefetch_by_email( - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - email:, + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + identifier:, + # What to prefetch. Currently only 'brand' is supported. + type:, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). diff --git a/sig/context_dev/models.rbs b/sig/context_dev/models.rbs index 662829f4..23979701 100644 --- a/sig/context_dev/models.rbs +++ b/sig/context_dev/models.rbs @@ -1,20 +1,8 @@ module ContextDev - class AIAIQueryParams = ContextDev::Models::AIAIQueryParams - class AIExtractProductParams = ContextDev::Models::AIExtractProductParams class AIExtractProductsParams = ContextDev::Models::AIExtractProductsParams - class BrandIdentifyFromTransactionParams = ContextDev::Models::BrandIdentifyFromTransactionParams - - class BrandRetrieveByEmailParams = ContextDev::Models::BrandRetrieveByEmailParams - - class BrandRetrieveByIsinParams = ContextDev::Models::BrandRetrieveByIsinParams - - class BrandRetrieveByNameParams = ContextDev::Models::BrandRetrieveByNameParams - - class BrandRetrieveByTickerParams = ContextDev::Models::BrandRetrieveByTickerParams - class BrandRetrieveParams = ContextDev::Models::BrandRetrieveParams class BrandRetrieveSimplifiedParams = ContextDev::Models::BrandRetrieveSimplifiedParams @@ -45,8 +33,6 @@ module ContextDev class MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams - class UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams - class UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams class WebExtractCompetitorsParams = ContextDev::Models::WebExtractCompetitorsParams diff --git a/sig/context_dev/models/ai_ai_query_params.rbs b/sig/context_dev/models/ai_ai_query_params.rbs deleted file mode 100644 index bff42beb..00000000 --- a/sig/context_dev/models/ai_ai_query_params.rbs +++ /dev/null @@ -1,218 +0,0 @@ -module ContextDev - module Models - type aiai_query_params = - { - data_to_extract: ::Array[ContextDev::AIAIQueryParams::DataToExtract], - domain: String, - specific_pages: ContextDev::AIAIQueryParams::SpecificPages, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class AIAIQueryParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor data_to_extract: ::Array[ContextDev::AIAIQueryParams::DataToExtract] - - attr_accessor domain: String - - attr_reader specific_pages: ContextDev::AIAIQueryParams::SpecificPages? - - def specific_pages=: ( - ContextDev::AIAIQueryParams::SpecificPages - ) -> ContextDev::AIAIQueryParams::SpecificPages - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - data_to_extract: ::Array[ContextDev::AIAIQueryParams::DataToExtract], - domain: String, - ?specific_pages: ContextDev::AIAIQueryParams::SpecificPages, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - data_to_extract: ::Array[ContextDev::AIAIQueryParams::DataToExtract], - domain: String, - specific_pages: ContextDev::AIAIQueryParams::SpecificPages, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type data_to_extract = - { - datapoint_description: String, - datapoint_example: String, - datapoint_name: String, - datapoint_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_type, - datapoint_list_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type, - datapoint_object_schema: ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - } - - class DataToExtract < ContextDev::Internal::Type::BaseModel - attr_accessor datapoint_description: String - - attr_accessor datapoint_example: String - - attr_accessor datapoint_name: String - - attr_accessor datapoint_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_type - - attr_reader datapoint_list_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type? - - def datapoint_list_type=: ( - ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type - ) -> ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type - - attr_reader datapoint_object_schema: ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema]? - - def datapoint_object_schema=: ( - ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - ) -> ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - - def initialize: ( - datapoint_description: String, - datapoint_example: String, - datapoint_name: String, - datapoint_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_type, - ?datapoint_list_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type, - ?datapoint_object_schema: ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - ) -> void - - def to_hash: -> { - datapoint_description: String, - datapoint_example: String, - datapoint_name: String, - datapoint_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_type, - datapoint_list_type: ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type, - datapoint_object_schema: ::Hash[Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - } - - type datapoint_type = :text | :number | :date | :boolean | :list | :url - - module DatapointType - extend ContextDev::Internal::Type::Enum - - TEXT: :text - NUMBER: :number - DATE: :date - BOOLEAN: :boolean - LIST: :list - URL: :url - - def self?.values: -> ::Array[ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_type] - end - - type datapoint_list_type = - :string | :text | :number | :date | :boolean | :list | :url | :object - - module DatapointListType - extend ContextDev::Internal::Type::Enum - - STRING: :string - TEXT: :text - NUMBER: :number - DATE: :date - BOOLEAN: :boolean - LIST: :list - URL: :url - OBJECT: :object - - def self?.values: -> ::Array[ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_list_type] - end - - type datapoint_object_schema = :string | :number | :date | :boolean - - module DatapointObjectSchema - extend ContextDev::Internal::Type::Enum - - STRING: :string - NUMBER: :number - DATE: :date - BOOLEAN: :boolean - - def self?.values: -> ::Array[ContextDev::Models::AIAIQueryParams::DataToExtract::datapoint_object_schema] - end - end - - type specific_pages = - { - about_us: bool, - blog: bool, - careers: bool, - contact_us: bool, - faq: bool, - home_page: bool, - pricing: bool, - privacy_policy: bool, - terms_and_conditions: bool - } - - class SpecificPages < ContextDev::Internal::Type::BaseModel - attr_reader about_us: bool? - - def about_us=: (bool) -> bool - - attr_reader blog: bool? - - def blog=: (bool) -> bool - - attr_reader careers: bool? - - def careers=: (bool) -> bool - - attr_reader contact_us: bool? - - def contact_us=: (bool) -> bool - - attr_reader faq: bool? - - def faq=: (bool) -> bool - - attr_reader home_page: bool? - - def home_page=: (bool) -> bool - - attr_reader pricing: bool? - - def pricing=: (bool) -> bool - - attr_reader privacy_policy: bool? - - def privacy_policy=: (bool) -> bool - - attr_reader terms_and_conditions: bool? - - def terms_and_conditions=: (bool) -> bool - - def initialize: ( - ?about_us: bool, - ?blog: bool, - ?careers: bool, - ?contact_us: bool, - ?faq: bool, - ?home_page: bool, - ?pricing: bool, - ?privacy_policy: bool, - ?terms_and_conditions: bool - ) -> void - - def to_hash: -> { - about_us: bool, - blog: bool, - careers: bool, - contact_us: bool, - faq: bool, - home_page: bool, - pricing: bool, - privacy_policy: bool, - terms_and_conditions: bool - } - end - end - end -end diff --git a/sig/context_dev/models/ai_ai_query_response.rbs b/sig/context_dev/models/ai_ai_query_response.rbs deleted file mode 100644 index e542c589..00000000 --- a/sig/context_dev/models/ai_ai_query_response.rbs +++ /dev/null @@ -1,121 +0,0 @@ -module ContextDev - module Models - type aiai_query_response = - { - data_extracted: ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted], - domain: String, - key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata, - status: String, - urls_analyzed: ::Array[String] - } - - class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel - attr_reader data_extracted: ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted]? - - def data_extracted=: ( - ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted] - ) -> ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted] - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::AIAIQueryResponse::KeyMetadata - ) -> ContextDev::Models::AIAIQueryResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - attr_reader urls_analyzed: ::Array[String]? - - def urls_analyzed=: (::Array[String]) -> ::Array[String] - - def initialize: ( - ?data_extracted: ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted], - ?domain: String, - ?key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata, - ?status: String, - ?urls_analyzed: ::Array[String] - ) -> void - - def to_hash: -> { - data_extracted: ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted], - domain: String, - key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata, - status: String, - urls_analyzed: ::Array[String] - } - - type data_extracted = - { - datapoint_name: String, - datapoint_value: ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value - } - - class DataExtracted < ContextDev::Internal::Type::BaseModel - attr_reader datapoint_name: String? - - def datapoint_name=: (String) -> String - - attr_reader datapoint_value: ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value? - - def datapoint_value=: ( - ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value - ) -> ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value - - def initialize: ( - ?datapoint_name: String, - ?datapoint_value: ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value - ) -> void - - def to_hash: -> { - datapoint_name: String, - datapoint_value: ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value - } - - type datapoint_value = - String - | Float - | bool - | ::Array[String] - | ::Array[Float] - | ::Array[top] - - module DatapointValue - extend ContextDev::Internal::Type::Union - - def self?.variants: -> ::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted::datapoint_value] - - StringArray: ContextDev::Internal::Type::Converter - - FloatArray: ContextDev::Internal::Type::Converter - - UnionMember5Array: ContextDev::Internal::Type::Converter - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_identify_from_transaction_params.rbs b/sig/context_dev/models/brand_identify_from_transaction_params.rbs deleted file mode 100644 index 7682e453..00000000 --- a/sig/context_dev/models/brand_identify_from_transaction_params.rbs +++ /dev/null @@ -1,822 +0,0 @@ -module ContextDev - module Models - type brand_identify_from_transaction_params = - { - transaction_info: String, - city: String, - country_gl: ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl, - force_language: ContextDev::Models::BrandIdentifyFromTransactionParams::force_language, - high_confidence_only: bool, - max_speed: bool, - mcc: String, - phone: Float, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class BrandIdentifyFromTransactionParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor transaction_info: String - - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country_gl: ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl? - - def country_gl=: ( - ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl - ) -> ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl - - attr_reader force_language: ContextDev::Models::BrandIdentifyFromTransactionParams::force_language? - - def force_language=: ( - ContextDev::Models::BrandIdentifyFromTransactionParams::force_language - ) -> ContextDev::Models::BrandIdentifyFromTransactionParams::force_language - - attr_reader high_confidence_only: bool? - - def high_confidence_only=: (bool) -> bool - - attr_reader max_speed: bool? - - def max_speed=: (bool) -> bool - - attr_reader mcc: String? - - def mcc=: (String) -> String - - attr_reader phone: Float? - - def phone=: (Float) -> Float - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - transaction_info: String, - ?city: String, - ?country_gl: ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl, - ?force_language: ContextDev::Models::BrandIdentifyFromTransactionParams::force_language, - ?high_confidence_only: bool, - ?max_speed: bool, - ?mcc: String, - ?phone: Float, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - transaction_info: String, - city: String, - country_gl: ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl, - force_language: ContextDev::Models::BrandIdentifyFromTransactionParams::force_language, - high_confidence_only: bool, - max_speed: bool, - mcc: String, - phone: Float, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type country_gl = - :ad - | :ae - | :af - | :ag - | :ai - | :al - | :am - | :an - | :ao - | :aq - | :ar - | :as - | :at - | :au - | :aw - | :az - | :ba - | :bb - | :bd - | :be - | :bf - | :bg - | :bh - | :bi - | :bj - | :bm - | :bn - | :bo - | :br - | :bs - | :bt - | :bv - | :bw - | :by - | :bz - | :ca - | :cc - | :cd - | :cf - | :cg - | :ch - | :ci - | :ck - | :cl - | :cm - | :cn - | :co - | :cr - | :cu - | :cv - | :cx - | :cy - | :cz - | :de - | :dj - | :dk - | :dm - | :do - | :dz - | :ec - | :ee - | :eg - | :eh - | :er - | :es - | :et - | :fi - | :fj - | :fk - | :fm - | :fo - | :fr - | :ga - | :gb - | :gd - | :ge - | :gf - | :gh - | :gi - | :gl - | :gm - | :gn - | :gp - | :gq - | :gr - | :gs - | :gt - | :gu - | :gw - | :gy - | :hk - | :hm - | :hn - | :hr - | :ht - | :hu - | :id - | :ie - | :il - | :in - | :io - | :iq - | :ir - | :is - | :it - | :jm - | :jo - | :jp - | :ke - | :kg - | :kh - | :ki - | :km - | :kn - | :kp - | :kr - | :kw - | :ky - | :kz - | :la - | :lb - | :lc - | :li - | :lk - | :lr - | :ls - | :lt - | :lu - | :lv - | :ly - | :ma - | :mc - | :md - | :mg - | :mh - | :mk - | :ml - | :mm - | :mn - | :mo - | :mp - | :mq - | :mr - | :ms - | :mt - | :mu - | :mv - | :mw - | :mx - | :my - | :mz - | :na - | :nc - | :ne - | :nf - | :ng - | :ni - | :nl - | :no - | :np - | :nr - | :nu - | :nz - | :om - | :pa - | :pe - | :pf - | :pg - | :ph - | :pk - | :pl - | :pm - | :pn - | :pr - | :ps - | :pt - | :pw - | :py - | :qa - | :re - | :ro - | :rs - | :ru - | :rw - | :sa - | :sb - | :sc - | :sd - | :se - | :sg - | :sh - | :si - | :sj - | :sk - | :sl - | :sm - | :sn - | :so - | :sr - | :st - | :sv - | :sy - | :sz - | :tc - | :td - | :tf - | :tg - | :th - | :tj - | :tk - | :tl - | :tm - | :tn - | :to - | :tr - | :tt - | :tv - | :tw - | :tz - | :ua - | :ug - | :um - | :us - | :uy - | :uz - | :va - | :vc - | :ve - | :vg - | :vi - | :vn - | :vu - | :wf - | :ws - | :ye - | :yt - | :za - | :zm - | :zw - - module CountryGl - extend ContextDev::Internal::Type::Enum - - AD: :ad - AE: :ae - AF: :af - AG: :ag - AI: :ai - AL: :al - AM: :am - AN: :an - AO: :ao - AQ: :aq - AR: :ar - AS: :as - AT: :at - AU: :au - AW: :aw - AZ: :az - BA: :ba - BB: :bb - BD: :bd - BE: :be - BF: :bf - BG: :bg - BH: :bh - BI: :bi - BJ: :bj - BM: :bm - BN: :bn - BO: :bo - BR: :br - BS: :bs - BT: :bt - BV: :bv - BW: :bw - BY: :by - BZ: :bz - CA: :ca - CC: :cc - CD: :cd - CF: :cf - CG: :cg - CH: :ch - CI: :ci - CK: :ck - CL: :cl - CM: :cm - CN: :cn - CO: :co - CR: :cr - CU: :cu - CV: :cv - CX: :cx - CY: :cy - CZ: :cz - DE: :de - DJ: :dj - DK: :dk - DM: :dm - DO: :do - DZ: :dz - EC: :ec - EE: :ee - EG: :eg - EH: :eh - ER: :er - ES: :es - ET: :et - FI: :fi - FJ: :fj - FK: :fk - FM: :fm - FO: :fo - FR: :fr - GA: :ga - GB: :gb - GD: :gd - GE: :ge - GF: :gf - GH: :gh - GI: :gi - GL: :gl - GM: :gm - GN: :gn - GP: :gp - GQ: :gq - GR: :gr - GS: :gs - GT: :gt - GU: :gu - GW: :gw - GY: :gy - HK: :hk - HM: :hm - HN: :hn - HR: :hr - HT: :ht - HU: :hu - ID: :id - IE: :ie - IL: :il - IN: :in - IO: :io - IQ: :iq - IR: :ir - IS: :is - IT: :it - JM: :jm - JO: :jo - JP: :jp - KE: :ke - KG: :kg - KH: :kh - KI: :ki - KM: :km - KN: :kn - KP: :kp - KR: :kr - KW: :kw - KY: :ky - KZ: :kz - LA: :la - LB: :lb - LC: :lc - LI: :li - LK: :lk - LR: :lr - LS: :ls - LT: :lt - LU: :lu - LV: :lv - LY: :ly - MA: :ma - MC: :mc - MD: :md - MG: :mg - MH: :mh - MK: :mk - ML: :ml - MM: :mm - MN: :mn - MO: :mo - MP: :mp - MQ: :mq - MR: :mr - MS: :ms - MT: :mt - MU: :mu - MV: :mv - MW: :mw - MX: :mx - MY: :my - MZ: :mz - NA: :na - NC: :nc - NE: :ne - NF: :nf - NG: :ng - NI: :ni - NL: :nl - NO: :no - NP: :np - NR: :nr - NU: :nu - NZ: :nz - OM: :om - PA: :pa - PE: :pe - PF: :pf - PG: :pg - PH: :ph - PK: :pk - PL: :pl - PM: :pm - PN: :pn - PR: :pr - PS: :ps - PT: :pt - PW: :pw - PY: :py - QA: :qa - RE: :re - RO: :ro - RS: :rs - RU: :ru - RW: :rw - SA: :sa - SB: :sb - SC: :sc - SD: :sd - SE: :se - SG: :sg - SH: :sh - SI: :si - SJ: :sj - SK: :sk - SL: :sl - SM: :sm - SN: :sn - SO: :so - SR: :sr - ST: :st - SV: :sv - SY: :sy - SZ: :sz - TC: :tc - TD: :td - TF: :tf - TG: :tg - TH: :th - TJ: :tj - TK: :tk - TL: :tl - TM: :tm - TN: :tn - TO: :to - TR: :tr - TT: :tt - TV: :tv - TW: :tw - TZ: :tz - UA: :ua - UG: :ug - UM: :um - US: :us - UY: :uy - UZ: :uz - VA: :va - VC: :vc - VE: :ve - VG: :vg - VI: :vi - VN: :vn - VU: :vu - WF: :wf - WS: :ws - YE: :ye - YT: :yt - ZA: :za - ZM: :zm - ZW: :zw - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl] - end - - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionParams::force_language] - end - end - end -end diff --git a/sig/context_dev/models/brand_identify_from_transaction_response.rbs b/sig/context_dev/models/brand_identify_from_transaction_response.rbs deleted file mode 100644 index a029d3b4..00000000 --- a/sig/context_dev/models/brand_identify_from_transaction_response.rbs +++ /dev/null @@ -1,1441 +0,0 @@ -module ContextDev - module Models - type brand_identify_from_transaction_response = - { - brand: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, - status: String - } - - class BrandIdentifyFromTransactionResponse < ContextDev::Internal::Type::BaseModel - attr_reader brand: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand? - - def brand=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand - - attr_reader code: Integer? - - def code=: (Integer) -> Integer - - attr_reader key_metadata: ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?brand: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, - ?code: Integer, - ?key_metadata: ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, - ?status: String - ) -> void - - def to_hash: -> { - brand: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, - status: String - } - - type brand = - { - address: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social], - stock: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, - title: String - } - - class Brand < ContextDev::Internal::Type::BaseModel - attr_reader address: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address? - - def address=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address - - attr_reader backdrops: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop]? - - def backdrops=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop] - - attr_reader colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color] - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader email: String? - - def email=: (String) -> String - - attr_reader industries: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries? - - def industries=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries - - attr_reader is_nsfw: bool? - - def is_nsfw=: (bool) -> bool - - attr_reader links: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links? - - def links=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links - - attr_reader logos: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]? - - def logos=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo] - - attr_reader phone: String? - - def phone=: (String) -> String - - attr_accessor primary_language: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::primary_language? - - attr_reader slogan: String? - - def slogan=: (String) -> String - - attr_reader socials: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social]? - - def socials=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social] - - attr_reader stock: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock? - - def stock=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - ?address: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, - ?backdrops: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop], - ?colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color], - ?description: String, - ?domain: String, - ?email: String, - ?industries: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, - ?is_nsfw: bool, - ?links: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, - ?logos: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo], - ?phone: String, - ?primary_language: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::primary_language?, - ?slogan: String, - ?socials: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social], - ?stock: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, - ?title: String - ) -> void - - def to_hash: -> { - address: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social], - stock: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock, - title: String - } - - type address = - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - - class Address < ContextDev::Internal::Type::BaseModel - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country: String? - - def country=: (String) -> String - - attr_reader country_code: String? - - def country_code=: (String) -> String - - attr_reader postal_code: String? - - def postal_code=: (String) -> String - - attr_reader state_code: String? - - def state_code=: (String) -> String - - attr_reader state_province: String? - - def state_province=: (String) -> String - - attr_reader street: String? - - def street=: (String) -> String - - def initialize: ( - ?city: String, - ?country: String, - ?country_code: String, - ?postal_code: String, - ?state_code: String, - ?state_province: String, - ?street: String - ) -> void - - def to_hash: -> { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - end - - type backdrop = - { - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, - url: String - } - - class Backdrop < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color] - - attr_reader resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution? - - def resolution=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color], - ?resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Backdrop::Resolution, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - end - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type industries = - { - eic: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] - } - - class Industries < ContextDev::Internal::Type::BaseModel - attr_reader eic: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic]? - - def eic=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] - - def initialize: ( - ?eic: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] - ) -> void - - def to_hash: -> { - eic: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic] - } - - type eic = - { - industry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::subindustry - } - - class Eic < ContextDev::Internal::Type::BaseModel - attr_accessor industry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::industry - - attr_accessor subindustry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::subindustry - - def initialize: ( - industry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::subindustry - ) -> void - - def to_hash: -> { - industry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::subindustry - } - - type industry = - :"Aerospace & Defense" - | :Technology - | :Finance - | :Healthcare - | :"Retail & E-commerce" - | :Entertainment - | :Education - | :"Government & Nonprofit" - | :"Industrial & Energy" - | :"Automotive & Transportation" - | :"Lifestyle & Leisure" - | :"Luxury & Fashion" - | :"News & Media" - | :Sports - | :"Real Estate & PropTech" - | :"Legal & Compliance" - | :Telecommunications - | :"Agriculture & Food" - | :"Professional Services & Agencies" - | :"Chemicals & Materials" - | :"Logistics & Supply Chain" - | :"Hospitality & Tourism" - | :"Construction & Built Environment" - | :"Consumer Packaged Goods (CPG)" - - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE: :"Aerospace & Defense" - TECHNOLOGY: :Technology - FINANCE: :Finance - HEALTHCARE: :Healthcare - RETAIL_E_COMMERCE: :"Retail & E-commerce" - ENTERTAINMENT: :Entertainment - EDUCATION: :Education - GOVERNMENT_NONPROFIT: :"Government & Nonprofit" - INDUSTRIAL_ENERGY: :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION: :"Automotive & Transportation" - LIFESTYLE_LEISURE: :"Lifestyle & Leisure" - LUXURY_FASHION: :"Luxury & Fashion" - NEWS_MEDIA: :"News & Media" - SPORTS: :Sports - REAL_ESTATE_PROP_TECH: :"Real Estate & PropTech" - LEGAL_COMPLIANCE: :"Legal & Compliance" - TELECOMMUNICATIONS: :Telecommunications - AGRICULTURE_FOOD: :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES: :"Professional Services & Agencies" - CHEMICALS_MATERIALS: :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN: :"Logistics & Supply Chain" - HOSPITALITY_TOURISM: :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT: :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG: :"Consumer Packaged Goods (CPG)" - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::industry] - end - - type subindustry = - :"Defense Systems & Military Hardware" - | :"Aerospace Manufacturing" - | :"Avionics & Navigation Technology" - | :"Subsea & Naval Defense Systems" - | :"Space & Satellite Technology" - | :"Defense IT & Systems Integration" - | :"Software (B2B)" - | :"Software (B2C)" - | :"Cloud Infrastructure & DevOps" - | :Cybersecurity - | :"Artificial Intelligence & Machine Learning" - | :"Data Infrastructure & Analytics" - | :"Hardware & Semiconductors" - | :"Fintech Infrastructure" - | :"eCommerce & Marketplace Platforms" - | :"Developer Tools & APIs" - | :"Web3 & Blockchain" - | :"XR & Spatial Computing" - | :"Banking & Lending" - | :"Investment Management & WealthTech" - | :"Insurance & InsurTech" - | :"Payments & Money Movement" - | :"Accounting, Tax & Financial Planning Tools" - | :"Capital Markets & Trading Platforms" - | :"Financial Infrastructure & APIs" - | :"Credit Scoring & Risk Management" - | :"Cryptocurrency & Digital Assets" - | :"BNPL & Alternative Financing" - | :"Healthcare Providers & Services" - | :"Pharmaceuticals & Drug Development" - | :"Medical Devices & Diagnostics" - | :"Biotechnology & Genomics" - | :"Digital Health & Telemedicine" - | :"Health Insurance & Benefits Tech" - | :"Clinical Trials & Research Platforms" - | :"Mental Health & Wellness" - | :"Healthcare IT & EHR Systems" - | :"Consumer Health & Wellness Products" - | :"Online Marketplaces" - | :"Direct-to-Consumer (DTC) Brands" - | :"Retail Tech & Point-of-Sale Systems" - | :"Omnichannel & In-Store Retail" - | :"E-commerce Enablement & Infrastructure" - | :"Subscription & Membership Commerce" - | :"Social Commerce & Influencer Platforms" - | :"Fashion & Apparel Retail" - | :"Food, Beverage & Grocery E-commerce" - | :"Streaming Platforms (Video, Music, Audio)" - | :"Gaming & Interactive Entertainment" - | :"Creator Economy & Influencer Platforms" - | :"Advertising, Adtech & Media Buying" - | :"Film, TV & Production Studios" - | :"Events, Venues & Live Entertainment" - | :"Virtual Worlds & Metaverse Experiences" - | :"K-12 Education Platforms & Tools" - | :"Higher Education & University Tech" - | :"Online Learning & MOOCs" - | :"Test Prep & Certification" - | :"Corporate Training & Upskilling" - | :"Tutoring & Supplemental Learning" - | :"Education Management Systems (LMS/SIS)" - | :"Language Learning" - | :"Creator-Led & Cohort-Based Courses" - | :"Special Education & Accessibility Tools" - | :"Government Technology & Digital Services" - | :"Civic Engagement & Policy Platforms" - | :"International Development & Humanitarian Aid" - | :"Philanthropy & Grantmaking" - | :"Nonprofit Operations & Fundraising Tools" - | :"Public Health & Social Services" - | :"Education & Youth Development Programs" - | :"Environmental & Climate Action Organizations" - | :"Legal Aid & Social Justice Advocacy" - | :"Municipal & Infrastructure Services" - | :"Manufacturing & Industrial Automation" - | :"Energy Production (Oil, Gas, Nuclear)" - | :"Renewable Energy & Cleantech" - | :"Utilities & Grid Infrastructure" - | :"Industrial IoT & Monitoring Systems" - | :"Construction & Heavy Equipment" - | :"Mining & Natural Resources" - | :"Environmental Engineering & Sustainability" - | :"Energy Storage & Battery Technology" - | :"Automotive OEMs & Vehicle Manufacturing" - | :"Electric Vehicles (EVs) & Charging Infrastructure" - | :"Mobility-as-a-Service (MaaS)" - | :"Fleet Management" - | :"Public Transit & Urban Mobility" - | :"Autonomous Vehicles & ADAS" - | :"Aftermarket Parts & Services" - | :"Telematics & Vehicle Connectivity" - | :"Aviation & Aerospace Transport" - | :"Maritime Shipping" - | :"Fitness & Wellness" - | :"Beauty & Personal Care" - | :"Home & Living" - | :"Dating & Relationships" - | :"Hobbies, Crafts & DIY" - | :"Outdoor & Recreational Gear" - | :"Events, Experiences & Ticketing Platforms" - | :"Designer & Luxury Apparel" - | :"Accessories, Jewelry & Watches" - | :"Footwear & Leather Goods" - | :"Beauty, Fragrance & Skincare" - | :"Fashion Marketplaces & Retail Platforms" - | :"Sustainable & Ethical Fashion" - | :"Resale, Vintage & Circular Fashion" - | :"Fashion Tech & Virtual Try-Ons" - | :"Streetwear & Emerging Luxury" - | :"Couture & Made-to-Measure" - | :"News Publishing & Journalism" - | :"Digital Media & Content Platforms" - | :"Broadcasting (TV & Radio)" - | :"Podcasting & Audio Media" - | :"News Aggregators & Curation Tools" - | :"Independent & Creator-Led Media" - | :"Newsletters & Substack-Style Platforms" - | :"Political & Investigative Media" - | :"Trade & Niche Publications" - | :"Media Monitoring & Analytics" - | :"Professional Teams & Leagues" - | :"Sports Media & Broadcasting" - | :"Sports Betting & Fantasy Sports" - | :"Fitness & Athletic Training Platforms" - | :"Sportswear & Equipment" - | :"Esports & Competitive Gaming" - | :"Sports Venues & Event Management" - | :"Athlete Management & Talent Agencies" - | :"Sports Tech & Performance Analytics" - | :"Youth, Amateur & Collegiate Sports" - | :"Real Estate Marketplaces" - | :"Property Management Software" - | :"Rental Platforms" - | :"Mortgage & Lending Tech" - | :"Real Estate Investment Platforms" - | :"Law Firms & Legal Services" - | :"Legal Tech & Automation" - | :"Regulatory Compliance" - | :"E-Discovery & Litigation Tools" - | :"Contract Management" - | :"Governance, Risk & Compliance (GRC)" - | :"IP & Trademark Management" - | :"Legal Research & Intelligence" - | :"Compliance Training & Certification" - | :"Whistleblower & Ethics Reporting" - | :"Mobile & Wireless Networks (3G/4G/5G)" - | :"Broadband & Fiber Internet" - | :"Satellite & Space-Based Communications" - | :"Network Equipment & Infrastructure" - | :"Telecom Billing & OSS/BSS Systems" - | :"VoIP & Unified Communications" - | :"Internet Service Providers (ISPs)" - | :"Edge Computing & Network Virtualization" - | :"IoT Connectivity Platforms" - | :"Precision Agriculture & AgTech" - | :"Crop & Livestock Production" - | :"Food & Beverage Manufacturing & Processing" - | :"Food Distribution" - | :"Restaurants & Food Service" - | :"Agricultural Inputs & Equipment" - | :"Sustainable & Regenerative Agriculture" - | :"Seafood & Aquaculture" - | :"Management Consulting" - | :"Marketing & Advertising Agencies" - | :"Design, Branding & Creative Studios" - | :"IT Services & Managed Services" - | :"Staffing, Recruiting & Talent" - | :"Accounting & Tax Firms" - | :"Public Relations & Communications" - | :"Business Process Outsourcing (BPO)" - | :"Professional Training & Coaching" - | :"Specialty Chemicals" - | :"Commodity & Petrochemicals" - | :"Polymers, Plastics & Rubber" - | :"Coatings, Adhesives & Sealants" - | :"Industrial Gases" - | :"Advanced Materials & Composites" - | :"Battery Materials & Energy Storage" - | :"Electronic Materials & Semiconductor Chemicals" - | :"Agrochemicals & Fertilizers" - | :"Freight & Transportation Tech" - | :"Last-Mile Delivery" - | :"Warehouse Automation" - | :"Supply Chain Visibility Platforms" - | :"Logistics Marketplaces" - | :"Shipping & Freight Forwarding" - | :"Cold Chain Logistics" - | :"Reverse Logistics & Returns" - | :"Cross-Border Trade Tech" - | :"Transportation Management Systems (TMS)" - | :"Hotels & Accommodation" - | :"Vacation Rentals & Short-Term Stays" - | :"Restaurant Tech & Management" - | :"Travel Booking Platforms" - | :"Tourism Experiences & Activities" - | :"Cruise Lines & Marine Tourism" - | :"Hospitality Management Systems" - | :"Event & Venue Management" - | :"Corporate Travel Management" - | :"Travel Insurance & Protection" - | :"Construction Management Software" - | :"BIM/CAD & Design Tools" - | :"Construction Marketplaces" - | :"Equipment Rental & Management" - | :"Building Materials & Procurement" - | :"Construction Workforce Management" - | :"Project Estimation & Bidding" - | :"Modular & Prefab Construction" - | :"Construction Safety & Compliance" - | :"Smart Building Technology" - | :"Food & Beverage CPG" - | :"Home & Personal Care CPG" - | :"CPG Analytics & Insights" - | :"Direct-to-Consumer CPG Brands" - | :"CPG Supply Chain & Distribution" - | :"Private Label Manufacturing" - | :"CPG Retail Intelligence" - | :"Sustainable CPG & Packaging" - | :"Beauty & Cosmetics CPG" - | :"Health & Wellness CPG" - - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE: :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING: :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY: :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS: :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY: :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION: :"Defense IT & Systems Integration" - SOFTWARE_B2_B: :"Software (B2B)" - SOFTWARE_B2_C: :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS: :"Cloud Infrastructure & DevOps" - CYBERSECURITY: :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING: :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS: :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS: :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE: :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS: :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS: :"Developer Tools & APIs" - WEB3_BLOCKCHAIN: :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING: :"XR & Spatial Computing" - BANKING_LENDING: :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH: :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH: :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT: :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS: :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS: :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS: :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT: :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS: :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING: :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES: :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT: :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS: :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS: :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE: :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH: :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS: :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS: :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS: :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS: :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES: :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS: :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS: :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL: :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE: :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE: :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS: :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL: :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE: :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO: :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT: :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS: :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING: :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS: :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT: :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES: :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS: :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH: :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS: :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION: :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING: :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING: :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS: :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING: :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES: :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS: :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES: :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS: :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID: :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING: :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS: :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES: :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS: :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS: :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY: :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES: :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION: :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR: :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH: :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE: :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS: :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT: :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES: :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY: :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY: :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING: :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE: :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S: :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT: :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY: :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS: :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES: :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY: :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT: :"Aviation & Aerospace Transport" - MARITIME_SHIPPING: :"Maritime Shipping" - FITNESS_WELLNESS: :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE: :"Beauty & Personal Care" - HOME_LIVING: :"Home & Living" - DATING_RELATIONSHIPS: :"Dating & Relationships" - HOBBIES_CRAFTS_DIY: :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR: :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS: :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL: :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES: :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS: :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE: :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS: :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION: :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION: :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS: :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY: :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE: :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM: :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS: :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO: :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA: :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS: :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA: :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS: :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA: :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS: :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS: :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES: :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING: :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS: :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS: :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT: :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING: :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT: :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES: :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS: :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS: :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES: :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE: :"Property Management Software" - RENTAL_PLATFORMS: :"Rental Platforms" - MORTGAGE_LENDING_TECH: :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS: :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES: :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION: :"Legal Tech & Automation" - REGULATORY_COMPLIANCE: :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS: :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT: :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC: :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT: :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE: :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION: :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING: :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G: :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET: :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS: :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE: :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS: :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS: :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS: :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION: :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS: :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH: :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION: :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING: :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION: :"Food Distribution" - RESTAURANTS_FOOD_SERVICE: :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT: :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE: :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE: :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING: :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES: :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS: :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES: :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT: :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS: :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS: :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO: :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING: :"Professional Training & Coaching" - SPECIALTY_CHEMICALS: :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS: :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER: :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS: :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES: :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES: :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE: :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS: :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS: :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH: :"Freight & Transportation Tech" - LAST_MILE_DELIVERY: :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION: :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS: :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES: :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING: :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS: :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS: :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH: :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS: :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION: :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS: :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT: :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS: :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES: :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM: :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS: :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT: :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT: :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION: :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE: :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS: :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES: :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT: :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT: :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT: :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING: :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION: :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE: :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY: :"Smart Building Technology" - FOOD_BEVERAGE_CPG: :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG: :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS: :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS: :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION: :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING: :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE: :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING: :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG: :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG: :"Health & Wellness CPG" - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Industries::Eic::subindustry] - end - end - end - - type links = - { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - - class Links < ContextDev::Internal::Type::BaseModel - attr_accessor blog: String? - - attr_accessor careers: String? - - attr_accessor contact: String? - - attr_accessor pricing: String? - - attr_accessor privacy: String? - - attr_accessor terms: String? - - def initialize: ( - ?blog: String?, - ?careers: String?, - ?contact: String?, - ?pricing: String?, - ?privacy: String?, - ?terms: String? - ) -> void - - def to_hash: -> { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - end - - type logo = - { - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_, - url: String - } - - class Logo < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color] - ) -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color] - - attr_reader mode: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode? - - def mode=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode - - attr_reader resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution? - - def resolution=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution - - attr_reader type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_? - - def type=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_ - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color], - ?mode: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode, - ?resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, - ?type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type mode = :light | :dark | :has_opaque_background - - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT: :light - DARK: :dark - HAS_OPAQUE_BACKGROUND: :has_opaque_background - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode] - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - - type type_ = :icon | :logo - - module Type - extend ContextDev::Internal::Type::Enum - - ICON: :icon - LOGO: :logo - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_] - end - end - - type primary_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::primary_language] - end - - type social = - { - type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_, - url: String - } - - class Social < ContextDev::Internal::Type::BaseModel - attr_reader type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_? - - def type=: ( - ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_ - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_, - ?url: String - ) -> void - - def to_hash: -> { - type: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_, - url: String - } - - type type_ = - :x - | :facebook - | :instagram - | :linkedin - | :youtube - | :pinterest - | :tiktok - | :dribbble - | :github - | :behance - | :snapchat - | :whatsapp - | :telegram - | :line - | :discord - | :twitch - | :vimeo - | :imdb - | :tumblr - | :flickr - | :giphy - | :medium - | :spotify - | :soundcloud - | :tripadvisor - | :yelp - | :producthunt - | :reddit - | :crunchbase - | :appstore - | :playstore - - module Type - extend ContextDev::Internal::Type::Enum - - X: :x - FACEBOOK: :facebook - INSTAGRAM: :instagram - LINKEDIN: :linkedin - YOUTUBE: :youtube - PINTEREST: :pinterest - TIKTOK: :tiktok - DRIBBBLE: :dribbble - GITHUB: :github - BEHANCE: :behance - SNAPCHAT: :snapchat - WHATSAPP: :whatsapp - TELEGRAM: :telegram - LINE: :line - DISCORD: :discord - TWITCH: :twitch - VIMEO: :vimeo - IMDB: :imdb - TUMBLR: :tumblr - FLICKR: :flickr - GIPHY: :giphy - MEDIUM: :medium - SPOTIFY: :spotify - SOUNDCLOUD: :soundcloud - TRIPADVISOR: :tripadvisor - YELP: :yelp - PRODUCTHUNT: :producthunt - REDDIT: :reddit - CRUNCHBASE: :crunchbase - APPSTORE: :appstore - PLAYSTORE: :playstore - - def self?.values: -> ::Array[ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social::type_] - end - end - - type stock = { exchange: String, ticker: String } - - class Stock < ContextDev::Internal::Type::BaseModel - attr_reader exchange: String? - - def exchange=: (String) -> String - - attr_reader ticker: String? - - def ticker=: (String) -> String - - def initialize: (?exchange: String, ?ticker: String) -> void - - def to_hash: -> { exchange: String, ticker: String } - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_email_params.rbs b/sig/context_dev/models/brand_retrieve_by_email_params.rbs deleted file mode 100644 index c57a5f25..00000000 --- a/sig/context_dev/models/brand_retrieve_by_email_params.rbs +++ /dev/null @@ -1,305 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_email_params = - { - email: String, - force_language: ContextDev::Models::BrandRetrieveByEmailParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class BrandRetrieveByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor email: String - - attr_reader force_language: ContextDev::Models::BrandRetrieveByEmailParams::force_language? - - def force_language=: ( - ContextDev::Models::BrandRetrieveByEmailParams::force_language - ) -> ContextDev::Models::BrandRetrieveByEmailParams::force_language - - attr_reader max_age_ms: Integer? - - def max_age_ms=: (Integer) -> Integer - - attr_reader max_speed: bool? - - def max_speed=: (bool) -> bool - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - email: String, - ?force_language: ContextDev::Models::BrandRetrieveByEmailParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - email: String, - force_language: ContextDev::Models::BrandRetrieveByEmailParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailParams::force_language] - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_email_response.rbs b/sig/context_dev/models/brand_retrieve_by_email_response.rbs deleted file mode 100644 index 38b13880..00000000 --- a/sig/context_dev/models/brand_retrieve_by_email_response.rbs +++ /dev/null @@ -1,1441 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_email_response = - { - brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, - status: String - } - - class BrandRetrieveByEmailResponse < ContextDev::Internal::Type::BaseModel - attr_reader brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand? - - def brand=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand - - attr_reader code: Integer? - - def code=: (Integer) -> Integer - - attr_reader key_metadata: ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand, - ?code: Integer, - ?key_metadata: ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, - ?status: String - ) -> void - - def to_hash: -> { - brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, - status: String - } - - type brand = - { - address: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, - title: String - } - - class Brand < ContextDev::Internal::Type::BaseModel - attr_reader address: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address? - - def address=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address - - attr_reader backdrops: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop]? - - def backdrops=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop] - - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color] - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader email: String? - - def email=: (String) -> String - - attr_reader industries: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries? - - def industries=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries - - attr_reader is_nsfw: bool? - - def is_nsfw=: (bool) -> bool - - attr_reader links: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links? - - def links=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links - - attr_reader logos: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo]? - - def logos=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo] - - attr_reader phone: String? - - def phone=: (String) -> String - - attr_accessor primary_language: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::primary_language? - - attr_reader slogan: String? - - def slogan=: (String) -> String - - attr_reader socials: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social]? - - def socials=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social] - - attr_reader stock: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock? - - def stock=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - ?address: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, - ?backdrops: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop], - ?colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color], - ?description: String, - ?domain: String, - ?email: String, - ?industries: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, - ?is_nsfw: bool, - ?links: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, - ?logos: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo], - ?phone: String, - ?primary_language: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::primary_language?, - ?slogan: String, - ?socials: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social], - ?stock: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, - ?title: String - ) -> void - - def to_hash: -> { - address: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Stock, - title: String - } - - type address = - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - - class Address < ContextDev::Internal::Type::BaseModel - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country: String? - - def country=: (String) -> String - - attr_reader country_code: String? - - def country_code=: (String) -> String - - attr_reader postal_code: String? - - def postal_code=: (String) -> String - - attr_reader state_code: String? - - def state_code=: (String) -> String - - attr_reader state_province: String? - - def state_province=: (String) -> String - - attr_reader street: String? - - def street=: (String) -> String - - def initialize: ( - ?city: String, - ?country: String, - ?country_code: String, - ?postal_code: String, - ?state_code: String, - ?state_province: String, - ?street: String - ) -> void - - def to_hash: -> { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - end - - type backdrop = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, - url: String - } - - class Backdrop < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color] - - attr_reader resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color], - ?resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Backdrop::Resolution, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - end - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type industries = - { - eic: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] - } - - class Industries < ContextDev::Internal::Type::BaseModel - attr_reader eic: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic]? - - def eic=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] - - def initialize: ( - ?eic: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] - ) -> void - - def to_hash: -> { - eic: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic] - } - - type eic = - { - industry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::subindustry - } - - class Eic < ContextDev::Internal::Type::BaseModel - attr_accessor industry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::industry - - attr_accessor subindustry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::subindustry - - def initialize: ( - industry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::subindustry - ) -> void - - def to_hash: -> { - industry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::subindustry - } - - type industry = - :"Aerospace & Defense" - | :Technology - | :Finance - | :Healthcare - | :"Retail & E-commerce" - | :Entertainment - | :Education - | :"Government & Nonprofit" - | :"Industrial & Energy" - | :"Automotive & Transportation" - | :"Lifestyle & Leisure" - | :"Luxury & Fashion" - | :"News & Media" - | :Sports - | :"Real Estate & PropTech" - | :"Legal & Compliance" - | :Telecommunications - | :"Agriculture & Food" - | :"Professional Services & Agencies" - | :"Chemicals & Materials" - | :"Logistics & Supply Chain" - | :"Hospitality & Tourism" - | :"Construction & Built Environment" - | :"Consumer Packaged Goods (CPG)" - - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE: :"Aerospace & Defense" - TECHNOLOGY: :Technology - FINANCE: :Finance - HEALTHCARE: :Healthcare - RETAIL_E_COMMERCE: :"Retail & E-commerce" - ENTERTAINMENT: :Entertainment - EDUCATION: :Education - GOVERNMENT_NONPROFIT: :"Government & Nonprofit" - INDUSTRIAL_ENERGY: :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION: :"Automotive & Transportation" - LIFESTYLE_LEISURE: :"Lifestyle & Leisure" - LUXURY_FASHION: :"Luxury & Fashion" - NEWS_MEDIA: :"News & Media" - SPORTS: :Sports - REAL_ESTATE_PROP_TECH: :"Real Estate & PropTech" - LEGAL_COMPLIANCE: :"Legal & Compliance" - TELECOMMUNICATIONS: :Telecommunications - AGRICULTURE_FOOD: :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES: :"Professional Services & Agencies" - CHEMICALS_MATERIALS: :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN: :"Logistics & Supply Chain" - HOSPITALITY_TOURISM: :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT: :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG: :"Consumer Packaged Goods (CPG)" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::industry] - end - - type subindustry = - :"Defense Systems & Military Hardware" - | :"Aerospace Manufacturing" - | :"Avionics & Navigation Technology" - | :"Subsea & Naval Defense Systems" - | :"Space & Satellite Technology" - | :"Defense IT & Systems Integration" - | :"Software (B2B)" - | :"Software (B2C)" - | :"Cloud Infrastructure & DevOps" - | :Cybersecurity - | :"Artificial Intelligence & Machine Learning" - | :"Data Infrastructure & Analytics" - | :"Hardware & Semiconductors" - | :"Fintech Infrastructure" - | :"eCommerce & Marketplace Platforms" - | :"Developer Tools & APIs" - | :"Web3 & Blockchain" - | :"XR & Spatial Computing" - | :"Banking & Lending" - | :"Investment Management & WealthTech" - | :"Insurance & InsurTech" - | :"Payments & Money Movement" - | :"Accounting, Tax & Financial Planning Tools" - | :"Capital Markets & Trading Platforms" - | :"Financial Infrastructure & APIs" - | :"Credit Scoring & Risk Management" - | :"Cryptocurrency & Digital Assets" - | :"BNPL & Alternative Financing" - | :"Healthcare Providers & Services" - | :"Pharmaceuticals & Drug Development" - | :"Medical Devices & Diagnostics" - | :"Biotechnology & Genomics" - | :"Digital Health & Telemedicine" - | :"Health Insurance & Benefits Tech" - | :"Clinical Trials & Research Platforms" - | :"Mental Health & Wellness" - | :"Healthcare IT & EHR Systems" - | :"Consumer Health & Wellness Products" - | :"Online Marketplaces" - | :"Direct-to-Consumer (DTC) Brands" - | :"Retail Tech & Point-of-Sale Systems" - | :"Omnichannel & In-Store Retail" - | :"E-commerce Enablement & Infrastructure" - | :"Subscription & Membership Commerce" - | :"Social Commerce & Influencer Platforms" - | :"Fashion & Apparel Retail" - | :"Food, Beverage & Grocery E-commerce" - | :"Streaming Platforms (Video, Music, Audio)" - | :"Gaming & Interactive Entertainment" - | :"Creator Economy & Influencer Platforms" - | :"Advertising, Adtech & Media Buying" - | :"Film, TV & Production Studios" - | :"Events, Venues & Live Entertainment" - | :"Virtual Worlds & Metaverse Experiences" - | :"K-12 Education Platforms & Tools" - | :"Higher Education & University Tech" - | :"Online Learning & MOOCs" - | :"Test Prep & Certification" - | :"Corporate Training & Upskilling" - | :"Tutoring & Supplemental Learning" - | :"Education Management Systems (LMS/SIS)" - | :"Language Learning" - | :"Creator-Led & Cohort-Based Courses" - | :"Special Education & Accessibility Tools" - | :"Government Technology & Digital Services" - | :"Civic Engagement & Policy Platforms" - | :"International Development & Humanitarian Aid" - | :"Philanthropy & Grantmaking" - | :"Nonprofit Operations & Fundraising Tools" - | :"Public Health & Social Services" - | :"Education & Youth Development Programs" - | :"Environmental & Climate Action Organizations" - | :"Legal Aid & Social Justice Advocacy" - | :"Municipal & Infrastructure Services" - | :"Manufacturing & Industrial Automation" - | :"Energy Production (Oil, Gas, Nuclear)" - | :"Renewable Energy & Cleantech" - | :"Utilities & Grid Infrastructure" - | :"Industrial IoT & Monitoring Systems" - | :"Construction & Heavy Equipment" - | :"Mining & Natural Resources" - | :"Environmental Engineering & Sustainability" - | :"Energy Storage & Battery Technology" - | :"Automotive OEMs & Vehicle Manufacturing" - | :"Electric Vehicles (EVs) & Charging Infrastructure" - | :"Mobility-as-a-Service (MaaS)" - | :"Fleet Management" - | :"Public Transit & Urban Mobility" - | :"Autonomous Vehicles & ADAS" - | :"Aftermarket Parts & Services" - | :"Telematics & Vehicle Connectivity" - | :"Aviation & Aerospace Transport" - | :"Maritime Shipping" - | :"Fitness & Wellness" - | :"Beauty & Personal Care" - | :"Home & Living" - | :"Dating & Relationships" - | :"Hobbies, Crafts & DIY" - | :"Outdoor & Recreational Gear" - | :"Events, Experiences & Ticketing Platforms" - | :"Designer & Luxury Apparel" - | :"Accessories, Jewelry & Watches" - | :"Footwear & Leather Goods" - | :"Beauty, Fragrance & Skincare" - | :"Fashion Marketplaces & Retail Platforms" - | :"Sustainable & Ethical Fashion" - | :"Resale, Vintage & Circular Fashion" - | :"Fashion Tech & Virtual Try-Ons" - | :"Streetwear & Emerging Luxury" - | :"Couture & Made-to-Measure" - | :"News Publishing & Journalism" - | :"Digital Media & Content Platforms" - | :"Broadcasting (TV & Radio)" - | :"Podcasting & Audio Media" - | :"News Aggregators & Curation Tools" - | :"Independent & Creator-Led Media" - | :"Newsletters & Substack-Style Platforms" - | :"Political & Investigative Media" - | :"Trade & Niche Publications" - | :"Media Monitoring & Analytics" - | :"Professional Teams & Leagues" - | :"Sports Media & Broadcasting" - | :"Sports Betting & Fantasy Sports" - | :"Fitness & Athletic Training Platforms" - | :"Sportswear & Equipment" - | :"Esports & Competitive Gaming" - | :"Sports Venues & Event Management" - | :"Athlete Management & Talent Agencies" - | :"Sports Tech & Performance Analytics" - | :"Youth, Amateur & Collegiate Sports" - | :"Real Estate Marketplaces" - | :"Property Management Software" - | :"Rental Platforms" - | :"Mortgage & Lending Tech" - | :"Real Estate Investment Platforms" - | :"Law Firms & Legal Services" - | :"Legal Tech & Automation" - | :"Regulatory Compliance" - | :"E-Discovery & Litigation Tools" - | :"Contract Management" - | :"Governance, Risk & Compliance (GRC)" - | :"IP & Trademark Management" - | :"Legal Research & Intelligence" - | :"Compliance Training & Certification" - | :"Whistleblower & Ethics Reporting" - | :"Mobile & Wireless Networks (3G/4G/5G)" - | :"Broadband & Fiber Internet" - | :"Satellite & Space-Based Communications" - | :"Network Equipment & Infrastructure" - | :"Telecom Billing & OSS/BSS Systems" - | :"VoIP & Unified Communications" - | :"Internet Service Providers (ISPs)" - | :"Edge Computing & Network Virtualization" - | :"IoT Connectivity Platforms" - | :"Precision Agriculture & AgTech" - | :"Crop & Livestock Production" - | :"Food & Beverage Manufacturing & Processing" - | :"Food Distribution" - | :"Restaurants & Food Service" - | :"Agricultural Inputs & Equipment" - | :"Sustainable & Regenerative Agriculture" - | :"Seafood & Aquaculture" - | :"Management Consulting" - | :"Marketing & Advertising Agencies" - | :"Design, Branding & Creative Studios" - | :"IT Services & Managed Services" - | :"Staffing, Recruiting & Talent" - | :"Accounting & Tax Firms" - | :"Public Relations & Communications" - | :"Business Process Outsourcing (BPO)" - | :"Professional Training & Coaching" - | :"Specialty Chemicals" - | :"Commodity & Petrochemicals" - | :"Polymers, Plastics & Rubber" - | :"Coatings, Adhesives & Sealants" - | :"Industrial Gases" - | :"Advanced Materials & Composites" - | :"Battery Materials & Energy Storage" - | :"Electronic Materials & Semiconductor Chemicals" - | :"Agrochemicals & Fertilizers" - | :"Freight & Transportation Tech" - | :"Last-Mile Delivery" - | :"Warehouse Automation" - | :"Supply Chain Visibility Platforms" - | :"Logistics Marketplaces" - | :"Shipping & Freight Forwarding" - | :"Cold Chain Logistics" - | :"Reverse Logistics & Returns" - | :"Cross-Border Trade Tech" - | :"Transportation Management Systems (TMS)" - | :"Hotels & Accommodation" - | :"Vacation Rentals & Short-Term Stays" - | :"Restaurant Tech & Management" - | :"Travel Booking Platforms" - | :"Tourism Experiences & Activities" - | :"Cruise Lines & Marine Tourism" - | :"Hospitality Management Systems" - | :"Event & Venue Management" - | :"Corporate Travel Management" - | :"Travel Insurance & Protection" - | :"Construction Management Software" - | :"BIM/CAD & Design Tools" - | :"Construction Marketplaces" - | :"Equipment Rental & Management" - | :"Building Materials & Procurement" - | :"Construction Workforce Management" - | :"Project Estimation & Bidding" - | :"Modular & Prefab Construction" - | :"Construction Safety & Compliance" - | :"Smart Building Technology" - | :"Food & Beverage CPG" - | :"Home & Personal Care CPG" - | :"CPG Analytics & Insights" - | :"Direct-to-Consumer CPG Brands" - | :"CPG Supply Chain & Distribution" - | :"Private Label Manufacturing" - | :"CPG Retail Intelligence" - | :"Sustainable CPG & Packaging" - | :"Beauty & Cosmetics CPG" - | :"Health & Wellness CPG" - - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE: :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING: :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY: :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS: :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY: :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION: :"Defense IT & Systems Integration" - SOFTWARE_B2_B: :"Software (B2B)" - SOFTWARE_B2_C: :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS: :"Cloud Infrastructure & DevOps" - CYBERSECURITY: :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING: :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS: :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS: :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE: :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS: :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS: :"Developer Tools & APIs" - WEB3_BLOCKCHAIN: :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING: :"XR & Spatial Computing" - BANKING_LENDING: :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH: :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH: :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT: :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS: :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS: :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS: :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT: :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS: :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING: :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES: :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT: :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS: :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS: :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE: :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH: :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS: :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS: :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS: :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS: :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES: :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS: :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS: :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL: :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE: :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE: :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS: :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL: :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE: :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO: :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT: :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS: :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING: :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS: :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT: :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES: :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS: :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH: :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS: :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION: :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING: :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING: :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS: :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING: :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES: :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS: :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES: :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS: :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID: :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING: :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS: :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES: :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS: :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS: :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY: :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES: :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION: :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR: :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH: :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE: :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS: :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT: :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES: :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY: :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY: :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING: :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE: :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S: :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT: :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY: :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS: :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES: :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY: :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT: :"Aviation & Aerospace Transport" - MARITIME_SHIPPING: :"Maritime Shipping" - FITNESS_WELLNESS: :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE: :"Beauty & Personal Care" - HOME_LIVING: :"Home & Living" - DATING_RELATIONSHIPS: :"Dating & Relationships" - HOBBIES_CRAFTS_DIY: :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR: :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS: :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL: :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES: :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS: :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE: :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS: :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION: :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION: :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS: :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY: :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE: :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM: :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS: :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO: :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA: :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS: :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA: :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS: :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA: :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS: :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS: :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES: :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING: :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS: :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS: :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT: :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING: :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT: :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES: :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS: :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS: :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES: :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE: :"Property Management Software" - RENTAL_PLATFORMS: :"Rental Platforms" - MORTGAGE_LENDING_TECH: :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS: :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES: :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION: :"Legal Tech & Automation" - REGULATORY_COMPLIANCE: :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS: :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT: :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC: :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT: :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE: :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION: :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING: :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G: :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET: :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS: :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE: :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS: :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS: :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS: :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION: :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS: :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH: :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION: :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING: :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION: :"Food Distribution" - RESTAURANTS_FOOD_SERVICE: :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT: :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE: :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE: :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING: :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES: :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS: :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES: :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT: :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS: :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS: :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO: :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING: :"Professional Training & Coaching" - SPECIALTY_CHEMICALS: :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS: :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER: :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS: :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES: :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES: :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE: :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS: :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS: :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH: :"Freight & Transportation Tech" - LAST_MILE_DELIVERY: :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION: :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS: :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES: :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING: :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS: :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS: :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH: :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS: :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION: :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS: :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT: :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS: :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES: :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM: :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS: :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT: :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT: :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION: :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE: :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS: :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES: :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT: :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT: :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT: :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING: :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION: :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE: :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY: :"Smart Building Technology" - FOOD_BEVERAGE_CPG: :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG: :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS: :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS: :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION: :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING: :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE: :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING: :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG: :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG: :"Health & Wellness CPG" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Industries::Eic::subindustry] - end - end - end - - type links = - { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - - class Links < ContextDev::Internal::Type::BaseModel - attr_accessor blog: String? - - attr_accessor careers: String? - - attr_accessor contact: String? - - attr_accessor pricing: String? - - attr_accessor privacy: String? - - attr_accessor terms: String? - - def initialize: ( - ?blog: String?, - ?careers: String?, - ?contact: String?, - ?pricing: String?, - ?privacy: String?, - ?terms: String? - ) -> void - - def to_hash: -> { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - end - - type logo = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_, - url: String - } - - class Logo < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color] - - attr_reader mode: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode? - - def mode=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode - - attr_reader resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution - - attr_reader type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_ - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color], - ?mode: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode, - ?resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, - ?type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type mode = :light | :dark | :has_opaque_background - - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT: :light - DARK: :dark - HAS_OPAQUE_BACKGROUND: :has_opaque_background - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::mode] - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - - type type_ = :icon | :logo - - module Type - extend ContextDev::Internal::Type::Enum - - ICON: :icon - LOGO: :logo - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Logo::type_] - end - end - - type primary_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::primary_language] - end - - type social = - { - type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_, - url: String - } - - class Social < ContextDev::Internal::Type::BaseModel - attr_reader type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_ - ) -> ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_, - ?url: String - ) -> void - - def to_hash: -> { - type: ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_, - url: String - } - - type type_ = - :x - | :facebook - | :instagram - | :linkedin - | :youtube - | :pinterest - | :tiktok - | :dribbble - | :github - | :behance - | :snapchat - | :whatsapp - | :telegram - | :line - | :discord - | :twitch - | :vimeo - | :imdb - | :tumblr - | :flickr - | :giphy - | :medium - | :spotify - | :soundcloud - | :tripadvisor - | :yelp - | :producthunt - | :reddit - | :crunchbase - | :appstore - | :playstore - - module Type - extend ContextDev::Internal::Type::Enum - - X: :x - FACEBOOK: :facebook - INSTAGRAM: :instagram - LINKEDIN: :linkedin - YOUTUBE: :youtube - PINTEREST: :pinterest - TIKTOK: :tiktok - DRIBBBLE: :dribbble - GITHUB: :github - BEHANCE: :behance - SNAPCHAT: :snapchat - WHATSAPP: :whatsapp - TELEGRAM: :telegram - LINE: :line - DISCORD: :discord - TWITCH: :twitch - VIMEO: :vimeo - IMDB: :imdb - TUMBLR: :tumblr - FLICKR: :flickr - GIPHY: :giphy - MEDIUM: :medium - SPOTIFY: :spotify - SOUNDCLOUD: :soundcloud - TRIPADVISOR: :tripadvisor - YELP: :yelp - PRODUCTHUNT: :producthunt - REDDIT: :reddit - CRUNCHBASE: :crunchbase - APPSTORE: :appstore - PLAYSTORE: :playstore - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByEmailResponse::Brand::Social::type_] - end - end - - type stock = { exchange: String, ticker: String } - - class Stock < ContextDev::Internal::Type::BaseModel - attr_reader exchange: String? - - def exchange=: (String) -> String - - attr_reader ticker: String? - - def ticker=: (String) -> String - - def initialize: (?exchange: String, ?ticker: String) -> void - - def to_hash: -> { exchange: String, ticker: String } - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_isin_params.rbs b/sig/context_dev/models/brand_retrieve_by_isin_params.rbs deleted file mode 100644 index 689df818..00000000 --- a/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +++ /dev/null @@ -1,305 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_isin_params = - { - isin: String, - force_language: ContextDev::Models::BrandRetrieveByIsinParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class BrandRetrieveByIsinParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor isin: String - - attr_reader force_language: ContextDev::Models::BrandRetrieveByIsinParams::force_language? - - def force_language=: ( - ContextDev::Models::BrandRetrieveByIsinParams::force_language - ) -> ContextDev::Models::BrandRetrieveByIsinParams::force_language - - attr_reader max_age_ms: Integer? - - def max_age_ms=: (Integer) -> Integer - - attr_reader max_speed: bool? - - def max_speed=: (bool) -> bool - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - isin: String, - ?force_language: ContextDev::Models::BrandRetrieveByIsinParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - isin: String, - force_language: ContextDev::Models::BrandRetrieveByIsinParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinParams::force_language] - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_isin_response.rbs b/sig/context_dev/models/brand_retrieve_by_isin_response.rbs deleted file mode 100644 index 80fcde38..00000000 --- a/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +++ /dev/null @@ -1,1441 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_isin_response = - { - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, - status: String - } - - class BrandRetrieveByIsinResponse < ContextDev::Internal::Type::BaseModel - attr_reader brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand? - - def brand=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand - - attr_reader code: Integer? - - def code=: (Integer) -> Integer - - attr_reader key_metadata: ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand, - ?code: Integer, - ?key_metadata: ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, - ?status: String - ) -> void - - def to_hash: -> { - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata, - status: String - } - - type brand = - { - address: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, - title: String - } - - class Brand < ContextDev::Internal::Type::BaseModel - attr_reader address: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address? - - def address=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address - - attr_reader backdrops: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop]? - - def backdrops=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop] - - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color] - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader email: String? - - def email=: (String) -> String - - attr_reader industries: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries? - - def industries=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries - - attr_reader is_nsfw: bool? - - def is_nsfw=: (bool) -> bool - - attr_reader links: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links? - - def links=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links - - attr_reader logos: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo]? - - def logos=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo] - - attr_reader phone: String? - - def phone=: (String) -> String - - attr_accessor primary_language: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::primary_language? - - attr_reader slogan: String? - - def slogan=: (String) -> String - - attr_reader socials: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social]? - - def socials=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social] - - attr_reader stock: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock? - - def stock=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - ?address: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, - ?backdrops: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop], - ?colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color], - ?description: String, - ?domain: String, - ?email: String, - ?industries: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, - ?is_nsfw: bool, - ?links: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, - ?logos: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo], - ?phone: String, - ?primary_language: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::primary_language?, - ?slogan: String, - ?socials: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social], - ?stock: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, - ?title: String - ) -> void - - def to_hash: -> { - address: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Stock, - title: String - } - - type address = - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - - class Address < ContextDev::Internal::Type::BaseModel - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country: String? - - def country=: (String) -> String - - attr_reader country_code: String? - - def country_code=: (String) -> String - - attr_reader postal_code: String? - - def postal_code=: (String) -> String - - attr_reader state_code: String? - - def state_code=: (String) -> String - - attr_reader state_province: String? - - def state_province=: (String) -> String - - attr_reader street: String? - - def street=: (String) -> String - - def initialize: ( - ?city: String, - ?country: String, - ?country_code: String, - ?postal_code: String, - ?state_code: String, - ?state_province: String, - ?street: String - ) -> void - - def to_hash: -> { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - end - - type backdrop = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, - url: String - } - - class Backdrop < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color] - - attr_reader resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color], - ?resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Backdrop::Resolution, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - end - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type industries = - { - eic: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] - } - - class Industries < ContextDev::Internal::Type::BaseModel - attr_reader eic: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic]? - - def eic=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] - - def initialize: ( - ?eic: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] - ) -> void - - def to_hash: -> { - eic: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic] - } - - type eic = - { - industry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::subindustry - } - - class Eic < ContextDev::Internal::Type::BaseModel - attr_accessor industry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::industry - - attr_accessor subindustry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::subindustry - - def initialize: ( - industry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::subindustry - ) -> void - - def to_hash: -> { - industry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::subindustry - } - - type industry = - :"Aerospace & Defense" - | :Technology - | :Finance - | :Healthcare - | :"Retail & E-commerce" - | :Entertainment - | :Education - | :"Government & Nonprofit" - | :"Industrial & Energy" - | :"Automotive & Transportation" - | :"Lifestyle & Leisure" - | :"Luxury & Fashion" - | :"News & Media" - | :Sports - | :"Real Estate & PropTech" - | :"Legal & Compliance" - | :Telecommunications - | :"Agriculture & Food" - | :"Professional Services & Agencies" - | :"Chemicals & Materials" - | :"Logistics & Supply Chain" - | :"Hospitality & Tourism" - | :"Construction & Built Environment" - | :"Consumer Packaged Goods (CPG)" - - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE: :"Aerospace & Defense" - TECHNOLOGY: :Technology - FINANCE: :Finance - HEALTHCARE: :Healthcare - RETAIL_E_COMMERCE: :"Retail & E-commerce" - ENTERTAINMENT: :Entertainment - EDUCATION: :Education - GOVERNMENT_NONPROFIT: :"Government & Nonprofit" - INDUSTRIAL_ENERGY: :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION: :"Automotive & Transportation" - LIFESTYLE_LEISURE: :"Lifestyle & Leisure" - LUXURY_FASHION: :"Luxury & Fashion" - NEWS_MEDIA: :"News & Media" - SPORTS: :Sports - REAL_ESTATE_PROP_TECH: :"Real Estate & PropTech" - LEGAL_COMPLIANCE: :"Legal & Compliance" - TELECOMMUNICATIONS: :Telecommunications - AGRICULTURE_FOOD: :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES: :"Professional Services & Agencies" - CHEMICALS_MATERIALS: :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN: :"Logistics & Supply Chain" - HOSPITALITY_TOURISM: :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT: :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG: :"Consumer Packaged Goods (CPG)" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::industry] - end - - type subindustry = - :"Defense Systems & Military Hardware" - | :"Aerospace Manufacturing" - | :"Avionics & Navigation Technology" - | :"Subsea & Naval Defense Systems" - | :"Space & Satellite Technology" - | :"Defense IT & Systems Integration" - | :"Software (B2B)" - | :"Software (B2C)" - | :"Cloud Infrastructure & DevOps" - | :Cybersecurity - | :"Artificial Intelligence & Machine Learning" - | :"Data Infrastructure & Analytics" - | :"Hardware & Semiconductors" - | :"Fintech Infrastructure" - | :"eCommerce & Marketplace Platforms" - | :"Developer Tools & APIs" - | :"Web3 & Blockchain" - | :"XR & Spatial Computing" - | :"Banking & Lending" - | :"Investment Management & WealthTech" - | :"Insurance & InsurTech" - | :"Payments & Money Movement" - | :"Accounting, Tax & Financial Planning Tools" - | :"Capital Markets & Trading Platforms" - | :"Financial Infrastructure & APIs" - | :"Credit Scoring & Risk Management" - | :"Cryptocurrency & Digital Assets" - | :"BNPL & Alternative Financing" - | :"Healthcare Providers & Services" - | :"Pharmaceuticals & Drug Development" - | :"Medical Devices & Diagnostics" - | :"Biotechnology & Genomics" - | :"Digital Health & Telemedicine" - | :"Health Insurance & Benefits Tech" - | :"Clinical Trials & Research Platforms" - | :"Mental Health & Wellness" - | :"Healthcare IT & EHR Systems" - | :"Consumer Health & Wellness Products" - | :"Online Marketplaces" - | :"Direct-to-Consumer (DTC) Brands" - | :"Retail Tech & Point-of-Sale Systems" - | :"Omnichannel & In-Store Retail" - | :"E-commerce Enablement & Infrastructure" - | :"Subscription & Membership Commerce" - | :"Social Commerce & Influencer Platforms" - | :"Fashion & Apparel Retail" - | :"Food, Beverage & Grocery E-commerce" - | :"Streaming Platforms (Video, Music, Audio)" - | :"Gaming & Interactive Entertainment" - | :"Creator Economy & Influencer Platforms" - | :"Advertising, Adtech & Media Buying" - | :"Film, TV & Production Studios" - | :"Events, Venues & Live Entertainment" - | :"Virtual Worlds & Metaverse Experiences" - | :"K-12 Education Platforms & Tools" - | :"Higher Education & University Tech" - | :"Online Learning & MOOCs" - | :"Test Prep & Certification" - | :"Corporate Training & Upskilling" - | :"Tutoring & Supplemental Learning" - | :"Education Management Systems (LMS/SIS)" - | :"Language Learning" - | :"Creator-Led & Cohort-Based Courses" - | :"Special Education & Accessibility Tools" - | :"Government Technology & Digital Services" - | :"Civic Engagement & Policy Platforms" - | :"International Development & Humanitarian Aid" - | :"Philanthropy & Grantmaking" - | :"Nonprofit Operations & Fundraising Tools" - | :"Public Health & Social Services" - | :"Education & Youth Development Programs" - | :"Environmental & Climate Action Organizations" - | :"Legal Aid & Social Justice Advocacy" - | :"Municipal & Infrastructure Services" - | :"Manufacturing & Industrial Automation" - | :"Energy Production (Oil, Gas, Nuclear)" - | :"Renewable Energy & Cleantech" - | :"Utilities & Grid Infrastructure" - | :"Industrial IoT & Monitoring Systems" - | :"Construction & Heavy Equipment" - | :"Mining & Natural Resources" - | :"Environmental Engineering & Sustainability" - | :"Energy Storage & Battery Technology" - | :"Automotive OEMs & Vehicle Manufacturing" - | :"Electric Vehicles (EVs) & Charging Infrastructure" - | :"Mobility-as-a-Service (MaaS)" - | :"Fleet Management" - | :"Public Transit & Urban Mobility" - | :"Autonomous Vehicles & ADAS" - | :"Aftermarket Parts & Services" - | :"Telematics & Vehicle Connectivity" - | :"Aviation & Aerospace Transport" - | :"Maritime Shipping" - | :"Fitness & Wellness" - | :"Beauty & Personal Care" - | :"Home & Living" - | :"Dating & Relationships" - | :"Hobbies, Crafts & DIY" - | :"Outdoor & Recreational Gear" - | :"Events, Experiences & Ticketing Platforms" - | :"Designer & Luxury Apparel" - | :"Accessories, Jewelry & Watches" - | :"Footwear & Leather Goods" - | :"Beauty, Fragrance & Skincare" - | :"Fashion Marketplaces & Retail Platforms" - | :"Sustainable & Ethical Fashion" - | :"Resale, Vintage & Circular Fashion" - | :"Fashion Tech & Virtual Try-Ons" - | :"Streetwear & Emerging Luxury" - | :"Couture & Made-to-Measure" - | :"News Publishing & Journalism" - | :"Digital Media & Content Platforms" - | :"Broadcasting (TV & Radio)" - | :"Podcasting & Audio Media" - | :"News Aggregators & Curation Tools" - | :"Independent & Creator-Led Media" - | :"Newsletters & Substack-Style Platforms" - | :"Political & Investigative Media" - | :"Trade & Niche Publications" - | :"Media Monitoring & Analytics" - | :"Professional Teams & Leagues" - | :"Sports Media & Broadcasting" - | :"Sports Betting & Fantasy Sports" - | :"Fitness & Athletic Training Platforms" - | :"Sportswear & Equipment" - | :"Esports & Competitive Gaming" - | :"Sports Venues & Event Management" - | :"Athlete Management & Talent Agencies" - | :"Sports Tech & Performance Analytics" - | :"Youth, Amateur & Collegiate Sports" - | :"Real Estate Marketplaces" - | :"Property Management Software" - | :"Rental Platforms" - | :"Mortgage & Lending Tech" - | :"Real Estate Investment Platforms" - | :"Law Firms & Legal Services" - | :"Legal Tech & Automation" - | :"Regulatory Compliance" - | :"E-Discovery & Litigation Tools" - | :"Contract Management" - | :"Governance, Risk & Compliance (GRC)" - | :"IP & Trademark Management" - | :"Legal Research & Intelligence" - | :"Compliance Training & Certification" - | :"Whistleblower & Ethics Reporting" - | :"Mobile & Wireless Networks (3G/4G/5G)" - | :"Broadband & Fiber Internet" - | :"Satellite & Space-Based Communications" - | :"Network Equipment & Infrastructure" - | :"Telecom Billing & OSS/BSS Systems" - | :"VoIP & Unified Communications" - | :"Internet Service Providers (ISPs)" - | :"Edge Computing & Network Virtualization" - | :"IoT Connectivity Platforms" - | :"Precision Agriculture & AgTech" - | :"Crop & Livestock Production" - | :"Food & Beverage Manufacturing & Processing" - | :"Food Distribution" - | :"Restaurants & Food Service" - | :"Agricultural Inputs & Equipment" - | :"Sustainable & Regenerative Agriculture" - | :"Seafood & Aquaculture" - | :"Management Consulting" - | :"Marketing & Advertising Agencies" - | :"Design, Branding & Creative Studios" - | :"IT Services & Managed Services" - | :"Staffing, Recruiting & Talent" - | :"Accounting & Tax Firms" - | :"Public Relations & Communications" - | :"Business Process Outsourcing (BPO)" - | :"Professional Training & Coaching" - | :"Specialty Chemicals" - | :"Commodity & Petrochemicals" - | :"Polymers, Plastics & Rubber" - | :"Coatings, Adhesives & Sealants" - | :"Industrial Gases" - | :"Advanced Materials & Composites" - | :"Battery Materials & Energy Storage" - | :"Electronic Materials & Semiconductor Chemicals" - | :"Agrochemicals & Fertilizers" - | :"Freight & Transportation Tech" - | :"Last-Mile Delivery" - | :"Warehouse Automation" - | :"Supply Chain Visibility Platforms" - | :"Logistics Marketplaces" - | :"Shipping & Freight Forwarding" - | :"Cold Chain Logistics" - | :"Reverse Logistics & Returns" - | :"Cross-Border Trade Tech" - | :"Transportation Management Systems (TMS)" - | :"Hotels & Accommodation" - | :"Vacation Rentals & Short-Term Stays" - | :"Restaurant Tech & Management" - | :"Travel Booking Platforms" - | :"Tourism Experiences & Activities" - | :"Cruise Lines & Marine Tourism" - | :"Hospitality Management Systems" - | :"Event & Venue Management" - | :"Corporate Travel Management" - | :"Travel Insurance & Protection" - | :"Construction Management Software" - | :"BIM/CAD & Design Tools" - | :"Construction Marketplaces" - | :"Equipment Rental & Management" - | :"Building Materials & Procurement" - | :"Construction Workforce Management" - | :"Project Estimation & Bidding" - | :"Modular & Prefab Construction" - | :"Construction Safety & Compliance" - | :"Smart Building Technology" - | :"Food & Beverage CPG" - | :"Home & Personal Care CPG" - | :"CPG Analytics & Insights" - | :"Direct-to-Consumer CPG Brands" - | :"CPG Supply Chain & Distribution" - | :"Private Label Manufacturing" - | :"CPG Retail Intelligence" - | :"Sustainable CPG & Packaging" - | :"Beauty & Cosmetics CPG" - | :"Health & Wellness CPG" - - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE: :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING: :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY: :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS: :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY: :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION: :"Defense IT & Systems Integration" - SOFTWARE_B2_B: :"Software (B2B)" - SOFTWARE_B2_C: :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS: :"Cloud Infrastructure & DevOps" - CYBERSECURITY: :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING: :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS: :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS: :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE: :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS: :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS: :"Developer Tools & APIs" - WEB3_BLOCKCHAIN: :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING: :"XR & Spatial Computing" - BANKING_LENDING: :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH: :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH: :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT: :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS: :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS: :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS: :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT: :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS: :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING: :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES: :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT: :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS: :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS: :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE: :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH: :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS: :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS: :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS: :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS: :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES: :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS: :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS: :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL: :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE: :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE: :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS: :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL: :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE: :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO: :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT: :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS: :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING: :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS: :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT: :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES: :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS: :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH: :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS: :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION: :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING: :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING: :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS: :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING: :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES: :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS: :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES: :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS: :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID: :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING: :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS: :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES: :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS: :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS: :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY: :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES: :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION: :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR: :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH: :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE: :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS: :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT: :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES: :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY: :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY: :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING: :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE: :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S: :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT: :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY: :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS: :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES: :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY: :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT: :"Aviation & Aerospace Transport" - MARITIME_SHIPPING: :"Maritime Shipping" - FITNESS_WELLNESS: :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE: :"Beauty & Personal Care" - HOME_LIVING: :"Home & Living" - DATING_RELATIONSHIPS: :"Dating & Relationships" - HOBBIES_CRAFTS_DIY: :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR: :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS: :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL: :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES: :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS: :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE: :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS: :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION: :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION: :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS: :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY: :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE: :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM: :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS: :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO: :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA: :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS: :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA: :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS: :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA: :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS: :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS: :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES: :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING: :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS: :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS: :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT: :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING: :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT: :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES: :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS: :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS: :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES: :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE: :"Property Management Software" - RENTAL_PLATFORMS: :"Rental Platforms" - MORTGAGE_LENDING_TECH: :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS: :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES: :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION: :"Legal Tech & Automation" - REGULATORY_COMPLIANCE: :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS: :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT: :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC: :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT: :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE: :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION: :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING: :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G: :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET: :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS: :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE: :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS: :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS: :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS: :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION: :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS: :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH: :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION: :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING: :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION: :"Food Distribution" - RESTAURANTS_FOOD_SERVICE: :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT: :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE: :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE: :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING: :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES: :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS: :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES: :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT: :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS: :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS: :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO: :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING: :"Professional Training & Coaching" - SPECIALTY_CHEMICALS: :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS: :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER: :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS: :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES: :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES: :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE: :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS: :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS: :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH: :"Freight & Transportation Tech" - LAST_MILE_DELIVERY: :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION: :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS: :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES: :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING: :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS: :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS: :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH: :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS: :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION: :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS: :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT: :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS: :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES: :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM: :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS: :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT: :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT: :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION: :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE: :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS: :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES: :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT: :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT: :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT: :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING: :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION: :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE: :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY: :"Smart Building Technology" - FOOD_BEVERAGE_CPG: :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG: :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS: :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS: :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION: :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING: :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE: :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING: :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG: :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG: :"Health & Wellness CPG" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Industries::Eic::subindustry] - end - end - end - - type links = - { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - - class Links < ContextDev::Internal::Type::BaseModel - attr_accessor blog: String? - - attr_accessor careers: String? - - attr_accessor contact: String? - - attr_accessor pricing: String? - - attr_accessor privacy: String? - - attr_accessor terms: String? - - def initialize: ( - ?blog: String?, - ?careers: String?, - ?contact: String?, - ?pricing: String?, - ?privacy: String?, - ?terms: String? - ) -> void - - def to_hash: -> { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - end - - type logo = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_, - url: String - } - - class Logo < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color] - - attr_reader mode: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode? - - def mode=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode - - attr_reader resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution - - attr_reader type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_ - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color], - ?mode: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode, - ?resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, - ?type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type mode = :light | :dark | :has_opaque_background - - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT: :light - DARK: :dark - HAS_OPAQUE_BACKGROUND: :has_opaque_background - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::mode] - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - - type type_ = :icon | :logo - - module Type - extend ContextDev::Internal::Type::Enum - - ICON: :icon - LOGO: :logo - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Logo::type_] - end - end - - type primary_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::primary_language] - end - - type social = - { - type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_, - url: String - } - - class Social < ContextDev::Internal::Type::BaseModel - attr_reader type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_ - ) -> ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_, - ?url: String - ) -> void - - def to_hash: -> { - type: ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_, - url: String - } - - type type_ = - :x - | :facebook - | :instagram - | :linkedin - | :youtube - | :pinterest - | :tiktok - | :dribbble - | :github - | :behance - | :snapchat - | :whatsapp - | :telegram - | :line - | :discord - | :twitch - | :vimeo - | :imdb - | :tumblr - | :flickr - | :giphy - | :medium - | :spotify - | :soundcloud - | :tripadvisor - | :yelp - | :producthunt - | :reddit - | :crunchbase - | :appstore - | :playstore - - module Type - extend ContextDev::Internal::Type::Enum - - X: :x - FACEBOOK: :facebook - INSTAGRAM: :instagram - LINKEDIN: :linkedin - YOUTUBE: :youtube - PINTEREST: :pinterest - TIKTOK: :tiktok - DRIBBBLE: :dribbble - GITHUB: :github - BEHANCE: :behance - SNAPCHAT: :snapchat - WHATSAPP: :whatsapp - TELEGRAM: :telegram - LINE: :line - DISCORD: :discord - TWITCH: :twitch - VIMEO: :vimeo - IMDB: :imdb - TUMBLR: :tumblr - FLICKR: :flickr - GIPHY: :giphy - MEDIUM: :medium - SPOTIFY: :spotify - SOUNDCLOUD: :soundcloud - TRIPADVISOR: :tripadvisor - YELP: :yelp - PRODUCTHUNT: :producthunt - REDDIT: :reddit - CRUNCHBASE: :crunchbase - APPSTORE: :appstore - PLAYSTORE: :playstore - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByIsinResponse::Brand::Social::type_] - end - end - - type stock = { exchange: String, ticker: String } - - class Stock < ContextDev::Internal::Type::BaseModel - attr_reader exchange: String? - - def exchange=: (String) -> String - - attr_reader ticker: String? - - def ticker=: (String) -> String - - def initialize: (?exchange: String, ?ticker: String) -> void - - def to_hash: -> { exchange: String, ticker: String } - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_name_params.rbs b/sig/context_dev/models/brand_retrieve_by_name_params.rbs deleted file mode 100644 index fc2b79a2..00000000 --- a/sig/context_dev/models/brand_retrieve_by_name_params.rbs +++ /dev/null @@ -1,801 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_name_params = - { - name: String, - country_gl: ContextDev::Models::BrandRetrieveByNameParams::country_gl, - force_language: ContextDev::Models::BrandRetrieveByNameParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor name: String - - attr_reader country_gl: ContextDev::Models::BrandRetrieveByNameParams::country_gl? - - def country_gl=: ( - ContextDev::Models::BrandRetrieveByNameParams::country_gl - ) -> ContextDev::Models::BrandRetrieveByNameParams::country_gl - - attr_reader force_language: ContextDev::Models::BrandRetrieveByNameParams::force_language? - - def force_language=: ( - ContextDev::Models::BrandRetrieveByNameParams::force_language - ) -> ContextDev::Models::BrandRetrieveByNameParams::force_language - - attr_reader max_age_ms: Integer? - - def max_age_ms=: (Integer) -> Integer - - attr_reader max_speed: bool? - - def max_speed=: (bool) -> bool - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - name: String, - ?country_gl: ContextDev::Models::BrandRetrieveByNameParams::country_gl, - ?force_language: ContextDev::Models::BrandRetrieveByNameParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - name: String, - country_gl: ContextDev::Models::BrandRetrieveByNameParams::country_gl, - force_language: ContextDev::Models::BrandRetrieveByNameParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type country_gl = - :ad - | :ae - | :af - | :ag - | :ai - | :al - | :am - | :an - | :ao - | :aq - | :ar - | :as - | :at - | :au - | :aw - | :az - | :ba - | :bb - | :bd - | :be - | :bf - | :bg - | :bh - | :bi - | :bj - | :bm - | :bn - | :bo - | :br - | :bs - | :bt - | :bv - | :bw - | :by - | :bz - | :ca - | :cc - | :cd - | :cf - | :cg - | :ch - | :ci - | :ck - | :cl - | :cm - | :cn - | :co - | :cr - | :cu - | :cv - | :cx - | :cy - | :cz - | :de - | :dj - | :dk - | :dm - | :do - | :dz - | :ec - | :ee - | :eg - | :eh - | :er - | :es - | :et - | :fi - | :fj - | :fk - | :fm - | :fo - | :fr - | :ga - | :gb - | :gd - | :ge - | :gf - | :gh - | :gi - | :gl - | :gm - | :gn - | :gp - | :gq - | :gr - | :gs - | :gt - | :gu - | :gw - | :gy - | :hk - | :hm - | :hn - | :hr - | :ht - | :hu - | :id - | :ie - | :il - | :in - | :io - | :iq - | :ir - | :is - | :it - | :jm - | :jo - | :jp - | :ke - | :kg - | :kh - | :ki - | :km - | :kn - | :kp - | :kr - | :kw - | :ky - | :kz - | :la - | :lb - | :lc - | :li - | :lk - | :lr - | :ls - | :lt - | :lu - | :lv - | :ly - | :ma - | :mc - | :md - | :mg - | :mh - | :mk - | :ml - | :mm - | :mn - | :mo - | :mp - | :mq - | :mr - | :ms - | :mt - | :mu - | :mv - | :mw - | :mx - | :my - | :mz - | :na - | :nc - | :ne - | :nf - | :ng - | :ni - | :nl - | :no - | :np - | :nr - | :nu - | :nz - | :om - | :pa - | :pe - | :pf - | :pg - | :ph - | :pk - | :pl - | :pm - | :pn - | :pr - | :ps - | :pt - | :pw - | :py - | :qa - | :re - | :ro - | :rs - | :ru - | :rw - | :sa - | :sb - | :sc - | :sd - | :se - | :sg - | :sh - | :si - | :sj - | :sk - | :sl - | :sm - | :sn - | :so - | :sr - | :st - | :sv - | :sy - | :sz - | :tc - | :td - | :tf - | :tg - | :th - | :tj - | :tk - | :tl - | :tm - | :tn - | :to - | :tr - | :tt - | :tv - | :tw - | :tz - | :ua - | :ug - | :um - | :us - | :uy - | :uz - | :va - | :vc - | :ve - | :vg - | :vi - | :vn - | :vu - | :wf - | :ws - | :ye - | :yt - | :za - | :zm - | :zw - - module CountryGl - extend ContextDev::Internal::Type::Enum - - AD: :ad - AE: :ae - AF: :af - AG: :ag - AI: :ai - AL: :al - AM: :am - AN: :an - AO: :ao - AQ: :aq - AR: :ar - AS: :as - AT: :at - AU: :au - AW: :aw - AZ: :az - BA: :ba - BB: :bb - BD: :bd - BE: :be - BF: :bf - BG: :bg - BH: :bh - BI: :bi - BJ: :bj - BM: :bm - BN: :bn - BO: :bo - BR: :br - BS: :bs - BT: :bt - BV: :bv - BW: :bw - BY: :by - BZ: :bz - CA: :ca - CC: :cc - CD: :cd - CF: :cf - CG: :cg - CH: :ch - CI: :ci - CK: :ck - CL: :cl - CM: :cm - CN: :cn - CO: :co - CR: :cr - CU: :cu - CV: :cv - CX: :cx - CY: :cy - CZ: :cz - DE: :de - DJ: :dj - DK: :dk - DM: :dm - DO: :do - DZ: :dz - EC: :ec - EE: :ee - EG: :eg - EH: :eh - ER: :er - ES: :es - ET: :et - FI: :fi - FJ: :fj - FK: :fk - FM: :fm - FO: :fo - FR: :fr - GA: :ga - GB: :gb - GD: :gd - GE: :ge - GF: :gf - GH: :gh - GI: :gi - GL: :gl - GM: :gm - GN: :gn - GP: :gp - GQ: :gq - GR: :gr - GS: :gs - GT: :gt - GU: :gu - GW: :gw - GY: :gy - HK: :hk - HM: :hm - HN: :hn - HR: :hr - HT: :ht - HU: :hu - ID: :id - IE: :ie - IL: :il - IN: :in - IO: :io - IQ: :iq - IR: :ir - IS: :is - IT: :it - JM: :jm - JO: :jo - JP: :jp - KE: :ke - KG: :kg - KH: :kh - KI: :ki - KM: :km - KN: :kn - KP: :kp - KR: :kr - KW: :kw - KY: :ky - KZ: :kz - LA: :la - LB: :lb - LC: :lc - LI: :li - LK: :lk - LR: :lr - LS: :ls - LT: :lt - LU: :lu - LV: :lv - LY: :ly - MA: :ma - MC: :mc - MD: :md - MG: :mg - MH: :mh - MK: :mk - ML: :ml - MM: :mm - MN: :mn - MO: :mo - MP: :mp - MQ: :mq - MR: :mr - MS: :ms - MT: :mt - MU: :mu - MV: :mv - MW: :mw - MX: :mx - MY: :my - MZ: :mz - NA: :na - NC: :nc - NE: :ne - NF: :nf - NG: :ng - NI: :ni - NL: :nl - NO: :no - NP: :np - NR: :nr - NU: :nu - NZ: :nz - OM: :om - PA: :pa - PE: :pe - PF: :pf - PG: :pg - PH: :ph - PK: :pk - PL: :pl - PM: :pm - PN: :pn - PR: :pr - PS: :ps - PT: :pt - PW: :pw - PY: :py - QA: :qa - RE: :re - RO: :ro - RS: :rs - RU: :ru - RW: :rw - SA: :sa - SB: :sb - SC: :sc - SD: :sd - SE: :se - SG: :sg - SH: :sh - SI: :si - SJ: :sj - SK: :sk - SL: :sl - SM: :sm - SN: :sn - SO: :so - SR: :sr - ST: :st - SV: :sv - SY: :sy - SZ: :sz - TC: :tc - TD: :td - TF: :tf - TG: :tg - TH: :th - TJ: :tj - TK: :tk - TL: :tl - TM: :tm - TN: :tn - TO: :to - TR: :tr - TT: :tt - TV: :tv - TW: :tw - TZ: :tz - UA: :ua - UG: :ug - UM: :um - US: :us - UY: :uy - UZ: :uz - VA: :va - VC: :vc - VE: :ve - VG: :vg - VI: :vi - VN: :vn - VU: :vu - WF: :wf - WS: :ws - YE: :ye - YT: :yt - ZA: :za - ZM: :zm - ZW: :zw - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameParams::country_gl] - end - - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameParams::force_language] - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_name_response.rbs b/sig/context_dev/models/brand_retrieve_by_name_response.rbs deleted file mode 100644 index 434ec901..00000000 --- a/sig/context_dev/models/brand_retrieve_by_name_response.rbs +++ /dev/null @@ -1,1441 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_name_response = - { - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, - status: String - } - - class BrandRetrieveByNameResponse < ContextDev::Internal::Type::BaseModel - attr_reader brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand? - - def brand=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand - - attr_reader code: Integer? - - def code=: (Integer) -> Integer - - attr_reader key_metadata: ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata - ) -> ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand, - ?code: Integer, - ?key_metadata: ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, - ?status: String - ) -> void - - def to_hash: -> { - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata, - status: String - } - - type brand = - { - address: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByNameResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, - title: String - } - - class Brand < ContextDev::Internal::Type::BaseModel - attr_reader address: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address? - - def address=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address - - attr_reader backdrops: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop]? - - def backdrops=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop] - - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color] - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader email: String? - - def email=: (String) -> String - - attr_reader industries: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries? - - def industries=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries - - attr_reader is_nsfw: bool? - - def is_nsfw=: (bool) -> bool - - attr_reader links: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links? - - def links=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links - - attr_reader logos: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo]? - - def logos=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo] - - attr_reader phone: String? - - def phone=: (String) -> String - - attr_accessor primary_language: ContextDev::Models::BrandRetrieveByNameResponse::Brand::primary_language? - - attr_reader slogan: String? - - def slogan=: (String) -> String - - attr_reader socials: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social]? - - def socials=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social] - - attr_reader stock: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock? - - def stock=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - ?address: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, - ?backdrops: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop], - ?colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color], - ?description: String, - ?domain: String, - ?email: String, - ?industries: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, - ?is_nsfw: bool, - ?links: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, - ?logos: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo], - ?phone: String, - ?primary_language: ContextDev::Models::BrandRetrieveByNameResponse::Brand::primary_language?, - ?slogan: String, - ?socials: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social], - ?stock: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, - ?title: String - ) -> void - - def to_hash: -> { - address: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByNameResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Stock, - title: String - } - - type address = - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - - class Address < ContextDev::Internal::Type::BaseModel - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country: String? - - def country=: (String) -> String - - attr_reader country_code: String? - - def country_code=: (String) -> String - - attr_reader postal_code: String? - - def postal_code=: (String) -> String - - attr_reader state_code: String? - - def state_code=: (String) -> String - - attr_reader state_province: String? - - def state_province=: (String) -> String - - attr_reader street: String? - - def street=: (String) -> String - - def initialize: ( - ?city: String, - ?country: String, - ?country_code: String, - ?postal_code: String, - ?state_code: String, - ?state_province: String, - ?street: String - ) -> void - - def to_hash: -> { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - end - - type backdrop = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, - url: String - } - - class Backdrop < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color] - - attr_reader resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color], - ?resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - end - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type industries = - { - eic: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] - } - - class Industries < ContextDev::Internal::Type::BaseModel - attr_reader eic: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic]? - - def eic=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] - - def initialize: ( - ?eic: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] - ) -> void - - def to_hash: -> { - eic: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic] - } - - type eic = - { - industry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::subindustry - } - - class Eic < ContextDev::Internal::Type::BaseModel - attr_accessor industry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::industry - - attr_accessor subindustry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::subindustry - - def initialize: ( - industry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::subindustry - ) -> void - - def to_hash: -> { - industry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::subindustry - } - - type industry = - :"Aerospace & Defense" - | :Technology - | :Finance - | :Healthcare - | :"Retail & E-commerce" - | :Entertainment - | :Education - | :"Government & Nonprofit" - | :"Industrial & Energy" - | :"Automotive & Transportation" - | :"Lifestyle & Leisure" - | :"Luxury & Fashion" - | :"News & Media" - | :Sports - | :"Real Estate & PropTech" - | :"Legal & Compliance" - | :Telecommunications - | :"Agriculture & Food" - | :"Professional Services & Agencies" - | :"Chemicals & Materials" - | :"Logistics & Supply Chain" - | :"Hospitality & Tourism" - | :"Construction & Built Environment" - | :"Consumer Packaged Goods (CPG)" - - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE: :"Aerospace & Defense" - TECHNOLOGY: :Technology - FINANCE: :Finance - HEALTHCARE: :Healthcare - RETAIL_E_COMMERCE: :"Retail & E-commerce" - ENTERTAINMENT: :Entertainment - EDUCATION: :Education - GOVERNMENT_NONPROFIT: :"Government & Nonprofit" - INDUSTRIAL_ENERGY: :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION: :"Automotive & Transportation" - LIFESTYLE_LEISURE: :"Lifestyle & Leisure" - LUXURY_FASHION: :"Luxury & Fashion" - NEWS_MEDIA: :"News & Media" - SPORTS: :Sports - REAL_ESTATE_PROP_TECH: :"Real Estate & PropTech" - LEGAL_COMPLIANCE: :"Legal & Compliance" - TELECOMMUNICATIONS: :Telecommunications - AGRICULTURE_FOOD: :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES: :"Professional Services & Agencies" - CHEMICALS_MATERIALS: :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN: :"Logistics & Supply Chain" - HOSPITALITY_TOURISM: :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT: :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG: :"Consumer Packaged Goods (CPG)" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::industry] - end - - type subindustry = - :"Defense Systems & Military Hardware" - | :"Aerospace Manufacturing" - | :"Avionics & Navigation Technology" - | :"Subsea & Naval Defense Systems" - | :"Space & Satellite Technology" - | :"Defense IT & Systems Integration" - | :"Software (B2B)" - | :"Software (B2C)" - | :"Cloud Infrastructure & DevOps" - | :Cybersecurity - | :"Artificial Intelligence & Machine Learning" - | :"Data Infrastructure & Analytics" - | :"Hardware & Semiconductors" - | :"Fintech Infrastructure" - | :"eCommerce & Marketplace Platforms" - | :"Developer Tools & APIs" - | :"Web3 & Blockchain" - | :"XR & Spatial Computing" - | :"Banking & Lending" - | :"Investment Management & WealthTech" - | :"Insurance & InsurTech" - | :"Payments & Money Movement" - | :"Accounting, Tax & Financial Planning Tools" - | :"Capital Markets & Trading Platforms" - | :"Financial Infrastructure & APIs" - | :"Credit Scoring & Risk Management" - | :"Cryptocurrency & Digital Assets" - | :"BNPL & Alternative Financing" - | :"Healthcare Providers & Services" - | :"Pharmaceuticals & Drug Development" - | :"Medical Devices & Diagnostics" - | :"Biotechnology & Genomics" - | :"Digital Health & Telemedicine" - | :"Health Insurance & Benefits Tech" - | :"Clinical Trials & Research Platforms" - | :"Mental Health & Wellness" - | :"Healthcare IT & EHR Systems" - | :"Consumer Health & Wellness Products" - | :"Online Marketplaces" - | :"Direct-to-Consumer (DTC) Brands" - | :"Retail Tech & Point-of-Sale Systems" - | :"Omnichannel & In-Store Retail" - | :"E-commerce Enablement & Infrastructure" - | :"Subscription & Membership Commerce" - | :"Social Commerce & Influencer Platforms" - | :"Fashion & Apparel Retail" - | :"Food, Beverage & Grocery E-commerce" - | :"Streaming Platforms (Video, Music, Audio)" - | :"Gaming & Interactive Entertainment" - | :"Creator Economy & Influencer Platforms" - | :"Advertising, Adtech & Media Buying" - | :"Film, TV & Production Studios" - | :"Events, Venues & Live Entertainment" - | :"Virtual Worlds & Metaverse Experiences" - | :"K-12 Education Platforms & Tools" - | :"Higher Education & University Tech" - | :"Online Learning & MOOCs" - | :"Test Prep & Certification" - | :"Corporate Training & Upskilling" - | :"Tutoring & Supplemental Learning" - | :"Education Management Systems (LMS/SIS)" - | :"Language Learning" - | :"Creator-Led & Cohort-Based Courses" - | :"Special Education & Accessibility Tools" - | :"Government Technology & Digital Services" - | :"Civic Engagement & Policy Platforms" - | :"International Development & Humanitarian Aid" - | :"Philanthropy & Grantmaking" - | :"Nonprofit Operations & Fundraising Tools" - | :"Public Health & Social Services" - | :"Education & Youth Development Programs" - | :"Environmental & Climate Action Organizations" - | :"Legal Aid & Social Justice Advocacy" - | :"Municipal & Infrastructure Services" - | :"Manufacturing & Industrial Automation" - | :"Energy Production (Oil, Gas, Nuclear)" - | :"Renewable Energy & Cleantech" - | :"Utilities & Grid Infrastructure" - | :"Industrial IoT & Monitoring Systems" - | :"Construction & Heavy Equipment" - | :"Mining & Natural Resources" - | :"Environmental Engineering & Sustainability" - | :"Energy Storage & Battery Technology" - | :"Automotive OEMs & Vehicle Manufacturing" - | :"Electric Vehicles (EVs) & Charging Infrastructure" - | :"Mobility-as-a-Service (MaaS)" - | :"Fleet Management" - | :"Public Transit & Urban Mobility" - | :"Autonomous Vehicles & ADAS" - | :"Aftermarket Parts & Services" - | :"Telematics & Vehicle Connectivity" - | :"Aviation & Aerospace Transport" - | :"Maritime Shipping" - | :"Fitness & Wellness" - | :"Beauty & Personal Care" - | :"Home & Living" - | :"Dating & Relationships" - | :"Hobbies, Crafts & DIY" - | :"Outdoor & Recreational Gear" - | :"Events, Experiences & Ticketing Platforms" - | :"Designer & Luxury Apparel" - | :"Accessories, Jewelry & Watches" - | :"Footwear & Leather Goods" - | :"Beauty, Fragrance & Skincare" - | :"Fashion Marketplaces & Retail Platforms" - | :"Sustainable & Ethical Fashion" - | :"Resale, Vintage & Circular Fashion" - | :"Fashion Tech & Virtual Try-Ons" - | :"Streetwear & Emerging Luxury" - | :"Couture & Made-to-Measure" - | :"News Publishing & Journalism" - | :"Digital Media & Content Platforms" - | :"Broadcasting (TV & Radio)" - | :"Podcasting & Audio Media" - | :"News Aggregators & Curation Tools" - | :"Independent & Creator-Led Media" - | :"Newsletters & Substack-Style Platforms" - | :"Political & Investigative Media" - | :"Trade & Niche Publications" - | :"Media Monitoring & Analytics" - | :"Professional Teams & Leagues" - | :"Sports Media & Broadcasting" - | :"Sports Betting & Fantasy Sports" - | :"Fitness & Athletic Training Platforms" - | :"Sportswear & Equipment" - | :"Esports & Competitive Gaming" - | :"Sports Venues & Event Management" - | :"Athlete Management & Talent Agencies" - | :"Sports Tech & Performance Analytics" - | :"Youth, Amateur & Collegiate Sports" - | :"Real Estate Marketplaces" - | :"Property Management Software" - | :"Rental Platforms" - | :"Mortgage & Lending Tech" - | :"Real Estate Investment Platforms" - | :"Law Firms & Legal Services" - | :"Legal Tech & Automation" - | :"Regulatory Compliance" - | :"E-Discovery & Litigation Tools" - | :"Contract Management" - | :"Governance, Risk & Compliance (GRC)" - | :"IP & Trademark Management" - | :"Legal Research & Intelligence" - | :"Compliance Training & Certification" - | :"Whistleblower & Ethics Reporting" - | :"Mobile & Wireless Networks (3G/4G/5G)" - | :"Broadband & Fiber Internet" - | :"Satellite & Space-Based Communications" - | :"Network Equipment & Infrastructure" - | :"Telecom Billing & OSS/BSS Systems" - | :"VoIP & Unified Communications" - | :"Internet Service Providers (ISPs)" - | :"Edge Computing & Network Virtualization" - | :"IoT Connectivity Platforms" - | :"Precision Agriculture & AgTech" - | :"Crop & Livestock Production" - | :"Food & Beverage Manufacturing & Processing" - | :"Food Distribution" - | :"Restaurants & Food Service" - | :"Agricultural Inputs & Equipment" - | :"Sustainable & Regenerative Agriculture" - | :"Seafood & Aquaculture" - | :"Management Consulting" - | :"Marketing & Advertising Agencies" - | :"Design, Branding & Creative Studios" - | :"IT Services & Managed Services" - | :"Staffing, Recruiting & Talent" - | :"Accounting & Tax Firms" - | :"Public Relations & Communications" - | :"Business Process Outsourcing (BPO)" - | :"Professional Training & Coaching" - | :"Specialty Chemicals" - | :"Commodity & Petrochemicals" - | :"Polymers, Plastics & Rubber" - | :"Coatings, Adhesives & Sealants" - | :"Industrial Gases" - | :"Advanced Materials & Composites" - | :"Battery Materials & Energy Storage" - | :"Electronic Materials & Semiconductor Chemicals" - | :"Agrochemicals & Fertilizers" - | :"Freight & Transportation Tech" - | :"Last-Mile Delivery" - | :"Warehouse Automation" - | :"Supply Chain Visibility Platforms" - | :"Logistics Marketplaces" - | :"Shipping & Freight Forwarding" - | :"Cold Chain Logistics" - | :"Reverse Logistics & Returns" - | :"Cross-Border Trade Tech" - | :"Transportation Management Systems (TMS)" - | :"Hotels & Accommodation" - | :"Vacation Rentals & Short-Term Stays" - | :"Restaurant Tech & Management" - | :"Travel Booking Platforms" - | :"Tourism Experiences & Activities" - | :"Cruise Lines & Marine Tourism" - | :"Hospitality Management Systems" - | :"Event & Venue Management" - | :"Corporate Travel Management" - | :"Travel Insurance & Protection" - | :"Construction Management Software" - | :"BIM/CAD & Design Tools" - | :"Construction Marketplaces" - | :"Equipment Rental & Management" - | :"Building Materials & Procurement" - | :"Construction Workforce Management" - | :"Project Estimation & Bidding" - | :"Modular & Prefab Construction" - | :"Construction Safety & Compliance" - | :"Smart Building Technology" - | :"Food & Beverage CPG" - | :"Home & Personal Care CPG" - | :"CPG Analytics & Insights" - | :"Direct-to-Consumer CPG Brands" - | :"CPG Supply Chain & Distribution" - | :"Private Label Manufacturing" - | :"CPG Retail Intelligence" - | :"Sustainable CPG & Packaging" - | :"Beauty & Cosmetics CPG" - | :"Health & Wellness CPG" - - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE: :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING: :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY: :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS: :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY: :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION: :"Defense IT & Systems Integration" - SOFTWARE_B2_B: :"Software (B2B)" - SOFTWARE_B2_C: :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS: :"Cloud Infrastructure & DevOps" - CYBERSECURITY: :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING: :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS: :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS: :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE: :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS: :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS: :"Developer Tools & APIs" - WEB3_BLOCKCHAIN: :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING: :"XR & Spatial Computing" - BANKING_LENDING: :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH: :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH: :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT: :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS: :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS: :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS: :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT: :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS: :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING: :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES: :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT: :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS: :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS: :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE: :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH: :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS: :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS: :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS: :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS: :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES: :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS: :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS: :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL: :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE: :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE: :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS: :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL: :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE: :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO: :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT: :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS: :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING: :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS: :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT: :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES: :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS: :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH: :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS: :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION: :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING: :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING: :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS: :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING: :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES: :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS: :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES: :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS: :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID: :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING: :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS: :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES: :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS: :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS: :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY: :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES: :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION: :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR: :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH: :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE: :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS: :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT: :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES: :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY: :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY: :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING: :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE: :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S: :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT: :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY: :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS: :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES: :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY: :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT: :"Aviation & Aerospace Transport" - MARITIME_SHIPPING: :"Maritime Shipping" - FITNESS_WELLNESS: :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE: :"Beauty & Personal Care" - HOME_LIVING: :"Home & Living" - DATING_RELATIONSHIPS: :"Dating & Relationships" - HOBBIES_CRAFTS_DIY: :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR: :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS: :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL: :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES: :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS: :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE: :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS: :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION: :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION: :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS: :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY: :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE: :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM: :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS: :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO: :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA: :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS: :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA: :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS: :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA: :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS: :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS: :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES: :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING: :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS: :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS: :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT: :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING: :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT: :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES: :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS: :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS: :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES: :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE: :"Property Management Software" - RENTAL_PLATFORMS: :"Rental Platforms" - MORTGAGE_LENDING_TECH: :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS: :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES: :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION: :"Legal Tech & Automation" - REGULATORY_COMPLIANCE: :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS: :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT: :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC: :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT: :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE: :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION: :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING: :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G: :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET: :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS: :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE: :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS: :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS: :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS: :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION: :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS: :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH: :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION: :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING: :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION: :"Food Distribution" - RESTAURANTS_FOOD_SERVICE: :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT: :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE: :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE: :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING: :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES: :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS: :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES: :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT: :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS: :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS: :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO: :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING: :"Professional Training & Coaching" - SPECIALTY_CHEMICALS: :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS: :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER: :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS: :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES: :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES: :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE: :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS: :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS: :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH: :"Freight & Transportation Tech" - LAST_MILE_DELIVERY: :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION: :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS: :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES: :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING: :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS: :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS: :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH: :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS: :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION: :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS: :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT: :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS: :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES: :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM: :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS: :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT: :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT: :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION: :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE: :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS: :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES: :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT: :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT: :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT: :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING: :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION: :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE: :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY: :"Smart Building Technology" - FOOD_BEVERAGE_CPG: :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG: :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS: :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS: :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION: :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING: :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE: :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING: :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG: :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG: :"Health & Wellness CPG" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Industries::Eic::subindustry] - end - end - end - - type links = - { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - - class Links < ContextDev::Internal::Type::BaseModel - attr_accessor blog: String? - - attr_accessor careers: String? - - attr_accessor contact: String? - - attr_accessor pricing: String? - - attr_accessor privacy: String? - - attr_accessor terms: String? - - def initialize: ( - ?blog: String?, - ?careers: String?, - ?contact: String?, - ?pricing: String?, - ?privacy: String?, - ?terms: String? - ) -> void - - def to_hash: -> { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - end - - type logo = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_, - url: String - } - - class Logo < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color] - - attr_reader mode: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode? - - def mode=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode - - attr_reader resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution - - attr_reader type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_ - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color], - ?mode: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode, - ?resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, - ?type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type mode = :light | :dark | :has_opaque_background - - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT: :light - DARK: :dark - HAS_OPAQUE_BACKGROUND: :has_opaque_background - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::mode] - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - - type type_ = :icon | :logo - - module Type - extend ContextDev::Internal::Type::Enum - - ICON: :icon - LOGO: :logo - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Logo::type_] - end - end - - type primary_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::primary_language] - end - - type social = - { - type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_, - url: String - } - - class Social < ContextDev::Internal::Type::BaseModel - attr_reader type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_ - ) -> ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_, - ?url: String - ) -> void - - def to_hash: -> { - type: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_, - url: String - } - - type type_ = - :x - | :facebook - | :instagram - | :linkedin - | :youtube - | :pinterest - | :tiktok - | :dribbble - | :github - | :behance - | :snapchat - | :whatsapp - | :telegram - | :line - | :discord - | :twitch - | :vimeo - | :imdb - | :tumblr - | :flickr - | :giphy - | :medium - | :spotify - | :soundcloud - | :tripadvisor - | :yelp - | :producthunt - | :reddit - | :crunchbase - | :appstore - | :playstore - - module Type - extend ContextDev::Internal::Type::Enum - - X: :x - FACEBOOK: :facebook - INSTAGRAM: :instagram - LINKEDIN: :linkedin - YOUTUBE: :youtube - PINTEREST: :pinterest - TIKTOK: :tiktok - DRIBBBLE: :dribbble - GITHUB: :github - BEHANCE: :behance - SNAPCHAT: :snapchat - WHATSAPP: :whatsapp - TELEGRAM: :telegram - LINE: :line - DISCORD: :discord - TWITCH: :twitch - VIMEO: :vimeo - IMDB: :imdb - TUMBLR: :tumblr - FLICKR: :flickr - GIPHY: :giphy - MEDIUM: :medium - SPOTIFY: :spotify - SOUNDCLOUD: :soundcloud - TRIPADVISOR: :tripadvisor - YELP: :yelp - PRODUCTHUNT: :producthunt - REDDIT: :reddit - CRUNCHBASE: :crunchbase - APPSTORE: :appstore - PLAYSTORE: :playstore - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByNameResponse::Brand::Social::type_] - end - end - - type stock = { exchange: String, ticker: String } - - class Stock < ContextDev::Internal::Type::BaseModel - attr_reader exchange: String? - - def exchange=: (String) -> String - - attr_reader ticker: String? - - def ticker=: (String) -> String - - def initialize: (?exchange: String, ?ticker: String) -> void - - def to_hash: -> { exchange: String, ticker: String } - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs b/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs deleted file mode 100644 index 911bd325..00000000 --- a/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +++ /dev/null @@ -1,467 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_ticker_params = - { - ticker: String, - force_language: ContextDev::Models::BrandRetrieveByTickerParams::force_language, - max_age_ms: Integer, - max_speed: bool, - ticker_exchange: ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange, - timeout_ms: Integer - } - & ContextDev::Internal::Type::request_parameters - - class BrandRetrieveByTickerParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor ticker: String - - attr_reader force_language: ContextDev::Models::BrandRetrieveByTickerParams::force_language? - - def force_language=: ( - ContextDev::Models::BrandRetrieveByTickerParams::force_language - ) -> ContextDev::Models::BrandRetrieveByTickerParams::force_language - - attr_reader max_age_ms: Integer? - - def max_age_ms=: (Integer) -> Integer - - attr_reader max_speed: bool? - - def max_speed=: (bool) -> bool - - attr_reader ticker_exchange: ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange? - - def ticker_exchange=: ( - ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange - ) -> ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - ticker: String, - ?force_language: ContextDev::Models::BrandRetrieveByTickerParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?ticker_exchange: ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - ticker: String, - force_language: ContextDev::Models::BrandRetrieveByTickerParams::force_language, - max_age_ms: Integer, - max_speed: bool, - ticker_exchange: ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerParams::force_language] - end - - type ticker_exchange = - :AMEX - | :AMS - | :AQS - | :ASX - | :ATH - | :BER - | :BME - | :BRU - | :BSE - | :BUD - | :BUE - | :BVC - | :CBOE - | :CNQ - | :CPH - | :DFM - | :DOH - | :DUB - | :DUS - | :DXE - | :EGX - | :FSX - | :HAM - | :HEL - | :HKSE - | :HOSE - | :ICE - | :IOB - | :IST - | :JKT - | :JNB - | :JPX - | :KLS - | :KOE - | :KSC - | :KUW - | :LIS - | :LSE - | :MCX - | :MEX - | :MIL - | :MUN - | :NASDAQ - | :NEO - | :NSE - | :NYSE - | :NZE - | :OSL - | :OTC - | :PAR - | :PNK - | :PRA - | :RIS - | :SAO - | :SAU - | :SES - | :SET - | :SGO - | :SHH - | :SHZ - | :SIX - | :STO - | :STU - | :TAI - | :TAL - | :TLV - | :TSX - | :TSXV - | :TWO - | :VIE - | :WSE - | :XETRA - - module TickerExchange - extend ContextDev::Internal::Type::Enum - - AMEX: :AMEX - AMS: :AMS - AQS: :AQS - ASX: :ASX - ATH: :ATH - BER: :BER - BME: :BME - BRU: :BRU - BSE: :BSE - BUD: :BUD - BUE: :BUE - BVC: :BVC - CBOE: :CBOE - CNQ: :CNQ - CPH: :CPH - DFM: :DFM - DOH: :DOH - DUB: :DUB - DUS: :DUS - DXE: :DXE - EGX: :EGX - FSX: :FSX - HAM: :HAM - HEL: :HEL - HKSE: :HKSE - HOSE: :HOSE - ICE: :ICE - IOB: :IOB - IST: :IST - JKT: :JKT - JNB: :JNB - JPX: :JPX - KLS: :KLS - KOE: :KOE - KSC: :KSC - KUW: :KUW - LIS: :LIS - LSE: :LSE - MCX: :MCX - MEX: :MEX - MIL: :MIL - MUN: :MUN - NASDAQ: :NASDAQ - NEO: :NEO - NSE: :NSE - NYSE: :NYSE - NZE: :NZE - OSL: :OSL - OTC: :OTC - PAR: :PAR - PNK: :PNK - PRA: :PRA - RIS: :RIS - SAO: :SAO - SAU: :SAU - SES: :SES - SET: :SET - SGO: :SGO - SHH: :SHH - SHZ: :SHZ - SIX: :SIX - STO: :STO - STU: :STU - TAI: :TAI - TAL: :TAL - TLV: :TLV - TSX: :TSX - TSXV: :TSXV - TWO: :TWO - VIE: :VIE - WSE: :WSE - XETRA: :XETRA - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange] - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs b/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs deleted file mode 100644 index 076fc007..00000000 --- a/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +++ /dev/null @@ -1,1441 +0,0 @@ -module ContextDev - module Models - type brand_retrieve_by_ticker_response = - { - brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, - status: String - } - - class BrandRetrieveByTickerResponse < ContextDev::Internal::Type::BaseModel - attr_reader brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand? - - def brand=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand - - attr_reader code: Integer? - - def code=: (Integer) -> Integer - - attr_reader key_metadata: ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand, - ?code: Integer, - ?key_metadata: ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, - ?status: String - ) -> void - - def to_hash: -> { - brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand, - code: Integer, - key_metadata: ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata, - status: String - } - - type brand = - { - address: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, - title: String - } - - class Brand < ContextDev::Internal::Type::BaseModel - attr_reader address: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address? - - def address=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address - - attr_reader backdrops: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop]? - - def backdrops=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop] - - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color] - - attr_reader description: String? - - def description=: (String) -> String - - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader email: String? - - def email=: (String) -> String - - attr_reader industries: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries? - - def industries=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries - - attr_reader is_nsfw: bool? - - def is_nsfw=: (bool) -> bool - - attr_reader links: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links? - - def links=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links - - attr_reader logos: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]? - - def logos=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo] - - attr_reader phone: String? - - def phone=: (String) -> String - - attr_accessor primary_language: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::primary_language? - - attr_reader slogan: String? - - def slogan=: (String) -> String - - attr_reader socials: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social]? - - def socials=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social] - - attr_reader stock: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock? - - def stock=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock - - attr_reader title: String? - - def title=: (String) -> String - - def initialize: ( - ?address: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, - ?backdrops: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop], - ?colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color], - ?description: String, - ?domain: String, - ?email: String, - ?industries: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, - ?is_nsfw: bool, - ?links: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, - ?logos: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo], - ?phone: String, - ?primary_language: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::primary_language?, - ?slogan: String, - ?socials: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social], - ?stock: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, - ?title: String - ) -> void - - def to_hash: -> { - address: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Address, - backdrops: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop], - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Color], - description: String, - domain: String, - email: String, - industries: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries, - is_nsfw: bool, - links: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Links, - logos: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo], - phone: String, - primary_language: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::primary_language?, - slogan: String, - socials: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social], - stock: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Stock, - title: String - } - - type address = - { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - - class Address < ContextDev::Internal::Type::BaseModel - attr_reader city: String? - - def city=: (String) -> String - - attr_reader country: String? - - def country=: (String) -> String - - attr_reader country_code: String? - - def country_code=: (String) -> String - - attr_reader postal_code: String? - - def postal_code=: (String) -> String - - attr_reader state_code: String? - - def state_code=: (String) -> String - - attr_reader state_province: String? - - def state_province=: (String) -> String - - attr_reader street: String? - - def street=: (String) -> String - - def initialize: ( - ?city: String, - ?country: String, - ?country_code: String, - ?postal_code: String, - ?state_code: String, - ?state_province: String, - ?street: String - ) -> void - - def to_hash: -> { - city: String, - country: String, - country_code: String, - postal_code: String, - state_code: String, - state_province: String, - street: String - } - end - - type backdrop = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, - url: String - } - - class Backdrop < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color] - - attr_reader resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color], - ?resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Color], - resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Backdrop::Resolution, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - end - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type industries = - { - eic: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] - } - - class Industries < ContextDev::Internal::Type::BaseModel - attr_reader eic: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic]? - - def eic=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] - - def initialize: ( - ?eic: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] - ) -> void - - def to_hash: -> { - eic: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic] - } - - type eic = - { - industry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::subindustry - } - - class Eic < ContextDev::Internal::Type::BaseModel - attr_accessor industry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::industry - - attr_accessor subindustry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::subindustry - - def initialize: ( - industry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::subindustry - ) -> void - - def to_hash: -> { - industry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::industry, - subindustry: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::subindustry - } - - type industry = - :"Aerospace & Defense" - | :Technology - | :Finance - | :Healthcare - | :"Retail & E-commerce" - | :Entertainment - | :Education - | :"Government & Nonprofit" - | :"Industrial & Energy" - | :"Automotive & Transportation" - | :"Lifestyle & Leisure" - | :"Luxury & Fashion" - | :"News & Media" - | :Sports - | :"Real Estate & PropTech" - | :"Legal & Compliance" - | :Telecommunications - | :"Agriculture & Food" - | :"Professional Services & Agencies" - | :"Chemicals & Materials" - | :"Logistics & Supply Chain" - | :"Hospitality & Tourism" - | :"Construction & Built Environment" - | :"Consumer Packaged Goods (CPG)" - - module Industry - extend ContextDev::Internal::Type::Enum - - AEROSPACE_DEFENSE: :"Aerospace & Defense" - TECHNOLOGY: :Technology - FINANCE: :Finance - HEALTHCARE: :Healthcare - RETAIL_E_COMMERCE: :"Retail & E-commerce" - ENTERTAINMENT: :Entertainment - EDUCATION: :Education - GOVERNMENT_NONPROFIT: :"Government & Nonprofit" - INDUSTRIAL_ENERGY: :"Industrial & Energy" - AUTOMOTIVE_TRANSPORTATION: :"Automotive & Transportation" - LIFESTYLE_LEISURE: :"Lifestyle & Leisure" - LUXURY_FASHION: :"Luxury & Fashion" - NEWS_MEDIA: :"News & Media" - SPORTS: :Sports - REAL_ESTATE_PROP_TECH: :"Real Estate & PropTech" - LEGAL_COMPLIANCE: :"Legal & Compliance" - TELECOMMUNICATIONS: :Telecommunications - AGRICULTURE_FOOD: :"Agriculture & Food" - PROFESSIONAL_SERVICES_AGENCIES: :"Professional Services & Agencies" - CHEMICALS_MATERIALS: :"Chemicals & Materials" - LOGISTICS_SUPPLY_CHAIN: :"Logistics & Supply Chain" - HOSPITALITY_TOURISM: :"Hospitality & Tourism" - CONSTRUCTION_BUILT_ENVIRONMENT: :"Construction & Built Environment" - CONSUMER_PACKAGED_GOODS_CPG: :"Consumer Packaged Goods (CPG)" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::industry] - end - - type subindustry = - :"Defense Systems & Military Hardware" - | :"Aerospace Manufacturing" - | :"Avionics & Navigation Technology" - | :"Subsea & Naval Defense Systems" - | :"Space & Satellite Technology" - | :"Defense IT & Systems Integration" - | :"Software (B2B)" - | :"Software (B2C)" - | :"Cloud Infrastructure & DevOps" - | :Cybersecurity - | :"Artificial Intelligence & Machine Learning" - | :"Data Infrastructure & Analytics" - | :"Hardware & Semiconductors" - | :"Fintech Infrastructure" - | :"eCommerce & Marketplace Platforms" - | :"Developer Tools & APIs" - | :"Web3 & Blockchain" - | :"XR & Spatial Computing" - | :"Banking & Lending" - | :"Investment Management & WealthTech" - | :"Insurance & InsurTech" - | :"Payments & Money Movement" - | :"Accounting, Tax & Financial Planning Tools" - | :"Capital Markets & Trading Platforms" - | :"Financial Infrastructure & APIs" - | :"Credit Scoring & Risk Management" - | :"Cryptocurrency & Digital Assets" - | :"BNPL & Alternative Financing" - | :"Healthcare Providers & Services" - | :"Pharmaceuticals & Drug Development" - | :"Medical Devices & Diagnostics" - | :"Biotechnology & Genomics" - | :"Digital Health & Telemedicine" - | :"Health Insurance & Benefits Tech" - | :"Clinical Trials & Research Platforms" - | :"Mental Health & Wellness" - | :"Healthcare IT & EHR Systems" - | :"Consumer Health & Wellness Products" - | :"Online Marketplaces" - | :"Direct-to-Consumer (DTC) Brands" - | :"Retail Tech & Point-of-Sale Systems" - | :"Omnichannel & In-Store Retail" - | :"E-commerce Enablement & Infrastructure" - | :"Subscription & Membership Commerce" - | :"Social Commerce & Influencer Platforms" - | :"Fashion & Apparel Retail" - | :"Food, Beverage & Grocery E-commerce" - | :"Streaming Platforms (Video, Music, Audio)" - | :"Gaming & Interactive Entertainment" - | :"Creator Economy & Influencer Platforms" - | :"Advertising, Adtech & Media Buying" - | :"Film, TV & Production Studios" - | :"Events, Venues & Live Entertainment" - | :"Virtual Worlds & Metaverse Experiences" - | :"K-12 Education Platforms & Tools" - | :"Higher Education & University Tech" - | :"Online Learning & MOOCs" - | :"Test Prep & Certification" - | :"Corporate Training & Upskilling" - | :"Tutoring & Supplemental Learning" - | :"Education Management Systems (LMS/SIS)" - | :"Language Learning" - | :"Creator-Led & Cohort-Based Courses" - | :"Special Education & Accessibility Tools" - | :"Government Technology & Digital Services" - | :"Civic Engagement & Policy Platforms" - | :"International Development & Humanitarian Aid" - | :"Philanthropy & Grantmaking" - | :"Nonprofit Operations & Fundraising Tools" - | :"Public Health & Social Services" - | :"Education & Youth Development Programs" - | :"Environmental & Climate Action Organizations" - | :"Legal Aid & Social Justice Advocacy" - | :"Municipal & Infrastructure Services" - | :"Manufacturing & Industrial Automation" - | :"Energy Production (Oil, Gas, Nuclear)" - | :"Renewable Energy & Cleantech" - | :"Utilities & Grid Infrastructure" - | :"Industrial IoT & Monitoring Systems" - | :"Construction & Heavy Equipment" - | :"Mining & Natural Resources" - | :"Environmental Engineering & Sustainability" - | :"Energy Storage & Battery Technology" - | :"Automotive OEMs & Vehicle Manufacturing" - | :"Electric Vehicles (EVs) & Charging Infrastructure" - | :"Mobility-as-a-Service (MaaS)" - | :"Fleet Management" - | :"Public Transit & Urban Mobility" - | :"Autonomous Vehicles & ADAS" - | :"Aftermarket Parts & Services" - | :"Telematics & Vehicle Connectivity" - | :"Aviation & Aerospace Transport" - | :"Maritime Shipping" - | :"Fitness & Wellness" - | :"Beauty & Personal Care" - | :"Home & Living" - | :"Dating & Relationships" - | :"Hobbies, Crafts & DIY" - | :"Outdoor & Recreational Gear" - | :"Events, Experiences & Ticketing Platforms" - | :"Designer & Luxury Apparel" - | :"Accessories, Jewelry & Watches" - | :"Footwear & Leather Goods" - | :"Beauty, Fragrance & Skincare" - | :"Fashion Marketplaces & Retail Platforms" - | :"Sustainable & Ethical Fashion" - | :"Resale, Vintage & Circular Fashion" - | :"Fashion Tech & Virtual Try-Ons" - | :"Streetwear & Emerging Luxury" - | :"Couture & Made-to-Measure" - | :"News Publishing & Journalism" - | :"Digital Media & Content Platforms" - | :"Broadcasting (TV & Radio)" - | :"Podcasting & Audio Media" - | :"News Aggregators & Curation Tools" - | :"Independent & Creator-Led Media" - | :"Newsletters & Substack-Style Platforms" - | :"Political & Investigative Media" - | :"Trade & Niche Publications" - | :"Media Monitoring & Analytics" - | :"Professional Teams & Leagues" - | :"Sports Media & Broadcasting" - | :"Sports Betting & Fantasy Sports" - | :"Fitness & Athletic Training Platforms" - | :"Sportswear & Equipment" - | :"Esports & Competitive Gaming" - | :"Sports Venues & Event Management" - | :"Athlete Management & Talent Agencies" - | :"Sports Tech & Performance Analytics" - | :"Youth, Amateur & Collegiate Sports" - | :"Real Estate Marketplaces" - | :"Property Management Software" - | :"Rental Platforms" - | :"Mortgage & Lending Tech" - | :"Real Estate Investment Platforms" - | :"Law Firms & Legal Services" - | :"Legal Tech & Automation" - | :"Regulatory Compliance" - | :"E-Discovery & Litigation Tools" - | :"Contract Management" - | :"Governance, Risk & Compliance (GRC)" - | :"IP & Trademark Management" - | :"Legal Research & Intelligence" - | :"Compliance Training & Certification" - | :"Whistleblower & Ethics Reporting" - | :"Mobile & Wireless Networks (3G/4G/5G)" - | :"Broadband & Fiber Internet" - | :"Satellite & Space-Based Communications" - | :"Network Equipment & Infrastructure" - | :"Telecom Billing & OSS/BSS Systems" - | :"VoIP & Unified Communications" - | :"Internet Service Providers (ISPs)" - | :"Edge Computing & Network Virtualization" - | :"IoT Connectivity Platforms" - | :"Precision Agriculture & AgTech" - | :"Crop & Livestock Production" - | :"Food & Beverage Manufacturing & Processing" - | :"Food Distribution" - | :"Restaurants & Food Service" - | :"Agricultural Inputs & Equipment" - | :"Sustainable & Regenerative Agriculture" - | :"Seafood & Aquaculture" - | :"Management Consulting" - | :"Marketing & Advertising Agencies" - | :"Design, Branding & Creative Studios" - | :"IT Services & Managed Services" - | :"Staffing, Recruiting & Talent" - | :"Accounting & Tax Firms" - | :"Public Relations & Communications" - | :"Business Process Outsourcing (BPO)" - | :"Professional Training & Coaching" - | :"Specialty Chemicals" - | :"Commodity & Petrochemicals" - | :"Polymers, Plastics & Rubber" - | :"Coatings, Adhesives & Sealants" - | :"Industrial Gases" - | :"Advanced Materials & Composites" - | :"Battery Materials & Energy Storage" - | :"Electronic Materials & Semiconductor Chemicals" - | :"Agrochemicals & Fertilizers" - | :"Freight & Transportation Tech" - | :"Last-Mile Delivery" - | :"Warehouse Automation" - | :"Supply Chain Visibility Platforms" - | :"Logistics Marketplaces" - | :"Shipping & Freight Forwarding" - | :"Cold Chain Logistics" - | :"Reverse Logistics & Returns" - | :"Cross-Border Trade Tech" - | :"Transportation Management Systems (TMS)" - | :"Hotels & Accommodation" - | :"Vacation Rentals & Short-Term Stays" - | :"Restaurant Tech & Management" - | :"Travel Booking Platforms" - | :"Tourism Experiences & Activities" - | :"Cruise Lines & Marine Tourism" - | :"Hospitality Management Systems" - | :"Event & Venue Management" - | :"Corporate Travel Management" - | :"Travel Insurance & Protection" - | :"Construction Management Software" - | :"BIM/CAD & Design Tools" - | :"Construction Marketplaces" - | :"Equipment Rental & Management" - | :"Building Materials & Procurement" - | :"Construction Workforce Management" - | :"Project Estimation & Bidding" - | :"Modular & Prefab Construction" - | :"Construction Safety & Compliance" - | :"Smart Building Technology" - | :"Food & Beverage CPG" - | :"Home & Personal Care CPG" - | :"CPG Analytics & Insights" - | :"Direct-to-Consumer CPG Brands" - | :"CPG Supply Chain & Distribution" - | :"Private Label Manufacturing" - | :"CPG Retail Intelligence" - | :"Sustainable CPG & Packaging" - | :"Beauty & Cosmetics CPG" - | :"Health & Wellness CPG" - - module Subindustry - extend ContextDev::Internal::Type::Enum - - DEFENSE_SYSTEMS_MILITARY_HARDWARE: :"Defense Systems & Military Hardware" - AEROSPACE_MANUFACTURING: :"Aerospace Manufacturing" - AVIONICS_NAVIGATION_TECHNOLOGY: :"Avionics & Navigation Technology" - SUBSEA_NAVAL_DEFENSE_SYSTEMS: :"Subsea & Naval Defense Systems" - SPACE_SATELLITE_TECHNOLOGY: :"Space & Satellite Technology" - DEFENSE_IT_SYSTEMS_INTEGRATION: :"Defense IT & Systems Integration" - SOFTWARE_B2_B: :"Software (B2B)" - SOFTWARE_B2_C: :"Software (B2C)" - CLOUD_INFRASTRUCTURE_DEV_OPS: :"Cloud Infrastructure & DevOps" - CYBERSECURITY: :Cybersecurity - ARTIFICIAL_INTELLIGENCE_MACHINE_LEARNING: :"Artificial Intelligence & Machine Learning" - DATA_INFRASTRUCTURE_ANALYTICS: :"Data Infrastructure & Analytics" - HARDWARE_SEMICONDUCTORS: :"Hardware & Semiconductors" - FINTECH_INFRASTRUCTURE: :"Fintech Infrastructure" - E_COMMERCE_MARKETPLACE_PLATFORMS: :"eCommerce & Marketplace Platforms" - DEVELOPER_TOOLS_APIS: :"Developer Tools & APIs" - WEB3_BLOCKCHAIN: :"Web3 & Blockchain" - XR_SPATIAL_COMPUTING: :"XR & Spatial Computing" - BANKING_LENDING: :"Banking & Lending" - INVESTMENT_MANAGEMENT_WEALTH_TECH: :"Investment Management & WealthTech" - INSURANCE_INSUR_TECH: :"Insurance & InsurTech" - PAYMENTS_MONEY_MOVEMENT: :"Payments & Money Movement" - ACCOUNTING_TAX_FINANCIAL_PLANNING_TOOLS: :"Accounting, Tax & Financial Planning Tools" - CAPITAL_MARKETS_TRADING_PLATFORMS: :"Capital Markets & Trading Platforms" - FINANCIAL_INFRASTRUCTURE_APIS: :"Financial Infrastructure & APIs" - CREDIT_SCORING_RISK_MANAGEMENT: :"Credit Scoring & Risk Management" - CRYPTOCURRENCY_DIGITAL_ASSETS: :"Cryptocurrency & Digital Assets" - BNPL_ALTERNATIVE_FINANCING: :"BNPL & Alternative Financing" - HEALTHCARE_PROVIDERS_SERVICES: :"Healthcare Providers & Services" - PHARMACEUTICALS_DRUG_DEVELOPMENT: :"Pharmaceuticals & Drug Development" - MEDICAL_DEVICES_DIAGNOSTICS: :"Medical Devices & Diagnostics" - BIOTECHNOLOGY_GENOMICS: :"Biotechnology & Genomics" - DIGITAL_HEALTH_TELEMEDICINE: :"Digital Health & Telemedicine" - HEALTH_INSURANCE_BENEFITS_TECH: :"Health Insurance & Benefits Tech" - CLINICAL_TRIALS_RESEARCH_PLATFORMS: :"Clinical Trials & Research Platforms" - MENTAL_HEALTH_WELLNESS: :"Mental Health & Wellness" - HEALTHCARE_IT_EHR_SYSTEMS: :"Healthcare IT & EHR Systems" - CONSUMER_HEALTH_WELLNESS_PRODUCTS: :"Consumer Health & Wellness Products" - ONLINE_MARKETPLACES: :"Online Marketplaces" - DIRECT_TO_CONSUMER_DTC_BRANDS: :"Direct-to-Consumer (DTC) Brands" - RETAIL_TECH_POINT_OF_SALE_SYSTEMS: :"Retail Tech & Point-of-Sale Systems" - OMNICHANNEL_IN_STORE_RETAIL: :"Omnichannel & In-Store Retail" - E_COMMERCE_ENABLEMENT_INFRASTRUCTURE: :"E-commerce Enablement & Infrastructure" - SUBSCRIPTION_MEMBERSHIP_COMMERCE: :"Subscription & Membership Commerce" - SOCIAL_COMMERCE_INFLUENCER_PLATFORMS: :"Social Commerce & Influencer Platforms" - FASHION_APPAREL_RETAIL: :"Fashion & Apparel Retail" - FOOD_BEVERAGE_GROCERY_E_COMMERCE: :"Food, Beverage & Grocery E-commerce" - STREAMING_PLATFORMS_VIDEO_MUSIC_AUDIO: :"Streaming Platforms (Video, Music, Audio)" - GAMING_INTERACTIVE_ENTERTAINMENT: :"Gaming & Interactive Entertainment" - CREATOR_ECONOMY_INFLUENCER_PLATFORMS: :"Creator Economy & Influencer Platforms" - ADVERTISING_ADTECH_MEDIA_BUYING: :"Advertising, Adtech & Media Buying" - FILM_TV_PRODUCTION_STUDIOS: :"Film, TV & Production Studios" - EVENTS_VENUES_LIVE_ENTERTAINMENT: :"Events, Venues & Live Entertainment" - VIRTUAL_WORLDS_METAVERSE_EXPERIENCES: :"Virtual Worlds & Metaverse Experiences" - K_12_EDUCATION_PLATFORMS_TOOLS: :"K-12 Education Platforms & Tools" - HIGHER_EDUCATION_UNIVERSITY_TECH: :"Higher Education & University Tech" - ONLINE_LEARNING_MOO_CS: :"Online Learning & MOOCs" - TEST_PREP_CERTIFICATION: :"Test Prep & Certification" - CORPORATE_TRAINING_UPSKILLING: :"Corporate Training & Upskilling" - TUTORING_SUPPLEMENTAL_LEARNING: :"Tutoring & Supplemental Learning" - EDUCATION_MANAGEMENT_SYSTEMS_LMS_SIS: :"Education Management Systems (LMS/SIS)" - LANGUAGE_LEARNING: :"Language Learning" - CREATOR_LED_COHORT_BASED_COURSES: :"Creator-Led & Cohort-Based Courses" - SPECIAL_EDUCATION_ACCESSIBILITY_TOOLS: :"Special Education & Accessibility Tools" - GOVERNMENT_TECHNOLOGY_DIGITAL_SERVICES: :"Government Technology & Digital Services" - CIVIC_ENGAGEMENT_POLICY_PLATFORMS: :"Civic Engagement & Policy Platforms" - INTERNATIONAL_DEVELOPMENT_HUMANITARIAN_AID: :"International Development & Humanitarian Aid" - PHILANTHROPY_GRANTMAKING: :"Philanthropy & Grantmaking" - NONPROFIT_OPERATIONS_FUNDRAISING_TOOLS: :"Nonprofit Operations & Fundraising Tools" - PUBLIC_HEALTH_SOCIAL_SERVICES: :"Public Health & Social Services" - EDUCATION_YOUTH_DEVELOPMENT_PROGRAMS: :"Education & Youth Development Programs" - ENVIRONMENTAL_CLIMATE_ACTION_ORGANIZATIONS: :"Environmental & Climate Action Organizations" - LEGAL_AID_SOCIAL_JUSTICE_ADVOCACY: :"Legal Aid & Social Justice Advocacy" - MUNICIPAL_INFRASTRUCTURE_SERVICES: :"Municipal & Infrastructure Services" - MANUFACTURING_INDUSTRIAL_AUTOMATION: :"Manufacturing & Industrial Automation" - ENERGY_PRODUCTION_OIL_GAS_NUCLEAR: :"Energy Production (Oil, Gas, Nuclear)" - RENEWABLE_ENERGY_CLEANTECH: :"Renewable Energy & Cleantech" - UTILITIES_GRID_INFRASTRUCTURE: :"Utilities & Grid Infrastructure" - INDUSTRIAL_IO_T_MONITORING_SYSTEMS: :"Industrial IoT & Monitoring Systems" - CONSTRUCTION_HEAVY_EQUIPMENT: :"Construction & Heavy Equipment" - MINING_NATURAL_RESOURCES: :"Mining & Natural Resources" - ENVIRONMENTAL_ENGINEERING_SUSTAINABILITY: :"Environmental Engineering & Sustainability" - ENERGY_STORAGE_BATTERY_TECHNOLOGY: :"Energy Storage & Battery Technology" - AUTOMOTIVE_OE_MS_VEHICLE_MANUFACTURING: :"Automotive OEMs & Vehicle Manufacturing" - ELECTRIC_VEHICLES_E_VS_CHARGING_INFRASTRUCTURE: :"Electric Vehicles (EVs) & Charging Infrastructure" - MOBILITY_AS_A_SERVICE_MAA_S: :"Mobility-as-a-Service (MaaS)" - FLEET_MANAGEMENT: :"Fleet Management" - PUBLIC_TRANSIT_URBAN_MOBILITY: :"Public Transit & Urban Mobility" - AUTONOMOUS_VEHICLES_ADAS: :"Autonomous Vehicles & ADAS" - AFTERMARKET_PARTS_SERVICES: :"Aftermarket Parts & Services" - TELEMATICS_VEHICLE_CONNECTIVITY: :"Telematics & Vehicle Connectivity" - AVIATION_AEROSPACE_TRANSPORT: :"Aviation & Aerospace Transport" - MARITIME_SHIPPING: :"Maritime Shipping" - FITNESS_WELLNESS: :"Fitness & Wellness" - BEAUTY_PERSONAL_CARE: :"Beauty & Personal Care" - HOME_LIVING: :"Home & Living" - DATING_RELATIONSHIPS: :"Dating & Relationships" - HOBBIES_CRAFTS_DIY: :"Hobbies, Crafts & DIY" - OUTDOOR_RECREATIONAL_GEAR: :"Outdoor & Recreational Gear" - EVENTS_EXPERIENCES_TICKETING_PLATFORMS: :"Events, Experiences & Ticketing Platforms" - DESIGNER_LUXURY_APPAREL: :"Designer & Luxury Apparel" - ACCESSORIES_JEWELRY_WATCHES: :"Accessories, Jewelry & Watches" - FOOTWEAR_LEATHER_GOODS: :"Footwear & Leather Goods" - BEAUTY_FRAGRANCE_SKINCARE: :"Beauty, Fragrance & Skincare" - FASHION_MARKETPLACES_RETAIL_PLATFORMS: :"Fashion Marketplaces & Retail Platforms" - SUSTAINABLE_ETHICAL_FASHION: :"Sustainable & Ethical Fashion" - RESALE_VINTAGE_CIRCULAR_FASHION: :"Resale, Vintage & Circular Fashion" - FASHION_TECH_VIRTUAL_TRY_ONS: :"Fashion Tech & Virtual Try-Ons" - STREETWEAR_EMERGING_LUXURY: :"Streetwear & Emerging Luxury" - COUTURE_MADE_TO_MEASURE: :"Couture & Made-to-Measure" - NEWS_PUBLISHING_JOURNALISM: :"News Publishing & Journalism" - DIGITAL_MEDIA_CONTENT_PLATFORMS: :"Digital Media & Content Platforms" - BROADCASTING_TV_RADIO: :"Broadcasting (TV & Radio)" - PODCASTING_AUDIO_MEDIA: :"Podcasting & Audio Media" - NEWS_AGGREGATORS_CURATION_TOOLS: :"News Aggregators & Curation Tools" - INDEPENDENT_CREATOR_LED_MEDIA: :"Independent & Creator-Led Media" - NEWSLETTERS_SUBSTACK_STYLE_PLATFORMS: :"Newsletters & Substack-Style Platforms" - POLITICAL_INVESTIGATIVE_MEDIA: :"Political & Investigative Media" - TRADE_NICHE_PUBLICATIONS: :"Trade & Niche Publications" - MEDIA_MONITORING_ANALYTICS: :"Media Monitoring & Analytics" - PROFESSIONAL_TEAMS_LEAGUES: :"Professional Teams & Leagues" - SPORTS_MEDIA_BROADCASTING: :"Sports Media & Broadcasting" - SPORTS_BETTING_FANTASY_SPORTS: :"Sports Betting & Fantasy Sports" - FITNESS_ATHLETIC_TRAINING_PLATFORMS: :"Fitness & Athletic Training Platforms" - SPORTSWEAR_EQUIPMENT: :"Sportswear & Equipment" - ESPORTS_COMPETITIVE_GAMING: :"Esports & Competitive Gaming" - SPORTS_VENUES_EVENT_MANAGEMENT: :"Sports Venues & Event Management" - ATHLETE_MANAGEMENT_TALENT_AGENCIES: :"Athlete Management & Talent Agencies" - SPORTS_TECH_PERFORMANCE_ANALYTICS: :"Sports Tech & Performance Analytics" - YOUTH_AMATEUR_COLLEGIATE_SPORTS: :"Youth, Amateur & Collegiate Sports" - REAL_ESTATE_MARKETPLACES: :"Real Estate Marketplaces" - PROPERTY_MANAGEMENT_SOFTWARE: :"Property Management Software" - RENTAL_PLATFORMS: :"Rental Platforms" - MORTGAGE_LENDING_TECH: :"Mortgage & Lending Tech" - REAL_ESTATE_INVESTMENT_PLATFORMS: :"Real Estate Investment Platforms" - LAW_FIRMS_LEGAL_SERVICES: :"Law Firms & Legal Services" - LEGAL_TECH_AUTOMATION: :"Legal Tech & Automation" - REGULATORY_COMPLIANCE: :"Regulatory Compliance" - E_DISCOVERY_LITIGATION_TOOLS: :"E-Discovery & Litigation Tools" - CONTRACT_MANAGEMENT: :"Contract Management" - GOVERNANCE_RISK_COMPLIANCE_GRC: :"Governance, Risk & Compliance (GRC)" - IP_TRADEMARK_MANAGEMENT: :"IP & Trademark Management" - LEGAL_RESEARCH_INTELLIGENCE: :"Legal Research & Intelligence" - COMPLIANCE_TRAINING_CERTIFICATION: :"Compliance Training & Certification" - WHISTLEBLOWER_ETHICS_REPORTING: :"Whistleblower & Ethics Reporting" - MOBILE_WIRELESS_NETWORKS_3_G_4_G_5_G: :"Mobile & Wireless Networks (3G/4G/5G)" - BROADBAND_FIBER_INTERNET: :"Broadband & Fiber Internet" - SATELLITE_SPACE_BASED_COMMUNICATIONS: :"Satellite & Space-Based Communications" - NETWORK_EQUIPMENT_INFRASTRUCTURE: :"Network Equipment & Infrastructure" - TELECOM_BILLING_OSS_BSS_SYSTEMS: :"Telecom Billing & OSS/BSS Systems" - VO_IP_UNIFIED_COMMUNICATIONS: :"VoIP & Unified Communications" - INTERNET_SERVICE_PROVIDERS_IS_PS: :"Internet Service Providers (ISPs)" - EDGE_COMPUTING_NETWORK_VIRTUALIZATION: :"Edge Computing & Network Virtualization" - IO_T_CONNECTIVITY_PLATFORMS: :"IoT Connectivity Platforms" - PRECISION_AGRICULTURE_AG_TECH: :"Precision Agriculture & AgTech" - CROP_LIVESTOCK_PRODUCTION: :"Crop & Livestock Production" - FOOD_BEVERAGE_MANUFACTURING_PROCESSING: :"Food & Beverage Manufacturing & Processing" - FOOD_DISTRIBUTION: :"Food Distribution" - RESTAURANTS_FOOD_SERVICE: :"Restaurants & Food Service" - AGRICULTURAL_INPUTS_EQUIPMENT: :"Agricultural Inputs & Equipment" - SUSTAINABLE_REGENERATIVE_AGRICULTURE: :"Sustainable & Regenerative Agriculture" - SEAFOOD_AQUACULTURE: :"Seafood & Aquaculture" - MANAGEMENT_CONSULTING: :"Management Consulting" - MARKETING_ADVERTISING_AGENCIES: :"Marketing & Advertising Agencies" - DESIGN_BRANDING_CREATIVE_STUDIOS: :"Design, Branding & Creative Studios" - IT_SERVICES_MANAGED_SERVICES: :"IT Services & Managed Services" - STAFFING_RECRUITING_TALENT: :"Staffing, Recruiting & Talent" - ACCOUNTING_TAX_FIRMS: :"Accounting & Tax Firms" - PUBLIC_RELATIONS_COMMUNICATIONS: :"Public Relations & Communications" - BUSINESS_PROCESS_OUTSOURCING_BPO: :"Business Process Outsourcing (BPO)" - PROFESSIONAL_TRAINING_COACHING: :"Professional Training & Coaching" - SPECIALTY_CHEMICALS: :"Specialty Chemicals" - COMMODITY_PETROCHEMICALS: :"Commodity & Petrochemicals" - POLYMERS_PLASTICS_RUBBER: :"Polymers, Plastics & Rubber" - COATINGS_ADHESIVES_SEALANTS: :"Coatings, Adhesives & Sealants" - INDUSTRIAL_GASES: :"Industrial Gases" - ADVANCED_MATERIALS_COMPOSITES: :"Advanced Materials & Composites" - BATTERY_MATERIALS_ENERGY_STORAGE: :"Battery Materials & Energy Storage" - ELECTRONIC_MATERIALS_SEMICONDUCTOR_CHEMICALS: :"Electronic Materials & Semiconductor Chemicals" - AGROCHEMICALS_FERTILIZERS: :"Agrochemicals & Fertilizers" - FREIGHT_TRANSPORTATION_TECH: :"Freight & Transportation Tech" - LAST_MILE_DELIVERY: :"Last-Mile Delivery" - WAREHOUSE_AUTOMATION: :"Warehouse Automation" - SUPPLY_CHAIN_VISIBILITY_PLATFORMS: :"Supply Chain Visibility Platforms" - LOGISTICS_MARKETPLACES: :"Logistics Marketplaces" - SHIPPING_FREIGHT_FORWARDING: :"Shipping & Freight Forwarding" - COLD_CHAIN_LOGISTICS: :"Cold Chain Logistics" - REVERSE_LOGISTICS_RETURNS: :"Reverse Logistics & Returns" - CROSS_BORDER_TRADE_TECH: :"Cross-Border Trade Tech" - TRANSPORTATION_MANAGEMENT_SYSTEMS_TMS: :"Transportation Management Systems (TMS)" - HOTELS_ACCOMMODATION: :"Hotels & Accommodation" - VACATION_RENTALS_SHORT_TERM_STAYS: :"Vacation Rentals & Short-Term Stays" - RESTAURANT_TECH_MANAGEMENT: :"Restaurant Tech & Management" - TRAVEL_BOOKING_PLATFORMS: :"Travel Booking Platforms" - TOURISM_EXPERIENCES_ACTIVITIES: :"Tourism Experiences & Activities" - CRUISE_LINES_MARINE_TOURISM: :"Cruise Lines & Marine Tourism" - HOSPITALITY_MANAGEMENT_SYSTEMS: :"Hospitality Management Systems" - EVENT_VENUE_MANAGEMENT: :"Event & Venue Management" - CORPORATE_TRAVEL_MANAGEMENT: :"Corporate Travel Management" - TRAVEL_INSURANCE_PROTECTION: :"Travel Insurance & Protection" - CONSTRUCTION_MANAGEMENT_SOFTWARE: :"Construction Management Software" - BIM_CAD_DESIGN_TOOLS: :"BIM/CAD & Design Tools" - CONSTRUCTION_MARKETPLACES: :"Construction Marketplaces" - EQUIPMENT_RENTAL_MANAGEMENT: :"Equipment Rental & Management" - BUILDING_MATERIALS_PROCUREMENT: :"Building Materials & Procurement" - CONSTRUCTION_WORKFORCE_MANAGEMENT: :"Construction Workforce Management" - PROJECT_ESTIMATION_BIDDING: :"Project Estimation & Bidding" - MODULAR_PREFAB_CONSTRUCTION: :"Modular & Prefab Construction" - CONSTRUCTION_SAFETY_COMPLIANCE: :"Construction Safety & Compliance" - SMART_BUILDING_TECHNOLOGY: :"Smart Building Technology" - FOOD_BEVERAGE_CPG: :"Food & Beverage CPG" - HOME_PERSONAL_CARE_CPG: :"Home & Personal Care CPG" - CPG_ANALYTICS_INSIGHTS: :"CPG Analytics & Insights" - DIRECT_TO_CONSUMER_CPG_BRANDS: :"Direct-to-Consumer CPG Brands" - CPG_SUPPLY_CHAIN_DISTRIBUTION: :"CPG Supply Chain & Distribution" - PRIVATE_LABEL_MANUFACTURING: :"Private Label Manufacturing" - CPG_RETAIL_INTELLIGENCE: :"CPG Retail Intelligence" - SUSTAINABLE_CPG_PACKAGING: :"Sustainable CPG & Packaging" - BEAUTY_COSMETICS_CPG: :"Beauty & Cosmetics CPG" - HEALTH_WELLNESS_CPG: :"Health & Wellness CPG" - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Industries::Eic::subindustry] - end - end - end - - type links = - { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - - class Links < ContextDev::Internal::Type::BaseModel - attr_accessor blog: String? - - attr_accessor careers: String? - - attr_accessor contact: String? - - attr_accessor pricing: String? - - attr_accessor privacy: String? - - attr_accessor terms: String? - - def initialize: ( - ?blog: String?, - ?careers: String?, - ?contact: String?, - ?pricing: String?, - ?privacy: String?, - ?terms: String? - ) -> void - - def to_hash: -> { - blog: String?, - careers: String?, - contact: String?, - pricing: String?, - privacy: String?, - terms: String? - } - end - - type logo = - { - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_, - url: String - } - - class Logo < ContextDev::Internal::Type::BaseModel - attr_reader colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]? - - def colors=: ( - ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color] - ) -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color] - - attr_reader mode: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode? - - def mode=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode - - attr_reader resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution? - - def resolution=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution - - attr_reader type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_ - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color], - ?mode: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode, - ?resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, - ?type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_, - ?url: String - ) -> void - - def to_hash: -> { - colors: ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color], - mode: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode, - resolution: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution, - type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_, - url: String - } - - type color = { hex: String, name: String } - - class Color < ContextDev::Internal::Type::BaseModel - attr_reader hex: String? - - def hex=: (String) -> String - - attr_reader name: String? - - def name=: (String) -> String - - def initialize: (?hex: String, ?name: String) -> void - - def to_hash: -> { hex: String, name: String } - end - - type mode = :light | :dark | :has_opaque_background - - module Mode - extend ContextDev::Internal::Type::Enum - - LIGHT: :light - DARK: :dark - HAS_OPAQUE_BACKGROUND: :has_opaque_background - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode] - end - - type resolution = - { aspect_ratio: Float, height: Integer, width: Integer } - - class Resolution < ContextDev::Internal::Type::BaseModel - attr_reader aspect_ratio: Float? - - def aspect_ratio=: (Float) -> Float - - attr_reader height: Integer? - - def height=: (Integer) -> Integer - - attr_reader width: Integer? - - def width=: (Integer) -> Integer - - def initialize: ( - ?aspect_ratio: Float, - ?height: Integer, - ?width: Integer - ) -> void - - def to_hash: -> { - aspect_ratio: Float, - height: Integer, - width: Integer - } - end - - type type_ = :icon | :logo - - module Type - extend ContextDev::Internal::Type::Enum - - ICON: :icon - LOGO: :logo - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_] - end - end - - type primary_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module PrimaryLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::primary_language] - end - - type social = - { - type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_, - url: String - } - - class Social < ContextDev::Internal::Type::BaseModel - attr_reader type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_? - - def type=: ( - ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_ - ) -> ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_ - - attr_reader url: String? - - def url=: (String) -> String - - def initialize: ( - ?type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_, - ?url: String - ) -> void - - def to_hash: -> { - type: ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_, - url: String - } - - type type_ = - :x - | :facebook - | :instagram - | :linkedin - | :youtube - | :pinterest - | :tiktok - | :dribbble - | :github - | :behance - | :snapchat - | :whatsapp - | :telegram - | :line - | :discord - | :twitch - | :vimeo - | :imdb - | :tumblr - | :flickr - | :giphy - | :medium - | :spotify - | :soundcloud - | :tripadvisor - | :yelp - | :producthunt - | :reddit - | :crunchbase - | :appstore - | :playstore - - module Type - extend ContextDev::Internal::Type::Enum - - X: :x - FACEBOOK: :facebook - INSTAGRAM: :instagram - LINKEDIN: :linkedin - YOUTUBE: :youtube - PINTEREST: :pinterest - TIKTOK: :tiktok - DRIBBBLE: :dribbble - GITHUB: :github - BEHANCE: :behance - SNAPCHAT: :snapchat - WHATSAPP: :whatsapp - TELEGRAM: :telegram - LINE: :line - DISCORD: :discord - TWITCH: :twitch - VIMEO: :vimeo - IMDB: :imdb - TUMBLR: :tumblr - FLICKR: :flickr - GIPHY: :giphy - MEDIUM: :medium - SPOTIFY: :spotify - SOUNDCLOUD: :soundcloud - TRIPADVISOR: :tripadvisor - YELP: :yelp - PRODUCTHUNT: :producthunt - REDDIT: :reddit - CRUNCHBASE: :crunchbase - APPSTORE: :appstore - PLAYSTORE: :playstore - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::type_] - end - end - - type stock = { exchange: String, ticker: String } - - class Stock < ContextDev::Internal::Type::BaseModel - attr_reader exchange: String? - - def exchange=: (String) -> String - - attr_reader ticker: String? - - def ticker=: (String) -> String - - def initialize: (?exchange: String, ?ticker: String) -> void - - def to_hash: -> { exchange: String, ticker: String } - end - end - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/brand_retrieve_params.rbs b/sig/context_dev/models/brand_retrieve_params.rbs index 2c6eb155..c5ef443b 100644 --- a/sig/context_dev/models/brand_retrieve_params.rbs +++ b/sig/context_dev/models/brand_retrieve_params.rbs @@ -1,304 +1,1558 @@ module ContextDev module Models type brand_retrieve_params = - { - domain: String, - force_language: ContextDev::Models::BrandRetrieveParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer - } + { body: ContextDev::Models::BrandRetrieveParams::body } & ContextDev::Internal::Type::request_parameters class BrandRetrieveParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - attr_accessor domain: String + attr_accessor body: ContextDev::Models::BrandRetrieveParams::body - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::force_language? + def initialize: ( + body: ContextDev::Models::BrandRetrieveParams::body, + ?request_options: ContextDev::request_opts + ) -> void - def force_language=: ( - ContextDev::Models::BrandRetrieveParams::force_language - ) -> ContextDev::Models::BrandRetrieveParams::force_language + def to_hash: -> { + body: ContextDev::Models::BrandRetrieveParams::body, + request_options: ContextDev::RequestOptions + } - attr_reader max_age_ms: Integer? + type body = + ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest + | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest + | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest + | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest + | ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest - def max_age_ms=: (Integer) -> Integer + module Body + extend ContextDev::Internal::Type::Union - attr_reader max_speed: bool? + type brand_retrieve_by_domain_request = + { + domain: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } - def max_speed=: (bool) -> bool + class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + attr_accessor domain: String - attr_reader timeout_ms: Integer? + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language? - def timeout_ms=: (Integer) -> Integer + def force_language=: ( + ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language - def initialize: ( - domain: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void + attr_reader max_age_ms: Integer? - def to_hash: -> { - domain: String, - force_language: ContextDev::Models::BrandRetrieveParams::force_language, - max_age_ms: Integer, - max_speed: bool, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } + def max_age_ms=: (Integer) -> Integer + + attr_reader max_speed: bool? + + def max_speed=: (bool) -> bool + + attr_reader timeout_ms: Integer? + + def timeout_ms=: (Integer) -> Integer + + def initialize: ( + domain: String, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + ?max_age_ms: Integer, + ?max_speed: bool, + ?timeout_ms: Integer + ) -> void + + def to_hash: -> { + domain: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } + + type force_language = + :afrikaans + | :albanian + | :amharic + | :arabic + | :armenian + | :assamese + | :aymara + | :azeri + | :basque + | :belarusian + | :bengali + | :bosnian + | :bulgarian + | :burmese + | :cantonese + | :catalan + | :cebuano + | :chinese + | :corsican + | :croatian + | :czech + | :danish + | :dutch + | :english + | :esperanto + | :estonian + | :farsi + | :fijian + | :finnish + | :french + | :galician + | :georgian + | :german + | :greek + | :guarani + | :gujarati + | :"haitian-creole" + | :hausa + | :hawaiian + | :hebrew + | :hindi + | :hmong + | :hungarian + | :icelandic + | :igbo + | :indonesian + | :irish + | :italian + | :japanese + | :javanese + | :kannada + | :kazakh + | :khmer + | :kinyarwanda + | :korean + | :kurdish + | :kyrgyz + | :lao + | :latin + | :latvian + | :lingala + | :lithuanian + | :luxembourgish + | :macedonian + | :malagasy + | :malay + | :malayalam + | :maltese + | :maori + | :marathi + | :mongolian + | :nepali + | :norwegian + | :odia + | :oromo + | :pashto + | :pidgin + | :polish + | :portuguese + | :punjabi + | :quechua + | :romanian + | :russian + | :samoan + | :"scottish-gaelic" + | :serbian + | :sesotho + | :shona + | :sindhi + | :sinhala + | :slovak + | :slovene + | :somali + | :spanish + | :sundanese + | :swahili + | :swedish + | :tagalog + | :tajik + | :tamil + | :tatar + | :telugu + | :thai + | :tibetan + | :tigrinya + | :tongan + | :tswana + | :turkish + | :turkmen + | :ukrainian + | :urdu + | :uyghur + | :uzbek + | :vietnamese + | :welsh + | :wolof + | :xhosa + | :yiddish + | :yoruba + | :zulu + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS: :afrikaans + ALBANIAN: :albanian + AMHARIC: :amharic + ARABIC: :arabic + ARMENIAN: :armenian + ASSAMESE: :assamese + AYMARA: :aymara + AZERI: :azeri + BASQUE: :basque + BELARUSIAN: :belarusian + BENGALI: :bengali + BOSNIAN: :bosnian + BULGARIAN: :bulgarian + BURMESE: :burmese + CANTONESE: :cantonese + CATALAN: :catalan + CEBUANO: :cebuano + CHINESE: :chinese + CORSICAN: :corsican + CROATIAN: :croatian + CZECH: :czech + DANISH: :danish + DUTCH: :dutch + ENGLISH: :english + ESPERANTO: :esperanto + ESTONIAN: :estonian + FARSI: :farsi + FIJIAN: :fijian + FINNISH: :finnish + FRENCH: :french + GALICIAN: :galician + GEORGIAN: :georgian + GERMAN: :german + GREEK: :greek + GUARANI: :guarani + GUJARATI: :gujarati + HAITIAN_CREOLE: :"haitian-creole" + HAUSA: :hausa + HAWAIIAN: :hawaiian + HEBREW: :hebrew + HINDI: :hindi + HMONG: :hmong + HUNGARIAN: :hungarian + ICELANDIC: :icelandic + IGBO: :igbo + INDONESIAN: :indonesian + IRISH: :irish + ITALIAN: :italian + JAPANESE: :japanese + JAVANESE: :javanese + KANNADA: :kannada + KAZAKH: :kazakh + KHMER: :khmer + KINYARWANDA: :kinyarwanda + KOREAN: :korean + KURDISH: :kurdish + KYRGYZ: :kyrgyz + LAO: :lao + LATIN: :latin + LATVIAN: :latvian + LINGALA: :lingala + LITHUANIAN: :lithuanian + LUXEMBOURGISH: :luxembourgish + MACEDONIAN: :macedonian + MALAGASY: :malagasy + MALAY: :malay + MALAYALAM: :malayalam + MALTESE: :maltese + MAORI: :maori + MARATHI: :marathi + MONGOLIAN: :mongolian + NEPALI: :nepali + NORWEGIAN: :norwegian + ODIA: :odia + OROMO: :oromo + PASHTO: :pashto + PIDGIN: :pidgin + POLISH: :polish + PORTUGUESE: :portuguese + PUNJABI: :punjabi + QUECHUA: :quechua + ROMANIAN: :romanian + RUSSIAN: :russian + SAMOAN: :samoan + SCOTTISH_GAELIC: :"scottish-gaelic" + SERBIAN: :serbian + SESOTHO: :sesotho + SHONA: :shona + SINDHI: :sindhi + SINHALA: :sinhala + SLOVAK: :slovak + SLOVENE: :slovene + SOMALI: :somali + SPANISH: :spanish + SUNDANESE: :sundanese + SWAHILI: :swahili + SWEDISH: :swedish + TAGALOG: :tagalog + TAJIK: :tajik + TAMIL: :tamil + TATAR: :tatar + TELUGU: :telugu + THAI: :thai + TIBETAN: :tibetan + TIGRINYA: :tigrinya + TONGAN: :tongan + TSWANA: :tswana + TURKISH: :turkish + TURKMEN: :turkmen + UKRAINIAN: :ukrainian + URDU: :urdu + UYGHUR: :uyghur + UZBEK: :uzbek + VIETNAMESE: :vietnamese + WELSH: :welsh + WOLOF: :wolof + XHOSA: :xhosa + YIDDISH: :yiddish + YORUBA: :yoruba + ZULU: :zulu + + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language] + end + end + + type brand_retrieve_by_name_request = + { + name: String, + country_gl: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } + + class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + attr_accessor name: String + + attr_reader country_gl: String? + + def country_gl=: (String) -> String + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language? + + def force_language=: ( + ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language + + attr_reader max_age_ms: Integer? + + def max_age_ms=: (Integer) -> Integer + + attr_reader max_speed: bool? + + def max_speed=: (bool) -> bool + + attr_reader timeout_ms: Integer? + + def timeout_ms=: (Integer) -> Integer + + def initialize: ( + name: String, + ?country_gl: String, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + ?max_age_ms: Integer, + ?max_speed: bool, + ?timeout_ms: Integer + ) -> void + + def to_hash: -> { + name: String, + country_gl: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } + + type force_language = + :afrikaans + | :albanian + | :amharic + | :arabic + | :armenian + | :assamese + | :aymara + | :azeri + | :basque + | :belarusian + | :bengali + | :bosnian + | :bulgarian + | :burmese + | :cantonese + | :catalan + | :cebuano + | :chinese + | :corsican + | :croatian + | :czech + | :danish + | :dutch + | :english + | :esperanto + | :estonian + | :farsi + | :fijian + | :finnish + | :french + | :galician + | :georgian + | :german + | :greek + | :guarani + | :gujarati + | :"haitian-creole" + | :hausa + | :hawaiian + | :hebrew + | :hindi + | :hmong + | :hungarian + | :icelandic + | :igbo + | :indonesian + | :irish + | :italian + | :japanese + | :javanese + | :kannada + | :kazakh + | :khmer + | :kinyarwanda + | :korean + | :kurdish + | :kyrgyz + | :lao + | :latin + | :latvian + | :lingala + | :lithuanian + | :luxembourgish + | :macedonian + | :malagasy + | :malay + | :malayalam + | :maltese + | :maori + | :marathi + | :mongolian + | :nepali + | :norwegian + | :odia + | :oromo + | :pashto + | :pidgin + | :polish + | :portuguese + | :punjabi + | :quechua + | :romanian + | :russian + | :samoan + | :"scottish-gaelic" + | :serbian + | :sesotho + | :shona + | :sindhi + | :sinhala + | :slovak + | :slovene + | :somali + | :spanish + | :sundanese + | :swahili + | :swedish + | :tagalog + | :tajik + | :tamil + | :tatar + | :telugu + | :thai + | :tibetan + | :tigrinya + | :tongan + | :tswana + | :turkish + | :turkmen + | :ukrainian + | :urdu + | :uyghur + | :uzbek + | :vietnamese + | :welsh + | :wolof + | :xhosa + | :yiddish + | :yoruba + | :zulu + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS: :afrikaans + ALBANIAN: :albanian + AMHARIC: :amharic + ARABIC: :arabic + ARMENIAN: :armenian + ASSAMESE: :assamese + AYMARA: :aymara + AZERI: :azeri + BASQUE: :basque + BELARUSIAN: :belarusian + BENGALI: :bengali + BOSNIAN: :bosnian + BULGARIAN: :bulgarian + BURMESE: :burmese + CANTONESE: :cantonese + CATALAN: :catalan + CEBUANO: :cebuano + CHINESE: :chinese + CORSICAN: :corsican + CROATIAN: :croatian + CZECH: :czech + DANISH: :danish + DUTCH: :dutch + ENGLISH: :english + ESPERANTO: :esperanto + ESTONIAN: :estonian + FARSI: :farsi + FIJIAN: :fijian + FINNISH: :finnish + FRENCH: :french + GALICIAN: :galician + GEORGIAN: :georgian + GERMAN: :german + GREEK: :greek + GUARANI: :guarani + GUJARATI: :gujarati + HAITIAN_CREOLE: :"haitian-creole" + HAUSA: :hausa + HAWAIIAN: :hawaiian + HEBREW: :hebrew + HINDI: :hindi + HMONG: :hmong + HUNGARIAN: :hungarian + ICELANDIC: :icelandic + IGBO: :igbo + INDONESIAN: :indonesian + IRISH: :irish + ITALIAN: :italian + JAPANESE: :japanese + JAVANESE: :javanese + KANNADA: :kannada + KAZAKH: :kazakh + KHMER: :khmer + KINYARWANDA: :kinyarwanda + KOREAN: :korean + KURDISH: :kurdish + KYRGYZ: :kyrgyz + LAO: :lao + LATIN: :latin + LATVIAN: :latvian + LINGALA: :lingala + LITHUANIAN: :lithuanian + LUXEMBOURGISH: :luxembourgish + MACEDONIAN: :macedonian + MALAGASY: :malagasy + MALAY: :malay + MALAYALAM: :malayalam + MALTESE: :maltese + MAORI: :maori + MARATHI: :marathi + MONGOLIAN: :mongolian + NEPALI: :nepali + NORWEGIAN: :norwegian + ODIA: :odia + OROMO: :oromo + PASHTO: :pashto + PIDGIN: :pidgin + POLISH: :polish + PORTUGUESE: :portuguese + PUNJABI: :punjabi + QUECHUA: :quechua + ROMANIAN: :romanian + RUSSIAN: :russian + SAMOAN: :samoan + SCOTTISH_GAELIC: :"scottish-gaelic" + SERBIAN: :serbian + SESOTHO: :sesotho + SHONA: :shona + SINDHI: :sindhi + SINHALA: :sinhala + SLOVAK: :slovak + SLOVENE: :slovene + SOMALI: :somali + SPANISH: :spanish + SUNDANESE: :sundanese + SWAHILI: :swahili + SWEDISH: :swedish + TAGALOG: :tagalog + TAJIK: :tajik + TAMIL: :tamil + TATAR: :tatar + TELUGU: :telugu + THAI: :thai + TIBETAN: :tibetan + TIGRINYA: :tigrinya + TONGAN: :tongan + TSWANA: :tswana + TURKISH: :turkish + TURKMEN: :turkmen + UKRAINIAN: :ukrainian + URDU: :urdu + UYGHUR: :uyghur + UZBEK: :uzbek + VIETNAMESE: :vietnamese + WELSH: :welsh + WOLOF: :wolof + XHOSA: :xhosa + YIDDISH: :yiddish + YORUBA: :yoruba + ZULU: :zulu + + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language] + end + end + + type brand_retrieve_by_email_request = + { + email: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } + + class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + attr_accessor email: String + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language? + + def force_language=: ( + ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language + + attr_reader max_age_ms: Integer? + + def max_age_ms=: (Integer) -> Integer + + attr_reader max_speed: bool? + + def max_speed=: (bool) -> bool + + attr_reader timeout_ms: Integer? + + def timeout_ms=: (Integer) -> Integer + + def initialize: ( + email: String, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + ?max_age_ms: Integer, + ?max_speed: bool, + ?timeout_ms: Integer + ) -> void + + def to_hash: -> { + email: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + timeout_ms: Integer + } + + type force_language = + :afrikaans + | :albanian + | :amharic + | :arabic + | :armenian + | :assamese + | :aymara + | :azeri + | :basque + | :belarusian + | :bengali + | :bosnian + | :bulgarian + | :burmese + | :cantonese + | :catalan + | :cebuano + | :chinese + | :corsican + | :croatian + | :czech + | :danish + | :dutch + | :english + | :esperanto + | :estonian + | :farsi + | :fijian + | :finnish + | :french + | :galician + | :georgian + | :german + | :greek + | :guarani + | :gujarati + | :"haitian-creole" + | :hausa + | :hawaiian + | :hebrew + | :hindi + | :hmong + | :hungarian + | :icelandic + | :igbo + | :indonesian + | :irish + | :italian + | :japanese + | :javanese + | :kannada + | :kazakh + | :khmer + | :kinyarwanda + | :korean + | :kurdish + | :kyrgyz + | :lao + | :latin + | :latvian + | :lingala + | :lithuanian + | :luxembourgish + | :macedonian + | :malagasy + | :malay + | :malayalam + | :maltese + | :maori + | :marathi + | :mongolian + | :nepali + | :norwegian + | :odia + | :oromo + | :pashto + | :pidgin + | :polish + | :portuguese + | :punjabi + | :quechua + | :romanian + | :russian + | :samoan + | :"scottish-gaelic" + | :serbian + | :sesotho + | :shona + | :sindhi + | :sinhala + | :slovak + | :slovene + | :somali + | :spanish + | :sundanese + | :swahili + | :swedish + | :tagalog + | :tajik + | :tamil + | :tatar + | :telugu + | :thai + | :tibetan + | :tigrinya + | :tongan + | :tswana + | :turkish + | :turkmen + | :ukrainian + | :urdu + | :uyghur + | :uzbek + | :vietnamese + | :welsh + | :wolof + | :xhosa + | :yiddish + | :yoruba + | :zulu + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS: :afrikaans + ALBANIAN: :albanian + AMHARIC: :amharic + ARABIC: :arabic + ARMENIAN: :armenian + ASSAMESE: :assamese + AYMARA: :aymara + AZERI: :azeri + BASQUE: :basque + BELARUSIAN: :belarusian + BENGALI: :bengali + BOSNIAN: :bosnian + BULGARIAN: :bulgarian + BURMESE: :burmese + CANTONESE: :cantonese + CATALAN: :catalan + CEBUANO: :cebuano + CHINESE: :chinese + CORSICAN: :corsican + CROATIAN: :croatian + CZECH: :czech + DANISH: :danish + DUTCH: :dutch + ENGLISH: :english + ESPERANTO: :esperanto + ESTONIAN: :estonian + FARSI: :farsi + FIJIAN: :fijian + FINNISH: :finnish + FRENCH: :french + GALICIAN: :galician + GEORGIAN: :georgian + GERMAN: :german + GREEK: :greek + GUARANI: :guarani + GUJARATI: :gujarati + HAITIAN_CREOLE: :"haitian-creole" + HAUSA: :hausa + HAWAIIAN: :hawaiian + HEBREW: :hebrew + HINDI: :hindi + HMONG: :hmong + HUNGARIAN: :hungarian + ICELANDIC: :icelandic + IGBO: :igbo + INDONESIAN: :indonesian + IRISH: :irish + ITALIAN: :italian + JAPANESE: :japanese + JAVANESE: :javanese + KANNADA: :kannada + KAZAKH: :kazakh + KHMER: :khmer + KINYARWANDA: :kinyarwanda + KOREAN: :korean + KURDISH: :kurdish + KYRGYZ: :kyrgyz + LAO: :lao + LATIN: :latin + LATVIAN: :latvian + LINGALA: :lingala + LITHUANIAN: :lithuanian + LUXEMBOURGISH: :luxembourgish + MACEDONIAN: :macedonian + MALAGASY: :malagasy + MALAY: :malay + MALAYALAM: :malayalam + MALTESE: :maltese + MAORI: :maori + MARATHI: :marathi + MONGOLIAN: :mongolian + NEPALI: :nepali + NORWEGIAN: :norwegian + ODIA: :odia + OROMO: :oromo + PASHTO: :pashto + PIDGIN: :pidgin + POLISH: :polish + PORTUGUESE: :portuguese + PUNJABI: :punjabi + QUECHUA: :quechua + ROMANIAN: :romanian + RUSSIAN: :russian + SAMOAN: :samoan + SCOTTISH_GAELIC: :"scottish-gaelic" + SERBIAN: :serbian + SESOTHO: :sesotho + SHONA: :shona + SINDHI: :sindhi + SINHALA: :sinhala + SLOVAK: :slovak + SLOVENE: :slovene + SOMALI: :somali + SPANISH: :spanish + SUNDANESE: :sundanese + SWAHILI: :swahili + SWEDISH: :swedish + TAGALOG: :tagalog + TAJIK: :tajik + TAMIL: :tamil + TATAR: :tatar + TELUGU: :telugu + THAI: :thai + TIBETAN: :tibetan + TIGRINYA: :tigrinya + TONGAN: :tongan + TSWANA: :tswana + TURKISH: :turkish + TURKMEN: :turkmen + UKRAINIAN: :ukrainian + URDU: :urdu + UYGHUR: :uyghur + UZBEK: :uzbek + VIETNAMESE: :vietnamese + WELSH: :welsh + WOLOF: :wolof + XHOSA: :xhosa + YIDDISH: :yiddish + YORUBA: :yoruba + ZULU: :zulu + + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language] + end + end + + type brand_retrieve_by_ticker_request = + { + ticker: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + ticker_exchange: String, + timeout_ms: Integer + } + + class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + attr_accessor ticker: String + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language? + + def force_language=: ( + ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language + + attr_reader max_age_ms: Integer? + + def max_age_ms=: (Integer) -> Integer + + attr_reader max_speed: bool? + + def max_speed=: (bool) -> bool + + attr_reader ticker_exchange: String? + + def ticker_exchange=: (String) -> String + + attr_reader timeout_ms: Integer? + + def timeout_ms=: (Integer) -> Integer + + def initialize: ( + ticker: String, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + ?max_age_ms: Integer, + ?max_speed: bool, + ?ticker_exchange: String, + ?timeout_ms: Integer + ) -> void + + def to_hash: -> { + ticker: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + max_age_ms: Integer, + max_speed: bool, + ticker_exchange: String, + timeout_ms: Integer + } + + type force_language = + :afrikaans + | :albanian + | :amharic + | :arabic + | :armenian + | :assamese + | :aymara + | :azeri + | :basque + | :belarusian + | :bengali + | :bosnian + | :bulgarian + | :burmese + | :cantonese + | :catalan + | :cebuano + | :chinese + | :corsican + | :croatian + | :czech + | :danish + | :dutch + | :english + | :esperanto + | :estonian + | :farsi + | :fijian + | :finnish + | :french + | :galician + | :georgian + | :german + | :greek + | :guarani + | :gujarati + | :"haitian-creole" + | :hausa + | :hawaiian + | :hebrew + | :hindi + | :hmong + | :hungarian + | :icelandic + | :igbo + | :indonesian + | :irish + | :italian + | :japanese + | :javanese + | :kannada + | :kazakh + | :khmer + | :kinyarwanda + | :korean + | :kurdish + | :kyrgyz + | :lao + | :latin + | :latvian + | :lingala + | :lithuanian + | :luxembourgish + | :macedonian + | :malagasy + | :malay + | :malayalam + | :maltese + | :maori + | :marathi + | :mongolian + | :nepali + | :norwegian + | :odia + | :oromo + | :pashto + | :pidgin + | :polish + | :portuguese + | :punjabi + | :quechua + | :romanian + | :russian + | :samoan + | :"scottish-gaelic" + | :serbian + | :sesotho + | :shona + | :sindhi + | :sinhala + | :slovak + | :slovene + | :somali + | :spanish + | :sundanese + | :swahili + | :swedish + | :tagalog + | :tajik + | :tamil + | :tatar + | :telugu + | :thai + | :tibetan + | :tigrinya + | :tongan + | :tswana + | :turkish + | :turkmen + | :ukrainian + | :urdu + | :uyghur + | :uzbek + | :vietnamese + | :welsh + | :wolof + | :xhosa + | :yiddish + | :yoruba + | :zulu + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS: :afrikaans + ALBANIAN: :albanian + AMHARIC: :amharic + ARABIC: :arabic + ARMENIAN: :armenian + ASSAMESE: :assamese + AYMARA: :aymara + AZERI: :azeri + BASQUE: :basque + BELARUSIAN: :belarusian + BENGALI: :bengali + BOSNIAN: :bosnian + BULGARIAN: :bulgarian + BURMESE: :burmese + CANTONESE: :cantonese + CATALAN: :catalan + CEBUANO: :cebuano + CHINESE: :chinese + CORSICAN: :corsican + CROATIAN: :croatian + CZECH: :czech + DANISH: :danish + DUTCH: :dutch + ENGLISH: :english + ESPERANTO: :esperanto + ESTONIAN: :estonian + FARSI: :farsi + FIJIAN: :fijian + FINNISH: :finnish + FRENCH: :french + GALICIAN: :galician + GEORGIAN: :georgian + GERMAN: :german + GREEK: :greek + GUARANI: :guarani + GUJARATI: :gujarati + HAITIAN_CREOLE: :"haitian-creole" + HAUSA: :hausa + HAWAIIAN: :hawaiian + HEBREW: :hebrew + HINDI: :hindi + HMONG: :hmong + HUNGARIAN: :hungarian + ICELANDIC: :icelandic + IGBO: :igbo + INDONESIAN: :indonesian + IRISH: :irish + ITALIAN: :italian + JAPANESE: :japanese + JAVANESE: :javanese + KANNADA: :kannada + KAZAKH: :kazakh + KHMER: :khmer + KINYARWANDA: :kinyarwanda + KOREAN: :korean + KURDISH: :kurdish + KYRGYZ: :kyrgyz + LAO: :lao + LATIN: :latin + LATVIAN: :latvian + LINGALA: :lingala + LITHUANIAN: :lithuanian + LUXEMBOURGISH: :luxembourgish + MACEDONIAN: :macedonian + MALAGASY: :malagasy + MALAY: :malay + MALAYALAM: :malayalam + MALTESE: :maltese + MAORI: :maori + MARATHI: :marathi + MONGOLIAN: :mongolian + NEPALI: :nepali + NORWEGIAN: :norwegian + ODIA: :odia + OROMO: :oromo + PASHTO: :pashto + PIDGIN: :pidgin + POLISH: :polish + PORTUGUESE: :portuguese + PUNJABI: :punjabi + QUECHUA: :quechua + ROMANIAN: :romanian + RUSSIAN: :russian + SAMOAN: :samoan + SCOTTISH_GAELIC: :"scottish-gaelic" + SERBIAN: :serbian + SESOTHO: :sesotho + SHONA: :shona + SINDHI: :sindhi + SINHALA: :sinhala + SLOVAK: :slovak + SLOVENE: :slovene + SOMALI: :somali + SPANISH: :spanish + SUNDANESE: :sundanese + SWAHILI: :swahili + SWEDISH: :swedish + TAGALOG: :tagalog + TAJIK: :tajik + TAMIL: :tamil + TATAR: :tatar + TELUGU: :telugu + THAI: :thai + TIBETAN: :tibetan + TIGRINYA: :tigrinya + TONGAN: :tongan + TSWANA: :tswana + TURKISH: :turkish + TURKMEN: :turkmen + UKRAINIAN: :ukrainian + URDU: :urdu + UYGHUR: :uyghur + UZBEK: :uzbek + VIETNAMESE: :vietnamese + WELSH: :welsh + WOLOF: :wolof + XHOSA: :xhosa + YIDDISH: :yiddish + YORUBA: :yoruba + ZULU: :zulu + + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language] + end + end + + type brand_retrieve_from_transaction_request = + { + transaction_info: String, + city: String, + country_gl: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + high_confidence_only: bool, + max_speed: bool, + mcc: Integer, + phone: Float, + timeout_ms: Integer + } + + class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + attr_accessor transaction_info: String + + attr_reader city: String? + + def city=: (String) -> String + + attr_reader country_gl: String? + + def country_gl=: (String) -> String + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language? + + def force_language=: ( + ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language + + attr_reader high_confidence_only: bool? + + def high_confidence_only=: (bool) -> bool + + attr_reader max_speed: bool? + + def max_speed=: (bool) -> bool + + attr_reader mcc: Integer? + + def mcc=: (Integer) -> Integer + + attr_reader phone: Float? + + def phone=: (Float) -> Float + + attr_reader timeout_ms: Integer? + + def timeout_ms=: (Integer) -> Integer + + def initialize: ( + transaction_info: String, + ?city: String, + ?country_gl: String, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + ?high_confidence_only: bool, + ?max_speed: bool, + ?mcc: Integer, + ?phone: Float, + ?timeout_ms: Integer + ) -> void + + def to_hash: -> { + transaction_info: String, + city: String, + country_gl: String, + force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + high_confidence_only: bool, + max_speed: bool, + mcc: Integer, + phone: Float, + timeout_ms: Integer + } + + type force_language = + :afrikaans + | :albanian + | :amharic + | :arabic + | :armenian + | :assamese + | :aymara + | :azeri + | :basque + | :belarusian + | :bengali + | :bosnian + | :bulgarian + | :burmese + | :cantonese + | :catalan + | :cebuano + | :chinese + | :corsican + | :croatian + | :czech + | :danish + | :dutch + | :english + | :esperanto + | :estonian + | :farsi + | :fijian + | :finnish + | :french + | :galician + | :georgian + | :german + | :greek + | :guarani + | :gujarati + | :"haitian-creole" + | :hausa + | :hawaiian + | :hebrew + | :hindi + | :hmong + | :hungarian + | :icelandic + | :igbo + | :indonesian + | :irish + | :italian + | :japanese + | :javanese + | :kannada + | :kazakh + | :khmer + | :kinyarwanda + | :korean + | :kurdish + | :kyrgyz + | :lao + | :latin + | :latvian + | :lingala + | :lithuanian + | :luxembourgish + | :macedonian + | :malagasy + | :malay + | :malayalam + | :maltese + | :maori + | :marathi + | :mongolian + | :nepali + | :norwegian + | :odia + | :oromo + | :pashto + | :pidgin + | :polish + | :portuguese + | :punjabi + | :quechua + | :romanian + | :russian + | :samoan + | :"scottish-gaelic" + | :serbian + | :sesotho + | :shona + | :sindhi + | :sinhala + | :slovak + | :slovene + | :somali + | :spanish + | :sundanese + | :swahili + | :swedish + | :tagalog + | :tajik + | :tamil + | :tatar + | :telugu + | :thai + | :tibetan + | :tigrinya + | :tongan + | :tswana + | :turkish + | :turkmen + | :ukrainian + | :urdu + | :uyghur + | :uzbek + | :vietnamese + | :welsh + | :wolof + | :xhosa + | :yiddish + | :yoruba + | :zulu + + module ForceLanguage + extend ContextDev::Internal::Type::Enum + + AFRIKAANS: :afrikaans + ALBANIAN: :albanian + AMHARIC: :amharic + ARABIC: :arabic + ARMENIAN: :armenian + ASSAMESE: :assamese + AYMARA: :aymara + AZERI: :azeri + BASQUE: :basque + BELARUSIAN: :belarusian + BENGALI: :bengali + BOSNIAN: :bosnian + BULGARIAN: :bulgarian + BURMESE: :burmese + CANTONESE: :cantonese + CATALAN: :catalan + CEBUANO: :cebuano + CHINESE: :chinese + CORSICAN: :corsican + CROATIAN: :croatian + CZECH: :czech + DANISH: :danish + DUTCH: :dutch + ENGLISH: :english + ESPERANTO: :esperanto + ESTONIAN: :estonian + FARSI: :farsi + FIJIAN: :fijian + FINNISH: :finnish + FRENCH: :french + GALICIAN: :galician + GEORGIAN: :georgian + GERMAN: :german + GREEK: :greek + GUARANI: :guarani + GUJARATI: :gujarati + HAITIAN_CREOLE: :"haitian-creole" + HAUSA: :hausa + HAWAIIAN: :hawaiian + HEBREW: :hebrew + HINDI: :hindi + HMONG: :hmong + HUNGARIAN: :hungarian + ICELANDIC: :icelandic + IGBO: :igbo + INDONESIAN: :indonesian + IRISH: :irish + ITALIAN: :italian + JAPANESE: :japanese + JAVANESE: :javanese + KANNADA: :kannada + KAZAKH: :kazakh + KHMER: :khmer + KINYARWANDA: :kinyarwanda + KOREAN: :korean + KURDISH: :kurdish + KYRGYZ: :kyrgyz + LAO: :lao + LATIN: :latin + LATVIAN: :latvian + LINGALA: :lingala + LITHUANIAN: :lithuanian + LUXEMBOURGISH: :luxembourgish + MACEDONIAN: :macedonian + MALAGASY: :malagasy + MALAY: :malay + MALAYALAM: :malayalam + MALTESE: :maltese + MAORI: :maori + MARATHI: :marathi + MONGOLIAN: :mongolian + NEPALI: :nepali + NORWEGIAN: :norwegian + ODIA: :odia + OROMO: :oromo + PASHTO: :pashto + PIDGIN: :pidgin + POLISH: :polish + PORTUGUESE: :portuguese + PUNJABI: :punjabi + QUECHUA: :quechua + ROMANIAN: :romanian + RUSSIAN: :russian + SAMOAN: :samoan + SCOTTISH_GAELIC: :"scottish-gaelic" + SERBIAN: :serbian + SESOTHO: :sesotho + SHONA: :shona + SINDHI: :sindhi + SINHALA: :sinhala + SLOVAK: :slovak + SLOVENE: :slovene + SOMALI: :somali + SPANISH: :spanish + SUNDANESE: :sundanese + SWAHILI: :swahili + SWEDISH: :swedish + TAGALOG: :tagalog + TAJIK: :tajik + TAMIL: :tamil + TATAR: :tatar + TELUGU: :telugu + THAI: :thai + TIBETAN: :tibetan + TIGRINYA: :tigrinya + TONGAN: :tongan + TSWANA: :tswana + TURKISH: :turkish + TURKMEN: :turkmen + UKRAINIAN: :ukrainian + URDU: :urdu + UYGHUR: :uyghur + UZBEK: :uzbek + VIETNAMESE: :vietnamese + WELSH: :welsh + WOLOF: :wolof + XHOSA: :xhosa + YIDDISH: :yiddish + YORUBA: :yoruba + ZULU: :zulu + + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language] + end + end - type force_language = - :afrikaans - | :albanian - | :amharic - | :arabic - | :armenian - | :assamese - | :aymara - | :azeri - | :basque - | :belarusian - | :bengali - | :bosnian - | :bulgarian - | :burmese - | :cantonese - | :catalan - | :cebuano - | :chinese - | :corsican - | :croatian - | :czech - | :danish - | :dutch - | :english - | :esperanto - | :estonian - | :farsi - | :fijian - | :finnish - | :french - | :galician - | :georgian - | :german - | :greek - | :guarani - | :gujarati - | :"haitian-creole" - | :hausa - | :hawaiian - | :hebrew - | :hindi - | :hmong - | :hungarian - | :icelandic - | :igbo - | :indonesian - | :irish - | :italian - | :japanese - | :javanese - | :kannada - | :kazakh - | :khmer - | :kinyarwanda - | :korean - | :kurdish - | :kyrgyz - | :lao - | :latin - | :latvian - | :lingala - | :lithuanian - | :luxembourgish - | :macedonian - | :malagasy - | :malay - | :malayalam - | :maltese - | :maori - | :marathi - | :mongolian - | :nepali - | :norwegian - | :odia - | :oromo - | :pashto - | :pidgin - | :polish - | :portuguese - | :punjabi - | :quechua - | :romanian - | :russian - | :samoan - | :"scottish-gaelic" - | :serbian - | :sesotho - | :shona - | :sindhi - | :sinhala - | :slovak - | :slovene - | :somali - | :spanish - | :sundanese - | :swahili - | :swedish - | :tagalog - | :tajik - | :tamil - | :tatar - | :telugu - | :thai - | :tibetan - | :tigrinya - | :tongan - | :tswana - | :turkish - | :turkmen - | :ukrainian - | :urdu - | :uyghur - | :uzbek - | :vietnamese - | :welsh - | :wolof - | :xhosa - | :yiddish - | :yoruba - | :zulu - - module ForceLanguage - extend ContextDev::Internal::Type::Enum - - AFRIKAANS: :afrikaans - ALBANIAN: :albanian - AMHARIC: :amharic - ARABIC: :arabic - ARMENIAN: :armenian - ASSAMESE: :assamese - AYMARA: :aymara - AZERI: :azeri - BASQUE: :basque - BELARUSIAN: :belarusian - BENGALI: :bengali - BOSNIAN: :bosnian - BULGARIAN: :bulgarian - BURMESE: :burmese - CANTONESE: :cantonese - CATALAN: :catalan - CEBUANO: :cebuano - CHINESE: :chinese - CORSICAN: :corsican - CROATIAN: :croatian - CZECH: :czech - DANISH: :danish - DUTCH: :dutch - ENGLISH: :english - ESPERANTO: :esperanto - ESTONIAN: :estonian - FARSI: :farsi - FIJIAN: :fijian - FINNISH: :finnish - FRENCH: :french - GALICIAN: :galician - GEORGIAN: :georgian - GERMAN: :german - GREEK: :greek - GUARANI: :guarani - GUJARATI: :gujarati - HAITIAN_CREOLE: :"haitian-creole" - HAUSA: :hausa - HAWAIIAN: :hawaiian - HEBREW: :hebrew - HINDI: :hindi - HMONG: :hmong - HUNGARIAN: :hungarian - ICELANDIC: :icelandic - IGBO: :igbo - INDONESIAN: :indonesian - IRISH: :irish - ITALIAN: :italian - JAPANESE: :japanese - JAVANESE: :javanese - KANNADA: :kannada - KAZAKH: :kazakh - KHMER: :khmer - KINYARWANDA: :kinyarwanda - KOREAN: :korean - KURDISH: :kurdish - KYRGYZ: :kyrgyz - LAO: :lao - LATIN: :latin - LATVIAN: :latvian - LINGALA: :lingala - LITHUANIAN: :lithuanian - LUXEMBOURGISH: :luxembourgish - MACEDONIAN: :macedonian - MALAGASY: :malagasy - MALAY: :malay - MALAYALAM: :malayalam - MALTESE: :maltese - MAORI: :maori - MARATHI: :marathi - MONGOLIAN: :mongolian - NEPALI: :nepali - NORWEGIAN: :norwegian - ODIA: :odia - OROMO: :oromo - PASHTO: :pashto - PIDGIN: :pidgin - POLISH: :polish - PORTUGUESE: :portuguese - PUNJABI: :punjabi - QUECHUA: :quechua - ROMANIAN: :romanian - RUSSIAN: :russian - SAMOAN: :samoan - SCOTTISH_GAELIC: :"scottish-gaelic" - SERBIAN: :serbian - SESOTHO: :sesotho - SHONA: :shona - SINDHI: :sindhi - SINHALA: :sinhala - SLOVAK: :slovak - SLOVENE: :slovene - SOMALI: :somali - SPANISH: :spanish - SUNDANESE: :sundanese - SWAHILI: :swahili - SWEDISH: :swedish - TAGALOG: :tagalog - TAJIK: :tajik - TAMIL: :tamil - TATAR: :tatar - TELUGU: :telugu - THAI: :thai - TIBETAN: :tibetan - TIGRINYA: :tigrinya - TONGAN: :tongan - TSWANA: :tswana - TURKISH: :turkish - TURKMEN: :turkmen - UKRAINIAN: :ukrainian - URDU: :urdu - UYGHUR: :uyghur - UZBEK: :uzbek - VIETNAMESE: :vietnamese - WELSH: :welsh - WOLOF: :wolof - XHOSA: :xhosa - YIDDISH: :yiddish - YORUBA: :yoruba - ZULU: :zulu - - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::force_language] + def self?.variants: -> ::Array[ContextDev::Models::BrandRetrieveParams::body] end end end diff --git a/sig/context_dev/models/utility_prefetch_by_email_params.rbs b/sig/context_dev/models/utility_prefetch_by_email_params.rbs deleted file mode 100644 index 5537be58..00000000 --- a/sig/context_dev/models/utility_prefetch_by_email_params.rbs +++ /dev/null @@ -1,30 +0,0 @@ -module ContextDev - module Models - type utility_prefetch_by_email_params = - { email: String, timeout_ms: Integer } - & ContextDev::Internal::Type::request_parameters - - class UtilityPrefetchByEmailParams < ContextDev::Internal::Type::BaseModel - extend ContextDev::Internal::Type::RequestParameters::Converter - include ContextDev::Internal::Type::RequestParameters - - attr_accessor email: String - - attr_reader timeout_ms: Integer? - - def timeout_ms=: (Integer) -> Integer - - def initialize: ( - email: String, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> void - - def to_hash: -> { - email: String, - timeout_ms: Integer, - request_options: ContextDev::RequestOptions - } - end - end -end diff --git a/sig/context_dev/models/utility_prefetch_by_email_response.rbs b/sig/context_dev/models/utility_prefetch_by_email_response.rbs deleted file mode 100644 index 8ac27871..00000000 --- a/sig/context_dev/models/utility_prefetch_by_email_response.rbs +++ /dev/null @@ -1,64 +0,0 @@ -module ContextDev - module Models - type utility_prefetch_by_email_response = - { - domain: String, - key_metadata: ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, - message: String, - status: String - } - - class UtilityPrefetchByEmailResponse < ContextDev::Internal::Type::BaseModel - attr_reader domain: String? - - def domain=: (String) -> String - - attr_reader key_metadata: ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata? - - def key_metadata=: ( - ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata - ) -> ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata - - attr_reader message: String? - - def message=: (String) -> String - - attr_reader status: String? - - def status=: (String) -> String - - def initialize: ( - ?domain: String, - ?key_metadata: ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, - ?message: String, - ?status: String - ) -> void - - def to_hash: -> { - domain: String, - key_metadata: ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata, - message: String, - status: String - } - - type key_metadata = - { credits_consumed: Integer, credits_remaining: Integer } - - class KeyMetadata < ContextDev::Internal::Type::BaseModel - attr_accessor credits_consumed: Integer - - attr_accessor credits_remaining: Integer - - def initialize: ( - credits_consumed: Integer, - credits_remaining: Integer - ) -> void - - def to_hash: -> { - credits_consumed: Integer, - credits_remaining: Integer - } - end - end - end -end diff --git a/sig/context_dev/models/utility_prefetch_params.rbs b/sig/context_dev/models/utility_prefetch_params.rbs index 8e254103..60dab819 100644 --- a/sig/context_dev/models/utility_prefetch_params.rbs +++ b/sig/context_dev/models/utility_prefetch_params.rbs @@ -1,30 +1,64 @@ module ContextDev module Models type utility_prefetch_params = - { domain: String, timeout_ms: Integer } + { + identifier: ContextDev::UtilityPrefetchParams::Identifier, + type: ContextDev::Models::UtilityPrefetchParams::type_, + timeout_ms: Integer + } & ContextDev::Internal::Type::request_parameters class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - attr_accessor domain: String + attr_accessor identifier: ContextDev::UtilityPrefetchParams::Identifier + + attr_accessor type: ContextDev::Models::UtilityPrefetchParams::type_ attr_reader timeout_ms: Integer? def timeout_ms=: (Integer) -> Integer def initialize: ( - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier, + type: ContextDev::Models::UtilityPrefetchParams::type_, ?timeout_ms: Integer, ?request_options: ContextDev::request_opts ) -> void def to_hash: -> { - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier, + type: ContextDev::Models::UtilityPrefetchParams::type_, timeout_ms: Integer, request_options: ContextDev::RequestOptions } + + type identifier = { domain: String, email: String } + + class Identifier < ContextDev::Internal::Type::BaseModel + attr_reader domain: String? + + def domain=: (String) -> String + + attr_reader email: String? + + def email=: (String) -> String + + def initialize: (?domain: String, ?email: String) -> void + + def to_hash: -> { domain: String, email: String } + end + + type type_ = :brand + + module Type + extend ContextDev::Internal::Type::Enum + + BRAND: :brand + + def self?.values: -> ::Array[ContextDev::Models::UtilityPrefetchParams::type_] + end end end end diff --git a/sig/context_dev/models/utility_prefetch_response.rbs b/sig/context_dev/models/utility_prefetch_response.rbs index 9b030133..d197a259 100644 --- a/sig/context_dev/models/utility_prefetch_response.rbs +++ b/sig/context_dev/models/utility_prefetch_response.rbs @@ -5,7 +5,8 @@ module ContextDev domain: String, key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata, message: String, - status: String + status: String, + type: ContextDev::Models::UtilityPrefetchResponse::type_ } class UtilityPrefetchResponse < ContextDev::Internal::Type::BaseModel @@ -27,18 +28,26 @@ module ContextDev def status=: (String) -> String + attr_reader type: ContextDev::Models::UtilityPrefetchResponse::type_? + + def type=: ( + ContextDev::Models::UtilityPrefetchResponse::type_ + ) -> ContextDev::Models::UtilityPrefetchResponse::type_ + def initialize: ( ?domain: String, ?key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata, ?message: String, - ?status: String + ?status: String, + ?type: ContextDev::Models::UtilityPrefetchResponse::type_ ) -> void def to_hash: -> { domain: String, key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata, message: String, - status: String + status: String, + type: ContextDev::Models::UtilityPrefetchResponse::type_ } type key_metadata = @@ -59,6 +68,16 @@ module ContextDev credits_remaining: Integer } end + + type type_ = :brand + + module Type + extend ContextDev::Internal::Type::Enum + + BRAND: :brand + + def self?.values: -> ::Array[ContextDev::Models::UtilityPrefetchResponse::type_] + end end end end diff --git a/sig/context_dev/resources/ai.rbs b/sig/context_dev/resources/ai.rbs index 34773112..166ed13c 100644 --- a/sig/context_dev/resources/ai.rbs +++ b/sig/context_dev/resources/ai.rbs @@ -1,14 +1,6 @@ module ContextDev module Resources class AI - def ai_query: ( - data_to_extract: ::Array[ContextDev::AIAIQueryParams::DataToExtract], - domain: String, - ?specific_pages: ContextDev::AIAIQueryParams::SpecificPages, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::AIAIQueryResponse - def extract_product: ( url: String, ?max_age_ms: Integer, diff --git a/sig/context_dev/resources/brand.rbs b/sig/context_dev/resources/brand.rbs index 12c8a495..90c7da28 100644 --- a/sig/context_dev/resources/brand.rbs +++ b/sig/context_dev/resources/brand.rbs @@ -2,65 +2,10 @@ module ContextDev module Resources class Brand def retrieve: ( - domain: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, + body: ContextDev::Models::BrandRetrieveParams::body, ?request_options: ContextDev::request_opts ) -> ContextDev::Models::BrandRetrieveResponse - def identify_from_transaction: ( - transaction_info: String, - ?city: String, - ?country_gl: ContextDev::Models::BrandIdentifyFromTransactionParams::country_gl, - ?force_language: ContextDev::Models::BrandIdentifyFromTransactionParams::force_language, - ?high_confidence_only: bool, - ?max_speed: bool, - ?mcc: String, - ?phone: Float, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::BrandIdentifyFromTransactionResponse - - def retrieve_by_email: ( - email: String, - ?force_language: ContextDev::Models::BrandRetrieveByEmailParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::BrandRetrieveByEmailResponse - - def retrieve_by_isin: ( - isin: String, - ?force_language: ContextDev::Models::BrandRetrieveByIsinParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::BrandRetrieveByIsinResponse - - def retrieve_by_name: ( - name: String, - ?country_gl: ContextDev::Models::BrandRetrieveByNameParams::country_gl, - ?force_language: ContextDev::Models::BrandRetrieveByNameParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::BrandRetrieveByNameResponse - - def retrieve_by_ticker: ( - ticker: String, - ?force_language: ContextDev::Models::BrandRetrieveByTickerParams::force_language, - ?max_age_ms: Integer, - ?max_speed: bool, - ?ticker_exchange: ContextDev::Models::BrandRetrieveByTickerParams::ticker_exchange, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::BrandRetrieveByTickerResponse - def retrieve_simplified: ( domain: String, ?max_age_ms: Integer, diff --git a/sig/context_dev/resources/utility.rbs b/sig/context_dev/resources/utility.rbs index 316b3687..18f96f25 100644 --- a/sig/context_dev/resources/utility.rbs +++ b/sig/context_dev/resources/utility.rbs @@ -2,17 +2,12 @@ module ContextDev module Resources class Utility def prefetch: ( - domain: String, + identifier: ContextDev::UtilityPrefetchParams::Identifier, + type: ContextDev::Models::UtilityPrefetchParams::type_, ?timeout_ms: Integer, ?request_options: ContextDev::request_opts ) -> ContextDev::Models::UtilityPrefetchResponse - def prefetch_by_email: ( - email: String, - ?timeout_ms: Integer, - ?request_options: ContextDev::request_opts - ) -> ContextDev::Models::UtilityPrefetchByEmailResponse - def initialize: (client: ContextDev::Client) -> void end end diff --git a/test/context_dev/client_test.rb b/test/context_dev/client_test.rb index 90e2eeb9..36ea4e32 100644 --- a/test/context_dev/client_test.rb +++ b/test/context_dev/client_test.rb @@ -35,55 +35,69 @@ def test_raises_on_missing_non_nullable_opts end def test_client_default_request_default_retry_attempts - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end assert_requested(:any, /./, times: 3) end def test_client_given_request_default_retry_attempts - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end assert_requested(:any, /./, times: 4) end def test_client_default_request_given_retry_attempts - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain", request_options: {max_retries: 3}) + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", + request_options: {max_retries: 3} + ) end assert_requested(:any, /./, times: 4) end def test_client_given_request_given_retry_attempts - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain", request_options: {max_retries: 4}) + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", + request_options: {max_retries: 4} + ) end assert_requested(:any, /./, times: 5) end def test_client_retry_after_seconds - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 500, headers: {"retry-after" => "1.3"}, body: {} @@ -92,7 +106,10 @@ def test_client_retry_after_seconds context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end assert_requested(:any, /./, times: 2) @@ -102,7 +119,7 @@ def test_client_retry_after_seconds def test_client_retry_after_date time_now = Time.now - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 500, headers: {"retry-after" => (time_now + 10).httpdate}, body: {} @@ -112,7 +129,10 @@ def test_client_retry_after_date Thread.current.thread_variable_set(:time_now, time_now) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end Thread.current.thread_variable_set(:time_now, nil) @@ -121,7 +141,7 @@ def test_client_retry_after_date end def test_client_retry_after_ms - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 500, headers: {"retry-after-ms" => "1300"}, body: {} @@ -130,7 +150,10 @@ def test_client_retry_after_ms context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end assert_requested(:any, /./, times: 2) @@ -138,12 +161,15 @@ def test_client_retry_after_ms end def test_retry_count_header - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) end 3.times do @@ -152,13 +178,14 @@ def test_retry_count_header end def test_omit_retry_count_header - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve( - domain: "domain", + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", request_options: {extra_headers: {"x-stainless-retry-count" => nil}} ) end @@ -169,13 +196,14 @@ def test_omit_retry_count_header end def test_overwrite_retry_count_header - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve( - domain: "domain", + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", request_options: {extra_headers: {"x-stainless-retry-count" => "42"}} ) end @@ -184,7 +212,7 @@ def test_overwrite_retry_count_header end def test_client_redirect_307 - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 307, headers: {"location" => "/redirected"}, body: {} @@ -197,7 +225,11 @@ def test_client_redirect_307 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve(domain: "domain", request_options: {extra_headers: {}}) + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", + request_options: {extra_headers: {}} + ) end recorded, = WebMock::RequestRegistry.instance.requested_signatures.hash.first @@ -213,7 +245,7 @@ def test_client_redirect_307 end def test_client_redirect_303 - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 303, headers: {"location" => "/redirected"}, body: {} @@ -226,7 +258,11 @@ def test_client_redirect_303 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve(domain: "domain", request_options: {extra_headers: {}}) + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", + request_options: {extra_headers: {}} + ) end assert_requested(:get, "http://localhost/redirected", times: ContextDev::Client::MAX_REDIRECTS) do @@ -237,7 +273,7 @@ def test_client_redirect_303 end def test_client_redirect_auth_keep_same_origin - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 307, headers: {"location" => "/redirected"}, body: {} @@ -250,8 +286,9 @@ def test_client_redirect_auth_keep_same_origin context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve( - domain: "domain", + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -267,7 +304,7 @@ def test_client_redirect_auth_keep_same_origin end def test_client_redirect_auth_strip_cross_origin - stub_request(:get, "http://localhost/brand/retrieve").to_return_json( + stub_request(:post, "http://localhost/web/extract").to_return_json( status: 307, headers: {"location" => "https://example.com/redirected"}, body: {} @@ -280,8 +317,9 @@ def test_client_redirect_auth_strip_cross_origin context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve( - domain: "domain", + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com", request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -293,11 +331,14 @@ def test_client_redirect_auth_strip_cross_origin end def test_default_headers - stub_request(:get, "http://localhost/brand/retrieve").to_return_json(status: 200, body: {}) + stub_request(:post, "http://localhost/web/extract").to_return_json(status: 200, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") - context_dev.brand.retrieve(domain: "domain") + context_dev.web.extract( + schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, + url: "https://example.com" + ) assert_requested(:any, /./) do |req| headers = req.headers.transform_keys(&:downcase) diff --git a/test/context_dev/resources/ai_test.rb b/test/context_dev/resources/ai_test.rb index 419593b1..56dcda1c 100644 --- a/test/context_dev/resources/ai_test.rb +++ b/test/context_dev/resources/ai_test.rb @@ -3,37 +3,6 @@ require_relative "../test_helper" class ContextDev::Test::Resources::AITest < ContextDev::Test::ResourceTest - def test_ai_query_required_params - skip("Mock server tests are disabled") - - response = - @context_dev.ai.ai_query( - data_to_extract: [ - { - datapoint_description: "datapoint_description", - datapoint_example: "datapoint_example", - datapoint_name: "datapoint_name", - datapoint_type: :text - } - ], - domain: "domain" - ) - - assert_pattern do - response => ContextDev::Models::AIAIQueryResponse - end - - assert_pattern do - response => { - data_extracted: ^(ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIAIQueryResponse::DataExtracted]) | nil, - domain: String | nil, - key_metadata: ContextDev::Models::AIAIQueryResponse::KeyMetadata | nil, - status: String | nil, - urls_analyzed: ^(ContextDev::Internal::Type::ArrayOf[String]) | nil - } - end - end - def test_extract_product_required_params skip("Mock server tests are disabled") diff --git a/test/context_dev/resources/brand_test.rb b/test/context_dev/resources/brand_test.rb index 5a87c2c6..2246300d 100644 --- a/test/context_dev/resources/brand_test.rb +++ b/test/context_dev/resources/brand_test.rb @@ -6,7 +6,7 @@ class ContextDev::Test::Resources::BrandTest < ContextDev::Test::ResourceTest def test_retrieve_required_params skip("Mock server tests are disabled") - response = @context_dev.brand.retrieve(domain: "domain") + response = @context_dev.brand.retrieve(body: {domain: "stripe.com"}) assert_pattern do response => ContextDev::Models::BrandRetrieveResponse @@ -22,101 +22,6 @@ def test_retrieve_required_params end end - def test_identify_from_transaction_required_params - skip("Mock server tests are disabled") - - response = @context_dev.brand.identify_from_transaction(transaction_info: "transaction_info") - - assert_pattern do - response => ContextDev::Models::BrandIdentifyFromTransactionResponse - end - - assert_pattern do - response => { - brand: ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand | nil, - code: Integer | nil, - key_metadata: ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata | nil, - status: String | nil - } - end - end - - def test_retrieve_by_email_required_params - skip("Mock server tests are disabled") - - response = @context_dev.brand.retrieve_by_email(email: "dev@stainless.com") - - assert_pattern do - response => ContextDev::Models::BrandRetrieveByEmailResponse - end - - assert_pattern do - response => { - brand: ContextDev::Models::BrandRetrieveByEmailResponse::Brand | nil, - code: Integer | nil, - key_metadata: ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata | nil, - status: String | nil - } - end - end - - def test_retrieve_by_isin_required_params - skip("Mock server tests are disabled") - - response = @context_dev.brand.retrieve_by_isin(isin: "SE60513A9993") - - assert_pattern do - response => ContextDev::Models::BrandRetrieveByIsinResponse - end - - assert_pattern do - response => { - brand: ContextDev::Models::BrandRetrieveByIsinResponse::Brand | nil, - code: Integer | nil, - key_metadata: ContextDev::Models::BrandRetrieveByIsinResponse::KeyMetadata | nil, - status: String | nil - } - end - end - - def test_retrieve_by_name_required_params - skip("Mock server tests are disabled") - - response = @context_dev.brand.retrieve_by_name(name: "xxx") - - assert_pattern do - response => ContextDev::Models::BrandRetrieveByNameResponse - end - - assert_pattern do - response => { - brand: ContextDev::Models::BrandRetrieveByNameResponse::Brand | nil, - code: Integer | nil, - key_metadata: ContextDev::Models::BrandRetrieveByNameResponse::KeyMetadata | nil, - status: String | nil - } - end - end - - def test_retrieve_by_ticker_required_params - skip("Mock server tests are disabled") - - response = @context_dev.brand.retrieve_by_ticker(ticker: "ticker") - - assert_pattern do - response => ContextDev::Models::BrandRetrieveByTickerResponse - end - - assert_pattern do - response => { - brand: ContextDev::Models::BrandRetrieveByTickerResponse::Brand | nil, - code: Integer | nil, - key_metadata: ContextDev::Models::BrandRetrieveByTickerResponse::KeyMetadata | nil, - status: String | nil - } - end - end - def test_retrieve_simplified_required_params skip("Mock server tests are disabled") diff --git a/test/context_dev/resources/utility_test.rb b/test/context_dev/resources/utility_test.rb index 895880c1..f095cc24 100644 --- a/test/context_dev/resources/utility_test.rb +++ b/test/context_dev/resources/utility_test.rb @@ -6,7 +6,7 @@ class ContextDev::Test::Resources::UtilityTest < ContextDev::Test::ResourceTest def test_prefetch_required_params skip("Mock server tests are disabled") - response = @context_dev.utility.prefetch(domain: "domain") + response = @context_dev.utility.prefetch(identifier: {}, type: :brand) assert_pattern do response => ContextDev::Models::UtilityPrefetchResponse @@ -17,26 +17,8 @@ def test_prefetch_required_params domain: String | nil, key_metadata: ContextDev::Models::UtilityPrefetchResponse::KeyMetadata | nil, message: String | nil, - status: String | nil - } - end - end - - def test_prefetch_by_email_required_params - skip("Mock server tests are disabled") - - response = @context_dev.utility.prefetch_by_email(email: "dev@stainless.com") - - assert_pattern do - response => ContextDev::Models::UtilityPrefetchByEmailResponse - end - - assert_pattern do - response => { - domain: String | nil, - key_metadata: ContextDev::Models::UtilityPrefetchByEmailResponse::KeyMetadata | nil, - message: String | nil, - status: String | nil + status: String | nil, + type: ContextDev::Models::UtilityPrefetchResponse::Type | nil } end end From b18f46485bf70c10b0a20459ed38b2991ea5add0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 05:33:36 +0000 Subject: [PATCH 16/19] feat(api): manual updates --- .stats.yml | 4 +- README.md | 29 +++++---- test/context_dev/client_test.rb | 109 ++++++++++---------------------- 3 files changed, 53 insertions(+), 89 deletions(-) diff --git a/.stats.yml b/.stats.yml index 151723e6..0ae96ead 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 29 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-2e40370ce4d7d019b30d43020674bb02aaaf2a67a8916772084815c874f99950.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-9de98d1d4d2c9a431961599cb54716212c06200a919e09adedd42244038ec07b.yml openapi_spec_hash: a44b7d4172c8c7cd395237738867d5cb -config_hash: 472cc1adb51663e5b3d8dce16f6d29d9 +config_hash: ff35e224e809656528c44163aa41bebd diff --git a/README.md b/README.md index fdbf4ee2..e739b20d 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ context_dev = ContextDev::Client.new( api_key: ENV["CONTEXT_DEV_API_KEY"] # This is the default and can be omitted ) -response = context_dev.web.extract +brand = context_dev.brand.retrieve(body: {domain: "stripe.com"}) -puts(response.data) +puts(brand.brand) ``` ### Handling errors @@ -52,7 +52,7 @@ When the library is unable to connect to the API, or if the API returns a non-su ```ruby begin - web = context_dev.web.extract + brand = context_dev.brand.retrieve(body: {domain: "stripe.com"}) rescue ContextDev::Errors::APIConnectionError => e puts("The server could not be reached") puts(e.cause) # an underlying Exception, likely raised within `net/http` @@ -95,7 +95,7 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.web.extract(request_options: {max_retries: 5}) +context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 5}) ``` ### Timeouts @@ -109,7 +109,7 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.web.extract(request_options: {timeout: 5}) +context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {timeout: 5}) ``` On timeout, `ContextDev::Errors::APITimeoutError` is raised. @@ -139,8 +139,9 @@ You can send undocumented parameters to any endpoint, and read undocumented resp Note: the `extra_` parameters of the same name overrides the documented parameters. ```ruby -response = - context_dev.web.extract( +brand = + context_dev.brand.retrieve( + body: {domain: "stripe.com"}, request_options: { extra_query: {my_query_parameter: value}, extra_body: {my_body_parameter: value}, @@ -148,7 +149,7 @@ response = } ) -puts(response[:my_undocumented_property]) +puts(brand[:my_undocumented_property]) ``` #### Undocumented request params @@ -186,18 +187,22 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio You can provide typesafe request parameters like so: ```ruby -context_dev.web.extract +context_dev.brand.retrieve( + body: ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest.new(domain: "stripe.com") +) ``` Or, equivalently: ```ruby # Hashes work, but are not typesafe: -context_dev.web.extract +context_dev.brand.retrieve(body: {domain: "stripe.com"}) # You can also splat a full Params class: -params = ContextDev::WebExtractParams.new -context_dev.web.extract(**params) +params = ContextDev::BrandRetrieveParams.new( + body: ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest.new(domain: "stripe.com") +) +context_dev.brand.retrieve(**params) ``` ### Enums diff --git a/test/context_dev/client_test.rb b/test/context_dev/client_test.rb index 36ea4e32..79b7d64c 100644 --- a/test/context_dev/client_test.rb +++ b/test/context_dev/client_test.rb @@ -35,69 +35,55 @@ def test_raises_on_missing_non_nullable_opts end def test_client_default_request_default_retry_attempts - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end assert_requested(:any, /./, times: 3) end def test_client_given_request_default_retry_attempts - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end assert_requested(:any, /./, times: 4) end def test_client_default_request_given_retry_attempts - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", - request_options: {max_retries: 3} - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 3}) end assert_requested(:any, /./, times: 4) end def test_client_given_request_given_retry_attempts - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", - request_options: {max_retries: 4} - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 4}) end assert_requested(:any, /./, times: 5) end def test_client_retry_after_seconds - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 500, headers: {"retry-after" => "1.3"}, body: {} @@ -106,10 +92,7 @@ def test_client_retry_after_seconds context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end assert_requested(:any, /./, times: 2) @@ -119,7 +102,7 @@ def test_client_retry_after_seconds def test_client_retry_after_date time_now = Time.now - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 500, headers: {"retry-after" => (time_now + 10).httpdate}, body: {} @@ -129,10 +112,7 @@ def test_client_retry_after_date Thread.current.thread_variable_set(:time_now, time_now) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end Thread.current.thread_variable_set(:time_now, nil) @@ -141,7 +121,7 @@ def test_client_retry_after_date end def test_client_retry_after_ms - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 500, headers: {"retry-after-ms" => "1300"}, body: {} @@ -150,10 +130,7 @@ def test_client_retry_after_ms context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end assert_requested(:any, /./, times: 2) @@ -161,15 +138,12 @@ def test_client_retry_after_ms end def test_retry_count_header - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) end 3.times do @@ -178,14 +152,13 @@ def test_retry_count_header end def test_omit_retry_count_header - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", + context_dev.brand.retrieve( + body: {domain: "stripe.com"}, request_options: {extra_headers: {"x-stainless-retry-count" => nil}} ) end @@ -196,14 +169,13 @@ def test_omit_retry_count_header end def test_overwrite_retry_count_header - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 500, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 500, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", + context_dev.brand.retrieve( + body: {domain: "stripe.com"}, request_options: {extra_headers: {"x-stainless-retry-count" => "42"}} ) end @@ -212,7 +184,7 @@ def test_overwrite_retry_count_header end def test_client_redirect_307 - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 307, headers: {"location" => "/redirected"}, body: {} @@ -225,11 +197,7 @@ def test_client_redirect_307 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", - request_options: {extra_headers: {}} - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {extra_headers: {}}) end recorded, = WebMock::RequestRegistry.instance.requested_signatures.hash.first @@ -245,7 +213,7 @@ def test_client_redirect_307 end def test_client_redirect_303 - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 303, headers: {"location" => "/redirected"}, body: {} @@ -258,11 +226,7 @@ def test_client_redirect_303 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", - request_options: {extra_headers: {}} - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {extra_headers: {}}) end assert_requested(:get, "http://localhost/redirected", times: ContextDev::Client::MAX_REDIRECTS) do @@ -273,7 +237,7 @@ def test_client_redirect_303 end def test_client_redirect_auth_keep_same_origin - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 307, headers: {"location" => "/redirected"}, body: {} @@ -286,9 +250,8 @@ def test_client_redirect_auth_keep_same_origin context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", + context_dev.brand.retrieve( + body: {domain: "stripe.com"}, request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -304,7 +267,7 @@ def test_client_redirect_auth_keep_same_origin end def test_client_redirect_auth_strip_cross_origin - stub_request(:post, "http://localhost/web/extract").to_return_json( + stub_request(:post, "http://localhost/brand/retrieve").to_return_json( status: 307, headers: {"location" => "https://example.com/redirected"}, body: {} @@ -317,9 +280,8 @@ def test_client_redirect_auth_strip_cross_origin context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com", + context_dev.brand.retrieve( + body: {domain: "stripe.com"}, request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -331,14 +293,11 @@ def test_client_redirect_auth_strip_cross_origin end def test_default_headers - stub_request(:post, "http://localhost/web/extract").to_return_json(status: 200, body: {}) + stub_request(:post, "http://localhost/brand/retrieve").to_return_json(status: 200, body: {}) context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") - context_dev.web.extract( - schema: {type: "bar", properties: "bar", required: "bar", additionalProperties: "bar"}, - url: "https://example.com" - ) + context_dev.brand.retrieve(body: {domain: "stripe.com"}) assert_requested(:any, /./) do |req| headers = req.headers.transform_keys(&:downcase) From a14632340e78b4b21be6c742f3792a7f14ca4fae Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 05:45:22 +0000 Subject: [PATCH 17/19] feat(api): api update --- .stats.yml | 4 +- .../models/utility_prefetch_params.rb | 74 +++++++----- lib/context_dev/resources/utility.rb | 2 +- .../models/utility_prefetch_params.rbi | 111 ++++++++++++------ rbi/context_dev/resources/utility.rbi | 6 +- .../models/utility_prefetch_params.rbs | 38 ++++-- sig/context_dev/resources/utility.rbs | 2 +- test/context_dev/resources/utility_test.rb | 2 +- 8 files changed, 160 insertions(+), 79 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0ae96ead..c36fec26 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 29 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-9de98d1d4d2c9a431961599cb54716212c06200a919e09adedd42244038ec07b.yml -openapi_spec_hash: a44b7d4172c8c7cd395237738867d5cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5280c0f42603633a06d2404b120b98d0d9aa43256d13680bbdead7579a90452a.yml +openapi_spec_hash: 34869d638c12bf076949bb7e050dd634 config_hash: ff35e224e809656528c44163aa41bebd diff --git a/lib/context_dev/models/utility_prefetch_params.rb b/lib/context_dev/models/utility_prefetch_params.rb index 69cff945..86641066 100644 --- a/lib/context_dev/models/utility_prefetch_params.rb +++ b/lib/context_dev/models/utility_prefetch_params.rb @@ -10,8 +10,8 @@ class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel # @!attribute identifier # Identifier of the brand to prefetch. Provide exactly one of domain or email. # - # @return [ContextDev::Models::UtilityPrefetchParams::Identifier] - required :identifier, -> { ContextDev::UtilityPrefetchParams::Identifier } + # @return [ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier] + required :identifier, union: -> { ContextDev::UtilityPrefetchParams::Identifier } # @!attribute type # What to prefetch. Currently only 'brand' is supported. @@ -31,7 +31,7 @@ class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {ContextDev::Models::UtilityPrefetchParams} for more details. # - # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. + # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. # # @param type [Symbol, ContextDev::Models::UtilityPrefetchParams::Type] What to prefetch. Currently only 'brand' is supported. # @@ -39,30 +39,50 @@ class UtilityPrefetchParams < ContextDev::Internal::Type::BaseModel # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - class Identifier < ContextDev::Internal::Type::BaseModel - # @!attribute domain - # Domain name to prefetch brand data for - # - # @return [String, nil] - optional :domain, String - - # @!attribute email - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - # - # @return [String, nil] - optional :email, String - - # @!method initialize(domain: nil, email: nil) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::UtilityPrefetchParams::Identifier} for more details. - # - # Identifier of the brand to prefetch. Provide exactly one of domain or email. - # - # @param domain [String] Domain name to prefetch brand data for - # - # @param email [String] Email address to prefetch brand data for. The domain will be extracted from the + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + module Identifier + extend ContextDev::Internal::Type::Union + + # Prefetch brand data by domain. + variant -> { ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier } + + # Prefetch brand data by email. The domain will be extracted and validated. + variant -> { ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier } + + class UtilityPrefetchDomainIdentifier < ContextDev::Internal::Type::BaseModel + # @!attribute domain + # Domain name to prefetch brand data for + # + # @return [String] + required :domain, String + + # @!method initialize(domain:) + # Prefetch brand data by domain. + # + # @param domain [String] Domain name to prefetch brand data for + end + + class UtilityPrefetchEmailIdentifier < ContextDev::Internal::Type::BaseModel + # @!attribute email + # Email address to prefetch brand data for. The domain will be extracted from the + # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email + # addresses are not allowed. + # + # @return [String] + required :email, String + + # @!method initialize(email:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier} + # for more details. + # + # Prefetch brand data by email. The domain will be extracted and validated. + # + # @param email [String] Email address to prefetch brand data for. The domain will be extracted from the + end + + # @!method self.variants + # @return [Array(ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier)] end # What to prefetch. Currently only 'brand' is supported. diff --git a/lib/context_dev/resources/utility.rb b/lib/context_dev/resources/utility.rb index 41710901..dc3ae68a 100644 --- a/lib/context_dev/resources/utility.rb +++ b/lib/context_dev/resources/utility.rb @@ -13,7 +13,7 @@ class Utility # # @overload prefetch(identifier:, type:, timeout_ms: nil, request_options: {}) # - # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. + # @param identifier [ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, ContextDev::Models::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier] Identifier of the brand to prefetch. Provide exactly one of domain or email. # # @param type [Symbol, ContextDev::Models::UtilityPrefetchParams::Type] What to prefetch. Currently only 'brand' is supported. # diff --git a/rbi/context_dev/models/utility_prefetch_params.rbi b/rbi/context_dev/models/utility_prefetch_params.rbi index a77dfb48..a8dcebf7 100644 --- a/rbi/context_dev/models/utility_prefetch_params.rbi +++ b/rbi/context_dev/models/utility_prefetch_params.rbi @@ -15,15 +15,15 @@ module ContextDev end # Identifier of the brand to prefetch. Provide exactly one of domain or email. - sig { returns(ContextDev::UtilityPrefetchParams::Identifier) } - attr_reader :identifier - sig do - params( - identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash - ).void + returns( + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier + ) + ) end - attr_writer :identifier + attr_accessor :identifier # What to prefetch. Currently only 'brand' is supported. sig { returns(ContextDev::UtilityPrefetchParams::Type::OrSymbol) } @@ -40,7 +40,11 @@ module ContextDev sig do params( - identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash, + identifier: + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier::OrHash, + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier::OrHash + ), type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions::OrHash @@ -62,7 +66,11 @@ module ContextDev sig do override.returns( { - identifier: ContextDev::UtilityPrefetchParams::Identifier, + identifier: + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier + ), type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions @@ -72,45 +80,80 @@ module ContextDev def to_hash end - class Identifier < ContextDev::Internal::Type::BaseModel - OrHash = + # Identifier of the brand to prefetch. Provide exactly one of domain or email. + module Identifier + extend ContextDev::Internal::Type::Union + + Variants = T.type_alias do T.any( - ContextDev::UtilityPrefetchParams::Identifier, - ContextDev::Internal::AnyHash + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier ) end - # Domain name to prefetch brand data for - sig { returns(T.nilable(String)) } - attr_reader :domain + class UtilityPrefetchDomainIdentifier < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier, + ContextDev::Internal::AnyHash + ) + end - sig { params(domain: String).void } - attr_writer :domain + # Domain name to prefetch brand data for + sig { returns(String) } + attr_accessor :domain + + # Prefetch brand data by domain. + sig { params(domain: String).returns(T.attached_class) } + def self.new( + # Domain name to prefetch brand data for + domain: + ) + end - # Email address to prefetch brand data for. The domain will be extracted from the - # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email - # addresses are not allowed. - sig { returns(T.nilable(String)) } - attr_reader :email + sig { override.returns({ domain: String }) } + def to_hash + end + end - sig { params(email: String).void } - attr_writer :email + class UtilityPrefetchEmailIdentifier < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier, + ContextDev::Internal::AnyHash + ) + end - # Identifier of the brand to prefetch. Provide exactly one of domain or email. - sig { params(domain: String, email: String).returns(T.attached_class) } - def self.new( - # Domain name to prefetch brand data for - domain: nil, # Email address to prefetch brand data for. The domain will be extracted from the # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email # addresses are not allowed. - email: nil - ) + sig { returns(String) } + attr_accessor :email + + # Prefetch brand data by email. The domain will be extracted and validated. + sig { params(email: String).returns(T.attached_class) } + def self.new( + # Email address to prefetch brand data for. The domain will be extracted from the + # email. Free email providers (gmail.com, yahoo.com, etc.) and disposable email + # addresses are not allowed. + email: + ) + end + + sig { override.returns({ email: String }) } + def to_hash + end end - sig { override.returns({ domain: String, email: String }) } - def to_hash + sig do + override.returns( + T::Array[ContextDev::UtilityPrefetchParams::Identifier::Variants] + ) + end + def self.variants end end diff --git a/rbi/context_dev/resources/utility.rbi b/rbi/context_dev/resources/utility.rbi index b18ecbb3..f21a5ccb 100644 --- a/rbi/context_dev/resources/utility.rbi +++ b/rbi/context_dev/resources/utility.rbi @@ -9,7 +9,11 @@ module ContextDev # (free email providers and disposable email addresses are not allowed). sig do params( - identifier: ContextDev::UtilityPrefetchParams::Identifier::OrHash, + identifier: + T.any( + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier::OrHash, + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier::OrHash + ), type: ContextDev::UtilityPrefetchParams::Type::OrSymbol, timeout_ms: Integer, request_options: ContextDev::RequestOptions::OrHash diff --git a/sig/context_dev/models/utility_prefetch_params.rbs b/sig/context_dev/models/utility_prefetch_params.rbs index 60dab819..2f55b8f5 100644 --- a/sig/context_dev/models/utility_prefetch_params.rbs +++ b/sig/context_dev/models/utility_prefetch_params.rbs @@ -2,7 +2,7 @@ module ContextDev module Models type utility_prefetch_params = { - identifier: ContextDev::UtilityPrefetchParams::Identifier, + identifier: ContextDev::Models::UtilityPrefetchParams::identifier, type: ContextDev::Models::UtilityPrefetchParams::type_, timeout_ms: Integer } @@ -12,7 +12,7 @@ module ContextDev extend ContextDev::Internal::Type::RequestParameters::Converter include ContextDev::Internal::Type::RequestParameters - attr_accessor identifier: ContextDev::UtilityPrefetchParams::Identifier + attr_accessor identifier: ContextDev::Models::UtilityPrefetchParams::identifier attr_accessor type: ContextDev::Models::UtilityPrefetchParams::type_ @@ -21,33 +21,47 @@ module ContextDev def timeout_ms=: (Integer) -> Integer def initialize: ( - identifier: ContextDev::UtilityPrefetchParams::Identifier, + identifier: ContextDev::Models::UtilityPrefetchParams::identifier, type: ContextDev::Models::UtilityPrefetchParams::type_, ?timeout_ms: Integer, ?request_options: ContextDev::request_opts ) -> void def to_hash: -> { - identifier: ContextDev::UtilityPrefetchParams::Identifier, + identifier: ContextDev::Models::UtilityPrefetchParams::identifier, type: ContextDev::Models::UtilityPrefetchParams::type_, timeout_ms: Integer, request_options: ContextDev::RequestOptions } - type identifier = { domain: String, email: String } + type identifier = + ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchDomainIdentifier + | ContextDev::UtilityPrefetchParams::Identifier::UtilityPrefetchEmailIdentifier - class Identifier < ContextDev::Internal::Type::BaseModel - attr_reader domain: String? + module Identifier + extend ContextDev::Internal::Type::Union - def domain=: (String) -> String + type utility_prefetch_domain_identifier = { domain: String } - attr_reader email: String? + class UtilityPrefetchDomainIdentifier < ContextDev::Internal::Type::BaseModel + attr_accessor domain: String - def email=: (String) -> String + def initialize: (domain: String) -> void - def initialize: (?domain: String, ?email: String) -> void + def to_hash: -> { domain: String } + end - def to_hash: -> { domain: String, email: String } + type utility_prefetch_email_identifier = { email: String } + + class UtilityPrefetchEmailIdentifier < ContextDev::Internal::Type::BaseModel + attr_accessor email: String + + def initialize: (email: String) -> void + + def to_hash: -> { email: String } + end + + def self?.variants: -> ::Array[ContextDev::Models::UtilityPrefetchParams::identifier] end type type_ = :brand diff --git a/sig/context_dev/resources/utility.rbs b/sig/context_dev/resources/utility.rbs index 18f96f25..54a53a82 100644 --- a/sig/context_dev/resources/utility.rbs +++ b/sig/context_dev/resources/utility.rbs @@ -2,7 +2,7 @@ module ContextDev module Resources class Utility def prefetch: ( - identifier: ContextDev::UtilityPrefetchParams::Identifier, + identifier: ContextDev::Models::UtilityPrefetchParams::identifier, type: ContextDev::Models::UtilityPrefetchParams::type_, ?timeout_ms: Integer, ?request_options: ContextDev::request_opts diff --git a/test/context_dev/resources/utility_test.rb b/test/context_dev/resources/utility_test.rb index f095cc24..fe3c1eff 100644 --- a/test/context_dev/resources/utility_test.rb +++ b/test/context_dev/resources/utility_test.rb @@ -6,7 +6,7 @@ class ContextDev::Test::Resources::UtilityTest < ContextDev::Test::ResourceTest def test_prefetch_required_params skip("Mock server tests are disabled") - response = @context_dev.utility.prefetch(identifier: {}, type: :brand) + response = @context_dev.utility.prefetch(identifier: {domain: "domain"}, type: :brand) assert_pattern do response => ContextDev::Models::UtilityPrefetchResponse From b0511d905641a19d59391ff26ac27d474016ac26 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 07:05:49 +0000 Subject: [PATCH 18/19] feat(api): api update --- .stats.yml | 4 +- README.md | 19 +- .../models/brand_retrieve_params.rb | 147 +- lib/context_dev/resources/brand.rb | 5 +- .../models/brand_retrieve_params.rbi | 1389 +++++++++-------- rbi/context_dev/resources/brand.rbi | 13 +- .../models/brand_retrieve_params.rbs | 135 +- test/context_dev/client_test.rb | 42 +- test/context_dev/resources/brand_test.rb | 2 +- 9 files changed, 928 insertions(+), 828 deletions(-) diff --git a/.stats.yml b/.stats.yml index c36fec26..f52f4302 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 29 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5280c0f42603633a06d2404b120b98d0d9aa43256d13680bbdead7579a90452a.yml -openapi_spec_hash: 34869d638c12bf076949bb7e050dd634 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-7dbd739a81e6aaf7fc7ef1858606e7d572d309af55082a66431d9292e655e66f.yml +openapi_spec_hash: a6374d5d718a7bd9d3d54fb657e2bd9d config_hash: ff35e224e809656528c44163aa41bebd diff --git a/README.md b/README.md index e739b20d..b2e74484 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ context_dev = ContextDev::Client.new( api_key: ENV["CONTEXT_DEV_API_KEY"] # This is the default and can be omitted ) -brand = context_dev.brand.retrieve(body: {domain: "stripe.com"}) +brand = context_dev.brand.retrieve(body: {domain: "stripe.com", type: "by_domain"}) puts(brand.brand) ``` @@ -52,7 +52,7 @@ When the library is unable to connect to the API, or if the API returns a non-su ```ruby begin - brand = context_dev.brand.retrieve(body: {domain: "stripe.com"}) + brand = context_dev.brand.retrieve(body: {domain: "stripe.com", type: "by_domain"}) rescue ContextDev::Errors::APIConnectionError => e puts("The server could not be reached") puts(e.cause) # an underlying Exception, likely raised within `net/http` @@ -95,7 +95,10 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 5}) +context_dev.brand.retrieve( + body: {domain: "stripe.com", type: "by_domain"}, + request_options: {max_retries: 5} +) ``` ### Timeouts @@ -109,7 +112,7 @@ context_dev = ContextDev::Client.new( ) # Or, configure per-request: -context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {timeout: 5}) +context_dev.brand.retrieve(body: {domain: "stripe.com", type: "by_domain"}, request_options: {timeout: 5}) ``` On timeout, `ContextDev::Errors::APITimeoutError` is raised. @@ -141,7 +144,7 @@ Note: the `extra_` parameters of the same name overrides the documented paramete ```ruby brand = context_dev.brand.retrieve( - body: {domain: "stripe.com"}, + body: {domain: "stripe.com", type: "by_domain"}, request_options: { extra_query: {my_query_parameter: value}, extra_body: {my_body_parameter: value}, @@ -188,7 +191,7 @@ You can provide typesafe request parameters like so: ```ruby context_dev.brand.retrieve( - body: ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest.new(domain: "stripe.com") + body: ContextDev::BrandRetrieveParams::Body::ByDomain.new(domain: "stripe.com") ) ``` @@ -196,11 +199,11 @@ Or, equivalently: ```ruby # Hashes work, but are not typesafe: -context_dev.brand.retrieve(body: {domain: "stripe.com"}) +context_dev.brand.retrieve(body: {domain: "stripe.com", type: "by_domain"}) # You can also splat a full Params class: params = ContextDev::BrandRetrieveParams.new( - body: ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest.new(domain: "stripe.com") + body: ContextDev::BrandRetrieveParams::Body::ByDomain.new(domain: "stripe.com") ) context_dev.brand.retrieve(**params) ``` diff --git a/lib/context_dev/models/brand_retrieve_params.rb b/lib/context_dev/models/brand_retrieve_params.rb index 4cd44cd4..dd108b90 100644 --- a/lib/context_dev/models/brand_retrieve_params.rb +++ b/lib/context_dev/models/brand_retrieve_params.rb @@ -8,52 +8,54 @@ class BrandRetrieveParams < ContextDev::Internal::Type::BaseModel include ContextDev::Internal::Type::RequestParameters # @!attribute body - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. # - # @return [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] + # @return [ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction] required :body, union: -> { ContextDev::BrandRetrieveParams::Body } # @!method initialize(body:, request_options: {}) - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams} for more details. - # - # @param body [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] Exactly one of domain, name, email, ticker, or transaction_info must be provided + # @param body [ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction] Exactly one lookup type must be provided. # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}] - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. module Body extend ContextDev::Internal::Type::Union + discriminator :type + # Retrieve brand data by domain. Cannot be combined with name, email, or ticker. - variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest } + variant :by_domain, -> { ContextDev::BrandRetrieveParams::Body::ByDomain } # Retrieve brand data by company name. Cannot be combined with domain, email, or ticker. - variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest } + variant :by_name, -> { ContextDev::BrandRetrieveParams::Body::ByName } # Retrieve brand data by email address. The domain is extracted from the email. Free and disposable email providers are rejected with 422. Cannot be combined with domain, name, or ticker. - variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest } + variant :by_email, -> { ContextDev::BrandRetrieveParams::Body::ByEmail } # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or email. - variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest } + variant :by_ticker, -> { ContextDev::BrandRetrieveParams::Body::ByTicker } # Identify brand data from a transaction descriptor. Cannot be combined with domain, name, email, or ticker. - variant -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest } + variant :by_transaction, -> { ContextDev::BrandRetrieveParams::Body::ByTransaction } - class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + class ByDomain < ContextDev::Internal::Type::BaseModel # @!attribute domain # Domain name to retrieve brand data for (e.g., 'stripe.com'). # # @return [String] required :domain, String + # @!attribute type + # Discriminator for domain-based brand retrieval. + # + # @return [Symbol, :by_domain] + required :type, const: :by_domain + # @!attribute force_language # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage, nil] - optional :force_language, - enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage } + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByDomain::ForceLanguage, nil] + optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage } # @!attribute max_age_ms # Maximum age in milliseconds for cached brand data before the API performs a hard @@ -80,24 +82,25 @@ class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_domain) # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest} - # for more details. + # {ContextDev::Models::BrandRetrieveParams::Body::ByDomain} for more details. # # Retrieve brand data by domain. Cannot be combined with name, email, or ticker. # # @param domain [String] Domain name to retrieve brand data for (e.g., 'stripe.com'). # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage] + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByDomain::ForceLanguage] # # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard # # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # + # @param type [Symbol, :by_domain] Discriminator for domain-based brand retrieval. - # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest#force_language + # @see ContextDev::Models::BrandRetrieveParams::Body::ByDomain#force_language module ForceLanguage extend ContextDev::Internal::Type::Enum @@ -227,13 +230,19 @@ module ForceLanguage end end - class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + class ByName < ContextDev::Internal::Type::BaseModel # @!attribute name # Company name to retrieve brand data for (e.g., 'Apple Inc'). # # @return [String] required :name, String + # @!attribute type + # Discriminator for name-based brand retrieval. + # + # @return [Symbol, :by_name] + required :type, const: :by_name + # @!attribute country_gl # Optional country code hint (GL parameter) to specify the country when looking up # by company name. @@ -243,9 +252,8 @@ class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel # @!attribute force_language # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage, nil] - optional :force_language, - enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage } + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByName::ForceLanguage, nil] + optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage } # @!attribute max_age_ms # Maximum age in milliseconds for cached brand data before the API performs a hard @@ -272,10 +280,9 @@ class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # @!method initialize(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_name) # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest} for - # more details. + # {ContextDev::Models::BrandRetrieveParams::Body::ByName} for more details. # # Retrieve brand data by company name. Cannot be combined with domain, email, or # ticker. @@ -284,15 +291,17 @@ class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel # # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when looking up # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage] + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByName::ForceLanguage] # # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard # # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # + # @param type [Symbol, :by_name] Discriminator for name-based brand retrieval. - # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest#force_language + # @see ContextDev::Models::BrandRetrieveParams::Body::ByName#force_language module ForceLanguage extend ContextDev::Internal::Type::Enum @@ -422,18 +431,23 @@ module ForceLanguage end end - class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + class ByEmail < ContextDev::Internal::Type::BaseModel # @!attribute email # Email address to retrieve brand data for (e.g., 'jane@stripe.com'). # # @return [String] required :email, String + # @!attribute type + # Discriminator for email-based brand retrieval. + # + # @return [Symbol, :by_email] + required :type, const: :by_email + # @!attribute force_language # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage, nil] - optional :force_language, - enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage } + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByEmail::ForceLanguage, nil] + optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage } # @!attribute max_age_ms # Maximum age in milliseconds for cached brand data before the API performs a hard @@ -460,10 +474,9 @@ class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil) + # @!method initialize(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_email) # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest} for - # more details. + # {ContextDev::Models::BrandRetrieveParams::Body::ByEmail} for more details. # # Retrieve brand data by email address. The domain is extracted from the email. # Free and disposable email providers are rejected with 422. Cannot be combined @@ -471,15 +484,17 @@ class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel # # @param email [String] Email address to retrieve brand data for (e.g., 'jane@stripe.com'). # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage] + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByEmail::ForceLanguage] # # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard # # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true, # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # + # @param type [Symbol, :by_email] Discriminator for email-based brand retrieval. - # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest#force_language + # @see ContextDev::Models::BrandRetrieveParams::Body::ByEmail#force_language module ForceLanguage extend ContextDev::Internal::Type::Enum @@ -609,18 +624,23 @@ module ForceLanguage end end - class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + class ByTicker < ContextDev::Internal::Type::BaseModel # @!attribute ticker # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). # # @return [String] required :ticker, String + # @!attribute type + # Discriminator for ticker-based brand retrieval. + # + # @return [Symbol, :by_ticker] + required :type, const: :by_ticker + # @!attribute force_language # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage, nil] - optional :force_language, - enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage } + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTicker::ForceLanguage, nil] + optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage } # @!attribute max_age_ms # Maximum age in milliseconds for cached brand data before the API performs a hard @@ -653,17 +673,16 @@ class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil) + # @!method initialize(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil, type: :by_ticker) # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest} - # for more details. + # {ContextDev::Models::BrandRetrieveParams::Body::ByTicker} for more details. # # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or # email. # # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL'). # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage] + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTicker::ForceLanguage] # # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard # @@ -672,8 +691,10 @@ class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel # @param ticker_exchange [String] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified. # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # + # @param type [Symbol, :by_ticker] Discriminator for ticker-based brand retrieval. - # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest#force_language + # @see ContextDev::Models::BrandRetrieveParams::Body::ByTicker#force_language module ForceLanguage extend ContextDev::Internal::Type::Enum @@ -803,13 +824,19 @@ module ForceLanguage end end - class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + class ByTransaction < ContextDev::Internal::Type::BaseModel # @!attribute transaction_info # Transaction information to identify the brand. # # @return [String] required :transaction_info, String + # @!attribute type + # Discriminator for transaction-based brand retrieval. + # + # @return [Symbol, :by_transaction] + required :type, const: :by_transaction + # @!attribute city # Optional city name to prioritize when searching for the brand. # @@ -825,9 +852,8 @@ class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseMode # @!attribute force_language # - # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage, nil] - optional :force_language, - enum: -> { ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage } + # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::ForceLanguage, nil] + optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage } # @!attribute high_confidence_only # When set to true, the API performs additional verification to ensure the @@ -865,10 +891,9 @@ class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseMode # @return [Integer, nil] optional :timeout_ms, Integer, api_name: :timeoutMS - # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil) + # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, type: :by_transaction) # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest} - # for more details. + # {ContextDev::Models::BrandRetrieveParams::Body::ByTransaction} for more details. # # Identify brand data from a transaction descriptor. Cannot be combined with # domain, name, email, or ticker. @@ -879,7 +904,7 @@ class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseMode # # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when identifyin # - # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage] + # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::ForceLanguage] # # @param high_confidence_only [Boolean] When set to true, the API performs additional verification to ensure the identif # @@ -890,8 +915,10 @@ class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseMode # @param phone [Float] Optional phone number from the transaction to help verify brand match. # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th + # + # @param type [Symbol, :by_transaction] Discriminator for transaction-based brand retrieval. - # @see ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest#force_language + # @see ContextDev::Models::BrandRetrieveParams::Body::ByTransaction#force_language module ForceLanguage extend ContextDev::Internal::Type::Enum @@ -1022,7 +1049,7 @@ module ForceLanguage end # @!method self.variants - # @return [Array(ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest)] + # @return [Array(ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction)] end end end diff --git a/lib/context_dev/resources/brand.rb b/lib/context_dev/resources/brand.rb index e92e9a46..942294d4 100644 --- a/lib/context_dev/resources/brand.rb +++ b/lib/context_dev/resources/brand.rb @@ -3,16 +3,13 @@ module ContextDev module Resources class Brand - # Some parameter documentations has been truncated, see - # {ContextDev::Models::BrandRetrieveParams} for more details. - # # Retrieve logos, backdrops, colors, industry, description, and more. Provide # exactly one lookup identifier in the request body: a domain, company name, email # address, stock ticker, or transaction descriptor. # # @overload retrieve(body:, request_options: {}) # - # @param body [ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest] Exactly one of domain, name, email, ticker, or transaction_info must be provided + # @param body [ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction] Exactly one lookup type must be provided. # # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil] # diff --git a/rbi/context_dev/models/brand_retrieve_params.rbi b/rbi/context_dev/models/brand_retrieve_params.rbi index 1115975a..cea2505b 100644 --- a/rbi/context_dev/models/brand_retrieve_params.rbi +++ b/rbi/context_dev/models/brand_retrieve_params.rbi @@ -11,16 +11,15 @@ module ContextDev T.any(ContextDev::BrandRetrieveParams, ContextDev::Internal::AnyHash) end - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. sig do returns( T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ContextDev::BrandRetrieveParams::Body::ByDomain, + ContextDev::BrandRetrieveParams::Body::ByName, + ContextDev::BrandRetrieveParams::Body::ByEmail, + ContextDev::BrandRetrieveParams::Body::ByTicker, + ContextDev::BrandRetrieveParams::Body::ByTransaction ) ) end @@ -30,18 +29,17 @@ module ContextDev params( body: T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::OrHash + ContextDev::BrandRetrieveParams::Body::ByDomain::OrHash, + ContextDev::BrandRetrieveParams::Body::ByName::OrHash, + ContextDev::BrandRetrieveParams::Body::ByEmail::OrHash, + ContextDev::BrandRetrieveParams::Body::ByTicker::OrHash, + ContextDev::BrandRetrieveParams::Body::ByTransaction::OrHash ), request_options: ContextDev::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. body:, request_options: {} ) @@ -52,11 +50,11 @@ module ContextDev { body: T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ContextDev::BrandRetrieveParams::Body::ByDomain, + ContextDev::BrandRetrieveParams::Body::ByName, + ContextDev::BrandRetrieveParams::Body::ByEmail, + ContextDev::BrandRetrieveParams::Body::ByTicker, + ContextDev::BrandRetrieveParams::Body::ByTransaction ), request_options: ContextDev::RequestOptions } @@ -65,27 +63,26 @@ module ContextDev def to_hash end - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. module Body extend ContextDev::Internal::Type::Union Variants = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ContextDev::BrandRetrieveParams::Body::ByDomain, + ContextDev::BrandRetrieveParams::Body::ByName, + ContextDev::BrandRetrieveParams::Body::ByEmail, + ContextDev::BrandRetrieveParams::Body::ByTicker, + ContextDev::BrandRetrieveParams::Body::ByTransaction ) end - class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + class ByDomain < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest, + ContextDev::BrandRetrieveParams::Body::ByDomain, ContextDev::Internal::AnyHash ) end @@ -94,10 +91,14 @@ module ContextDev sig { returns(String) } attr_accessor :domain + # Discriminator for domain-based brand retrieval. + sig { returns(Symbol) } + attr_accessor :type + sig do returns( T.nilable( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::OrSymbol ) ) end @@ -106,7 +107,7 @@ module ContextDev sig do params( force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::OrSymbol ).void end attr_writer :force_language @@ -144,10 +145,11 @@ module ContextDev params( domain: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, - timeout_ms: Integer + timeout_ms: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( @@ -166,7 +168,9 @@ module ContextDev # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). - timeout_ms: nil + timeout_ms: nil, + # Discriminator for domain-based brand retrieval. + type: :by_domain ) end @@ -174,8 +178,9 @@ module ContextDev override.returns( { domain: String, + type: Symbol, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, timeout_ms: Integer @@ -192,7 +197,7 @@ module ContextDev T.type_alias do T.all( Symbol, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -200,608 +205,608 @@ module ContextDev AFRIKAANS = T.let( :afrikaans, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ALBANIAN = T.let( :albanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) AMHARIC = T.let( :amharic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ARABIC = T.let( :arabic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ARMENIAN = T.let( :armenian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ASSAMESE = T.let( :assamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) AYMARA = T.let( :aymara, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) AZERI = T.let( :azeri, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BASQUE = T.let( :basque, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BELARUSIAN = T.let( :belarusian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BENGALI = T.let( :bengali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BOSNIAN = T.let( :bosnian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BULGARIAN = T.let( :bulgarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) BURMESE = T.let( :burmese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CANTONESE = T.let( :cantonese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CATALAN = T.let( :catalan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CEBUANO = T.let( :cebuano, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CHINESE = T.let( :chinese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CORSICAN = T.let( :corsican, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CROATIAN = T.let( :croatian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) CZECH = T.let( :czech, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) DANISH = T.let( :danish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) DUTCH = T.let( :dutch, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ENGLISH = T.let( :english, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ESPERANTO = T.let( :esperanto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ESTONIAN = T.let( :estonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) FARSI = T.let( :farsi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) FIJIAN = T.let( :fijian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) FINNISH = T.let( :finnish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) FRENCH = T.let( :french, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GALICIAN = T.let( :galician, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GEORGIAN = T.let( :georgian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GERMAN = T.let( :german, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GREEK = T.let( :greek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GUARANI = T.let( :guarani, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) GUJARATI = T.let( :gujarati, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HAITIAN_CREOLE = T.let( :"haitian-creole", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HAUSA = T.let( :hausa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HAWAIIAN = T.let( :hawaiian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HEBREW = T.let( :hebrew, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HINDI = T.let( :hindi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HMONG = T.let( :hmong, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) HUNGARIAN = T.let( :hungarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ICELANDIC = T.let( :icelandic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) IGBO = T.let( :igbo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) INDONESIAN = T.let( :indonesian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) IRISH = T.let( :irish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ITALIAN = T.let( :italian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) JAPANESE = T.let( :japanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) JAVANESE = T.let( :javanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KANNADA = T.let( :kannada, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KAZAKH = T.let( :kazakh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KHMER = T.let( :khmer, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KINYARWANDA = T.let( :kinyarwanda, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KOREAN = T.let( :korean, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KURDISH = T.let( :kurdish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) KYRGYZ = T.let( :kyrgyz, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LAO = T.let( :lao, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LATIN = T.let( :latin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LATVIAN = T.let( :latvian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LINGALA = T.let( :lingala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LITHUANIAN = T.let( :lithuanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) LUXEMBOURGISH = T.let( :luxembourgish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MACEDONIAN = T.let( :macedonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MALAGASY = T.let( :malagasy, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MALAY = T.let( :malay, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MALAYALAM = T.let( :malayalam, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MALTESE = T.let( :maltese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MAORI = T.let( :maori, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MARATHI = T.let( :marathi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) MONGOLIAN = T.let( :mongolian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) NEPALI = T.let( :nepali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) NORWEGIAN = T.let( :norwegian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ODIA = T.let( :odia, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) OROMO = T.let( :oromo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) PASHTO = T.let( :pashto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) PIDGIN = T.let( :pidgin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) POLISH = T.let( :polish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) PORTUGUESE = T.let( :portuguese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) PUNJABI = T.let( :punjabi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) QUECHUA = T.let( :quechua, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ROMANIAN = T.let( :romanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) RUSSIAN = T.let( :russian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SAMOAN = T.let( :samoan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SCOTTISH_GAELIC = T.let( :"scottish-gaelic", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SERBIAN = T.let( :serbian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SESOTHO = T.let( :sesotho, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SHONA = T.let( :shona, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SINDHI = T.let( :sindhi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SINHALA = T.let( :sinhala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SLOVAK = T.let( :slovak, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SLOVENE = T.let( :slovene, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SOMALI = T.let( :somali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SPANISH = T.let( :spanish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SUNDANESE = T.let( :sundanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SWAHILI = T.let( :swahili, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) SWEDISH = T.let( :swedish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TAGALOG = T.let( :tagalog, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TAJIK = T.let( :tajik, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TAMIL = T.let( :tamil, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TATAR = T.let( :tatar, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TELUGU = T.let( :telugu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) THAI = T.let( :thai, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TIBETAN = T.let( :tibetan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TIGRINYA = T.let( :tigrinya, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TONGAN = T.let( :tongan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TSWANA = T.let( :tswana, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TURKISH = T.let( :turkish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) TURKMEN = T.let( :turkmen, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) UKRAINIAN = T.let( :ukrainian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) URDU = T.let( :urdu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) UYGHUR = T.let( :uyghur, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) UZBEK = T.let( :uzbek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) VIETNAMESE = T.let( :vietnamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) WELSH = T.let( :welsh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) WOLOF = T.let( :wolof, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) XHOSA = T.let( :xhosa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) YIDDISH = T.let( :yiddish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) YORUBA = T.let( :yoruba, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) ZULU = T.let( :zulu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ) sig do override.returns( T::Array[ - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage::TaggedSymbol ] ) end @@ -810,11 +815,11 @@ module ContextDev end end - class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + class ByName < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest, + ContextDev::BrandRetrieveParams::Body::ByName, ContextDev::Internal::AnyHash ) end @@ -823,6 +828,10 @@ module ContextDev sig { returns(String) } attr_accessor :name + # Discriminator for name-based brand retrieval. + sig { returns(Symbol) } + attr_accessor :type + # Optional country code hint (GL parameter) to specify the country when looking up # by company name. sig { returns(T.nilable(String)) } @@ -834,7 +843,7 @@ module ContextDev sig do returns( T.nilable( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::OrSymbol ) ) end @@ -843,7 +852,7 @@ module ContextDev sig do params( force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::OrSymbol ).void end attr_writer :force_language @@ -883,10 +892,11 @@ module ContextDev name: String, country_gl: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, - timeout_ms: Integer + timeout_ms: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( @@ -908,7 +918,9 @@ module ContextDev # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). - timeout_ms: nil + timeout_ms: nil, + # Discriminator for name-based brand retrieval. + type: :by_name ) end @@ -916,9 +928,10 @@ module ContextDev override.returns( { name: String, + type: Symbol, country_gl: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, timeout_ms: Integer @@ -935,7 +948,7 @@ module ContextDev T.type_alias do T.all( Symbol, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -943,608 +956,608 @@ module ContextDev AFRIKAANS = T.let( :afrikaans, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ALBANIAN = T.let( :albanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) AMHARIC = T.let( :amharic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ARABIC = T.let( :arabic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ARMENIAN = T.let( :armenian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ASSAMESE = T.let( :assamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) AYMARA = T.let( :aymara, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) AZERI = T.let( :azeri, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BASQUE = T.let( :basque, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BELARUSIAN = T.let( :belarusian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BENGALI = T.let( :bengali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BOSNIAN = T.let( :bosnian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BULGARIAN = T.let( :bulgarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) BURMESE = T.let( :burmese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CANTONESE = T.let( :cantonese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CATALAN = T.let( :catalan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CEBUANO = T.let( :cebuano, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CHINESE = T.let( :chinese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CORSICAN = T.let( :corsican, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CROATIAN = T.let( :croatian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) CZECH = T.let( :czech, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) DANISH = T.let( :danish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) DUTCH = T.let( :dutch, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ENGLISH = T.let( :english, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ESPERANTO = T.let( :esperanto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ESTONIAN = T.let( :estonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) FARSI = T.let( :farsi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) FIJIAN = T.let( :fijian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) FINNISH = T.let( :finnish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) FRENCH = T.let( :french, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GALICIAN = T.let( :galician, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GEORGIAN = T.let( :georgian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GERMAN = T.let( :german, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GREEK = T.let( :greek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GUARANI = T.let( :guarani, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) GUJARATI = T.let( :gujarati, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HAITIAN_CREOLE = T.let( :"haitian-creole", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HAUSA = T.let( :hausa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HAWAIIAN = T.let( :hawaiian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HEBREW = T.let( :hebrew, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HINDI = T.let( :hindi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HMONG = T.let( :hmong, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) HUNGARIAN = T.let( :hungarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ICELANDIC = T.let( :icelandic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) IGBO = T.let( :igbo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) INDONESIAN = T.let( :indonesian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) IRISH = T.let( :irish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ITALIAN = T.let( :italian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) JAPANESE = T.let( :japanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) JAVANESE = T.let( :javanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KANNADA = T.let( :kannada, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KAZAKH = T.let( :kazakh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KHMER = T.let( :khmer, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KINYARWANDA = T.let( :kinyarwanda, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KOREAN = T.let( :korean, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KURDISH = T.let( :kurdish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) KYRGYZ = T.let( :kyrgyz, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LAO = T.let( :lao, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LATIN = T.let( :latin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LATVIAN = T.let( :latvian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LINGALA = T.let( :lingala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LITHUANIAN = T.let( :lithuanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) LUXEMBOURGISH = T.let( :luxembourgish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MACEDONIAN = T.let( :macedonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MALAGASY = T.let( :malagasy, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MALAY = T.let( :malay, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MALAYALAM = T.let( :malayalam, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MALTESE = T.let( :maltese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MAORI = T.let( :maori, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MARATHI = T.let( :marathi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) MONGOLIAN = T.let( :mongolian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) NEPALI = T.let( :nepali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) NORWEGIAN = T.let( :norwegian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ODIA = T.let( :odia, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) OROMO = T.let( :oromo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) PASHTO = T.let( :pashto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) PIDGIN = T.let( :pidgin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) POLISH = T.let( :polish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) PORTUGUESE = T.let( :portuguese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) PUNJABI = T.let( :punjabi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) QUECHUA = T.let( :quechua, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ROMANIAN = T.let( :romanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) RUSSIAN = T.let( :russian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SAMOAN = T.let( :samoan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SCOTTISH_GAELIC = T.let( :"scottish-gaelic", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SERBIAN = T.let( :serbian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SESOTHO = T.let( :sesotho, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SHONA = T.let( :shona, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SINDHI = T.let( :sindhi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SINHALA = T.let( :sinhala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SLOVAK = T.let( :slovak, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SLOVENE = T.let( :slovene, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SOMALI = T.let( :somali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SPANISH = T.let( :spanish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SUNDANESE = T.let( :sundanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SWAHILI = T.let( :swahili, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) SWEDISH = T.let( :swedish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TAGALOG = T.let( :tagalog, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TAJIK = T.let( :tajik, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TAMIL = T.let( :tamil, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TATAR = T.let( :tatar, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TELUGU = T.let( :telugu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) THAI = T.let( :thai, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TIBETAN = T.let( :tibetan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TIGRINYA = T.let( :tigrinya, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TONGAN = T.let( :tongan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TSWANA = T.let( :tswana, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TURKISH = T.let( :turkish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) TURKMEN = T.let( :turkmen, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) UKRAINIAN = T.let( :ukrainian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) URDU = T.let( :urdu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) UYGHUR = T.let( :uyghur, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) UZBEK = T.let( :uzbek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) VIETNAMESE = T.let( :vietnamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) WELSH = T.let( :welsh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) WOLOF = T.let( :wolof, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) XHOSA = T.let( :xhosa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) YIDDISH = T.let( :yiddish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) YORUBA = T.let( :yoruba, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) ZULU = T.let( :zulu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ) sig do override.returns( T::Array[ - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage::TaggedSymbol ] ) end @@ -1553,11 +1566,11 @@ module ContextDev end end - class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + class ByEmail < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest, + ContextDev::BrandRetrieveParams::Body::ByEmail, ContextDev::Internal::AnyHash ) end @@ -1566,10 +1579,14 @@ module ContextDev sig { returns(String) } attr_accessor :email + # Discriminator for email-based brand retrieval. + sig { returns(Symbol) } + attr_accessor :type + sig do returns( T.nilable( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::OrSymbol ) ) end @@ -1578,7 +1595,7 @@ module ContextDev sig do params( force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::OrSymbol ).void end attr_writer :force_language @@ -1618,10 +1635,11 @@ module ContextDev params( email: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, - timeout_ms: Integer + timeout_ms: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( @@ -1640,7 +1658,9 @@ module ContextDev # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). - timeout_ms: nil + timeout_ms: nil, + # Discriminator for email-based brand retrieval. + type: :by_email ) end @@ -1648,8 +1668,9 @@ module ContextDev override.returns( { email: String, + type: Symbol, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, timeout_ms: Integer @@ -1666,7 +1687,7 @@ module ContextDev T.type_alias do T.all( Symbol, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1674,608 +1695,608 @@ module ContextDev AFRIKAANS = T.let( :afrikaans, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ALBANIAN = T.let( :albanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) AMHARIC = T.let( :amharic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ARABIC = T.let( :arabic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ARMENIAN = T.let( :armenian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ASSAMESE = T.let( :assamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) AYMARA = T.let( :aymara, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) AZERI = T.let( :azeri, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BASQUE = T.let( :basque, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BELARUSIAN = T.let( :belarusian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BENGALI = T.let( :bengali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BOSNIAN = T.let( :bosnian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BULGARIAN = T.let( :bulgarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) BURMESE = T.let( :burmese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CANTONESE = T.let( :cantonese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CATALAN = T.let( :catalan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CEBUANO = T.let( :cebuano, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CHINESE = T.let( :chinese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CORSICAN = T.let( :corsican, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CROATIAN = T.let( :croatian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) CZECH = T.let( :czech, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) DANISH = T.let( :danish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) DUTCH = T.let( :dutch, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ENGLISH = T.let( :english, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ESPERANTO = T.let( :esperanto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ESTONIAN = T.let( :estonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) FARSI = T.let( :farsi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) FIJIAN = T.let( :fijian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) FINNISH = T.let( :finnish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) FRENCH = T.let( :french, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GALICIAN = T.let( :galician, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GEORGIAN = T.let( :georgian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GERMAN = T.let( :german, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GREEK = T.let( :greek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GUARANI = T.let( :guarani, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) GUJARATI = T.let( :gujarati, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HAITIAN_CREOLE = T.let( :"haitian-creole", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HAUSA = T.let( :hausa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HAWAIIAN = T.let( :hawaiian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HEBREW = T.let( :hebrew, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HINDI = T.let( :hindi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HMONG = T.let( :hmong, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) HUNGARIAN = T.let( :hungarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ICELANDIC = T.let( :icelandic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) IGBO = T.let( :igbo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) INDONESIAN = T.let( :indonesian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) IRISH = T.let( :irish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ITALIAN = T.let( :italian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) JAPANESE = T.let( :japanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) JAVANESE = T.let( :javanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KANNADA = T.let( :kannada, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KAZAKH = T.let( :kazakh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KHMER = T.let( :khmer, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KINYARWANDA = T.let( :kinyarwanda, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KOREAN = T.let( :korean, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KURDISH = T.let( :kurdish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) KYRGYZ = T.let( :kyrgyz, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LAO = T.let( :lao, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LATIN = T.let( :latin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LATVIAN = T.let( :latvian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LINGALA = T.let( :lingala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LITHUANIAN = T.let( :lithuanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) LUXEMBOURGISH = T.let( :luxembourgish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MACEDONIAN = T.let( :macedonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MALAGASY = T.let( :malagasy, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MALAY = T.let( :malay, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MALAYALAM = T.let( :malayalam, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MALTESE = T.let( :maltese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MAORI = T.let( :maori, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MARATHI = T.let( :marathi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) MONGOLIAN = T.let( :mongolian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) NEPALI = T.let( :nepali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) NORWEGIAN = T.let( :norwegian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ODIA = T.let( :odia, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) OROMO = T.let( :oromo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) PASHTO = T.let( :pashto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) PIDGIN = T.let( :pidgin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) POLISH = T.let( :polish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) PORTUGUESE = T.let( :portuguese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) PUNJABI = T.let( :punjabi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) QUECHUA = T.let( :quechua, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ROMANIAN = T.let( :romanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) RUSSIAN = T.let( :russian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SAMOAN = T.let( :samoan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SCOTTISH_GAELIC = T.let( :"scottish-gaelic", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SERBIAN = T.let( :serbian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SESOTHO = T.let( :sesotho, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SHONA = T.let( :shona, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SINDHI = T.let( :sindhi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SINHALA = T.let( :sinhala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SLOVAK = T.let( :slovak, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SLOVENE = T.let( :slovene, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SOMALI = T.let( :somali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SPANISH = T.let( :spanish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SUNDANESE = T.let( :sundanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SWAHILI = T.let( :swahili, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) SWEDISH = T.let( :swedish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TAGALOG = T.let( :tagalog, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TAJIK = T.let( :tajik, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TAMIL = T.let( :tamil, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TATAR = T.let( :tatar, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TELUGU = T.let( :telugu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) THAI = T.let( :thai, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TIBETAN = T.let( :tibetan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TIGRINYA = T.let( :tigrinya, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TONGAN = T.let( :tongan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TSWANA = T.let( :tswana, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TURKISH = T.let( :turkish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) TURKMEN = T.let( :turkmen, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) UKRAINIAN = T.let( :ukrainian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) URDU = T.let( :urdu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) UYGHUR = T.let( :uyghur, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) UZBEK = T.let( :uzbek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) VIETNAMESE = T.let( :vietnamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) WELSH = T.let( :welsh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) WOLOF = T.let( :wolof, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) XHOSA = T.let( :xhosa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) YIDDISH = T.let( :yiddish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) YORUBA = T.let( :yoruba, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) ZULU = T.let( :zulu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ) sig do override.returns( T::Array[ - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage::TaggedSymbol ] ) end @@ -2284,11 +2305,11 @@ module ContextDev end end - class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + class ByTicker < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest, + ContextDev::BrandRetrieveParams::Body::ByTicker, ContextDev::Internal::AnyHash ) end @@ -2297,10 +2318,14 @@ module ContextDev sig { returns(String) } attr_accessor :ticker + # Discriminator for ticker-based brand retrieval. + sig { returns(Symbol) } + attr_accessor :type + sig do returns( T.nilable( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::OrSymbol ) ) end @@ -2309,7 +2334,7 @@ module ContextDev sig do params( force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::OrSymbol ).void end attr_writer :force_language @@ -2355,11 +2380,12 @@ module ContextDev params( ticker: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, ticker_exchange: String, - timeout_ms: Integer + timeout_ms: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( @@ -2380,7 +2406,9 @@ module ContextDev # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). - timeout_ms: nil + timeout_ms: nil, + # Discriminator for ticker-based brand retrieval. + type: :by_ticker ) end @@ -2388,8 +2416,9 @@ module ContextDev override.returns( { ticker: String, + type: Symbol, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::OrSymbol, max_age_ms: Integer, max_speed: T::Boolean, ticker_exchange: String, @@ -2407,7 +2436,7 @@ module ContextDev T.type_alias do T.all( Symbol, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2415,608 +2444,608 @@ module ContextDev AFRIKAANS = T.let( :afrikaans, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ALBANIAN = T.let( :albanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) AMHARIC = T.let( :amharic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ARABIC = T.let( :arabic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ARMENIAN = T.let( :armenian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ASSAMESE = T.let( :assamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) AYMARA = T.let( :aymara, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) AZERI = T.let( :azeri, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BASQUE = T.let( :basque, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BELARUSIAN = T.let( :belarusian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BENGALI = T.let( :bengali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BOSNIAN = T.let( :bosnian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BULGARIAN = T.let( :bulgarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) BURMESE = T.let( :burmese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CANTONESE = T.let( :cantonese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CATALAN = T.let( :catalan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CEBUANO = T.let( :cebuano, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CHINESE = T.let( :chinese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CORSICAN = T.let( :corsican, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CROATIAN = T.let( :croatian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) CZECH = T.let( :czech, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) DANISH = T.let( :danish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) DUTCH = T.let( :dutch, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ENGLISH = T.let( :english, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ESPERANTO = T.let( :esperanto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ESTONIAN = T.let( :estonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) FARSI = T.let( :farsi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) FIJIAN = T.let( :fijian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) FINNISH = T.let( :finnish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) FRENCH = T.let( :french, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GALICIAN = T.let( :galician, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GEORGIAN = T.let( :georgian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GERMAN = T.let( :german, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GREEK = T.let( :greek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GUARANI = T.let( :guarani, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) GUJARATI = T.let( :gujarati, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HAITIAN_CREOLE = T.let( :"haitian-creole", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HAUSA = T.let( :hausa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HAWAIIAN = T.let( :hawaiian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HEBREW = T.let( :hebrew, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HINDI = T.let( :hindi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HMONG = T.let( :hmong, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) HUNGARIAN = T.let( :hungarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ICELANDIC = T.let( :icelandic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) IGBO = T.let( :igbo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) INDONESIAN = T.let( :indonesian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) IRISH = T.let( :irish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ITALIAN = T.let( :italian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) JAPANESE = T.let( :japanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) JAVANESE = T.let( :javanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KANNADA = T.let( :kannada, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KAZAKH = T.let( :kazakh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KHMER = T.let( :khmer, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KINYARWANDA = T.let( :kinyarwanda, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KOREAN = T.let( :korean, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KURDISH = T.let( :kurdish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) KYRGYZ = T.let( :kyrgyz, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LAO = T.let( :lao, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LATIN = T.let( :latin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LATVIAN = T.let( :latvian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LINGALA = T.let( :lingala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LITHUANIAN = T.let( :lithuanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) LUXEMBOURGISH = T.let( :luxembourgish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MACEDONIAN = T.let( :macedonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MALAGASY = T.let( :malagasy, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MALAY = T.let( :malay, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MALAYALAM = T.let( :malayalam, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MALTESE = T.let( :maltese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MAORI = T.let( :maori, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MARATHI = T.let( :marathi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) MONGOLIAN = T.let( :mongolian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) NEPALI = T.let( :nepali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) NORWEGIAN = T.let( :norwegian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ODIA = T.let( :odia, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) OROMO = T.let( :oromo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) PASHTO = T.let( :pashto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) PIDGIN = T.let( :pidgin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) POLISH = T.let( :polish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) PORTUGUESE = T.let( :portuguese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) PUNJABI = T.let( :punjabi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) QUECHUA = T.let( :quechua, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ROMANIAN = T.let( :romanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) RUSSIAN = T.let( :russian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SAMOAN = T.let( :samoan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SCOTTISH_GAELIC = T.let( :"scottish-gaelic", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SERBIAN = T.let( :serbian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SESOTHO = T.let( :sesotho, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SHONA = T.let( :shona, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SINDHI = T.let( :sindhi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SINHALA = T.let( :sinhala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SLOVAK = T.let( :slovak, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SLOVENE = T.let( :slovene, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SOMALI = T.let( :somali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SPANISH = T.let( :spanish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SUNDANESE = T.let( :sundanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SWAHILI = T.let( :swahili, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) SWEDISH = T.let( :swedish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TAGALOG = T.let( :tagalog, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TAJIK = T.let( :tajik, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TAMIL = T.let( :tamil, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TATAR = T.let( :tatar, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TELUGU = T.let( :telugu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) THAI = T.let( :thai, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TIBETAN = T.let( :tibetan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TIGRINYA = T.let( :tigrinya, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TONGAN = T.let( :tongan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TSWANA = T.let( :tswana, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TURKISH = T.let( :turkish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) TURKMEN = T.let( :turkmen, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) UKRAINIAN = T.let( :ukrainian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) URDU = T.let( :urdu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) UYGHUR = T.let( :uyghur, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) UZBEK = T.let( :uzbek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) VIETNAMESE = T.let( :vietnamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) WELSH = T.let( :welsh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) WOLOF = T.let( :wolof, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) XHOSA = T.let( :xhosa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) YIDDISH = T.let( :yiddish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) YORUBA = T.let( :yoruba, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) ZULU = T.let( :zulu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ) sig do override.returns( T::Array[ - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage::TaggedSymbol ] ) end @@ -3025,11 +3054,11 @@ module ContextDev end end - class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + class ByTransaction < ContextDev::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest, + ContextDev::BrandRetrieveParams::Body::ByTransaction, ContextDev::Internal::AnyHash ) end @@ -3038,6 +3067,10 @@ module ContextDev sig { returns(String) } attr_accessor :transaction_info + # Discriminator for transaction-based brand retrieval. + sig { returns(Symbol) } + attr_accessor :type + # Optional city name to prioritize when searching for the brand. sig { returns(T.nilable(String)) } attr_reader :city @@ -3056,7 +3089,7 @@ module ContextDev sig do returns( T.nilable( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::OrSymbol ) ) end @@ -3065,7 +3098,7 @@ module ContextDev sig do params( force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::OrSymbol ).void end attr_writer :force_language @@ -3119,12 +3152,13 @@ module ContextDev city: String, country_gl: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::OrSymbol, high_confidence_only: T::Boolean, max_speed: T::Boolean, mcc: Integer, phone: Float, - timeout_ms: Integer + timeout_ms: Integer, + type: Symbol ).returns(T.attached_class) end def self.new( @@ -3151,7 +3185,9 @@ module ContextDev # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). - timeout_ms: nil + timeout_ms: nil, + # Discriminator for transaction-based brand retrieval. + type: :by_transaction ) end @@ -3159,10 +3195,11 @@ module ContextDev override.returns( { transaction_info: String, + type: Symbol, city: String, country_gl: String, force_language: - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::OrSymbol, + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::OrSymbol, high_confidence_only: T::Boolean, max_speed: T::Boolean, mcc: Integer, @@ -3181,7 +3218,7 @@ module ContextDev T.type_alias do T.all( Symbol, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -3189,608 +3226,608 @@ module ContextDev AFRIKAANS = T.let( :afrikaans, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ALBANIAN = T.let( :albanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) AMHARIC = T.let( :amharic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ARABIC = T.let( :arabic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ARMENIAN = T.let( :armenian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ASSAMESE = T.let( :assamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) AYMARA = T.let( :aymara, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) AZERI = T.let( :azeri, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BASQUE = T.let( :basque, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BELARUSIAN = T.let( :belarusian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BENGALI = T.let( :bengali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BOSNIAN = T.let( :bosnian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BULGARIAN = T.let( :bulgarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) BURMESE = T.let( :burmese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CANTONESE = T.let( :cantonese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CATALAN = T.let( :catalan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CEBUANO = T.let( :cebuano, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CHINESE = T.let( :chinese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CORSICAN = T.let( :corsican, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CROATIAN = T.let( :croatian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) CZECH = T.let( :czech, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) DANISH = T.let( :danish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) DUTCH = T.let( :dutch, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ENGLISH = T.let( :english, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ESPERANTO = T.let( :esperanto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ESTONIAN = T.let( :estonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) FARSI = T.let( :farsi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) FIJIAN = T.let( :fijian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) FINNISH = T.let( :finnish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) FRENCH = T.let( :french, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GALICIAN = T.let( :galician, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GEORGIAN = T.let( :georgian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GERMAN = T.let( :german, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GREEK = T.let( :greek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GUARANI = T.let( :guarani, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) GUJARATI = T.let( :gujarati, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HAITIAN_CREOLE = T.let( :"haitian-creole", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HAUSA = T.let( :hausa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HAWAIIAN = T.let( :hawaiian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HEBREW = T.let( :hebrew, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HINDI = T.let( :hindi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HMONG = T.let( :hmong, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) HUNGARIAN = T.let( :hungarian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ICELANDIC = T.let( :icelandic, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) IGBO = T.let( :igbo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) INDONESIAN = T.let( :indonesian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) IRISH = T.let( :irish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ITALIAN = T.let( :italian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) JAPANESE = T.let( :japanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) JAVANESE = T.let( :javanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KANNADA = T.let( :kannada, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KAZAKH = T.let( :kazakh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KHMER = T.let( :khmer, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KINYARWANDA = T.let( :kinyarwanda, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KOREAN = T.let( :korean, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KURDISH = T.let( :kurdish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) KYRGYZ = T.let( :kyrgyz, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LAO = T.let( :lao, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LATIN = T.let( :latin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LATVIAN = T.let( :latvian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LINGALA = T.let( :lingala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LITHUANIAN = T.let( :lithuanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) LUXEMBOURGISH = T.let( :luxembourgish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MACEDONIAN = T.let( :macedonian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MALAGASY = T.let( :malagasy, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MALAY = T.let( :malay, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MALAYALAM = T.let( :malayalam, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MALTESE = T.let( :maltese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MAORI = T.let( :maori, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MARATHI = T.let( :marathi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) MONGOLIAN = T.let( :mongolian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) NEPALI = T.let( :nepali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) NORWEGIAN = T.let( :norwegian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ODIA = T.let( :odia, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) OROMO = T.let( :oromo, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) PASHTO = T.let( :pashto, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) PIDGIN = T.let( :pidgin, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) POLISH = T.let( :polish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) PORTUGUESE = T.let( :portuguese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) PUNJABI = T.let( :punjabi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) QUECHUA = T.let( :quechua, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ROMANIAN = T.let( :romanian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) RUSSIAN = T.let( :russian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SAMOAN = T.let( :samoan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SCOTTISH_GAELIC = T.let( :"scottish-gaelic", - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SERBIAN = T.let( :serbian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SESOTHO = T.let( :sesotho, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SHONA = T.let( :shona, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SINDHI = T.let( :sindhi, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SINHALA = T.let( :sinhala, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SLOVAK = T.let( :slovak, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SLOVENE = T.let( :slovene, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SOMALI = T.let( :somali, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SPANISH = T.let( :spanish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SUNDANESE = T.let( :sundanese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SWAHILI = T.let( :swahili, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) SWEDISH = T.let( :swedish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TAGALOG = T.let( :tagalog, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TAJIK = T.let( :tajik, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TAMIL = T.let( :tamil, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TATAR = T.let( :tatar, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TELUGU = T.let( :telugu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) THAI = T.let( :thai, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TIBETAN = T.let( :tibetan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TIGRINYA = T.let( :tigrinya, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TONGAN = T.let( :tongan, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TSWANA = T.let( :tswana, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TURKISH = T.let( :turkish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) TURKMEN = T.let( :turkmen, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) UKRAINIAN = T.let( :ukrainian, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) URDU = T.let( :urdu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) UYGHUR = T.let( :uyghur, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) UZBEK = T.let( :uzbek, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) VIETNAMESE = T.let( :vietnamese, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) WELSH = T.let( :welsh, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) WOLOF = T.let( :wolof, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) XHOSA = T.let( :xhosa, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) YIDDISH = T.let( :yiddish, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) YORUBA = T.let( :yoruba, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) ZULU = T.let( :zulu, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ) sig do override.returns( T::Array[ - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::ForceLanguage::TaggedSymbol + ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage::TaggedSymbol ] ) end diff --git a/rbi/context_dev/resources/brand.rbi b/rbi/context_dev/resources/brand.rbi index c80e74a8..dd150a50 100644 --- a/rbi/context_dev/resources/brand.rbi +++ b/rbi/context_dev/resources/brand.rbi @@ -10,18 +10,17 @@ module ContextDev params( body: T.any( - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::OrHash, - ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::OrHash + ContextDev::BrandRetrieveParams::Body::ByDomain::OrHash, + ContextDev::BrandRetrieveParams::Body::ByName::OrHash, + ContextDev::BrandRetrieveParams::Body::ByEmail::OrHash, + ContextDev::BrandRetrieveParams::Body::ByTicker::OrHash, + ContextDev::BrandRetrieveParams::Body::ByTransaction::OrHash ), request_options: ContextDev::RequestOptions::OrHash ).returns(ContextDev::Models::BrandRetrieveResponse) end def retrieve( - # Exactly one of domain, name, email, ticker, or transaction_info must be - # provided. + # Exactly one lookup type must be provided. body:, request_options: {} ) diff --git a/sig/context_dev/models/brand_retrieve_params.rbs b/sig/context_dev/models/brand_retrieve_params.rbs index c5ef443b..20131a52 100644 --- a/sig/context_dev/models/brand_retrieve_params.rbs +++ b/sig/context_dev/models/brand_retrieve_params.rbs @@ -21,32 +21,35 @@ module ContextDev } type body = - ContextDev::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest - | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByNameRequest - | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest - | ContextDev::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest - | ContextDev::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest + ContextDev::BrandRetrieveParams::Body::ByDomain + | ContextDev::BrandRetrieveParams::Body::ByName + | ContextDev::BrandRetrieveParams::Body::ByEmail + | ContextDev::BrandRetrieveParams::Body::ByTicker + | ContextDev::BrandRetrieveParams::Body::ByTransaction module Body extend ContextDev::Internal::Type::Union - type brand_retrieve_by_domain_request = + type by_domain = { domain: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + type: :by_domain, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer } - class BrandRetrieveByDomainRequest < ContextDev::Internal::Type::BaseModel + class ByDomain < ContextDev::Internal::Type::BaseModel attr_accessor domain: String - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language? + attr_accessor type: :by_domain + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language? def force_language=: ( - ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language - ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language + ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language attr_reader max_age_ms: Integer? @@ -62,15 +65,17 @@ module ContextDev def initialize: ( domain: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language, ?max_age_ms: Integer, ?max_speed: bool, - ?timeout_ms: Integer + ?timeout_ms: Integer, + ?type: :by_domain ) -> void def to_hash: -> { domain: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language, + type: :by_domain, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer @@ -322,32 +327,35 @@ module ContextDev YORUBA: :yoruba ZULU: :zulu - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByDomainRequest::force_language] + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::ByDomain::force_language] end end - type brand_retrieve_by_name_request = + type by_name = { name: String, + type: :by_name, country_gl: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer } - class BrandRetrieveByNameRequest < ContextDev::Internal::Type::BaseModel + class ByName < ContextDev::Internal::Type::BaseModel attr_accessor name: String + attr_accessor type: :by_name + attr_reader country_gl: String? def country_gl=: (String) -> String - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language? + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language? def force_language=: ( - ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language - ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language + ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language attr_reader max_age_ms: Integer? @@ -364,16 +372,18 @@ module ContextDev def initialize: ( name: String, ?country_gl: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language, ?max_age_ms: Integer, ?max_speed: bool, - ?timeout_ms: Integer + ?timeout_ms: Integer, + ?type: :by_name ) -> void def to_hash: -> { name: String, + type: :by_name, country_gl: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer @@ -625,27 +635,30 @@ module ContextDev YORUBA: :yoruba ZULU: :zulu - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByNameRequest::force_language] + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::ByName::force_language] end end - type brand_retrieve_by_email_request = + type by_email = { email: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + type: :by_email, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer } - class BrandRetrieveByEmailRequest < ContextDev::Internal::Type::BaseModel + class ByEmail < ContextDev::Internal::Type::BaseModel attr_accessor email: String - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language? + attr_accessor type: :by_email + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language? def force_language=: ( - ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language - ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language + ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language attr_reader max_age_ms: Integer? @@ -661,15 +674,17 @@ module ContextDev def initialize: ( email: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language, ?max_age_ms: Integer, ?max_speed: bool, - ?timeout_ms: Integer + ?timeout_ms: Integer, + ?type: :by_email ) -> void def to_hash: -> { email: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language, + type: :by_email, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language, max_age_ms: Integer, max_speed: bool, timeout_ms: Integer @@ -921,28 +936,31 @@ module ContextDev YORUBA: :yoruba ZULU: :zulu - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByEmailRequest::force_language] + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::ByEmail::force_language] end end - type brand_retrieve_by_ticker_request = + type by_ticker = { ticker: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + type: :by_ticker, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language, max_age_ms: Integer, max_speed: bool, ticker_exchange: String, timeout_ms: Integer } - class BrandRetrieveByTickerRequest < ContextDev::Internal::Type::BaseModel + class ByTicker < ContextDev::Internal::Type::BaseModel attr_accessor ticker: String - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language? + attr_accessor type: :by_ticker + + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language? def force_language=: ( - ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language - ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language + ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language attr_reader max_age_ms: Integer? @@ -962,16 +980,18 @@ module ContextDev def initialize: ( ticker: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language, ?max_age_ms: Integer, ?max_speed: bool, ?ticker_exchange: String, - ?timeout_ms: Integer + ?timeout_ms: Integer, + ?type: :by_ticker ) -> void def to_hash: -> { ticker: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language, + type: :by_ticker, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language, max_age_ms: Integer, max_speed: bool, ticker_exchange: String, @@ -1224,16 +1244,17 @@ module ContextDev YORUBA: :yoruba ZULU: :zulu - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveByTickerRequest::force_language] + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::ByTicker::force_language] end end - type brand_retrieve_from_transaction_request = + type by_transaction = { transaction_info: String, + type: :by_transaction, city: String, country_gl: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language, high_confidence_only: bool, max_speed: bool, mcc: Integer, @@ -1241,9 +1262,11 @@ module ContextDev timeout_ms: Integer } - class BrandRetrieveFromTransactionRequest < ContextDev::Internal::Type::BaseModel + class ByTransaction < ContextDev::Internal::Type::BaseModel attr_accessor transaction_info: String + attr_accessor type: :by_transaction + attr_reader city: String? def city=: (String) -> String @@ -1252,11 +1275,11 @@ module ContextDev def country_gl=: (String) -> String - attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language? + attr_reader force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language? def force_language=: ( - ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language - ) -> ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language + ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language + ) -> ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language attr_reader high_confidence_only: bool? @@ -1282,19 +1305,21 @@ module ContextDev transaction_info: String, ?city: String, ?country_gl: String, - ?force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + ?force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language, ?high_confidence_only: bool, ?max_speed: bool, ?mcc: Integer, ?phone: Float, - ?timeout_ms: Integer + ?timeout_ms: Integer, + ?type: :by_transaction ) -> void def to_hash: -> { transaction_info: String, + type: :by_transaction, city: String, country_gl: String, - force_language: ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language, + force_language: ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language, high_confidence_only: bool, max_speed: bool, mcc: Integer, @@ -1548,7 +1573,7 @@ module ContextDev YORUBA: :yoruba ZULU: :zulu - def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::BrandRetrieveFromTransactionRequest::force_language] + def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::force_language] end end diff --git a/test/context_dev/client_test.rb b/test/context_dev/client_test.rb index 79b7d64c..d8031255 100644 --- a/test/context_dev/client_test.rb +++ b/test/context_dev/client_test.rb @@ -40,7 +40,7 @@ def test_client_default_request_default_retry_attempts context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end assert_requested(:any, /./, times: 3) @@ -52,7 +52,7 @@ def test_client_given_request_default_retry_attempts context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end assert_requested(:any, /./, times: 4) @@ -64,7 +64,10 @@ def test_client_default_request_given_retry_attempts context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 3}) + context_dev.brand.retrieve( + body: {domain: "stripe.com", type: :by_domain}, + request_options: {max_retries: 3} + ) end assert_requested(:any, /./, times: 4) @@ -76,7 +79,10 @@ def test_client_given_request_given_retry_attempts context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 3) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {max_retries: 4}) + context_dev.brand.retrieve( + body: {domain: "stripe.com", type: :by_domain}, + request_options: {max_retries: 4} + ) end assert_requested(:any, /./, times: 5) @@ -92,7 +98,7 @@ def test_client_retry_after_seconds context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end assert_requested(:any, /./, times: 2) @@ -112,7 +118,7 @@ def test_client_retry_after_date Thread.current.thread_variable_set(:time_now, time_now) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end Thread.current.thread_variable_set(:time_now, nil) @@ -130,7 +136,7 @@ def test_client_retry_after_ms context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1) assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end assert_requested(:any, /./, times: 2) @@ -143,7 +149,7 @@ def test_retry_count_header context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::InternalServerError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) end 3.times do @@ -158,7 +164,7 @@ def test_omit_retry_count_header assert_raises(ContextDev::Errors::InternalServerError) do context_dev.brand.retrieve( - body: {domain: "stripe.com"}, + body: {domain: "stripe.com", type: :by_domain}, request_options: {extra_headers: {"x-stainless-retry-count" => nil}} ) end @@ -175,7 +181,7 @@ def test_overwrite_retry_count_header assert_raises(ContextDev::Errors::InternalServerError) do context_dev.brand.retrieve( - body: {domain: "stripe.com"}, + body: {domain: "stripe.com", type: :by_domain}, request_options: {extra_headers: {"x-stainless-retry-count" => "42"}} ) end @@ -197,7 +203,10 @@ def test_client_redirect_307 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {extra_headers: {}}) + context_dev.brand.retrieve( + body: {domain: "stripe.com", type: :by_domain}, + request_options: {extra_headers: {}} + ) end recorded, = WebMock::RequestRegistry.instance.requested_signatures.hash.first @@ -226,7 +235,10 @@ def test_client_redirect_303 context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") assert_raises(ContextDev::Errors::APIConnectionError) do - context_dev.brand.retrieve(body: {domain: "stripe.com"}, request_options: {extra_headers: {}}) + context_dev.brand.retrieve( + body: {domain: "stripe.com", type: :by_domain}, + request_options: {extra_headers: {}} + ) end assert_requested(:get, "http://localhost/redirected", times: ContextDev::Client::MAX_REDIRECTS) do @@ -251,7 +263,7 @@ def test_client_redirect_auth_keep_same_origin assert_raises(ContextDev::Errors::APIConnectionError) do context_dev.brand.retrieve( - body: {domain: "stripe.com"}, + body: {domain: "stripe.com", type: :by_domain}, request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -281,7 +293,7 @@ def test_client_redirect_auth_strip_cross_origin assert_raises(ContextDev::Errors::APIConnectionError) do context_dev.brand.retrieve( - body: {domain: "stripe.com"}, + body: {domain: "stripe.com", type: :by_domain}, request_options: {extra_headers: {"authorization" => "Bearer xyz"}} ) end @@ -297,7 +309,7 @@ def test_default_headers context_dev = ContextDev::Client.new(base_url: "http://localhost", api_key: "My API Key") - context_dev.brand.retrieve(body: {domain: "stripe.com"}) + context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) assert_requested(:any, /./) do |req| headers = req.headers.transform_keys(&:downcase) diff --git a/test/context_dev/resources/brand_test.rb b/test/context_dev/resources/brand_test.rb index 2246300d..8d64400b 100644 --- a/test/context_dev/resources/brand_test.rb +++ b/test/context_dev/resources/brand_test.rb @@ -6,7 +6,7 @@ class ContextDev::Test::Resources::BrandTest < ContextDev::Test::ResourceTest def test_retrieve_required_params skip("Mock server tests are disabled") - response = @context_dev.brand.retrieve(body: {domain: "stripe.com"}) + response = @context_dev.brand.retrieve(body: {domain: "stripe.com", type: :by_domain}) assert_pattern do response => ContextDev::Models::BrandRetrieveResponse From 39338040a8c76a8153de91e22d49f3a9f161e435 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 07:11:47 +0000 Subject: [PATCH 19/19] release: 2.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 24 ++++++++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/context_dev/version.rb | 2 +- 5 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f29e96b8..65f558e7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.36.0" + ".": "2.0.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d938655a..5f8e7111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 2.0.0 (2026-07-06) + +Full Changelog: [v1.36.0...v2.0.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.36.0...v2.0.0) + +### Features + +* **api:** api update ([b0511d9](https://github.com/context-dot-dev/context-ruby-sdk/commit/b0511d905641a19d59391ff26ac27d474016ac26)) +* **api:** api update ([a146323](https://github.com/context-dot-dev/context-ruby-sdk/commit/a14632340e78b4b21be6c742f3792a7f14ca4fae)) +* **api:** api update ([4a4a076](https://github.com/context-dot-dev/context-ruby-sdk/commit/4a4a0762b6c422c5507f847bb06b9ac0fb11e605)) +* **api:** api update ([4682d0b](https://github.com/context-dot-dev/context-ruby-sdk/commit/4682d0b50170440ce7a3b60beadad10cefff3168)) +* **api:** api update ([0026695](https://github.com/context-dot-dev/context-ruby-sdk/commit/00266958beb99d8747e4e5422a122792e0cb8080)) +* **api:** api update ([3393a00](https://github.com/context-dot-dev/context-ruby-sdk/commit/3393a0047608f81e85a7c011ff3fd6356d7433a3)) +* **api:** api update ([ab547fb](https://github.com/context-dot-dev/context-ruby-sdk/commit/ab547fb83535a1184f2aa1414b86022e4550704f)) +* **api:** api update ([d71fbde](https://github.com/context-dot-dev/context-ruby-sdk/commit/d71fbde94bc39245091db193f120fa383efea82f)) +* **api:** api update ([8fb393a](https://github.com/context-dot-dev/context-ruby-sdk/commit/8fb393a6a53d4ec6867efe8d9daf8458d9fa3cc8)) +* **api:** manual updates ([b18f464](https://github.com/context-dot-dev/context-ruby-sdk/commit/b18f46485bf70c10b0a20459ed38b2991ea5add0)) +* **api:** manual updates ([fa7f5bf](https://github.com/context-dot-dev/context-ruby-sdk/commit/fa7f5bfa1e892a7dff26b169bd3ea7a6d0863048)) +* **api:** manual updates ([7277672](https://github.com/context-dot-dev/context-ruby-sdk/commit/7277672e289e4d8a54791a154e989ec6ba25e3b2)) + + +### Chores + +* **internal:** bound formatter parallelism to CPU count ([8b73d53](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b73d53426ce571223386b1decabcb0bf58eaa37)) + ## 1.36.0 (2026-06-27) Full Changelog: [v1.35.0...v1.36.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.35.0...v1.36.0) diff --git a/Gemfile.lock b/Gemfile.lock index a8178504..eb9b2de9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - context.dev (1.36.0) + context.dev (2.0.0) cgi connection_pool diff --git a/README.md b/README.md index b2e74484..86d0d37d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "context.dev", "~> 1.36.0" +gem "context.dev", "~> 2.0.0" ``` diff --git a/lib/context_dev/version.rb b/lib/context_dev/version.rb index b18b9948..e2988dcd 100644 --- a/lib/context_dev/version.rb +++ b/lib/context_dev/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ContextDev - VERSION = "1.36.0" + VERSION = "2.0.0" end