context.dev 1.36.0 → 2.1.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 +35 -0
- data/README.md +16 -9
- data/lib/context_dev/client.rb +7 -0
- data/lib/context_dev/models/brand_retrieve_params.rb +1079 -174
- data/lib/context_dev/models/monitor_create_params.rb +364 -0
- data/lib/context_dev/models/monitor_create_response.rb +608 -0
- data/lib/context_dev/models/monitor_delete_params.rb +20 -0
- data/lib/context_dev/models/monitor_delete_response.rb +22 -0
- data/lib/context_dev/models/monitor_list_account_changes_params.rb +93 -0
- data/lib/context_dev/models/monitor_list_account_changes_response.rb +199 -0
- data/lib/context_dev/models/monitor_list_account_runs_params.rb +55 -0
- data/lib/context_dev/models/monitor_list_account_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_list_changes_params.rb +57 -0
- data/lib/context_dev/models/monitor_list_changes_response.rb +198 -0
- data/lib/context_dev/models/monitor_list_params.rb +161 -0
- data/lib/context_dev/models/monitor_list_response.rb +631 -0
- data/lib/context_dev/models/monitor_list_runs_params.rb +62 -0
- data/lib/context_dev/models/monitor_list_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_retrieve_change_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +264 -0
- data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_response.rb +608 -0
- data/lib/context_dev/models/monitor_run_params.rb +20 -0
- data/lib/context_dev/models/monitor_run_response.rb +35 -0
- data/lib/context_dev/models/monitor_update_params.rb +371 -0
- data/lib/context_dev/models/monitor_update_response.rb +608 -0
- data/lib/context_dev/models/utility_prefetch_params.rb +70 -6
- data/lib/context_dev/models/utility_prefetch_response.rb +23 -1
- data/lib/context_dev/models/web_extract_response.rb +17 -1
- data/lib/context_dev/models/web_web_crawl_md_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_html_response.rb +10 -2
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -1
- data/lib/context_dev/models/web_web_scrape_md_params.rb +11 -1
- data/lib/context_dev/models.rb +20 -12
- data/lib/context_dev/resources/ai.rb +0 -33
- data/lib/context_dev/resources/brand.rb +9 -204
- data/lib/context_dev/resources/monitors.rb +352 -0
- data/lib/context_dev/resources/utility.rb +9 -35
- data/lib/context_dev/resources/web.rb +14 -4
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +23 -14
- data/rbi/context_dev/client.rbi +6 -0
- data/rbi/context_dev/models/brand_retrieve_params.rbi +3858 -678
- data/rbi/context_dev/models/monitor_create_params.rbi +641 -0
- data/rbi/context_dev/models/monitor_create_response.rbi +1020 -0
- data/rbi/context_dev/models/monitor_delete_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_delete_response.rbi +29 -0
- data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +211 -0
- data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +376 -0
- data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +464 -0
- data/rbi/context_dev/models/monitor_list_changes_params.rbi +91 -0
- data/rbi/context_dev/models/monitor_list_changes_response.rbi +372 -0
- data/rbi/context_dev/models/monitor_list_params.rbi +335 -0
- data/rbi/context_dev/models/monitor_list_response.rbi +1089 -0
- data/rbi/context_dev/models/monitor_list_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_runs_response.rbi +455 -0
- data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +469 -0
- data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +1028 -0
- data/rbi/context_dev/models/monitor_run_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_run_response.rbi +48 -0
- data/rbi/context_dev/models/monitor_update_params.rbi +681 -0
- data/rbi/context_dev/models/monitor_update_response.rbi +1020 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +129 -7
- data/rbi/context_dev/models/utility_prefetch_response.rbi +55 -3
- data/rbi/context_dev/models/web_extract_response.rbi +10 -0
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +29 -3
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +17 -0
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -0
- data/rbi/context_dev/models.rbi +23 -15
- data/rbi/context_dev/resources/ai.rbi +0 -28
- data/rbi/context_dev/resources/brand.rbi +16 -228
- data/rbi/context_dev/resources/monitors.rbi +286 -0
- data/rbi/context_dev/resources/utility.rbi +14 -29
- data/rbi/context_dev/resources/web.rbi +21 -0
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +1586 -281
- data/sig/context_dev/models/monitor_create_params.rbs +301 -0
- data/sig/context_dev/models/monitor_create_response.rbs +433 -0
- data/sig/context_dev/models/monitor_delete_params.rbs +23 -0
- data/sig/context_dev/models/monitor_delete_response.rbs +15 -0
- data/sig/context_dev/models/monitor_list_account_changes_params.rbs +104 -0
- data/sig/context_dev/models/monitor_list_account_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_account_runs_params.rbs +58 -0
- data/sig/context_dev/models/monitor_list_account_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_list_changes_params.rbs +61 -0
- data/sig/context_dev/models/monitor_list_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_params.rbs +160 -0
- data/sig/context_dev/models/monitor_list_response.rbs +460 -0
- data/sig/context_dev/models/monitor_list_runs_params.rbs +63 -0
- data/sig/context_dev/models/monitor_list_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_retrieve_change_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_change_response.rbs +221 -0
- data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_response.rbs +433 -0
- data/sig/context_dev/models/monitor_run_params.rbs +23 -0
- data/sig/context_dev/models/monitor_run_response.rbs +18 -0
- data/sig/context_dev/models/monitor_update_params.rbs +321 -0
- data/sig/context_dev/models/monitor_update_response.rbs +433 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +52 -4
- data/sig/context_dev/models/utility_prefetch_response.rbs +22 -3
- data/sig/context_dev/models/web_extract_response.rbs +5 -0
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +8 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +7 -0
- data/sig/context_dev/models.rbs +20 -12
- data/sig/context_dev/resources/ai.rbs +0 -8
- data/sig/context_dev/resources/brand.rbs +1 -56
- data/sig/context_dev/resources/monitors.rbs +101 -0
- data/sig/context_dev/resources/utility.rbs +2 -7
- data/sig/context_dev/resources/web.rbs +4 -0
- metadata +71 -44
- data/lib/context_dev/models/ai_ai_query_params.rb +0 -235
- data/lib/context_dev/models/ai_ai_query_response.rb +0 -133
- data/lib/context_dev/models/brand_identify_from_transaction_params.rb +0 -474
- data/lib/context_dev/models/brand_identify_from_transaction_response.rb +0 -1074
- data/lib/context_dev/models/brand_retrieve_by_email_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_email_response.rb +0 -1071
- data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_name_params.rb +0 -452
- data/lib/context_dev/models/brand_retrieve_by_name_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +0 -283
- data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +0 -1072
- data/lib/context_dev/models/utility_prefetch_by_email_params.rb +0 -37
- data/lib/context_dev/models/utility_prefetch_by_email_response.rb +0 -68
- data/rbi/context_dev/models/ai_ai_query_params.rbi +0 -504
- data/rbi/context_dev/models/ai_ai_query_response.rbi +0 -267
- data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +0 -2020
- data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +0 -3515
- data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +0 -3511
- data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +0 -1982
- data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +0 -1153
- data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +0 -3512
- data/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +0 -65
- data/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +0 -132
- data/sig/context_dev/models/ai_ai_query_params.rbs +0 -218
- data/sig/context_dev/models/ai_ai_query_response.rbs +0 -121
- data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +0 -822
- data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +0 -801
- data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +0 -467
- data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +0 -1441
- data/sig/context_dev/models/utility_prefetch_by_email_params.rbs +0 -30
- data/sig/context_dev/models/utility_prefetch_by_email_response.rbs +0 -64
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ContextDev
|
|
4
|
-
module Models
|
|
5
|
-
# @see ContextDev::Resources::AI#ai_query
|
|
6
|
-
class AIAIQueryParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
-
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute data_to_extract
|
|
11
|
-
# Array of data points to extract from the website
|
|
12
|
-
#
|
|
13
|
-
# @return [Array<ContextDev::Models::AIAIQueryParams::DataToExtract>]
|
|
14
|
-
required :data_to_extract,
|
|
15
|
-
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::AIAIQueryParams::DataToExtract] }
|
|
16
|
-
|
|
17
|
-
# @!attribute domain
|
|
18
|
-
# The domain name to analyze
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :domain, String
|
|
22
|
-
|
|
23
|
-
# @!attribute specific_pages
|
|
24
|
-
# Optional object specifying which pages to analyze
|
|
25
|
-
#
|
|
26
|
-
# @return [ContextDev::Models::AIAIQueryParams::SpecificPages, nil]
|
|
27
|
-
optional :specific_pages, -> { ContextDev::AIAIQueryParams::SpecificPages }
|
|
28
|
-
|
|
29
|
-
# @!attribute timeout_ms
|
|
30
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
31
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
32
|
-
# value is 300000ms (5 minutes).
|
|
33
|
-
#
|
|
34
|
-
# @return [Integer, nil]
|
|
35
|
-
optional :timeout_ms, Integer, api_name: :timeoutMS
|
|
36
|
-
|
|
37
|
-
# @!method initialize(data_to_extract:, domain:, specific_pages: nil, timeout_ms: nil, request_options: {})
|
|
38
|
-
# Some parameter documentations has been truncated, see
|
|
39
|
-
# {ContextDev::Models::AIAIQueryParams} for more details.
|
|
40
|
-
#
|
|
41
|
-
# @param data_to_extract [Array<ContextDev::Models::AIAIQueryParams::DataToExtract>] Array of data points to extract from the website
|
|
42
|
-
#
|
|
43
|
-
# @param domain [String] The domain name to analyze
|
|
44
|
-
#
|
|
45
|
-
# @param specific_pages [ContextDev::Models::AIAIQueryParams::SpecificPages] Optional object specifying which pages to analyze
|
|
46
|
-
#
|
|
47
|
-
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
48
|
-
#
|
|
49
|
-
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
-
|
|
51
|
-
class DataToExtract < ContextDev::Internal::Type::BaseModel
|
|
52
|
-
# @!attribute datapoint_description
|
|
53
|
-
# Description of what to extract
|
|
54
|
-
#
|
|
55
|
-
# @return [String]
|
|
56
|
-
required :datapoint_description, String
|
|
57
|
-
|
|
58
|
-
# @!attribute datapoint_example
|
|
59
|
-
# Example of the expected value
|
|
60
|
-
#
|
|
61
|
-
# @return [String]
|
|
62
|
-
required :datapoint_example, String
|
|
63
|
-
|
|
64
|
-
# @!attribute datapoint_name
|
|
65
|
-
# Name of the data point to extract
|
|
66
|
-
#
|
|
67
|
-
# @return [String]
|
|
68
|
-
required :datapoint_name, String
|
|
69
|
-
|
|
70
|
-
# @!attribute datapoint_type
|
|
71
|
-
# Type of the data point
|
|
72
|
-
#
|
|
73
|
-
# @return [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointType]
|
|
74
|
-
required :datapoint_type, enum: -> { ContextDev::AIAIQueryParams::DataToExtract::DatapointType }
|
|
75
|
-
|
|
76
|
-
# @!attribute datapoint_list_type
|
|
77
|
-
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
78
|
-
# Use 'object' to extract an array of objects matching a schema.
|
|
79
|
-
#
|
|
80
|
-
# @return [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointListType, nil]
|
|
81
|
-
optional :datapoint_list_type, enum: -> { ContextDev::AIAIQueryParams::DataToExtract::DatapointListType }
|
|
82
|
-
|
|
83
|
-
# @!attribute datapoint_object_schema
|
|
84
|
-
# Schema definition for objects when datapoint_list_type is 'object'. Provide a
|
|
85
|
-
# map of field names to their scalar types.
|
|
86
|
-
#
|
|
87
|
-
# @return [Hash{Symbol=>Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointObjectSchema}, nil]
|
|
88
|
-
optional :datapoint_object_schema,
|
|
89
|
-
-> { ContextDev::Internal::Type::HashOf[enum: ContextDev::AIAIQueryParams::DataToExtract::DatapointObjectSchema] }
|
|
90
|
-
|
|
91
|
-
# @!method initialize(datapoint_description:, datapoint_example:, datapoint_name:, datapoint_type:, datapoint_list_type: nil, datapoint_object_schema: nil)
|
|
92
|
-
# Some parameter documentations has been truncated, see
|
|
93
|
-
# {ContextDev::Models::AIAIQueryParams::DataToExtract} for more details.
|
|
94
|
-
#
|
|
95
|
-
# @param datapoint_description [String] Description of what to extract
|
|
96
|
-
#
|
|
97
|
-
# @param datapoint_example [String] Example of the expected value
|
|
98
|
-
#
|
|
99
|
-
# @param datapoint_name [String] Name of the data point to extract
|
|
100
|
-
#
|
|
101
|
-
# @param datapoint_type [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointType] Type of the data point
|
|
102
|
-
#
|
|
103
|
-
# @param datapoint_list_type [Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointListType] Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. U
|
|
104
|
-
#
|
|
105
|
-
# @param datapoint_object_schema [Hash{Symbol=>Symbol, ContextDev::Models::AIAIQueryParams::DataToExtract::DatapointObjectSchema}] Schema definition for objects when datapoint_list_type is 'object'. Provide a ma
|
|
106
|
-
|
|
107
|
-
# Type of the data point
|
|
108
|
-
#
|
|
109
|
-
# @see ContextDev::Models::AIAIQueryParams::DataToExtract#datapoint_type
|
|
110
|
-
module DatapointType
|
|
111
|
-
extend ContextDev::Internal::Type::Enum
|
|
112
|
-
|
|
113
|
-
TEXT = :text
|
|
114
|
-
NUMBER = :number
|
|
115
|
-
DATE = :date
|
|
116
|
-
BOOLEAN = :boolean
|
|
117
|
-
LIST = :list
|
|
118
|
-
URL = :url
|
|
119
|
-
|
|
120
|
-
# @!method self.values
|
|
121
|
-
# @return [Array<Symbol>]
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
125
|
-
# Use 'object' to extract an array of objects matching a schema.
|
|
126
|
-
#
|
|
127
|
-
# @see ContextDev::Models::AIAIQueryParams::DataToExtract#datapoint_list_type
|
|
128
|
-
module DatapointListType
|
|
129
|
-
extend ContextDev::Internal::Type::Enum
|
|
130
|
-
|
|
131
|
-
STRING = :string
|
|
132
|
-
TEXT = :text
|
|
133
|
-
NUMBER = :number
|
|
134
|
-
DATE = :date
|
|
135
|
-
BOOLEAN = :boolean
|
|
136
|
-
LIST = :list
|
|
137
|
-
URL = :url
|
|
138
|
-
OBJECT = :object
|
|
139
|
-
|
|
140
|
-
# @!method self.values
|
|
141
|
-
# @return [Array<Symbol>]
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
module DatapointObjectSchema
|
|
145
|
-
extend ContextDev::Internal::Type::Enum
|
|
146
|
-
|
|
147
|
-
STRING = :string
|
|
148
|
-
NUMBER = :number
|
|
149
|
-
DATE = :date
|
|
150
|
-
BOOLEAN = :boolean
|
|
151
|
-
|
|
152
|
-
# @!method self.values
|
|
153
|
-
# @return [Array<Symbol>]
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
class SpecificPages < ContextDev::Internal::Type::BaseModel
|
|
158
|
-
# @!attribute about_us
|
|
159
|
-
# Whether to analyze the about us page
|
|
160
|
-
#
|
|
161
|
-
# @return [Boolean, nil]
|
|
162
|
-
optional :about_us, ContextDev::Internal::Type::Boolean
|
|
163
|
-
|
|
164
|
-
# @!attribute blog
|
|
165
|
-
# Whether to analyze the blog
|
|
166
|
-
#
|
|
167
|
-
# @return [Boolean, nil]
|
|
168
|
-
optional :blog, ContextDev::Internal::Type::Boolean
|
|
169
|
-
|
|
170
|
-
# @!attribute careers
|
|
171
|
-
# Whether to analyze the careers page
|
|
172
|
-
#
|
|
173
|
-
# @return [Boolean, nil]
|
|
174
|
-
optional :careers, ContextDev::Internal::Type::Boolean
|
|
175
|
-
|
|
176
|
-
# @!attribute contact_us
|
|
177
|
-
# Whether to analyze the contact us page
|
|
178
|
-
#
|
|
179
|
-
# @return [Boolean, nil]
|
|
180
|
-
optional :contact_us, ContextDev::Internal::Type::Boolean
|
|
181
|
-
|
|
182
|
-
# @!attribute faq
|
|
183
|
-
# Whether to analyze the FAQ page
|
|
184
|
-
#
|
|
185
|
-
# @return [Boolean, nil]
|
|
186
|
-
optional :faq, ContextDev::Internal::Type::Boolean
|
|
187
|
-
|
|
188
|
-
# @!attribute home_page
|
|
189
|
-
# Whether to analyze the home page
|
|
190
|
-
#
|
|
191
|
-
# @return [Boolean, nil]
|
|
192
|
-
optional :home_page, ContextDev::Internal::Type::Boolean
|
|
193
|
-
|
|
194
|
-
# @!attribute pricing
|
|
195
|
-
# Whether to analyze the pricing page
|
|
196
|
-
#
|
|
197
|
-
# @return [Boolean, nil]
|
|
198
|
-
optional :pricing, ContextDev::Internal::Type::Boolean
|
|
199
|
-
|
|
200
|
-
# @!attribute privacy_policy
|
|
201
|
-
# Whether to analyze the privacy policy page
|
|
202
|
-
#
|
|
203
|
-
# @return [Boolean, nil]
|
|
204
|
-
optional :privacy_policy, ContextDev::Internal::Type::Boolean
|
|
205
|
-
|
|
206
|
-
# @!attribute terms_and_conditions
|
|
207
|
-
# Whether to analyze the terms and conditions page
|
|
208
|
-
#
|
|
209
|
-
# @return [Boolean, nil]
|
|
210
|
-
optional :terms_and_conditions, ContextDev::Internal::Type::Boolean
|
|
211
|
-
|
|
212
|
-
# @!method initialize(about_us: nil, blog: nil, careers: nil, contact_us: nil, faq: nil, home_page: nil, pricing: nil, privacy_policy: nil, terms_and_conditions: nil)
|
|
213
|
-
# Optional object specifying which pages to analyze
|
|
214
|
-
#
|
|
215
|
-
# @param about_us [Boolean] Whether to analyze the about us page
|
|
216
|
-
#
|
|
217
|
-
# @param blog [Boolean] Whether to analyze the blog
|
|
218
|
-
#
|
|
219
|
-
# @param careers [Boolean] Whether to analyze the careers page
|
|
220
|
-
#
|
|
221
|
-
# @param contact_us [Boolean] Whether to analyze the contact us page
|
|
222
|
-
#
|
|
223
|
-
# @param faq [Boolean] Whether to analyze the FAQ page
|
|
224
|
-
#
|
|
225
|
-
# @param home_page [Boolean] Whether to analyze the home page
|
|
226
|
-
#
|
|
227
|
-
# @param pricing [Boolean] Whether to analyze the pricing page
|
|
228
|
-
#
|
|
229
|
-
# @param privacy_policy [Boolean] Whether to analyze the privacy policy page
|
|
230
|
-
#
|
|
231
|
-
# @param terms_and_conditions [Boolean] Whether to analyze the terms and conditions page
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
end
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ContextDev
|
|
4
|
-
module Models
|
|
5
|
-
# @see ContextDev::Resources::AI#ai_query
|
|
6
|
-
class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data_extracted
|
|
8
|
-
# Array of extracted data points
|
|
9
|
-
#
|
|
10
|
-
# @return [Array<ContextDev::Models::AIAIQueryResponse::DataExtracted>, nil]
|
|
11
|
-
optional :data_extracted,
|
|
12
|
-
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIAIQueryResponse::DataExtracted] }
|
|
13
|
-
|
|
14
|
-
# @!attribute domain
|
|
15
|
-
# The domain that was analyzed
|
|
16
|
-
#
|
|
17
|
-
# @return [String, nil]
|
|
18
|
-
optional :domain, String
|
|
19
|
-
|
|
20
|
-
# @!attribute key_metadata
|
|
21
|
-
# Metadata about the API key used for the request. Included in every response
|
|
22
|
-
# whenever a valid API key is provided, even when the response status is not 200.
|
|
23
|
-
#
|
|
24
|
-
# @return [ContextDev::Models::AIAIQueryResponse::KeyMetadata, nil]
|
|
25
|
-
optional :key_metadata, -> { ContextDev::Models::AIAIQueryResponse::KeyMetadata }
|
|
26
|
-
|
|
27
|
-
# @!attribute status
|
|
28
|
-
# Status of the response, e.g., 'ok'
|
|
29
|
-
#
|
|
30
|
-
# @return [String, nil]
|
|
31
|
-
optional :status, String
|
|
32
|
-
|
|
33
|
-
# @!attribute urls_analyzed
|
|
34
|
-
# List of URLs that were analyzed
|
|
35
|
-
#
|
|
36
|
-
# @return [Array<String>, nil]
|
|
37
|
-
optional :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String]
|
|
38
|
-
|
|
39
|
-
# @!method initialize(data_extracted: nil, domain: nil, key_metadata: nil, status: nil, urls_analyzed: nil)
|
|
40
|
-
# Some parameter documentations has been truncated, see
|
|
41
|
-
# {ContextDev::Models::AIAIQueryResponse} for more details.
|
|
42
|
-
#
|
|
43
|
-
# @param data_extracted [Array<ContextDev::Models::AIAIQueryResponse::DataExtracted>] Array of extracted data points
|
|
44
|
-
#
|
|
45
|
-
# @param domain [String] The domain that was analyzed
|
|
46
|
-
#
|
|
47
|
-
# @param key_metadata [ContextDev::Models::AIAIQueryResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
|
|
48
|
-
#
|
|
49
|
-
# @param status [String] Status of the response, e.g., 'ok'
|
|
50
|
-
#
|
|
51
|
-
# @param urls_analyzed [Array<String>] List of URLs that were analyzed
|
|
52
|
-
|
|
53
|
-
class DataExtracted < ContextDev::Internal::Type::BaseModel
|
|
54
|
-
# @!attribute datapoint_name
|
|
55
|
-
# Name of the extracted data point
|
|
56
|
-
#
|
|
57
|
-
# @return [String, nil]
|
|
58
|
-
optional :datapoint_name, String
|
|
59
|
-
|
|
60
|
-
# @!attribute datapoint_value
|
|
61
|
-
# Value of the extracted data point. Can be a primitive type, an array of
|
|
62
|
-
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
63
|
-
#
|
|
64
|
-
# @return [String, Float, Boolean, Array<String>, Array<Float>, Array<Object>, nil]
|
|
65
|
-
optional :datapoint_value,
|
|
66
|
-
union: -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue }
|
|
67
|
-
|
|
68
|
-
# @!method initialize(datapoint_name: nil, datapoint_value: nil)
|
|
69
|
-
# Some parameter documentations has been truncated, see
|
|
70
|
-
# {ContextDev::Models::AIAIQueryResponse::DataExtracted} for more details.
|
|
71
|
-
#
|
|
72
|
-
# @param datapoint_name [String] Name of the extracted data point
|
|
73
|
-
#
|
|
74
|
-
# @param datapoint_value [String, Float, Boolean, Array<String>, Array<Float>, Array<Object>] Value of the extracted data point. Can be a primitive type, an array of primitiv
|
|
75
|
-
|
|
76
|
-
# Value of the extracted data point. Can be a primitive type, an array of
|
|
77
|
-
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
78
|
-
#
|
|
79
|
-
# @see ContextDev::Models::AIAIQueryResponse::DataExtracted#datapoint_value
|
|
80
|
-
module DatapointValue
|
|
81
|
-
extend ContextDev::Internal::Type::Union
|
|
82
|
-
|
|
83
|
-
variant String
|
|
84
|
-
|
|
85
|
-
variant Float
|
|
86
|
-
|
|
87
|
-
variant ContextDev::Internal::Type::Boolean
|
|
88
|
-
|
|
89
|
-
variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::StringArray }
|
|
90
|
-
|
|
91
|
-
variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::FloatArray }
|
|
92
|
-
|
|
93
|
-
variant -> { ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::UnionMember5Array }
|
|
94
|
-
|
|
95
|
-
# @!method self.variants
|
|
96
|
-
# @return [Array(String, Float, Boolean, Array<String>, Array<Float>, Array<Object>)]
|
|
97
|
-
|
|
98
|
-
# @type [ContextDev::Internal::Type::Converter]
|
|
99
|
-
StringArray = ContextDev::Internal::Type::ArrayOf[String]
|
|
100
|
-
|
|
101
|
-
# @type [ContextDev::Internal::Type::Converter]
|
|
102
|
-
FloatArray = ContextDev::Internal::Type::ArrayOf[Float]
|
|
103
|
-
|
|
104
|
-
# @type [ContextDev::Internal::Type::Converter]
|
|
105
|
-
UnionMember5Array = ContextDev::Internal::Type::ArrayOf[ContextDev::Internal::Type::Unknown]
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
# @see ContextDev::Models::AIAIQueryResponse#key_metadata
|
|
110
|
-
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
111
|
-
# @!attribute credits_consumed
|
|
112
|
-
# The number of credits consumed by this request.
|
|
113
|
-
#
|
|
114
|
-
# @return [Integer]
|
|
115
|
-
required :credits_consumed, Integer
|
|
116
|
-
|
|
117
|
-
# @!attribute credits_remaining
|
|
118
|
-
# The number of credits remaining for your organization after this request.
|
|
119
|
-
#
|
|
120
|
-
# @return [Integer]
|
|
121
|
-
required :credits_remaining, Integer
|
|
122
|
-
|
|
123
|
-
# @!method initialize(credits_consumed:, credits_remaining:)
|
|
124
|
-
# Metadata about the API key used for the request. Included in every response
|
|
125
|
-
# whenever a valid API key is provided, even when the response status is not 200.
|
|
126
|
-
#
|
|
127
|
-
# @param credits_consumed [Integer] The number of credits consumed by this request.
|
|
128
|
-
#
|
|
129
|
-
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
|
|
130
|
-
end
|
|
131
|
-
end
|
|
132
|
-
end
|
|
133
|
-
end
|