context.dev 2.21.0 → 2.22.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 +1 -1
- data/lib/context_dev/client.rb +4 -9
- data/lib/context_dev/models/batch_cancel_params.rb +2 -2
- data/lib/context_dev/models/batch_cancel_response.rb +16 -21
- data/lib/context_dev/models/batch_delete_params.rb +2 -2
- data/lib/context_dev/models/batch_delete_response.rb +8 -8
- data/lib/context_dev/models/batch_get_results_params.rb +2 -2
- data/lib/context_dev/models/batch_get_results_response.rb +17 -22
- data/lib/context_dev/models/batch_list_response.rb +38 -47
- data/lib/context_dev/models/batch_retrieve_params.rb +2 -2
- data/lib/context_dev/models/batch_retrieve_response.rb +37 -46
- data/lib/context_dev/models/batch_submit_params.rb +80 -109
- data/lib/context_dev/models/batch_submit_response.rb +18 -28
- data/lib/context_dev/models/brand_retrieve_params.rb +90 -149
- data/lib/context_dev/models/brand_retrieve_response.rb +18 -22
- data/lib/context_dev/models/brand_search_params.rb +2 -3
- data/lib/context_dev/models/brand_search_response.rb +8 -8
- data/lib/context_dev/models/crawl_controls.rb +1 -2
- data/lib/context_dev/models/feedback_submit_params.rb +2 -2
- data/lib/context_dev/models/feedback_submit_response.rb +8 -8
- data/lib/context_dev/models/industry_retrieve_naics_params.rb +17 -32
- data/lib/context_dev/models/industry_retrieve_naics_response.rb +10 -10
- data/lib/context_dev/models/industry_retrieve_sic_params.rb +20 -39
- data/lib/context_dev/models/industry_retrieve_sic_response.rb +10 -10
- data/lib/context_dev/models/intake.rb +7 -13
- data/lib/context_dev/models/log_list_response.rb +14 -10
- data/lib/context_dev/models/log_retrieve_response.rb +15 -41
- data/lib/context_dev/models/monitor_create_params.rb +238 -72
- data/lib/context_dev/models/monitor_create_response.rb +364 -175
- data/lib/context_dev/models/monitor_delete_params.rb +3 -1
- data/lib/context_dev/models/monitor_delete_response.rb +44 -1
- data/lib/context_dev/models/monitor_get_credit_usage_response.rb +43 -1
- data/lib/context_dev/models/monitor_get_limits_response.rb +47 -7
- data/lib/context_dev/models/monitor_list_account_changes_response.rb +143 -20
- data/lib/context_dev/models/monitor_list_account_runs_response.rb +50 -8
- data/lib/context_dev/models/monitor_list_changes_params.rb +2 -1
- data/lib/context_dev/models/monitor_list_changes_response.rb +143 -20
- data/lib/context_dev/models/monitor_list_params.rb +3 -3
- data/lib/context_dev/models/monitor_list_response.rb +304 -106
- data/lib/context_dev/models/monitor_list_runs_params.rb +2 -1
- data/lib/context_dev/models/monitor_list_runs_response.rb +50 -8
- data/lib/context_dev/models/monitor_retrieve_change_params.rb +3 -1
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +45 -15
- data/lib/context_dev/models/monitor_retrieve_params.rb +3 -1
- data/lib/context_dev/models/monitor_retrieve_response.rb +361 -171
- data/lib/context_dev/models/monitor_retrieve_run_params.rb +6 -2
- data/lib/context_dev/models/monitor_retrieve_run_response.rb +45 -8
- data/lib/context_dev/models/monitor_rotate_webhook_secret_params.rb +3 -1
- data/lib/context_dev/models/monitor_rotate_webhook_secret_response.rb +364 -172
- data/lib/context_dev/models/monitor_run_params.rb +3 -1
- data/lib/context_dev/models/monitor_run_response.rb +42 -4
- data/lib/context_dev/models/monitor_update_params.rb +239 -71
- data/lib/context_dev/models/monitor_update_response.rb +361 -171
- data/lib/context_dev/models/news_search_params.rb +10 -6
- data/lib/context_dev/models/news_search_response.rb +8 -8
- data/lib/context_dev/models/parse_handle_params.rb +9 -20
- data/lib/context_dev/models/parse_handle_response.rb +8 -8
- data/lib/context_dev/models/person_enrich_params.rb +76 -50
- data/lib/context_dev/models/person_enrich_response.rb +8 -8
- data/lib/context_dev/models/utility_prefetch_params.rb +15 -29
- data/lib/context_dev/models/utility_prefetch_response.rb +10 -10
- data/lib/context_dev/models/web_answers_params.rb +28 -47
- data/lib/context_dev/models/web_answers_response.rb +9 -8
- data/lib/context_dev/models/web_extract_competitors_params.rb +17 -32
- data/lib/context_dev/models/web_extract_competitors_response.rb +8 -8
- data/lib/context_dev/models/web_extract_styleguide_params.rb +22 -44
- data/lib/context_dev/models/web_extract_styleguide_response.rb +34 -44
- data/lib/context_dev/models/web_map_urls_params.rb +30 -51
- data/lib/context_dev/models/web_map_urls_response.rb +8 -8
- data/lib/context_dev/models/web_scrape_params.rb +193 -191
- data/lib/context_dev/models/web_scrape_response.rb +219 -95
- data/lib/context_dev/models/web_screenshot_params.rb +20 -39
- data/lib/context_dev/models/web_screenshot_response.rb +18 -28
- data/lib/context_dev/models/web_search_params.rb +76 -65
- data/lib/context_dev/models/web_search_response.rb +68 -27
- data/lib/context_dev/models/web_web_crawl_md_params.rb +41 -70
- data/lib/context_dev/models/web_web_crawl_md_response.rb +11 -15
- data/lib/context_dev/models/webhook_delivery.rb +3 -7
- data/lib/context_dev/models/webhooks/attempt.rb +3 -3
- data/lib/context_dev/models/webhooks/delivery.rb +16 -11
- data/lib/context_dev/models/webhooks/delivery_list_attempts_params.rb +2 -6
- data/lib/context_dev/models/webhooks/delivery_list_attempts_response.rb +8 -8
- data/lib/context_dev/models/webhooks/delivery_list_params.rb +4 -4
- data/lib/context_dev/models/webhooks/delivery_list_response.rb +8 -8
- data/lib/context_dev/models/webhooks/delivery_retrieve_params.rb +2 -6
- data/lib/context_dev/models/webhooks/delivery_retrieve_response.rb +8 -8
- data/lib/context_dev/models/webhooks/delivery_retry_params.rb +4 -4
- data/lib/context_dev/models/webhooks/delivery_retry_response.rb +8 -8
- data/lib/context_dev/models/webhooks/delivery_summary.rb +16 -11
- data/lib/context_dev/resources/batch.rb +17 -16
- data/lib/context_dev/resources/brand.rb +6 -8
- data/lib/context_dev/resources/feedback.rb +4 -5
- data/lib/context_dev/resources/industry.rb +9 -11
- data/lib/context_dev/resources/logs.rb +4 -5
- data/lib/context_dev/resources/monitors.rb +50 -53
- data/lib/context_dev/resources/news.rb +4 -8
- data/lib/context_dev/resources/parse.rb +4 -5
- data/lib/context_dev/resources/people.rb +11 -13
- data/lib/context_dev/resources/utility.rb +4 -11
- data/lib/context_dev/resources/web.rb +69 -94
- data/lib/context_dev/resources/webhooks/deliveries.rb +10 -18
- data/lib/context_dev/resources/webhooks.rb +1 -1
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/client.rbi +4 -9
- data/rbi/context_dev/models/batch_cancel_params.rbi +2 -2
- data/rbi/context_dev/models/batch_cancel_response.rbi +17 -21
- data/rbi/context_dev/models/batch_delete_params.rbi +2 -2
- data/rbi/context_dev/models/batch_delete_response.rbi +9 -9
- data/rbi/context_dev/models/batch_get_results_params.rbi +2 -2
- data/rbi/context_dev/models/batch_get_results_response.rbi +18 -26
- data/rbi/context_dev/models/batch_list_response.rbi +41 -53
- data/rbi/context_dev/models/batch_retrieve_params.rbi +2 -2
- data/rbi/context_dev/models/batch_retrieve_response.rbi +40 -52
- data/rbi/context_dev/models/batch_submit_params.rbi +87 -147
- data/rbi/context_dev/models/batch_submit_response.rbi +19 -31
- data/rbi/context_dev/models/brand_retrieve_params.rbi +99 -190
- data/rbi/context_dev/models/brand_retrieve_response.rbi +19 -25
- data/rbi/context_dev/models/brand_search_params.rbi +2 -4
- data/rbi/context_dev/models/brand_search_response.rbi +9 -9
- data/rbi/context_dev/models/crawl_controls.rbi +1 -2
- data/rbi/context_dev/models/feedback_submit_params.rbi +2 -2
- data/rbi/context_dev/models/feedback_submit_response.rbi +9 -9
- data/rbi/context_dev/models/industry_retrieve_naics_params.rbi +19 -42
- data/rbi/context_dev/models/industry_retrieve_naics_response.rbi +11 -11
- data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +22 -51
- data/rbi/context_dev/models/industry_retrieve_sic_response.rbi +11 -11
- data/rbi/context_dev/models/intake.rbi +7 -19
- data/rbi/context_dev/models/log_list_response.rbi +13 -11
- data/rbi/context_dev/models/log_retrieve_response.rbi +13 -76
- data/rbi/context_dev/models/monitor_create_params.rbi +418 -78
- data/rbi/context_dev/models/monitor_create_response.rbi +654 -287
- data/rbi/context_dev/models/monitor_delete_params.rbi +6 -1
- data/rbi/context_dev/models/monitor_delete_response.rbi +89 -3
- data/rbi/context_dev/models/monitor_get_credit_usage_response.rbi +77 -3
- data/rbi/context_dev/models/monitor_get_limits_response.rbi +83 -10
- data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +236 -24
- data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +86 -12
- data/rbi/context_dev/models/monitor_list_changes_params.rbi +2 -0
- data/rbi/context_dev/models/monitor_list_changes_response.rbi +234 -24
- data/rbi/context_dev/models/monitor_list_params.rbi +4 -4
- data/rbi/context_dev/models/monitor_list_response.rbi +502 -130
- data/rbi/context_dev/models/monitor_list_runs_params.rbi +2 -0
- data/rbi/context_dev/models/monitor_list_runs_response.rbi +84 -12
- data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +6 -1
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +79 -15
- data/rbi/context_dev/models/monitor_retrieve_params.rbi +6 -1
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +654 -283
- data/rbi/context_dev/models/monitor_retrieve_run_params.rbi +9 -1
- data/rbi/context_dev/models/monitor_retrieve_run_response.rbi +77 -9
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_params.rbi +6 -1
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_response.rbi +659 -288
- data/rbi/context_dev/models/monitor_run_params.rbi +6 -1
- data/rbi/context_dev/models/monitor_run_response.rbi +82 -9
- data/rbi/context_dev/models/monitor_update_params.rbi +420 -75
- data/rbi/context_dev/models/monitor_update_response.rbi +650 -281
- data/rbi/context_dev/models/news_search_params.rbi +10 -2
- data/rbi/context_dev/models/news_search_response.rbi +9 -9
- data/rbi/context_dev/models/parse_handle_params.rbi +10 -29
- data/rbi/context_dev/models/parse_handle_response.rbi +9 -9
- data/rbi/context_dev/models/person_enrich_params.rbi +86 -44
- data/rbi/context_dev/models/person_enrich_response.rbi +9 -9
- data/rbi/context_dev/models/utility_prefetch_params.rbi +15 -27
- data/rbi/context_dev/models/utility_prefetch_response.rbi +11 -11
- data/rbi/context_dev/models/web_answers_params.rbi +33 -63
- data/rbi/context_dev/models/web_answers_response.rbi +11 -9
- data/rbi/context_dev/models/web_extract_competitors_params.rbi +19 -42
- data/rbi/context_dev/models/web_extract_competitors_response.rbi +9 -9
- data/rbi/context_dev/models/web_extract_styleguide_params.rbi +25 -61
- data/rbi/context_dev/models/web_extract_styleguide_response.rbi +36 -51
- data/rbi/context_dev/models/web_map_urls_params.rbi +33 -68
- data/rbi/context_dev/models/web_map_urls_response.rbi +9 -9
- data/rbi/context_dev/models/web_scrape_params.rbi +212 -206
- data/rbi/context_dev/models/web_scrape_response.rbi +296 -120
- data/rbi/context_dev/models/web_screenshot_params.rbi +22 -51
- data/rbi/context_dev/models/web_screenshot_response.rbi +20 -35
- data/rbi/context_dev/models/web_search_params.rbi +114 -82
- data/rbi/context_dev/models/web_search_response.rbi +145 -33
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +45 -95
- data/rbi/context_dev/models/web_web_crawl_md_response.rbi +12 -18
- data/rbi/context_dev/models/webhook_delivery.rbi +3 -9
- data/rbi/context_dev/models/webhooks/attempt.rbi +3 -3
- data/rbi/context_dev/models/webhooks/delivery.rbi +14 -11
- data/rbi/context_dev/models/webhooks/delivery_list_attempts_params.rbi +2 -4
- data/rbi/context_dev/models/webhooks/delivery_list_attempts_response.rbi +9 -9
- data/rbi/context_dev/models/webhooks/delivery_list_params.rbi +4 -4
- data/rbi/context_dev/models/webhooks/delivery_list_response.rbi +9 -9
- data/rbi/context_dev/models/webhooks/delivery_retrieve_params.rbi +2 -4
- data/rbi/context_dev/models/webhooks/delivery_retrieve_response.rbi +9 -9
- data/rbi/context_dev/models/webhooks/delivery_retry_params.rbi +4 -4
- data/rbi/context_dev/models/webhooks/delivery_retry_response.rbi +9 -9
- data/rbi/context_dev/models/webhooks/delivery_summary.rbi +14 -11
- data/rbi/context_dev/resources/batch.rbi +19 -18
- data/rbi/context_dev/resources/brand.rbi +6 -9
- data/rbi/context_dev/resources/feedback.rbi +4 -5
- data/rbi/context_dev/resources/industry.rbi +11 -27
- data/rbi/context_dev/resources/logs.rbi +4 -5
- data/rbi/context_dev/resources/monitors.rbi +71 -49
- data/rbi/context_dev/resources/news.rbi +4 -8
- data/rbi/context_dev/resources/parse.rbi +7 -14
- data/rbi/context_dev/resources/people.rbi +15 -13
- data/rbi/context_dev/resources/utility.rbi +4 -11
- data/rbi/context_dev/resources/web.rbi +89 -190
- data/rbi/context_dev/resources/webhooks/deliveries.rbi +10 -12
- data/rbi/context_dev/resources/webhooks.rbi +1 -1
- data/sig/context_dev/models/log_retrieve_response.rbs +0 -28
- data/sig/context_dev/models/monitor_create_params.rbs +113 -0
- data/sig/context_dev/models/monitor_create_response.rbs +203 -53
- data/sig/context_dev/models/monitor_delete_response.rbs +46 -3
- data/sig/context_dev/models/monitor_get_credit_usage_response.rbs +36 -3
- data/sig/context_dev/models/monitor_get_limits_response.rbs +36 -3
- data/sig/context_dev/models/monitor_list_account_changes_response.rbs +111 -8
- data/sig/context_dev/models/monitor_list_account_runs_response.rbs +36 -3
- data/sig/context_dev/models/monitor_list_changes_response.rbs +111 -8
- data/sig/context_dev/models/monitor_list_response.rbs +149 -3
- data/sig/context_dev/models/monitor_list_runs_response.rbs +36 -3
- data/sig/context_dev/models/monitor_retrieve_change_response.rbs +33 -0
- data/sig/context_dev/models/monitor_retrieve_response.rbs +203 -53
- data/sig/context_dev/models/monitor_retrieve_run_response.rbs +33 -0
- data/sig/context_dev/models/monitor_rotate_webhook_secret_response.rbs +203 -53
- data/sig/context_dev/models/monitor_run_response.rbs +48 -3
- data/sig/context_dev/models/monitor_update_params.rbs +113 -0
- data/sig/context_dev/models/monitor_update_response.rbs +203 -53
- data/sig/context_dev/models/web_scrape_response.rbs +204 -27
- data/sig/context_dev/models/web_search_params.rbs +25 -0
- data/sig/context_dev/models/web_search_response.rbs +48 -0
- data/sig/context_dev/resources/web.rbs +1 -0
- metadata +2 -2
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Resources
|
|
5
5
|
class Web
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# deeper reasoning at 100 credits. Defaults to ultra. Fast research is limited to
|
|
9
|
-
# 30 seconds and ultra to 50 seconds; timeoutOpts.milliseconds can shorten either
|
|
10
|
-
# deadline.
|
|
6
|
+
# Research the web and return a sourced answer in your JSON shape. Choose `fast`
|
|
7
|
+
# for a short task or `ultra` for deeper research.
|
|
11
8
|
sig do
|
|
12
9
|
params(
|
|
13
10
|
task: String,
|
|
@@ -20,30 +17,21 @@ module ContextDev
|
|
|
20
17
|
).returns(ContextDev::Models::WebAnswersResponse)
|
|
21
18
|
end
|
|
22
19
|
def answers(
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
# searches.
|
|
20
|
+
# Research task. The agent selects company/profile lookups, web searches, or page
|
|
21
|
+
# reads. Include domains or URLs to focus the research.
|
|
26
22
|
task:,
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
# preserved; unknown values may be null. Empty arrays accept any JSON items.
|
|
30
|
-
# Defaults to {"result": ""}. Maximum 8 levels, 500 values, and 16000 characters.
|
|
23
|
+
# Example answer object, not JSON Schema. Up to 8 levels, 500 values, and 16000
|
|
24
|
+
# characters; unknowns may be null.
|
|
31
25
|
json_format: nil,
|
|
32
|
-
#
|
|
33
|
-
# ultra
|
|
34
|
-
# Only successful requests consume credits.
|
|
26
|
+
# `fast` prioritizes speed, with extra verification for people and companies;
|
|
27
|
+
# `ultra` supports deeper research (default).
|
|
35
28
|
mode: nil,
|
|
36
|
-
#
|
|
29
|
+
# Labels for filtering usage in the dashboard.
|
|
37
30
|
tags: nil,
|
|
38
|
-
#
|
|
39
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
40
|
-
# timeoutOpts object.
|
|
31
|
+
# Request deadline and what to return when it passes.
|
|
41
32
|
timeout_opts: nil,
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
45
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
46
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
33
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
34
|
+
# your organization has ZDR.
|
|
47
35
|
zdr: nil,
|
|
48
36
|
request_options: {}
|
|
49
37
|
)
|
|
@@ -68,25 +56,18 @@ module ContextDev
|
|
|
68
56
|
domain:,
|
|
69
57
|
# Exact number of direct competitors to return. Defaults to 5.
|
|
70
58
|
num_competitors: nil,
|
|
71
|
-
# Comma-separated
|
|
72
|
-
# characters.
|
|
59
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
73
60
|
tags: nil,
|
|
74
|
-
#
|
|
75
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
76
|
-
# timeoutOpts object.
|
|
61
|
+
# Request deadline and what to return when it passes.
|
|
77
62
|
timeout_opts: nil,
|
|
78
|
-
#
|
|
79
|
-
#
|
|
80
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
81
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
82
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
63
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
64
|
+
# your organization has ZDR.
|
|
83
65
|
zdr: nil,
|
|
84
66
|
request_options: {}
|
|
85
67
|
)
|
|
86
68
|
end
|
|
87
69
|
|
|
88
|
-
# Extract
|
|
89
|
-
# typography, spacing, shadows, and UI components.
|
|
70
|
+
# Extract colors, typography, spacing, and component styles from a website.
|
|
90
71
|
sig do
|
|
91
72
|
params(
|
|
92
73
|
color_scheme:
|
|
@@ -105,45 +86,28 @@ module ContextDev
|
|
|
105
86
|
# Optional browser color scheme to emulate for websites that respond to
|
|
106
87
|
# prefers-color-scheme. This value is part of the styleguide cache key.
|
|
107
88
|
color_scheme: nil,
|
|
108
|
-
#
|
|
109
|
-
# resolution (e.g., 'https://example.com/design-system'). When provided, the
|
|
110
|
-
# styleguide is extracted from this exact URL. You must provide either 'domain' or
|
|
111
|
-
# 'directUrl', but not both.
|
|
89
|
+
# Exact URL to inspect. Provide either `domain` or `directUrl`, not both.
|
|
112
90
|
direct_url: nil,
|
|
113
91
|
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
|
|
114
92
|
# domain will be automatically normalized and validated. You must provide either
|
|
115
93
|
# 'domain' or 'directUrl', but not both.
|
|
116
94
|
domain: nil,
|
|
117
|
-
# Maximum age
|
|
118
|
-
#
|
|
119
|
-
# refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms)
|
|
120
|
-
# are clamped to 1 year.
|
|
95
|
+
# Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1
|
|
96
|
+
# year. `0` refreshes.
|
|
121
97
|
max_age_ms: nil,
|
|
122
|
-
# Comma-separated
|
|
123
|
-
# characters.
|
|
98
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
124
99
|
tags: nil,
|
|
125
|
-
#
|
|
126
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
127
|
-
# timeoutOpts object.
|
|
100
|
+
# Request deadline and what to return when it passes.
|
|
128
101
|
timeout_opts: nil,
|
|
129
|
-
#
|
|
130
|
-
#
|
|
131
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
132
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
133
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
102
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
103
|
+
# your organization has ZDR.
|
|
134
104
|
zdr: nil,
|
|
135
105
|
request_options: {}
|
|
136
106
|
)
|
|
137
107
|
end
|
|
138
108
|
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
# keywords, and language. URLs without stored enrichment are returned immediately
|
|
142
|
-
# with only the URL and queued for background HTML scraping, so later requests can
|
|
143
|
-
# include their metadata. Responses are never cached as a whole; every request
|
|
144
|
-
# reads the current per-URL enrichment. Zero data retention and credential-bearing
|
|
145
|
-
# discovery requests return URLs without reading or storing shared enrichment or
|
|
146
|
-
# queuing background scrapes. Costs 1 credit, or 2 credits with search.
|
|
109
|
+
# Discover a site's URLs, with page titles, descriptions, keywords, and language
|
|
110
|
+
# when available. Metadata can be missing on newly discovered URLs.
|
|
147
111
|
sig do
|
|
148
112
|
params(
|
|
149
113
|
domain: String,
|
|
@@ -160,65 +124,35 @@ module ContextDev
|
|
|
160
124
|
).returns(ContextDev::Models::WebMapURLsResponse)
|
|
161
125
|
end
|
|
162
126
|
def map_urls(
|
|
163
|
-
# Domain to
|
|
127
|
+
# Domain to map, e.g. `stripe.com`.
|
|
164
128
|
domain:,
|
|
165
|
-
#
|
|
166
|
-
# deep-object query params such as headers[X-Custom]=value. When provided, caching
|
|
167
|
-
# is bypassed: the result is neither read from nor written to cache.
|
|
129
|
+
# HTTP headers for the target origin. Non-empty headers bypass caching.
|
|
168
130
|
headers: nil,
|
|
169
|
-
#
|
|
170
|
-
# requested domain. Defaults to false.
|
|
131
|
+
# Include URLs on subdomains.
|
|
171
132
|
include_subdomains: nil,
|
|
172
|
-
# Maximum number of
|
|
173
|
-
# Minimum is 1, maximum is 100,000.
|
|
133
|
+
# Maximum number of URLs to return.
|
|
174
134
|
max_links: nil,
|
|
175
|
-
#
|
|
176
|
-
# pages whose URLs are about that phrase, most relevant first, and the request
|
|
177
|
-
# costs 2 credits instead of 1.
|
|
135
|
+
# Filter URLs by a topic or phrase, most relevant first.
|
|
178
136
|
search: nil,
|
|
179
|
-
#
|
|
180
|
-
#
|
|
137
|
+
# Fetch this sitemap instead of discovering sitemaps. Must belong to the domain or
|
|
138
|
+
# a subdomain.
|
|
181
139
|
sitemap_url: nil,
|
|
182
|
-
# Comma-separated
|
|
183
|
-
# characters.
|
|
140
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
184
141
|
tags: nil,
|
|
185
|
-
#
|
|
186
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
187
|
-
# timeoutOpts object.
|
|
142
|
+
# Request deadline and what to return when it passes.
|
|
188
143
|
timeout_opts: nil,
|
|
189
144
|
# Optional RE2-compatible regex pattern. Only URLs matching this pattern are
|
|
190
145
|
# returned and counted against maxLinks.
|
|
191
146
|
url_regex: nil,
|
|
192
|
-
#
|
|
193
|
-
#
|
|
194
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
195
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
196
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
147
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
148
|
+
# your organization has ZDR.
|
|
197
149
|
zdr: nil,
|
|
198
150
|
request_options: {}
|
|
199
151
|
)
|
|
200
152
|
end
|
|
201
153
|
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
# is shared with Markdown, parsed fields, product data, highlights, and JSON
|
|
205
|
-
# extraction. Cached outputs can come from different visits within maxAgeMs; use 0
|
|
206
|
-
# for a fresh capture. HTML-only requests use the existing fast acquisition path.
|
|
207
|
-
# Highlights return Markdown excerpts most relevant to highlightsParams.query.
|
|
208
|
-
# Requests with at least one successful output cost one base credit, including
|
|
209
|
-
# cache hits, or two with browser actions. All-failed responses are unbilled
|
|
210
|
-
# except missing pages, which retain the base price and the one-credit product
|
|
211
|
-
# charge when product was requested. Highlights add 3 credits when passages are
|
|
212
|
-
# returned. JSON extraction runs an LLM over nonempty page Markdown and adds four
|
|
213
|
-
# credits only when its result is returned successfully. PDF OCR adds one credit
|
|
214
|
-
# per recovered page on fresh extraction. Product adds one credit when its
|
|
215
|
-
# successful result is returned, plus six if that result used the specialized
|
|
216
|
-
# model. Original response bytes and screenshots are limited to 20 MiB each,
|
|
217
|
-
# screenshots to 40 megapixels, and the combined response to 60 MiB. An oversized
|
|
218
|
-
# output has success: false and data: null. If the combined response exceeds its
|
|
219
|
-
# limit, the largest outputs are marked failed until the remaining outputs fit.
|
|
220
|
-
# Valid captured pieces may still be cached when omitted to meet the response size
|
|
221
|
-
# limit.
|
|
154
|
+
# Scrape anything from a URL on the internet. Returns the outputs you enable in
|
|
155
|
+
# formats. Handles PDFs, DOCX, PPT, XLSX, and 40 other file formats.
|
|
222
156
|
sig do
|
|
223
157
|
params(
|
|
224
158
|
formats: ContextDev::WebScrapeParams::Formats::OrHash,
|
|
@@ -241,48 +175,35 @@ module ContextDev
|
|
|
241
175
|
).returns(ContextDev::Models::WebScrapeResponse)
|
|
242
176
|
end
|
|
243
177
|
def scrape(
|
|
244
|
-
# Outputs to return.
|
|
178
|
+
# Outputs to return. Set at least one to `true`.
|
|
245
179
|
formats:,
|
|
246
|
-
#
|
|
180
|
+
# Public HTTP or HTTPS URL to scrape.
|
|
247
181
|
url:,
|
|
248
|
-
#
|
|
182
|
+
# Requires `formats.highlights: true`; required when it is set.
|
|
249
183
|
highlights_params: nil,
|
|
250
184
|
# Image options. Requires formats.images: true.
|
|
251
185
|
image_params: nil,
|
|
252
|
-
#
|
|
186
|
+
# Requires `formats.json: true`; required when it is set.
|
|
253
187
|
json_params: nil,
|
|
254
|
-
# Markdown options. Requires formats.markdown
|
|
188
|
+
# Markdown options. Requires `formats.markdown`.
|
|
255
189
|
markdown_params: nil,
|
|
256
|
-
# Maximum age of
|
|
257
|
-
#
|
|
258
|
-
# scrape endpoints. Image results with hosted files refresh after 23 hours; other
|
|
259
|
-
# outputs retain their own freshness.
|
|
190
|
+
# Maximum age of a cached output, in milliseconds. `0` fetches fresh. Defaults to
|
|
191
|
+
# 3 days (259200000 ms). Maximum: 1 year (31536000000 ms).
|
|
260
192
|
max_age_ms: nil,
|
|
261
|
-
#
|
|
193
|
+
# Requires `formats.parse: true`; required when it is set.
|
|
262
194
|
parse_params: nil,
|
|
263
195
|
# Product options. Requires formats.product: true.
|
|
264
196
|
product_params: nil,
|
|
265
197
|
# Screenshot options. Requires formats.screenshot: true.
|
|
266
198
|
screenshot_params: nil,
|
|
267
|
-
#
|
|
268
|
-
# original bytes unchanged.
|
|
199
|
+
# Browser and content settings shared by all outputs.
|
|
269
200
|
shared_params: nil,
|
|
270
201
|
# Labels for tracking request usage. Not retained when zdr is enabled.
|
|
271
202
|
tags: nil,
|
|
272
|
-
#
|
|
273
|
-
#
|
|
274
|
-
# internal deadlines that reserve time to return completed outputs; timed-out
|
|
275
|
-
# outputs have success: false and data: null under either behavior. The overall
|
|
276
|
-
# request deadline remains enforced: fail returns an error if that deadline is
|
|
277
|
-
# reached. Use return-partial to allow the current page state and available
|
|
278
|
-
# outputs when the page is still loading. Partial responses set isPartial. Failed
|
|
279
|
-
# retrievals and incomplete captures are not cached; valid captured pieces may be
|
|
280
|
-
# cached independently. Fixed waits must fit before a response reserve of up to
|
|
281
|
-
# 5000 milliseconds (at most one quarter of the timeout) when using
|
|
282
|
-
# return-partial.
|
|
203
|
+
# Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
|
|
204
|
+
# must end before it.
|
|
283
205
|
timeout_opts: nil,
|
|
284
|
-
#
|
|
285
|
-
# content and tags from logs. Must be enabled for your organization.
|
|
206
|
+
# `enabled` turns on zero data retention. Your organization must have ZDR enabled.
|
|
286
207
|
zdr: nil,
|
|
287
208
|
request_options: {}
|
|
288
209
|
)
|
|
@@ -321,8 +242,7 @@ module ContextDev
|
|
|
321
242
|
# Optional parameter to choose the site's visual theme in the screenshot. Use
|
|
322
243
|
# 'light' or 'dark' when the site offers both appearances.
|
|
323
244
|
color_scheme: nil,
|
|
324
|
-
# Fetch
|
|
325
|
-
# alpha-2).
|
|
245
|
+
# Fetch from this country (ISO 3166-1 alpha-2).
|
|
326
246
|
country: nil,
|
|
327
247
|
# A specific URL to screenshot directly, bypassing domain resolution (e.g.,
|
|
328
248
|
# 'https://example.com/pricing'). When provided, the screenshot is taken of this
|
|
@@ -365,12 +285,9 @@ module ContextDev
|
|
|
365
285
|
# top to bottom). The final slice may be shorter than the viewport height. Takes
|
|
366
286
|
# precedence over fullScreenshot. Max: 100000.
|
|
367
287
|
scroll_offset: nil,
|
|
368
|
-
# Comma-separated
|
|
369
|
-
# characters.
|
|
288
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
370
289
|
tags: nil,
|
|
371
|
-
#
|
|
372
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
373
|
-
# timeoutOpts object.
|
|
290
|
+
# Request deadline and what to return when it passes.
|
|
374
291
|
timeout_opts: nil,
|
|
375
292
|
# Optional browser viewport dimensions for the screenshot. Defaults to 1920x1080.
|
|
376
293
|
viewport: nil,
|
|
@@ -380,23 +297,23 @@ module ContextDev
|
|
|
380
297
|
# least waitForMs + 10000 ms; a shorter deadline is rejected with 400
|
|
381
298
|
# TIMEOUT_TOO_SHORT_FOR_WAIT.
|
|
382
299
|
wait_for_ms: nil,
|
|
383
|
-
#
|
|
384
|
-
#
|
|
385
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
386
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
387
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
300
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
301
|
+
# your organization has ZDR.
|
|
388
302
|
zdr: nil,
|
|
389
303
|
request_options: {}
|
|
390
304
|
)
|
|
391
305
|
end
|
|
392
306
|
|
|
393
|
-
# Search the web and optionally
|
|
307
|
+
# Search the web and optionally return page content or relevant passages with each
|
|
308
|
+
# result.
|
|
394
309
|
sig do
|
|
395
310
|
params(
|
|
396
311
|
query: String,
|
|
397
312
|
country: ContextDev::WebSearchParams::Country::OrSymbol,
|
|
398
313
|
exclude_domains: T::Array[String],
|
|
399
314
|
freshness: ContextDev::WebSearchParams::Freshness::OrSymbol,
|
|
315
|
+
highlights_options:
|
|
316
|
+
ContextDev::WebSearchParams::HighlightsOptions::OrHash,
|
|
400
317
|
include_domains: T::Array[String],
|
|
401
318
|
markdown_options:
|
|
402
319
|
ContextDev::WebSearchParams::MarkdownOptions::OrHash,
|
|
@@ -415,38 +332,36 @@ module ContextDev
|
|
|
415
332
|
# Two-letter ISO 3166-1 alpha-2 country code to localize results to a specific
|
|
416
333
|
# country (maps to Google's `gl` parameter). Example: "us", "gb", "de".
|
|
417
334
|
country: nil,
|
|
418
|
-
# Blocklist — drop results from these domains. Example:
|
|
419
|
-
# "reddit.com"].
|
|
335
|
+
# Blocklist — drop results from these domains. Up to 100 domains. Example:
|
|
336
|
+
# ["pinterest.com", "reddit.com"].
|
|
420
337
|
exclude_domains: nil,
|
|
421
338
|
# Restrict results to content published within this window.
|
|
422
339
|
freshness: nil,
|
|
423
|
-
#
|
|
424
|
-
#
|
|
340
|
+
# Passages from each result page that are relevant to the query. Pages are read
|
|
341
|
+
# with the `markdownOptions` settings.
|
|
342
|
+
highlights_options: nil,
|
|
343
|
+
# Allowlist — only return results from these domains. Up to 100 domains. Example:
|
|
344
|
+
# ["arxiv.org", "github.com"].
|
|
425
345
|
include_domains: nil,
|
|
426
346
|
# Inline Markdown scraping for each result. Set `enabled: true` to activate.
|
|
427
347
|
markdown_options: nil,
|
|
428
348
|
# Number of results to request and return (10–100). Defaults to 10.
|
|
429
349
|
num_results: nil,
|
|
430
|
-
#
|
|
350
|
+
# Currently has no effect.
|
|
431
351
|
query_fanout: nil,
|
|
432
|
-
#
|
|
352
|
+
# Labels for filtering usage in the dashboard.
|
|
433
353
|
tags: nil,
|
|
434
|
-
#
|
|
435
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
436
|
-
# timeoutOpts object.
|
|
354
|
+
# Request deadline and what to return when it passes.
|
|
437
355
|
timeout_opts: nil,
|
|
438
|
-
#
|
|
439
|
-
#
|
|
440
|
-
# omitted. Requires zero data retention to be enabled for your organization
|
|
441
|
-
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
442
|
-
# Successful ZDR responses include X-Context-ZDR: true.
|
|
356
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
357
|
+
# your organization has ZDR.
|
|
443
358
|
zdr: nil,
|
|
444
359
|
request_options: {}
|
|
445
360
|
)
|
|
446
361
|
end
|
|
447
362
|
|
|
448
|
-
#
|
|
449
|
-
#
|
|
363
|
+
# Crawl a website and return page content as Markdown. Use a batch for crawls
|
|
364
|
+
# beyond 500 pages.
|
|
450
365
|
sig do
|
|
451
366
|
params(
|
|
452
367
|
url: String,
|
|
@@ -474,14 +389,11 @@ module ContextDev
|
|
|
474
389
|
).returns(ContextDev::Models::WebWebCrawlMdResponse)
|
|
475
390
|
end
|
|
476
391
|
def web_crawl_md(
|
|
477
|
-
#
|
|
392
|
+
# Start URL, including `http://` or `https://`.
|
|
478
393
|
url:,
|
|
479
|
-
# Fetch
|
|
480
|
-
# alpha-2).
|
|
394
|
+
# Fetch from this country (ISO 3166-1 alpha-2).
|
|
481
395
|
country: nil,
|
|
482
|
-
#
|
|
483
|
-
# Applied after includeSelectors. Exclusion takes precedence: an element matching
|
|
484
|
-
# both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".
|
|
396
|
+
# Remove matching elements after inclusions. Exclusions take precedence.
|
|
485
397
|
exclude_selectors: nil,
|
|
486
398
|
# When true, follow links on subdomains of the starting URL's domain (e.g.
|
|
487
399
|
# docs.example.com when starting from example.com). www and apex are always
|
|
@@ -494,38 +406,27 @@ module ContextDev
|
|
|
494
406
|
include_images: nil,
|
|
495
407
|
# Preserve hyperlinks in the Markdown output
|
|
496
408
|
include_links: nil,
|
|
497
|
-
#
|
|
498
|
-
# descendants) are kept before each crawled page is converted to Markdown. When
|
|
499
|
-
# omitted, the entire document is kept. Examples: "article.main", "#content",
|
|
500
|
-
# "[role=main]".
|
|
409
|
+
# Keep matching HTML subtrees before converting each page to Markdown.
|
|
501
410
|
include_selectors: nil,
|
|
502
|
-
#
|
|
503
|
-
# younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
|
|
504
|
-
# omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
|
|
411
|
+
# Maximum cache age in milliseconds. Defaults to 1 day; `0` fetches fresh.
|
|
505
412
|
max_age_ms: nil,
|
|
506
413
|
# Maximum link depth from the starting URL (0 = only the starting page)
|
|
507
414
|
max_depth: nil,
|
|
508
|
-
# Maximum
|
|
415
|
+
# Maximum pages to crawl.
|
|
509
416
|
max_pages: nil,
|
|
510
|
-
# PDF
|
|
511
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
417
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
512
418
|
pdf: nil,
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
# exchange for more stable output on animated pages.
|
|
419
|
+
# Wait briefly for CSS animations and transitions to settle before reading each
|
|
420
|
+
# page.
|
|
516
421
|
settle_animations: nil,
|
|
517
422
|
# Truncate base64-encoded image data in the Markdown output
|
|
518
423
|
shorten_base64_images: nil,
|
|
519
|
-
# Soft
|
|
520
|
-
#
|
|
521
|
-
# instead of continuing. Min: 10000 (10s). Max: 110000 (110s). Default: 80000
|
|
522
|
-
# (80s).
|
|
424
|
+
# Soft crawl deadline in milliseconds. Returns pages collected before the next
|
|
425
|
+
# deadline check.
|
|
523
426
|
stop_after_ms: nil,
|
|
524
|
-
#
|
|
427
|
+
# Labels for filtering usage in the dashboard.
|
|
525
428
|
tags: nil,
|
|
526
|
-
#
|
|
527
|
-
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
528
|
-
# timeoutOpts object.
|
|
429
|
+
# Request deadline and what to return when it passes.
|
|
529
430
|
timeout_opts: nil,
|
|
530
431
|
# Regex pattern. Only URLs matching this pattern will be followed and scraped. An
|
|
531
432
|
# automatic prefix scope in the form ^<starting URL> follows a redirect of the
|
|
@@ -537,10 +438,8 @@ module ContextDev
|
|
|
537
438
|
# Browser wait time in milliseconds after initial page load for each crawled page.
|
|
538
439
|
# Defaults to 3500 (3.5 seconds). Min: 0. Max: 30000 (30 seconds).
|
|
539
440
|
wait_for_ms: nil,
|
|
540
|
-
#
|
|
541
|
-
#
|
|
542
|
-
# organization (contact support@context.dev), otherwise the request fails with
|
|
543
|
-
# ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.
|
|
441
|
+
# `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
|
|
442
|
+
# your organization has ZDR.
|
|
544
443
|
zdr: nil,
|
|
545
444
|
request_options: {}
|
|
546
445
|
)
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Resources
|
|
5
5
|
class Webhooks
|
|
6
|
-
# Inspect and retry
|
|
6
|
+
# Inspect and retry batch and monitor webhook deliveries.
|
|
7
7
|
class Deliveries
|
|
8
|
-
#
|
|
8
|
+
# Retrieve a webhook delivery’s status and original payload.
|
|
9
9
|
sig do
|
|
10
10
|
params(
|
|
11
11
|
delivery_id: String,
|
|
@@ -16,14 +16,13 @@ module ContextDev
|
|
|
16
16
|
def retrieve(
|
|
17
17
|
# Delivery ID.
|
|
18
18
|
delivery_id,
|
|
19
|
-
# Comma-separated
|
|
20
|
-
# characters.
|
|
19
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
21
20
|
tags: nil,
|
|
22
21
|
request_options: {}
|
|
23
22
|
)
|
|
24
23
|
end
|
|
25
24
|
|
|
26
|
-
# List
|
|
25
|
+
# List batch and monitor webhook deliveries from the last 30 days.
|
|
27
26
|
sig do
|
|
28
27
|
params(
|
|
29
28
|
body:
|
|
@@ -37,7 +36,7 @@ module ContextDev
|
|
|
37
36
|
def list(body:, request_options: {})
|
|
38
37
|
end
|
|
39
38
|
|
|
40
|
-
# List delivery attempts, newest first.
|
|
39
|
+
# List a delivery’s attempts, newest first.
|
|
41
40
|
sig do
|
|
42
41
|
params(
|
|
43
42
|
delivery_id: String,
|
|
@@ -54,14 +53,14 @@ module ContextDev
|
|
|
54
53
|
cursor: nil,
|
|
55
54
|
# Number of attempts to return.
|
|
56
55
|
limit: nil,
|
|
57
|
-
# Comma-separated
|
|
58
|
-
# characters.
|
|
56
|
+
# Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
|
|
59
57
|
tags: nil,
|
|
60
58
|
request_options: {}
|
|
61
59
|
)
|
|
62
60
|
end
|
|
63
61
|
|
|
64
|
-
#
|
|
62
|
+
# Resend the original payload using the source’s current URL and secret. Available
|
|
63
|
+
# for 7 days after the event.
|
|
65
64
|
sig do
|
|
66
65
|
params(
|
|
67
66
|
delivery_id: String,
|
|
@@ -74,10 +73,9 @@ module ContextDev
|
|
|
74
73
|
def retry_(
|
|
75
74
|
# Path param: Delivery ID.
|
|
76
75
|
delivery_id,
|
|
77
|
-
# Body param: Resend
|
|
76
|
+
# Body param: Resend even if the delivery already succeeded. Defaults to false.
|
|
78
77
|
force: nil,
|
|
79
|
-
# Body param:
|
|
80
|
-
# characters.
|
|
78
|
+
# Body param: Labels for filtering usage in the dashboard.
|
|
81
79
|
tags: nil,
|
|
82
80
|
# Header param: Unique key to prevent duplicate retry requests.
|
|
83
81
|
idempotency_key: nil,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Resources
|
|
5
5
|
class Webhooks
|
|
6
|
-
# Inspect and retry
|
|
6
|
+
# Inspect and retry batch and monitor webhook deliveries.
|
|
7
7
|
sig { returns(ContextDev::Resources::Webhooks::Deliveries) }
|
|
8
8
|
attr_reader :deliveries
|
|
9
9
|
|
|
@@ -45,7 +45,6 @@ module ContextDev
|
|
|
45
45
|
timestamp: Time,
|
|
46
46
|
user_agent: String?,
|
|
47
47
|
zdr: bool,
|
|
48
|
-
key_metadata: ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata,
|
|
49
48
|
response: top
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -76,12 +75,6 @@ module ContextDev
|
|
|
76
75
|
|
|
77
76
|
attr_accessor zdr: bool
|
|
78
77
|
|
|
79
|
-
attr_reader key_metadata: ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata?
|
|
80
|
-
|
|
81
|
-
def key_metadata=: (
|
|
82
|
-
ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata
|
|
83
|
-
) -> ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata
|
|
84
|
-
|
|
85
78
|
attr_reader response: top?
|
|
86
79
|
|
|
87
80
|
def response=: (top) -> top
|
|
@@ -100,7 +93,6 @@ module ContextDev
|
|
|
100
93
|
timestamp: Time,
|
|
101
94
|
user_agent: String?,
|
|
102
95
|
zdr: bool,
|
|
103
|
-
?key_metadata: ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata,
|
|
104
96
|
?response: top
|
|
105
97
|
) -> void
|
|
106
98
|
|
|
@@ -118,7 +110,6 @@ module ContextDev
|
|
|
118
110
|
timestamp: Time,
|
|
119
111
|
user_agent: String?,
|
|
120
112
|
zdr: bool,
|
|
121
|
-
key_metadata: ContextDev::Models::LogRetrieveResponse::Data::KeyMetadata,
|
|
122
113
|
response: top
|
|
123
114
|
}
|
|
124
115
|
|
|
@@ -135,25 +126,6 @@ module ContextDev
|
|
|
135
126
|
|
|
136
127
|
def to_hash: -> { query: ::Hash[Symbol, top], body: top }
|
|
137
128
|
end
|
|
138
|
-
|
|
139
|
-
type key_metadata =
|
|
140
|
-
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
141
|
-
|
|
142
|
-
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
143
|
-
attr_accessor credits_consumed: Integer
|
|
144
|
-
|
|
145
|
-
attr_accessor credits_remaining: Integer
|
|
146
|
-
|
|
147
|
-
def initialize: (
|
|
148
|
-
credits_consumed: Integer,
|
|
149
|
-
credits_remaining: Integer
|
|
150
|
-
) -> void
|
|
151
|
-
|
|
152
|
-
def to_hash: -> {
|
|
153
|
-
credits_consumed: Integer,
|
|
154
|
-
credits_remaining: Integer
|
|
155
|
-
}
|
|
156
|
-
end
|
|
157
129
|
end
|
|
158
130
|
|
|
159
131
|
type key_metadata =
|