context.dev 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +9 -9
- data/lib/context_dev/models/ai_extract_product_params.rb +9 -1
- data/lib/context_dev/models/ai_extract_products_params.rb +18 -2
- data/lib/context_dev/models/brand_retrieve_params.rb +109 -22
- data/lib/context_dev/models/brand_retrieve_response.rb +4 -6
- data/lib/context_dev/models/brand_retrieve_simplified_params.rb +32 -3
- data/lib/context_dev/models/industry_retrieve_naics_params.rb +11 -1
- data/lib/context_dev/models/industry_retrieve_sic_params.rb +11 -1
- data/lib/context_dev/models/monitor_create_params.rb +6 -5
- data/lib/context_dev/models/monitor_create_response.rb +6 -5
- data/lib/context_dev/models/monitor_get_credit_usage_params.rb +30 -0
- data/lib/context_dev/models/monitor_get_credit_usage_response.rb +59 -0
- data/lib/context_dev/models/monitor_get_limits_params.rb +14 -0
- data/lib/context_dev/models/monitor_get_limits_response.rb +52 -0
- data/lib/context_dev/models/monitor_list_account_changes_params.rb +16 -7
- data/lib/context_dev/models/monitor_list_account_changes_response.rb +2 -1
- data/lib/context_dev/models/monitor_list_account_runs_params.rb +7 -10
- data/lib/context_dev/models/monitor_list_changes_params.rb +8 -4
- data/lib/context_dev/models/monitor_list_changes_response.rb +2 -1
- data/lib/context_dev/models/monitor_list_params.rb +18 -19
- data/lib/context_dev/models/monitor_list_response.rb +6 -5
- data/lib/context_dev/models/monitor_list_runs_params.rb +7 -10
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +2 -1
- data/lib/context_dev/models/monitor_retrieve_response.rb +6 -5
- data/lib/context_dev/models/monitor_update_params.rb +6 -5
- data/lib/context_dev/models/monitor_update_response.rb +6 -5
- data/lib/context_dev/models/parse_handle_params.rb +296 -46
- data/lib/context_dev/models/utility_prefetch_params.rb +9 -1
- data/lib/context_dev/models/web_extract_competitors_params.rb +11 -1
- data/lib/context_dev/models/web_extract_fonts_params.rb +14 -4
- data/lib/context_dev/models/web_extract_params.rb +19 -1
- data/lib/context_dev/models/web_extract_styleguide_params.rb +14 -4
- data/lib/context_dev/models/web_screenshot_params.rb +69 -18
- data/lib/context_dev/models/web_screenshot_response.rb +3 -2
- data/lib/context_dev/models/web_search_params.rb +9 -1
- data/lib/context_dev/models/web_web_crawl_md_params.rb +34 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +268 -29
- data/lib/context_dev/models/web_web_scrape_images_params.rb +208 -19
- data/lib/context_dev/models/web_web_scrape_md_params.rb +352 -38
- data/lib/context_dev/models/web_web_scrape_sitemap_params.rb +45 -1
- data/lib/context_dev/models.rb +4 -0
- data/lib/context_dev/resources/ai.rb +3 -1
- data/lib/context_dev/resources/brand.rb +6 -2
- data/lib/context_dev/resources/industry.rb +6 -2
- data/lib/context_dev/resources/monitors.rb +70 -32
- data/lib/context_dev/resources/parse.rb +11 -11
- data/lib/context_dev/resources/utility.rb +3 -1
- data/lib/context_dev/resources/web.rb +104 -55
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +4 -0
- data/rbi/context_dev/models/ai_extract_product_params.rbi +11 -0
- data/rbi/context_dev/models/ai_extract_products_params.rbi +22 -0
- data/rbi/context_dev/models/brand_retrieve_params.rbi +175 -64
- data/rbi/context_dev/models/brand_retrieve_response.rbi +8 -11
- data/rbi/context_dev/models/brand_retrieve_simplified_params.rbi +68 -5
- data/rbi/context_dev/models/industry_retrieve_naics_params.rbi +15 -0
- data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +15 -0
- data/rbi/context_dev/models/monitor_create_params.rbi +6 -4
- data/rbi/context_dev/models/monitor_create_response.rbi +6 -4
- data/rbi/context_dev/models/monitor_get_credit_usage_params.rbi +60 -0
- data/rbi/context_dev/models/monitor_get_credit_usage_response.rbi +111 -0
- data/rbi/context_dev/models/monitor_get_limits_params.rbi +30 -0
- data/rbi/context_dev/models/monitor_get_limits_response.rbi +105 -0
- data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +16 -0
- data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +2 -0
- data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +7 -6
- data/rbi/context_dev/models/monitor_list_changes_params.rbi +8 -0
- data/rbi/context_dev/models/monitor_list_changes_response.rbi +2 -0
- data/rbi/context_dev/models/monitor_list_params.rbi +23 -31
- data/rbi/context_dev/models/monitor_list_response.rbi +6 -4
- data/rbi/context_dev/models/monitor_list_runs_params.rbi +7 -6
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +2 -0
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +6 -4
- data/rbi/context_dev/models/monitor_update_params.rbi +6 -4
- data/rbi/context_dev/models/monitor_update_response.rbi +6 -4
- data/rbi/context_dev/models/parse_handle_params.rbi +601 -71
- data/rbi/context_dev/models/utility_prefetch_params.rbi +11 -0
- data/rbi/context_dev/models/web_extract_competitors_params.rbi +15 -0
- data/rbi/context_dev/models/web_extract_fonts_params.rbi +19 -7
- data/rbi/context_dev/models/web_extract_params.rbi +26 -0
- data/rbi/context_dev/models/web_extract_styleguide_params.rbi +19 -7
- data/rbi/context_dev/models/web_screenshot_params.rbi +108 -37
- data/rbi/context_dev/models/web_screenshot_response.rbi +4 -2
- data/rbi/context_dev/models/web_search_params.rbi +11 -0
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +53 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +554 -49
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +426 -30
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +742 -61
- data/rbi/context_dev/models/web_web_scrape_sitemap_params.rbi +82 -0
- data/rbi/context_dev/models.rbi +4 -0
- data/rbi/context_dev/resources/ai.rbi +3 -0
- data/rbi/context_dev/resources/brand.rbi +9 -1
- data/rbi/context_dev/resources/industry.rbi +10 -0
- data/rbi/context_dev/resources/monitors.rbi +55 -11
- data/rbi/context_dev/resources/parse.rbi +44 -24
- data/rbi/context_dev/resources/utility.rbi +3 -0
- data/rbi/context_dev/resources/web.rbi +224 -48
- data/sig/context_dev/models/ai_extract_product_params.rbs +12 -1
- data/sig/context_dev/models/ai_extract_products_params.rbs +14 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +97 -51
- data/sig/context_dev/models/brand_retrieve_response.rbs +2 -2
- data/sig/context_dev/models/brand_retrieve_simplified_params.rbs +34 -5
- data/sig/context_dev/models/industry_retrieve_naics_params.rbs +7 -0
- data/sig/context_dev/models/industry_retrieve_sic_params.rbs +7 -0
- data/sig/context_dev/models/monitor_get_credit_usage_params.rbs +32 -0
- data/sig/context_dev/models/monitor_get_credit_usage_response.rbs +52 -0
- data/sig/context_dev/models/monitor_get_limits_params.rbs +15 -0
- data/sig/context_dev/models/monitor_get_limits_response.rbs +43 -0
- data/sig/context_dev/models/monitor_list_params.rbs +8 -14
- data/sig/context_dev/models/parse_handle_params.rbs +297 -50
- data/sig/context_dev/models/utility_prefetch_params.rbs +7 -0
- data/sig/context_dev/models/web_extract_competitors_params.rbs +12 -1
- data/sig/context_dev/models/web_extract_fonts_params.rbs +10 -5
- data/sig/context_dev/models/web_extract_params.rbs +14 -0
- data/sig/context_dev/models/web_extract_styleguide_params.rbs +10 -5
- data/sig/context_dev/models/web_screenshot_params.rbs +41 -20
- data/sig/context_dev/models/web_search_params.rbs +7 -0
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +28 -1
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +175 -47
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +128 -38
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +229 -62
- data/sig/context_dev/models/web_web_scrape_sitemap_params.rbs +35 -1
- data/sig/context_dev/models.rbs +4 -0
- data/sig/context_dev/resources/ai.rbs +1 -0
- data/sig/context_dev/resources/brand.rbs +3 -1
- data/sig/context_dev/resources/industry.rbs +2 -0
- data/sig/context_dev/resources/monitors.rbs +12 -2
- data/sig/context_dev/resources/parse.rbs +10 -10
- data/sig/context_dev/resources/utility.rbs +1 -0
- data/sig/context_dev/resources/web.rbs +47 -26
- metadata +14 -2
|
@@ -23,10 +23,31 @@ module ContextDev
|
|
|
23
23
|
# are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
|
|
24
24
|
# year.
|
|
25
25
|
sig { returns(T.nilable(Integer)) }
|
|
26
|
-
|
|
26
|
+
attr_accessor :max_age_ms
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
29
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
30
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
31
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
32
|
+
attr_reader :tags
|
|
33
|
+
|
|
34
|
+
sig { params(tags: T::Array[String]).void }
|
|
35
|
+
attr_writer :tags
|
|
36
|
+
|
|
37
|
+
# Optional theme preference used when selecting brand assets.
|
|
38
|
+
sig do
|
|
39
|
+
returns(
|
|
40
|
+
T.nilable(ContextDev::BrandRetrieveSimplifiedParams::Theme::OrSymbol)
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
attr_reader :theme
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
theme: ContextDev::BrandRetrieveSimplifiedParams::Theme::OrSymbol
|
|
48
|
+
).void
|
|
49
|
+
end
|
|
50
|
+
attr_writer :theme
|
|
30
51
|
|
|
31
52
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
32
53
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
@@ -40,7 +61,9 @@ module ContextDev
|
|
|
40
61
|
sig do
|
|
41
62
|
params(
|
|
42
63
|
domain: String,
|
|
43
|
-
max_age_ms: Integer,
|
|
64
|
+
max_age_ms: T.nilable(Integer),
|
|
65
|
+
tags: T::Array[String],
|
|
66
|
+
theme: ContextDev::BrandRetrieveSimplifiedParams::Theme::OrSymbol,
|
|
44
67
|
timeout_ms: Integer,
|
|
45
68
|
request_options: ContextDev::RequestOptions::OrHash
|
|
46
69
|
).returns(T.attached_class)
|
|
@@ -53,6 +76,12 @@ module ContextDev
|
|
|
53
76
|
# are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
|
|
54
77
|
# year.
|
|
55
78
|
max_age_ms: nil,
|
|
79
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
80
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
81
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
82
|
+
tags: nil,
|
|
83
|
+
# Optional theme preference used when selecting brand assets.
|
|
84
|
+
theme: nil,
|
|
56
85
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
57
86
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
58
87
|
# value is 300000ms (5 minutes).
|
|
@@ -65,7 +94,9 @@ module ContextDev
|
|
|
65
94
|
override.returns(
|
|
66
95
|
{
|
|
67
96
|
domain: String,
|
|
68
|
-
max_age_ms: Integer,
|
|
97
|
+
max_age_ms: T.nilable(Integer),
|
|
98
|
+
tags: T::Array[String],
|
|
99
|
+
theme: ContextDev::BrandRetrieveSimplifiedParams::Theme::OrSymbol,
|
|
69
100
|
timeout_ms: Integer,
|
|
70
101
|
request_options: ContextDev::RequestOptions
|
|
71
102
|
}
|
|
@@ -73,6 +104,38 @@ module ContextDev
|
|
|
73
104
|
end
|
|
74
105
|
def to_hash
|
|
75
106
|
end
|
|
107
|
+
|
|
108
|
+
# Optional theme preference used when selecting brand assets.
|
|
109
|
+
module Theme
|
|
110
|
+
extend ContextDev::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
TaggedSymbol =
|
|
113
|
+
T.type_alias do
|
|
114
|
+
T.all(Symbol, ContextDev::BrandRetrieveSimplifiedParams::Theme)
|
|
115
|
+
end
|
|
116
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
117
|
+
|
|
118
|
+
LIGHT =
|
|
119
|
+
T.let(
|
|
120
|
+
:light,
|
|
121
|
+
ContextDev::BrandRetrieveSimplifiedParams::Theme::TaggedSymbol
|
|
122
|
+
)
|
|
123
|
+
DARK =
|
|
124
|
+
T.let(
|
|
125
|
+
:dark,
|
|
126
|
+
ContextDev::BrandRetrieveSimplifiedParams::Theme::TaggedSymbol
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
override.returns(
|
|
131
|
+
T::Array[
|
|
132
|
+
ContextDev::BrandRetrieveSimplifiedParams::Theme::TaggedSymbol
|
|
133
|
+
]
|
|
134
|
+
)
|
|
135
|
+
end
|
|
136
|
+
def self.values
|
|
137
|
+
end
|
|
138
|
+
end
|
|
76
139
|
end
|
|
77
140
|
end
|
|
78
141
|
end
|
|
@@ -35,6 +35,15 @@ module ContextDev
|
|
|
35
35
|
sig { params(min_results: Integer).void }
|
|
36
36
|
attr_writer :min_results
|
|
37
37
|
|
|
38
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
39
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
40
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
41
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
42
|
+
attr_reader :tags
|
|
43
|
+
|
|
44
|
+
sig { params(tags: T::Array[String]).void }
|
|
45
|
+
attr_writer :tags
|
|
46
|
+
|
|
38
47
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
39
48
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
40
49
|
# value is 300000ms (5 minutes).
|
|
@@ -49,6 +58,7 @@ module ContextDev
|
|
|
49
58
|
input: String,
|
|
50
59
|
max_results: Integer,
|
|
51
60
|
min_results: Integer,
|
|
61
|
+
tags: T::Array[String],
|
|
52
62
|
timeout_ms: Integer,
|
|
53
63
|
request_options: ContextDev::RequestOptions::OrHash
|
|
54
64
|
).returns(T.attached_class)
|
|
@@ -63,6 +73,10 @@ module ContextDev
|
|
|
63
73
|
max_results: nil,
|
|
64
74
|
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
65
75
|
min_results: nil,
|
|
76
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
77
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
78
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
79
|
+
tags: nil,
|
|
66
80
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
67
81
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
68
82
|
# value is 300000ms (5 minutes).
|
|
@@ -77,6 +91,7 @@ module ContextDev
|
|
|
77
91
|
input: String,
|
|
78
92
|
max_results: Integer,
|
|
79
93
|
min_results: Integer,
|
|
94
|
+
tags: T::Array[String],
|
|
80
95
|
timeout_ms: Integer,
|
|
81
96
|
request_options: ContextDev::RequestOptions
|
|
82
97
|
}
|
|
@@ -34,6 +34,15 @@ module ContextDev
|
|
|
34
34
|
sig { params(min_results: Integer).void }
|
|
35
35
|
attr_writer :min_results
|
|
36
36
|
|
|
37
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
38
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
39
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
40
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
41
|
+
attr_reader :tags
|
|
42
|
+
|
|
43
|
+
sig { params(tags: T::Array[String]).void }
|
|
44
|
+
attr_writer :tags
|
|
45
|
+
|
|
37
46
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
38
47
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
39
48
|
# value is 300000ms (5 minutes).
|
|
@@ -63,6 +72,7 @@ module ContextDev
|
|
|
63
72
|
input: String,
|
|
64
73
|
max_results: Integer,
|
|
65
74
|
min_results: Integer,
|
|
75
|
+
tags: T::Array[String],
|
|
66
76
|
timeout_ms: Integer,
|
|
67
77
|
type: ContextDev::IndustryRetrieveSicParams::Type::OrSymbol,
|
|
68
78
|
request_options: ContextDev::RequestOptions::OrHash
|
|
@@ -77,6 +87,10 @@ module ContextDev
|
|
|
77
87
|
max_results: nil,
|
|
78
88
|
# Minimum number of SIC codes to return. Must be at least 1. Defaults to 1.
|
|
79
89
|
min_results: nil,
|
|
90
|
+
# Optional comma-separated caller-defined tags for tracking this request. Tags are
|
|
91
|
+
# recorded on the request's usage log and can be used to filter usage on the
|
|
92
|
+
# dashboard usage page. Up to 20 tags, each 1-50 characters.
|
|
93
|
+
tags: nil,
|
|
80
94
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
81
95
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
82
96
|
# value is 300000ms (5 minutes).
|
|
@@ -95,6 +109,7 @@ module ContextDev
|
|
|
95
109
|
input: String,
|
|
96
110
|
max_results: Integer,
|
|
97
111
|
min_results: Integer,
|
|
112
|
+
tags: T::Array[String],
|
|
98
113
|
timeout_ms: Integer,
|
|
99
114
|
type: ContextDev::IndustryRetrieveSicParams::Type::OrSymbol,
|
|
100
115
|
request_options: ContextDev::RequestOptions
|
|
@@ -59,6 +59,7 @@ module ContextDev
|
|
|
59
59
|
attr_writer :mode
|
|
60
60
|
|
|
61
61
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
62
|
+
# Duplicates are removed.
|
|
62
63
|
sig { returns(T.nilable(T::Array[String])) }
|
|
63
64
|
attr_reader :tags
|
|
64
65
|
|
|
@@ -110,6 +111,7 @@ module ContextDev
|
|
|
110
111
|
# described by `target` and `change_detection`.
|
|
111
112
|
mode: nil,
|
|
112
113
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
114
|
+
# Duplicates are removed.
|
|
113
115
|
tags: nil,
|
|
114
116
|
webhook: nil,
|
|
115
117
|
request_options: {}
|
|
@@ -418,14 +420,14 @@ module ContextDev
|
|
|
418
420
|
sig { returns(String) }
|
|
419
421
|
attr_accessor :url
|
|
420
422
|
|
|
421
|
-
# URL path patterns to exclude.
|
|
423
|
+
# URL path patterns to exclude (max 50).
|
|
422
424
|
sig { returns(T.nilable(T::Array[String])) }
|
|
423
425
|
attr_reader :exclude
|
|
424
426
|
|
|
425
427
|
sig { params(exclude: T::Array[String]).void }
|
|
426
428
|
attr_writer :exclude
|
|
427
429
|
|
|
428
|
-
# URL path patterns to include.
|
|
430
|
+
# URL path patterns to include (max 50).
|
|
429
431
|
sig { returns(T.nilable(T::Array[String])) }
|
|
430
432
|
attr_reader :include
|
|
431
433
|
|
|
@@ -456,9 +458,9 @@ module ContextDev
|
|
|
456
458
|
def self.new(
|
|
457
459
|
# Sitemap URL to monitor.
|
|
458
460
|
url:,
|
|
459
|
-
# URL path patterns to exclude.
|
|
461
|
+
# URL path patterns to exclude (max 50).
|
|
460
462
|
exclude: nil,
|
|
461
|
-
# URL path patterns to include.
|
|
463
|
+
# URL path patterns to include (max 50).
|
|
462
464
|
include: nil,
|
|
463
465
|
# Maximum number of sitemap URLs to track (capped at 10,000).
|
|
464
466
|
max_urls: nil,
|
|
@@ -107,6 +107,7 @@ module ContextDev
|
|
|
107
107
|
attr_accessor :next_run_at
|
|
108
108
|
|
|
109
109
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
110
|
+
# Duplicates are removed.
|
|
110
111
|
sig { returns(T.nilable(T::Array[String])) }
|
|
111
112
|
attr_reader :tags
|
|
112
113
|
|
|
@@ -230,6 +231,7 @@ module ContextDev
|
|
|
230
231
|
# When the next scheduled run is due.
|
|
231
232
|
next_run_at: nil,
|
|
232
233
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
234
|
+
# Duplicates are removed.
|
|
233
235
|
tags: nil,
|
|
234
236
|
webhook: nil,
|
|
235
237
|
# Present while webhook deliveries are failing consecutively; null when deliveries
|
|
@@ -636,14 +638,14 @@ module ContextDev
|
|
|
636
638
|
sig { returns(String) }
|
|
637
639
|
attr_accessor :url
|
|
638
640
|
|
|
639
|
-
# URL path patterns to exclude.
|
|
641
|
+
# URL path patterns to exclude (max 50).
|
|
640
642
|
sig { returns(T.nilable(T::Array[String])) }
|
|
641
643
|
attr_reader :exclude
|
|
642
644
|
|
|
643
645
|
sig { params(exclude: T::Array[String]).void }
|
|
644
646
|
attr_writer :exclude
|
|
645
647
|
|
|
646
|
-
# URL path patterns to include.
|
|
648
|
+
# URL path patterns to include (max 50).
|
|
647
649
|
sig { returns(T.nilable(T::Array[String])) }
|
|
648
650
|
attr_reader :include
|
|
649
651
|
|
|
@@ -674,9 +676,9 @@ module ContextDev
|
|
|
674
676
|
def self.new(
|
|
675
677
|
# Sitemap URL to monitor.
|
|
676
678
|
url:,
|
|
677
|
-
# URL path patterns to exclude.
|
|
679
|
+
# URL path patterns to exclude (max 50).
|
|
678
680
|
exclude: nil,
|
|
679
|
-
# URL path patterns to include.
|
|
681
|
+
# URL path patterns to include (max 50).
|
|
680
682
|
include: nil,
|
|
681
683
|
# Maximum number of sitemap URLs to track (capped at 10,000).
|
|
682
684
|
max_urls: nil,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
class MonitorGetCreditUsageParams < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
ContextDev::MonitorGetCreditUsageParams,
|
|
13
|
+
ContextDev::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Only include items at or after this ISO 8601 timestamp.
|
|
18
|
+
sig { returns(T.nilable(Time)) }
|
|
19
|
+
attr_reader :since
|
|
20
|
+
|
|
21
|
+
sig { params(since: Time).void }
|
|
22
|
+
attr_writer :since
|
|
23
|
+
|
|
24
|
+
# Only include items before this ISO 8601 timestamp.
|
|
25
|
+
sig { returns(T.nilable(Time)) }
|
|
26
|
+
attr_reader :until_
|
|
27
|
+
|
|
28
|
+
sig { params(until_: Time).void }
|
|
29
|
+
attr_writer :until_
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
since: Time,
|
|
34
|
+
until_: Time,
|
|
35
|
+
request_options: ContextDev::RequestOptions::OrHash
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# Only include items at or after this ISO 8601 timestamp.
|
|
40
|
+
since: nil,
|
|
41
|
+
# Only include items before this ISO 8601 timestamp.
|
|
42
|
+
until_: nil,
|
|
43
|
+
request_options: {}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
override.returns(
|
|
49
|
+
{
|
|
50
|
+
since: Time,
|
|
51
|
+
until_: Time,
|
|
52
|
+
request_options: ContextDev::RequestOptions
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
def to_hash
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
class MonitorGetCreditUsageResponse < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
ContextDev::Models::MonitorGetCreditUsageResponse,
|
|
10
|
+
ContextDev::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
T::Array[ContextDev::Models::MonitorGetCreditUsageResponse::Data]
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
attr_accessor :data
|
|
20
|
+
|
|
21
|
+
# Sum of credits across all monitors in the window.
|
|
22
|
+
sig { returns(Integer) }
|
|
23
|
+
attr_accessor :total_credits
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
data:
|
|
28
|
+
T::Array[
|
|
29
|
+
ContextDev::Models::MonitorGetCreditUsageResponse::Data::OrHash
|
|
30
|
+
],
|
|
31
|
+
total_credits: Integer
|
|
32
|
+
).returns(T.attached_class)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
data:,
|
|
36
|
+
# Sum of credits across all monitors in the window.
|
|
37
|
+
total_credits:
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
data:
|
|
45
|
+
T::Array[ContextDev::Models::MonitorGetCreditUsageResponse::Data],
|
|
46
|
+
total_credits: Integer
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
ContextDev::Models::MonitorGetCreditUsageResponse::Data,
|
|
58
|
+
ContextDev::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Credits charged to this monitor over the window.
|
|
63
|
+
sig { returns(Integer) }
|
|
64
|
+
attr_accessor :credits
|
|
65
|
+
|
|
66
|
+
sig { returns(String) }
|
|
67
|
+
attr_accessor :monitor_id
|
|
68
|
+
|
|
69
|
+
# Monitor name (falls back to the id when the monitor was deleted).
|
|
70
|
+
sig { returns(String) }
|
|
71
|
+
attr_accessor :name
|
|
72
|
+
|
|
73
|
+
# Number of billed runs over the window.
|
|
74
|
+
sig { returns(Integer) }
|
|
75
|
+
attr_accessor :runs
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
params(
|
|
79
|
+
credits: Integer,
|
|
80
|
+
monitor_id: String,
|
|
81
|
+
name: String,
|
|
82
|
+
runs: Integer
|
|
83
|
+
).returns(T.attached_class)
|
|
84
|
+
end
|
|
85
|
+
def self.new(
|
|
86
|
+
# Credits charged to this monitor over the window.
|
|
87
|
+
credits:,
|
|
88
|
+
monitor_id:,
|
|
89
|
+
# Monitor name (falls back to the id when the monitor was deleted).
|
|
90
|
+
name:,
|
|
91
|
+
# Number of billed runs over the window.
|
|
92
|
+
runs:
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
sig do
|
|
97
|
+
override.returns(
|
|
98
|
+
{
|
|
99
|
+
credits: Integer,
|
|
100
|
+
monitor_id: String,
|
|
101
|
+
name: String,
|
|
102
|
+
runs: Integer
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
def to_hash
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
class MonitorGetLimitsParams < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
ContextDev::MonitorGetLimitsParams,
|
|
13
|
+
ContextDev::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: ContextDev::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: ContextDev::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
class MonitorGetLimitsResponse < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
ContextDev::Models::MonitorGetLimitsResponse,
|
|
10
|
+
ContextDev::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Maximum number of monitors allowed for the account. Defaults to the plan
|
|
15
|
+
# allowance unless a custom limit is set for the organization.
|
|
16
|
+
sig { returns(Integer) }
|
|
17
|
+
attr_accessor :monitors_limit
|
|
18
|
+
|
|
19
|
+
# Number of monitors the account currently has.
|
|
20
|
+
sig { returns(Integer) }
|
|
21
|
+
attr_accessor :monitors_used
|
|
22
|
+
|
|
23
|
+
# The plan tier the limit was resolved from.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :plan
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
monitors_limit: Integer,
|
|
34
|
+
monitors_used: Integer,
|
|
35
|
+
plan: ContextDev::Models::MonitorGetLimitsResponse::Plan::OrSymbol
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# Maximum number of monitors allowed for the account. Defaults to the plan
|
|
40
|
+
# allowance unless a custom limit is set for the organization.
|
|
41
|
+
monitors_limit:,
|
|
42
|
+
# Number of monitors the account currently has.
|
|
43
|
+
monitors_used:,
|
|
44
|
+
# The plan tier the limit was resolved from.
|
|
45
|
+
plan:
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
monitors_limit: Integer,
|
|
53
|
+
monitors_used: Integer,
|
|
54
|
+
plan:
|
|
55
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# The plan tier the limit was resolved from.
|
|
63
|
+
module Plan
|
|
64
|
+
extend ContextDev::Internal::Type::Enum
|
|
65
|
+
|
|
66
|
+
TaggedSymbol =
|
|
67
|
+
T.type_alias do
|
|
68
|
+
T.all(Symbol, ContextDev::Models::MonitorGetLimitsResponse::Plan)
|
|
69
|
+
end
|
|
70
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
71
|
+
|
|
72
|
+
FREE =
|
|
73
|
+
T.let(
|
|
74
|
+
:free,
|
|
75
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
76
|
+
)
|
|
77
|
+
STARTER =
|
|
78
|
+
T.let(
|
|
79
|
+
:starter,
|
|
80
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
81
|
+
)
|
|
82
|
+
PRO =
|
|
83
|
+
T.let(
|
|
84
|
+
:pro,
|
|
85
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
86
|
+
)
|
|
87
|
+
SCALE =
|
|
88
|
+
T.let(
|
|
89
|
+
:scale,
|
|
90
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
sig do
|
|
94
|
+
override.returns(
|
|
95
|
+
T::Array[
|
|
96
|
+
ContextDev::Models::MonitorGetLimitsResponse::Plan::TaggedSymbol
|
|
97
|
+
]
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def self.values
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -14,6 +14,7 @@ module ContextDev
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# Filter by change detection type.
|
|
17
18
|
sig do
|
|
18
19
|
returns(
|
|
19
20
|
T.nilable(
|
|
@@ -31,24 +32,28 @@ module ContextDev
|
|
|
31
32
|
end
|
|
32
33
|
attr_writer :change_detection_type
|
|
33
34
|
|
|
35
|
+
# Opaque pagination cursor from a previous response.
|
|
34
36
|
sig { returns(T.nilable(String)) }
|
|
35
37
|
attr_reader :cursor
|
|
36
38
|
|
|
37
39
|
sig { params(cursor: String).void }
|
|
38
40
|
attr_writer :cursor
|
|
39
41
|
|
|
42
|
+
# Maximum number of items to return per page (1-100). Defaults to 25.
|
|
40
43
|
sig { returns(T.nilable(Integer)) }
|
|
41
44
|
attr_reader :limit
|
|
42
45
|
|
|
43
46
|
sig { params(limit: Integer).void }
|
|
44
47
|
attr_writer :limit
|
|
45
48
|
|
|
49
|
+
# Filter changes to a single monitor.
|
|
46
50
|
sig { returns(T.nilable(String)) }
|
|
47
51
|
attr_reader :monitor_id
|
|
48
52
|
|
|
49
53
|
sig { params(monitor_id: String).void }
|
|
50
54
|
attr_writer :monitor_id
|
|
51
55
|
|
|
56
|
+
# Only include items at or after this ISO 8601 timestamp.
|
|
52
57
|
sig { returns(T.nilable(Time)) }
|
|
53
58
|
attr_reader :since
|
|
54
59
|
|
|
@@ -62,6 +67,7 @@ module ContextDev
|
|
|
62
67
|
sig { params(tag: String).void }
|
|
63
68
|
attr_writer :tag
|
|
64
69
|
|
|
70
|
+
# Filter by target type.
|
|
65
71
|
sig do
|
|
66
72
|
returns(
|
|
67
73
|
T.nilable(
|
|
@@ -79,6 +85,7 @@ module ContextDev
|
|
|
79
85
|
end
|
|
80
86
|
attr_writer :target_type
|
|
81
87
|
|
|
88
|
+
# Only include items before this ISO 8601 timestamp.
|
|
82
89
|
sig { returns(T.nilable(Time)) }
|
|
83
90
|
attr_reader :until_
|
|
84
91
|
|
|
@@ -101,14 +108,21 @@ module ContextDev
|
|
|
101
108
|
).returns(T.attached_class)
|
|
102
109
|
end
|
|
103
110
|
def self.new(
|
|
111
|
+
# Filter by change detection type.
|
|
104
112
|
change_detection_type: nil,
|
|
113
|
+
# Opaque pagination cursor from a previous response.
|
|
105
114
|
cursor: nil,
|
|
115
|
+
# Maximum number of items to return per page (1-100). Defaults to 25.
|
|
106
116
|
limit: nil,
|
|
117
|
+
# Filter changes to a single monitor.
|
|
107
118
|
monitor_id: nil,
|
|
119
|
+
# Only include items at or after this ISO 8601 timestamp.
|
|
108
120
|
since: nil,
|
|
109
121
|
# Filter to items that have this tag.
|
|
110
122
|
tag: nil,
|
|
123
|
+
# Filter by target type.
|
|
111
124
|
target_type: nil,
|
|
125
|
+
# Only include items before this ISO 8601 timestamp.
|
|
112
126
|
until_: nil,
|
|
113
127
|
request_options: {}
|
|
114
128
|
)
|
|
@@ -134,6 +148,7 @@ module ContextDev
|
|
|
134
148
|
def to_hash
|
|
135
149
|
end
|
|
136
150
|
|
|
151
|
+
# Filter by change detection type.
|
|
137
152
|
module ChangeDetectionType
|
|
138
153
|
extend ContextDev::Internal::Type::Enum
|
|
139
154
|
|
|
@@ -168,6 +183,7 @@ module ContextDev
|
|
|
168
183
|
end
|
|
169
184
|
end
|
|
170
185
|
|
|
186
|
+
# Filter by target type.
|
|
171
187
|
module TargetType
|
|
172
188
|
extend ContextDev::Internal::Type::Enum
|
|
173
189
|
|
|
@@ -144,6 +144,7 @@ module ContextDev
|
|
|
144
144
|
attr_writer :removed_url_count
|
|
145
145
|
|
|
146
146
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
147
|
+
# Duplicates are removed.
|
|
147
148
|
sig { returns(T.nilable(T::Array[String])) }
|
|
148
149
|
attr_reader :tags
|
|
149
150
|
|
|
@@ -196,6 +197,7 @@ module ContextDev
|
|
|
196
197
|
matched_url_count: nil,
|
|
197
198
|
removed_url_count: nil,
|
|
198
199
|
# User-defined tags for grouping and filtering monitors and their changes.
|
|
200
|
+
# Duplicates are removed.
|
|
199
201
|
tags: nil
|
|
200
202
|
)
|
|
201
203
|
end
|