From 8e001faf776fef0f97a99be7c1c466ab1183abad Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 16:48:15 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6b4e1c45..9768c4bd 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-51ebe668b198157ccb18984017dd2fe35f7675220e8b933b03325b3c459ef2a6.yml -openapi_spec_hash: b3ed94bd6b59d4e32fc2c5aa8187d6b2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-ea4f36d262d32250c0626d46b9df01e15fd17dec54928c712284693c8be487d2.yml +openapi_spec_hash: 33fe53c36120b880472d3743ba2bd898 config_hash: ff35e224e809656528c44163aa41bebd From 59b7e62e57eff7482db12fe2dd1a97298620b88f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 20:16:03 +0000 Subject: [PATCH 2/4] feat(api): api update --- .stats.yml | 4 +-- .../models/monitor_create_params.rb | 27 +++++++++------- .../models/monitor_create_response.rb | 27 +++++++++------- .../models/monitor_list_response.rb | 27 +++++++++------- .../models/monitor_retrieve_response.rb | 27 +++++++++------- .../models/monitor_update_params.rb | 27 +++++++++------- .../models/monitor_update_response.rb | 27 +++++++++------- .../models/monitor_create_params.rbi | 32 ++++++++++++------- .../models/monitor_create_response.rbi | 32 ++++++++++++------- .../models/monitor_list_response.rbi | 32 ++++++++++++------- .../models/monitor_retrieve_response.rbi | 32 ++++++++++++------- .../models/monitor_update_params.rbi | 32 ++++++++++++------- .../models/monitor_update_response.rbi | 32 ++++++++++++------- 13 files changed, 224 insertions(+), 134 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9768c4bd..6343a8a8 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-ea4f36d262d32250c0626d46b9df01e15fd17dec54928c712284693c8be487d2.yml -openapi_spec_hash: 33fe53c36120b880472d3743ba2bd898 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-190c8939f11afec54c1c0303cb21e7164a350fb66c5fe8fb5ae970e809dfb066.yml +openapi_spec_hash: 65e3c8513e047a95bcf276b6f88045a6 config_hash: ff35e224e809656528c44163aa41bebd diff --git a/lib/context_dev/models/monitor_create_params.rb b/lib/context_dev/models/monitor_create_params.rb index 9817736e..eb22d2d1 100644 --- a/lib/context_dev/models/monitor_create_params.rb +++ b/lib/context_dev/models/monitor_create_params.rb @@ -79,7 +79,7 @@ module ChangeDetection # 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 } - # Detect meaning-level changes to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::MonitorCreateParams::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -107,9 +107,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -187,7 +187,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::MonitorCreateParams::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::MonitorCreateParams::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -302,9 +302,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -316,8 +321,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -329,7 +334,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/lib/context_dev/models/monitor_create_response.rb b/lib/context_dev/models/monitor_create_response.rb index 95104c97..18606a0c 100644 --- a/lib/context_dev/models/monitor_create_response.rb +++ b/lib/context_dev/models/monitor_create_response.rb @@ -153,7 +153,7 @@ module ChangeDetection # 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 to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -181,9 +181,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -295,7 +295,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorCreateResponse::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::Models::MonitorCreateResponse::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -410,9 +410,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -424,8 +429,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -437,7 +442,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/lib/context_dev/models/monitor_list_response.rb b/lib/context_dev/models/monitor_list_response.rb index 8eeb68c0..75a70bfa 100644 --- a/lib/context_dev/models/monitor_list_response.rb +++ b/lib/context_dev/models/monitor_list_response.rb @@ -174,7 +174,7 @@ module ChangeDetection # 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 to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::Models::MonitorListResponse::Data::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -202,9 +202,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -316,7 +316,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorListResponse::Data::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::Models::MonitorListResponse::Data::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -431,9 +431,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -446,8 +451,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -459,7 +464,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/lib/context_dev/models/monitor_retrieve_response.rb b/lib/context_dev/models/monitor_retrieve_response.rb index d62c3602..beecd0b4 100644 --- a/lib/context_dev/models/monitor_retrieve_response.rb +++ b/lib/context_dev/models/monitor_retrieve_response.rb @@ -153,7 +153,7 @@ module ChangeDetection # 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 to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::Models::MonitorRetrieveResponse::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -181,9 +181,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -295,7 +295,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::Models::MonitorRetrieveResponse::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -410,9 +410,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -424,8 +429,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -437,7 +442,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/lib/context_dev/models/monitor_update_params.rb b/lib/context_dev/models/monitor_update_params.rb index e695ab81..3836e321 100644 --- a/lib/context_dev/models/monitor_update_params.rb +++ b/lib/context_dev/models/monitor_update_params.rb @@ -85,7 +85,7 @@ module ChangeDetection # 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 to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::MonitorUpdateParams::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -113,9 +113,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -203,7 +203,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::MonitorUpdateParams::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::MonitorUpdateParams::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -318,9 +318,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -332,8 +337,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -345,7 +350,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/lib/context_dev/models/monitor_update_response.rb b/lib/context_dev/models/monitor_update_response.rb index 128bc0ea..30aa47b4 100644 --- a/lib/context_dev/models/monitor_update_response.rb +++ b/lib/context_dev/models/monitor_update_response.rb @@ -153,7 +153,7 @@ module ChangeDetection # 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 to the extracted data, ignoring cosmetic or paraphrase-only differences. What is watched is determined by the extract target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or paraphrase-only differences. Which changes are meaningful is judged against the extract target's `instructions` (and `schema`, when provided). variant :semantic, -> { ContextDev::Models::MonitorUpdateResponse::ChangeDetection::Semantic } class Exact < ContextDev::Internal::Type::BaseModel @@ -181,9 +181,9 @@ class Semantic < ContextDev::Internal::Type::BaseModel optional :confidence_threshold, Float # @!method initialize(confidence_threshold: nil, type: :semantic) - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). # # @param confidence_threshold [Float] # @param type [Symbol, :semantic] @@ -295,7 +295,7 @@ module Target # 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. On a detected difference the sitemap is re-fetched within the same run and only URLs both observations agree on are reported, suppressing transient crawl flaps. variant :sitemap, -> { ContextDev::Models::MonitorUpdateResponse::Target::Sitemap } - # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged against the monitor's instructions. The tracked page set is refreshed by a periodic re-discovery crawl. + # Watch the monitor-relevant pages of a site for meaningful changes. A crawl guided by `schema`/`instructions` selects up to `max_pages` relevant pages to track; each run re-checks exactly those pages, and confirmed content changes are judged for relevance against the monitor's `instructions` (and `schema`, when provided). The tracked page set is refreshed by a periodic re-discovery crawl. variant :extract, -> { ContextDev::Models::MonitorUpdateResponse::Target::Extract } class Page < ContextDev::Internal::Type::BaseModel @@ -410,9 +410,14 @@ class Extract < ContextDev::Internal::Type::BaseModel optional :max_pages, Integer # @!attribute schema - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. 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] @@ -424,8 +429,8 @@ class Extract < ContextDev::Internal::Type::BaseModel # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. # # @param instructions [String] Natural-language instructions guiding which pages and facts to track and which c # @@ -437,7 +442,7 @@ class Extract < ContextDev::Internal::Type::BaseModel # # @param max_pages [Integer] Maximum number of pages to track. # - # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It guides which pages are select + # @param schema [Hash{Symbol=>Object}] JSON Schema describing the data you care about. It is used three ways: it guides # # @param type [Symbol, :extract] end diff --git a/rbi/context_dev/models/monitor_create_params.rbi b/rbi/context_dev/models/monitor_create_params.rbi index 0fdb3237..7e09eefe 100644 --- a/rbi/context_dev/models/monitor_create_params.rbi +++ b/rbi/context_dev/models/monitor_create_params.rbi @@ -195,9 +195,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -522,9 +522,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -534,8 +539,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -558,9 +563,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) diff --git a/rbi/context_dev/models/monitor_create_response.rbi b/rbi/context_dev/models/monitor_create_response.rbi index 4e4c6acf..950848ee 100644 --- a/rbi/context_dev/models/monitor_create_response.rbi +++ b/rbi/context_dev/models/monitor_create_response.rbi @@ -296,9 +296,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -708,9 +708,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -720,8 +725,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -744,9 +749,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) diff --git a/rbi/context_dev/models/monitor_list_response.rbi b/rbi/context_dev/models/monitor_list_response.rbi index f0a94ad2..8880b51f 100644 --- a/rbi/context_dev/models/monitor_list_response.rbi +++ b/rbi/context_dev/models/monitor_list_response.rbi @@ -355,9 +355,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -770,9 +770,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -782,8 +787,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -806,9 +811,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) diff --git a/rbi/context_dev/models/monitor_retrieve_response.rbi b/rbi/context_dev/models/monitor_retrieve_response.rbi index 3c5640f8..82d6890b 100644 --- a/rbi/context_dev/models/monitor_retrieve_response.rbi +++ b/rbi/context_dev/models/monitor_retrieve_response.rbi @@ -304,9 +304,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -716,9 +716,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -728,8 +733,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -752,9 +757,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) diff --git a/rbi/context_dev/models/monitor_update_params.rbi b/rbi/context_dev/models/monitor_update_params.rbi index 1bec6147..2a7a7ac0 100644 --- a/rbi/context_dev/models/monitor_update_params.rbi +++ b/rbi/context_dev/models/monitor_update_params.rbi @@ -231,9 +231,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -581,9 +581,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -593,8 +598,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -617,9 +622,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) diff --git a/rbi/context_dev/models/monitor_update_response.rbi b/rbi/context_dev/models/monitor_update_response.rbi index 3430297d..3c221122 100644 --- a/rbi/context_dev/models/monitor_update_response.rbi +++ b/rbi/context_dev/models/monitor_update_response.rbi @@ -296,9 +296,9 @@ module ContextDev sig { params(confidence_threshold: Float).void } attr_writer :confidence_threshold - # Detect meaning-level changes to the extracted data, ignoring cosmetic or - # paraphrase-only differences. What is watched is determined by the extract - # target's `schema` and `instructions`. + # Detect meaning-level changes to tracked page content, ignoring cosmetic or + # paraphrase-only differences. Which changes are meaningful is judged against the + # extract target's `instructions` (and `schema`, when provided). sig do params(confidence_threshold: Float, type: Symbol).returns( T.attached_class @@ -708,9 +708,14 @@ module ContextDev sig { params(max_pages: Integer).void } attr_writer :max_pages - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } attr_reader :schema @@ -720,8 +725,8 @@ module ContextDev # Watch the monitor-relevant pages of a site for meaningful changes. A crawl # guided by `schema`/`instructions` selects up to `max_pages` relevant pages to # track; each run re-checks exactly those pages, and confirmed content changes are - # judged against the monitor's instructions. The tracked page set is refreshed by - # a periodic re-discovery crawl. + # judged for relevance against the monitor's `instructions` (and `schema`, when + # provided). The tracked page set is refreshed by a periodic re-discovery crawl. sig do params( instructions: String, @@ -744,9 +749,14 @@ module ContextDev max_depth: nil, # Maximum number of pages to track. max_pages: nil, - # JSON Schema describing the data you care about. It guides which pages are - # selected for tracking and gives the change judge context on what matters. If - # omitted, a default summary + key-points schema is used. + # JSON Schema describing the data you care about. It is used three ways: it guides + # which pages are selected for tracking, it gives the change judge extra context + # on which changes matter (alongside `instructions`), and it defines the shape of + # the baseline `data` snapshot on GET /monitors/{monitor_id} (refreshed at most + # about once a day). It is not a response format for changes: change events and + # webhook payloads always contain diffs, summaries, and evidence excerpts — never + # data in this schema's shape. If omitted, a default summary + key-points schema + # is used. schema: nil, type: :extract ) From 04e370916ae9679892d86fc297e3c935afa1e2c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:56:42 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 4 +- .../monitor_list_account_runs_response.rb | 103 ++++++++- .../models/monitor_list_runs_response.rb | 101 ++++++++- .../monitor_list_account_runs_response.rbi | 207 +++++++++++++++++- .../models/monitor_list_runs_response.rbi | 207 +++++++++++++++++- .../monitor_list_account_runs_response.rbs | 77 ++++++- .../models/monitor_list_runs_response.rbs | 77 ++++++- 7 files changed, 760 insertions(+), 16 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6343a8a8..c2cc39a5 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-190c8939f11afec54c1c0303cb21e7164a350fb66c5fe8fb5ae970e809dfb066.yml -openapi_spec_hash: 65e3c8513e047a95bcf276b6f88045a6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-ecb277557634e2f0838ea196e2b21f11924f65e133c7977e8c2e1a603b8df466.yml +openapi_spec_hash: 798ce4cb042389a1179bf9af6fc1173d config_hash: ff35e224e809656528c44163aa41bebd 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 54700da1..737260f3 100644 --- a/lib/context_dev/models/monitor_list_account_runs_response.rb +++ b/lib/context_dev/models/monitor_list_account_runs_response.rb @@ -106,7 +106,16 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :started_at, Time, nil?: true - # @!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) + # @!attribute webhook_delivery + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + # + # @return [ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery, nil] + optional :webhook_delivery, + -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery } + + # @!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, webhook_delivery: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorListAccountRunsResponse::Data} for more details. # @@ -137,6 +146,8 @@ class Data < ContextDev::Internal::Type::BaseModel # @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] + # + # @param webhook_delivery [ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery] The webhook delivery attempted for a change detected by this run. Omitted when n # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#change_detection_type module ChangeDetectionType @@ -221,6 +232,96 @@ module SkipReason # @!method self.values # @return [Array] end + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data#webhook_delivery + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + # @!attribute attempted_at + # + # @return [Time] + required :attempted_at, Time + + # @!attribute error + # + # @return [ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error, nil] + required :error, + -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error }, + nil?: true + + # @!attribute event_id + # Identifier sent in the X-Context-Id header. + # + # @return [String] + required :event_id, String + + # @!attribute http_status + # The endpoint's final HTTP response status, or null when no response was + # received. + # + # @return [Integer, nil] + required :http_status, Integer, nil?: true + + # @!attribute status + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + # + # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status] + required :status, + enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status } + + # @!method initialize(attempted_at:, error:, event_id:, http_status:, status:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery} for + # more details. + # + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + # + # @param attempted_at [Time] + # + # @param error [ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error, nil] + # + # @param event_id [String] Identifier sent in the X-Context-Id header. + # + # @param http_status [Integer, nil] The endpoint's final HTTP response status, or null when no response was received + # + # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status] Delivery outcome. delivered means any 2xx response; rejected means a non-2xx res + + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery#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 + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + # + # @see ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery#status + module Status + extend ContextDev::Internal::Type::Enum + + DELIVERED = :delivered + REJECTED = :rejected + FAILED = :failed + SKIPPED_UNSAFE_URL = :skipped_unsafe_url + + # @!method self.values + # @return [Array] + end + 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 index def28b4f..ec4abc25 100644 --- a/lib/context_dev/models/monitor_list_runs_response.rb +++ b/lib/context_dev/models/monitor_list_runs_response.rb @@ -106,7 +106,15 @@ class Data < ContextDev::Internal::Type::BaseModel # @return [Time, nil] optional :started_at, Time, nil?: true - # @!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) + # @!attribute webhook_delivery + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + # + # @return [ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery, nil] + optional :webhook_delivery, -> { ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery } + + # @!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, webhook_delivery: nil) # Some parameter documentations has been truncated, see # {ContextDev::Models::MonitorListRunsResponse::Data} for more details. # @@ -137,6 +145,8 @@ class Data < ContextDev::Internal::Type::BaseModel # @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] + # + # @param webhook_delivery [ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery] The webhook delivery attempted for a change detected by this run. Omitted when n # @see ContextDev::Models::MonitorListRunsResponse::Data#change_detection_type module ChangeDetectionType @@ -221,6 +231,95 @@ module SkipReason # @!method self.values # @return [Array] end + + # @see ContextDev::Models::MonitorListRunsResponse::Data#webhook_delivery + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + # @!attribute attempted_at + # + # @return [Time] + required :attempted_at, Time + + # @!attribute error + # + # @return [ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error, nil] + required :error, + -> { ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error }, + nil?: true + + # @!attribute event_id + # Identifier sent in the X-Context-Id header. + # + # @return [String] + required :event_id, String + + # @!attribute http_status + # The endpoint's final HTTP response status, or null when no response was + # received. + # + # @return [Integer, nil] + required :http_status, Integer, nil?: true + + # @!attribute status + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + # + # @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status] + required :status, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status } + + # @!method initialize(attempted_at:, error:, event_id:, http_status:, status:) + # Some parameter documentations has been truncated, see + # {ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery} for more + # details. + # + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + # + # @param attempted_at [Time] + # + # @param error [ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error, nil] + # + # @param event_id [String] Identifier sent in the X-Context-Id header. + # + # @param http_status [Integer, nil] The endpoint's final HTTP response status, or null when no response was received + # + # @param status [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status] Delivery outcome. delivered means any 2xx response; rejected means a non-2xx res + + # @see ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery#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 + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + # + # @see ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery#status + module Status + extend ContextDev::Internal::Type::Enum + + DELIVERED = :delivered + REJECTED = :rejected + FAILED = :failed + SKIPPED_UNSAFE_URL = :skipped_unsafe_url + + # @!method self.values + # @return [Array] + 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 index f94b6844..60ff1165 100644 --- a/rbi/context_dev/models/monitor_list_account_runs_response.rbi +++ b/rbi/context_dev/models/monitor_list_account_runs_response.rbi @@ -148,6 +148,26 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :started_at + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery + ) + ) + end + attr_reader :webhook_delivery + + sig do + params( + webhook_delivery: + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::OrHash + ).void + end + attr_writer :webhook_delivery + sig do params( id: String, @@ -173,7 +193,9 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::OrSymbol ), - started_at: T.nilable(Time) + started_at: T.nilable(Time), + webhook_delivery: + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::OrHash ).returns(T.attached_class) end def self.new( @@ -197,7 +219,11 @@ module ContextDev error: nil, # Why a skipped run never executed; null unless status is `skipped`. skip_reason: nil, - started_at: nil + started_at: nil, + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + webhook_delivery: nil ) end @@ -227,7 +253,9 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason::TaggedSymbol ), - started_at: T.nilable(Time) + started_at: T.nilable(Time), + webhook_delivery: + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery } ) end @@ -458,6 +486,179 @@ module ContextDev def self.values end end + + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Time) } + attr_accessor :attempted_at + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error + ) + ) + end + attr_reader :error + + sig do + params( + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error::OrHash + ) + ).void + end + attr_writer :error + + # Identifier sent in the X-Context-Id header. + sig { returns(String) } + attr_accessor :event_id + + # The endpoint's final HTTP response status, or null when no response was + # received. + sig { returns(T.nilable(Integer)) } + attr_accessor :http_status + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + sig do + returns( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + end + attr_accessor :status + + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + sig do + params( + attempted_at: Time, + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error::OrHash + ), + event_id: String, + http_status: T.nilable(Integer), + status: + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::OrSymbol + ).returns(T.attached_class) + end + def self.new( + attempted_at:, + error:, + # Identifier sent in the X-Context-Id header. + event_id:, + # The endpoint's final HTTP response status, or null when no response was + # received. + http_status:, + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + status: + ) + end + + sig do + override.returns( + { + attempted_at: Time, + error: + T.nilable( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error + ), + event_id: String, + http_status: T.nilable(Integer), + status: + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + } + ) + end + def to_hash + end + + class Error < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::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 + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DELIVERED = + T.let( + :delivered, + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + REJECTED = + T.let( + :rejected, + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + SKIPPED_UNSAFE_URL = + T.let( + :skipped_unsafe_url, + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ] + ) + end + def self.values + end + 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 index 8c06c056..43e5097f 100644 --- a/rbi/context_dev/models/monitor_list_runs_response.rbi +++ b/rbi/context_dev/models/monitor_list_runs_response.rbi @@ -139,6 +139,26 @@ module ContextDev sig { returns(T.nilable(Time)) } attr_accessor :started_at + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery + ) + ) + end + attr_reader :webhook_delivery + + sig do + params( + webhook_delivery: + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::OrHash + ).void + end + attr_writer :webhook_delivery + sig do params( id: String, @@ -164,7 +184,9 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::OrSymbol ), - started_at: T.nilable(Time) + started_at: T.nilable(Time), + webhook_delivery: + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::OrHash ).returns(T.attached_class) end def self.new( @@ -188,7 +210,11 @@ module ContextDev error: nil, # Why a skipped run never executed; null unless status is `skipped`. skip_reason: nil, - started_at: nil + started_at: nil, + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + webhook_delivery: nil ) end @@ -218,7 +244,9 @@ module ContextDev T.nilable( ContextDev::Models::MonitorListRunsResponse::Data::SkipReason::TaggedSymbol ), - started_at: T.nilable(Time) + started_at: T.nilable(Time), + webhook_delivery: + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery } ) end @@ -449,6 +477,179 @@ module ContextDev def self.values end end + + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery, + ContextDev::Internal::AnyHash + ) + end + + sig { returns(Time) } + attr_accessor :attempted_at + + sig do + returns( + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error + ) + ) + end + attr_reader :error + + sig do + params( + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error::OrHash + ) + ).void + end + attr_writer :error + + # Identifier sent in the X-Context-Id header. + sig { returns(String) } + attr_accessor :event_id + + # The endpoint's final HTTP response status, or null when no response was + # received. + sig { returns(T.nilable(Integer)) } + attr_accessor :http_status + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + sig do + returns( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + end + attr_accessor :status + + # The webhook delivery attempted for a change detected by this run. Omitted when + # no webhook was attempted, including historical runs created before delivery + # tracking was added. + sig do + params( + attempted_at: Time, + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error::OrHash + ), + event_id: String, + http_status: T.nilable(Integer), + status: + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::OrSymbol + ).returns(T.attached_class) + end + def self.new( + attempted_at:, + error:, + # Identifier sent in the X-Context-Id header. + event_id:, + # The endpoint's final HTTP response status, or null when no response was + # received. + http_status:, + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + status: + ) + end + + sig do + override.returns( + { + attempted_at: Time, + error: + T.nilable( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error + ), + event_id: String, + http_status: T.nilable(Integer), + status: + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + } + ) + end + def to_hash + end + + class Error < ContextDev::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::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 + + # Delivery outcome. delivered means any 2xx response; rejected means a non-2xx + # response; failed means no HTTP response was received; skipped_unsafe_url means + # the URL failed the public-endpoint safety check. + module Status + extend ContextDev::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DELIVERED = + T.let( + :delivered, + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + REJECTED = + T.let( + :rejected, + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + FAILED = + T.let( + :failed, + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + SKIPPED_UNSAFE_URL = + T.let( + :skipped_unsafe_url, + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + 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 index e47bc1c5..fda81130 100644 --- a/sig/context_dev/models/monitor_list_account_runs_response.rbs +++ b/sig/context_dev/models/monitor_list_account_runs_response.rbs @@ -41,7 +41,8 @@ module ContextDev completed_at: Time?, error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, - started_at: Time? + started_at: Time?, + webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery } class Data < ContextDev::Internal::Type::BaseModel @@ -73,6 +74,12 @@ module ContextDev attr_accessor started_at: Time? + attr_reader webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery? + + def webhook_delivery=: ( + ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery + ) -> ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery + def initialize: ( id: String, baseline_created: bool, @@ -87,7 +94,8 @@ module ContextDev ?completed_at: Time?, ?error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, ?skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, - ?started_at: Time? + ?started_at: Time?, + ?webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery ) -> void def to_hash: -> { @@ -104,7 +112,8 @@ module ContextDev completed_at: Time?, error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?, skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?, - started_at: Time? + started_at: Time?, + webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery } type change_detection_type = :exact | :semantic @@ -178,6 +187,68 @@ module ContextDev def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason] end + + type webhook_delivery = + { + attempted_at: Time, + error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status + } + + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + attr_accessor attempted_at: Time + + attr_accessor error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error? + + attr_accessor event_id: String + + attr_accessor http_status: Integer? + + attr_accessor status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status + + def initialize: ( + attempted_at: Time, + error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status + ) -> void + + def to_hash: -> { + attempted_at: Time, + error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status + } + + 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 + + type status = :delivered | :rejected | :failed | :skipped_unsafe_url + + module Status + extend ContextDev::Internal::Type::Enum + + DELIVERED: :delivered + REJECTED: :rejected + FAILED: :failed + SKIPPED_UNSAFE_URL: :skipped_unsafe_url + + def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status] + end + 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 index fc023920..1fb39a18 100644 --- a/sig/context_dev/models/monitor_list_runs_response.rbs +++ b/sig/context_dev/models/monitor_list_runs_response.rbs @@ -41,7 +41,8 @@ module ContextDev completed_at: Time?, error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, - started_at: Time? + started_at: Time?, + webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery } class Data < ContextDev::Internal::Type::BaseModel @@ -73,6 +74,12 @@ module ContextDev attr_accessor started_at: Time? + attr_reader webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery? + + def webhook_delivery=: ( + ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery + ) -> ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery + def initialize: ( id: String, baseline_created: bool, @@ -87,7 +94,8 @@ module ContextDev ?completed_at: Time?, ?error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, ?skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, - ?started_at: Time? + ?started_at: Time?, + ?webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery ) -> void def to_hash: -> { @@ -104,7 +112,8 @@ module ContextDev completed_at: Time?, error: ContextDev::Models::MonitorListRunsResponse::Data::Error?, skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?, - started_at: Time? + started_at: Time?, + webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery } type change_detection_type = :exact | :semantic @@ -178,6 +187,68 @@ module ContextDev def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::skip_reason] end + + type webhook_delivery = + { + attempted_at: Time, + error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status + } + + class WebhookDelivery < ContextDev::Internal::Type::BaseModel + attr_accessor attempted_at: Time + + attr_accessor error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error? + + attr_accessor event_id: String + + attr_accessor http_status: Integer? + + attr_accessor status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status + + def initialize: ( + attempted_at: Time, + error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status + ) -> void + + def to_hash: -> { + attempted_at: Time, + error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?, + event_id: String, + http_status: Integer?, + status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status + } + + 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 + + type status = :delivered | :rejected | :failed | :skipped_unsafe_url + + module Status + extend ContextDev::Internal::Type::Enum + + DELIVERED: :delivered + REJECTED: :rejected + FAILED: :failed + SKIPPED_UNSAFE_URL: :skipped_unsafe_url + + def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status] + end + end end end end From 928de6b6a2edff1d81b007b79c3fc55128b2673b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:57:11 +0000 Subject: [PATCH 4/4] release: 2.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/context_dev/version.rb | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 656a2ef1..bfc26f9c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.1.0" + ".": "2.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d23d11..6291fb64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.2.0 (2026-07-10) + +Full Changelog: [v2.1.0...v2.2.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.1.0...v2.2.0) + +### Features + +* **api:** api update ([04e3709](https://github.com/context-dot-dev/context-ruby-sdk/commit/04e370916ae9679892d86fc297e3c935afa1e2c2)) +* **api:** api update ([59b7e62](https://github.com/context-dot-dev/context-ruby-sdk/commit/59b7e62e57eff7482db12fe2dd1a97298620b88f)) + ## 2.1.0 (2026-07-08) Full Changelog: [v2.0.0...v2.1.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.0.0...v2.1.0) diff --git a/Gemfile.lock b/Gemfile.lock index 1bd5153d..21c9bee4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - context.dev (2.1.0) + context.dev (2.2.0) cgi connection_pool diff --git a/README.md b/README.md index b6f51859..da568522 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", "~> 2.1.0" +gem "context.dev", "~> 2.2.0" ``` diff --git a/lib/context_dev/version.rb b/lib/context_dev/version.rb index f956e87b..227c96cd 100644 --- a/lib/context_dev/version.rb +++ b/lib/context_dev/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ContextDev - VERSION = "2.1.0" + VERSION = "2.2.0" end