context.dev 0.1.0 → 0.2.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 +10 -0
- data/README.md +9 -9
- data/lib/context_dev/client.rb +20 -0
- data/lib/context_dev/internal/type/base_model.rb +4 -4
- data/lib/context_dev/models/{brand_ai_query_params.rb → ai_ai_query_params.rb} +21 -22
- data/lib/context_dev/models/{brand_ai_query_response.rb → ai_ai_query_response.rb} +11 -11
- data/lib/context_dev/models/{brand_ai_product_params.rb → ai_extract_product_params.rb} +3 -3
- data/lib/context_dev/models/{brand_ai_product_response.rb → ai_extract_product_response.rb} +18 -18
- data/lib/context_dev/models/{brand_ai_products_params.rb → ai_extract_products_params.rb} +11 -10
- data/lib/context_dev/models/{brand_ai_products_response.rb → ai_extract_products_response.rb} +13 -13
- data/lib/context_dev/models/brand_identify_from_transaction_params.rb +3 -0
- data/lib/context_dev/models/brand_retrieve_by_email_params.rb +3 -0
- data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +3 -0
- data/lib/context_dev/models/brand_retrieve_by_name_params.rb +3 -0
- data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +3 -0
- data/lib/context_dev/models/brand_retrieve_params.rb +3 -0
- data/lib/context_dev/models/{brand_retrieve_naics_params.rb → industry_retrieve_naics_params.rb} +3 -3
- data/lib/context_dev/models/{brand_retrieve_naics_response.rb → industry_retrieve_naics_response.rb} +9 -9
- data/lib/context_dev/models/{brand_fonts_params.rb → style_extract_fonts_params.rb} +3 -3
- data/lib/context_dev/models/{brand_fonts_response.rb → style_extract_fonts_response.rb} +6 -5
- data/lib/context_dev/models/{brand_styleguide_params.rb → style_extract_styleguide_params.rb} +6 -6
- data/lib/context_dev/models/{brand_styleguide_response.rb → style_extract_styleguide_response.rb} +83 -74
- data/lib/context_dev/models/{brand_prefetch_by_email_params.rb → utility_prefetch_by_email_params.rb} +3 -3
- data/lib/context_dev/models/{brand_prefetch_by_email_response.rb → utility_prefetch_by_email_response.rb} +2 -2
- data/lib/context_dev/models/{brand_prefetch_params.rb → utility_prefetch_params.rb} +3 -3
- data/lib/context_dev/models/{brand_prefetch_response.rb → utility_prefetch_response.rb} +2 -2
- data/lib/context_dev/models/{brand_screenshot_params.rb → web_screenshot_params.rb} +12 -12
- data/lib/context_dev/models/{brand_screenshot_response.rb → web_screenshot_response.rb} +6 -6
- data/lib/context_dev/models/{brand_web_scrape_html_params.rb → web_web_scrape_html_params.rb} +2 -2
- data/lib/context_dev/models/{brand_web_scrape_html_response.rb → web_web_scrape_html_response.rb} +6 -6
- data/lib/context_dev/models/{brand_web_scrape_images_params.rb → web_web_scrape_images_params.rb} +2 -2
- data/lib/context_dev/models/{brand_web_scrape_images_response.rb → web_web_scrape_images_response.rb} +17 -17
- data/lib/context_dev/models/{brand_web_scrape_md_params.rb → web_web_scrape_md_params.rb} +3 -3
- data/lib/context_dev/models/{brand_web_scrape_md_response.rb → web_web_scrape_md_response.rb} +6 -6
- data/lib/context_dev/models/{brand_web_scrape_sitemap_params.rb → web_web_scrape_sitemap_params.rb} +3 -3
- data/lib/context_dev/models/{brand_web_scrape_sitemap_response.rb → web_web_scrape_sitemap_response.rb} +10 -10
- data/lib/context_dev/models.rb +17 -17
- data/lib/context_dev/resources/ai.rb +99 -0
- data/lib/context_dev/resources/brand.rb +0 -397
- data/lib/context_dev/resources/industry.rb +50 -0
- data/lib/context_dev/resources/style.rb +78 -0
- data/lib/context_dev/resources/utility.rb +76 -0
- data/lib/context_dev/resources/web.rb +164 -0
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +31 -26
- data/rbi/context_dev/client.rbi +15 -0
- data/rbi/context_dev/models/{brand_ai_query_params.rbi → ai_ai_query_params.rbi} +46 -46
- data/rbi/context_dev/models/{brand_ai_query_response.rbi → ai_ai_query_response.rbi} +12 -12
- data/rbi/context_dev/models/{brand_ai_product_params.rbi → ai_extract_product_params.rbi} +5 -2
- data/rbi/context_dev/models/{brand_ai_product_response.rbi → ai_extract_product_response.rbi} +40 -35
- data/rbi/context_dev/models/{brand_ai_products_params.rbi → ai_extract_products_params.rbi} +13 -13
- data/rbi/context_dev/models/{brand_ai_products_response.rbi → ai_extract_products_response.rbi} +26 -26
- data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +15 -0
- data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +15 -0
- data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +15 -0
- data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +15 -0
- data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +15 -0
- data/rbi/context_dev/models/brand_retrieve_params.rbi +15 -0
- data/rbi/context_dev/models/{brand_retrieve_naics_params.rbi → industry_retrieve_naics_params.rbi} +2 -2
- data/rbi/context_dev/models/{brand_retrieve_naics_response.rbi → industry_retrieve_naics_response.rbi} +15 -15
- data/rbi/context_dev/models/{brand_fonts_params.rbi → style_extract_fonts_params.rbi} +5 -2
- data/rbi/context_dev/models/{brand_fonts_response.rbi → style_extract_fonts_response.rbi} +12 -6
- data/rbi/context_dev/models/{brand_styleguide_params.rbi → style_extract_styleguide_params.rbi} +15 -10
- data/rbi/context_dev/models/{brand_styleguide_response.rbi → style_extract_styleguide_response.rbi} +98 -95
- data/rbi/context_dev/models/{brand_prefetch_by_email_params.rbi → utility_prefetch_by_email_params.rbi} +2 -2
- data/rbi/context_dev/models/{brand_prefetch_by_email_response.rbi → utility_prefetch_by_email_response.rbi} +2 -2
- data/rbi/context_dev/models/{brand_prefetch_params.rbi → utility_prefetch_params.rbi} +5 -2
- data/rbi/context_dev/models/{brand_prefetch_response.rbi → utility_prefetch_response.rbi} +2 -2
- data/rbi/context_dev/models/{brand_screenshot_params.rbi → web_screenshot_params.rbi} +32 -42
- data/rbi/context_dev/models/{brand_screenshot_response.rbi → web_screenshot_response.rbi} +10 -10
- data/rbi/context_dev/models/{brand_web_scrape_html_params.rbi → web_web_scrape_html_params.rbi} +2 -2
- data/rbi/context_dev/models/{brand_web_scrape_html_response.rbi → web_web_scrape_html_response.rbi} +8 -8
- data/rbi/context_dev/models/{brand_web_scrape_images_params.rbi → web_web_scrape_images_params.rbi} +2 -2
- data/rbi/context_dev/models/{brand_web_scrape_images_response.rbi → web_web_scrape_images_response.rbi} +30 -32
- data/rbi/context_dev/models/{brand_web_scrape_md_params.rbi → web_web_scrape_md_params.rbi} +2 -5
- data/rbi/context_dev/models/{brand_web_scrape_md_response.rbi → web_web_scrape_md_response.rbi} +8 -8
- data/rbi/context_dev/models/{brand_web_scrape_sitemap_params.rbi → web_web_scrape_sitemap_params.rbi} +2 -2
- data/rbi/context_dev/models/{brand_web_scrape_sitemap_response.rbi → web_web_scrape_sitemap_response.rbi} +13 -13
- data/rbi/context_dev/models.rbi +19 -17
- data/rbi/context_dev/resources/ai.rbi +76 -0
- data/rbi/context_dev/resources/brand.rbi +0 -303
- data/rbi/context_dev/resources/industry.rbi +40 -0
- data/rbi/context_dev/resources/style.rbi +67 -0
- data/rbi/context_dev/resources/utility.rbi +60 -0
- data/rbi/context_dev/resources/web.rbi +121 -0
- data/sig/context_dev/client.rbs +10 -0
- data/sig/context_dev/models/{brand_ai_query_params.rbs → ai_ai_query_params.rbs} +31 -31
- data/sig/context_dev/models/{brand_ai_query_response.rbs → ai_ai_query_response.rbs} +15 -15
- data/sig/context_dev/models/{brand_ai_product_params.rbs → ai_extract_product_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_ai_product_response.rbs → ai_extract_product_response.rbs} +21 -21
- data/sig/context_dev/models/{brand_ai_products_params.rbs → ai_extract_products_params.rbs} +9 -9
- data/sig/context_dev/models/{brand_ai_products_response.rbs → ai_extract_products_response.rbs} +18 -18
- data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +6 -0
- data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +6 -0
- data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +6 -0
- data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +6 -0
- data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +6 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +6 -0
- data/sig/context_dev/models/{brand_retrieve_naics_params.rbs → industry_retrieve_naics_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_retrieve_naics_response.rbs → industry_retrieve_naics_response.rbs} +13 -13
- data/sig/context_dev/models/{brand_fonts_params.rbs → style_extract_fonts_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_fonts_response.rbs → style_extract_fonts_response.rbs} +6 -6
- data/sig/context_dev/models/{brand_styleguide_params.rbs → style_extract_styleguide_params.rbs} +9 -9
- data/sig/context_dev/models/{brand_styleguide_response.rbs → style_extract_styleguide_response.rbs} +111 -111
- data/sig/context_dev/models/{brand_prefetch_by_email_params.rbs → utility_prefetch_by_email_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_prefetch_by_email_response.rbs → utility_prefetch_by_email_response.rbs} +2 -2
- data/sig/context_dev/models/{brand_prefetch_params.rbs → utility_prefetch_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_prefetch_response.rbs → utility_prefetch_response.rbs} +2 -2
- data/sig/context_dev/models/web_screenshot_params.rbs +100 -0
- data/sig/context_dev/models/{brand_screenshot_response.rbs → web_screenshot_response.rbs} +9 -9
- data/sig/context_dev/models/{brand_web_scrape_images_params.rbs → web_web_scrape_html_params.rbs} +2 -2
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +40 -0
- data/sig/context_dev/models/{brand_web_scrape_html_params.rbs → web_web_scrape_images_params.rbs} +2 -2
- data/sig/context_dev/models/web_web_scrape_images_response.rbs +98 -0
- data/sig/context_dev/models/{brand_web_scrape_md_params.rbs → web_web_scrape_md_params.rbs} +2 -2
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +40 -0
- data/sig/context_dev/models/{brand_web_scrape_sitemap_params.rbs → web_web_scrape_sitemap_params.rbs} +2 -2
- data/sig/context_dev/models/{brand_web_scrape_sitemap_response.rbs → web_web_scrape_sitemap_response.rbs} +11 -11
- data/sig/context_dev/models.rbs +17 -17
- data/sig/context_dev/resources/ai.rbs +26 -0
- data/sig/context_dev/resources/brand.rbs +0 -84
- data/sig/context_dev/resources/industry.rbs +15 -0
- data/sig/context_dev/resources/style.rbs +21 -0
- data/sig/context_dev/resources/utility.rbs +19 -0
- data/sig/context_dev/resources/web.rbs +38 -0
- metadata +94 -79
- data/sig/context_dev/models/brand_screenshot_params.rbs +0 -100
- data/sig/context_dev/models/brand_web_scrape_html_response.rbs +0 -40
- data/sig/context_dev/models/brand_web_scrape_images_response.rbs +0 -98
- data/sig/context_dev/models/brand_web_scrape_md_response.rbs +0 -40
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
9
|
-
ContextDev::Models::
|
|
9
|
+
ContextDev::Models::AIAIQueryResponse,
|
|
10
10
|
ContextDev::Internal::AnyHash
|
|
11
11
|
)
|
|
12
12
|
end
|
|
@@ -15,7 +15,7 @@ module ContextDev
|
|
|
15
15
|
sig do
|
|
16
16
|
returns(
|
|
17
17
|
T.nilable(
|
|
18
|
-
T::Array[ContextDev::Models::
|
|
18
|
+
T::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted]
|
|
19
19
|
)
|
|
20
20
|
)
|
|
21
21
|
end
|
|
@@ -25,7 +25,7 @@ module ContextDev
|
|
|
25
25
|
params(
|
|
26
26
|
data_extracted:
|
|
27
27
|
T::Array[
|
|
28
|
-
ContextDev::Models::
|
|
28
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::OrHash
|
|
29
29
|
]
|
|
30
30
|
).void
|
|
31
31
|
end
|
|
@@ -56,7 +56,7 @@ module ContextDev
|
|
|
56
56
|
params(
|
|
57
57
|
data_extracted:
|
|
58
58
|
T::Array[
|
|
59
|
-
ContextDev::Models::
|
|
59
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::OrHash
|
|
60
60
|
],
|
|
61
61
|
domain: String,
|
|
62
62
|
status: String,
|
|
@@ -79,7 +79,7 @@ module ContextDev
|
|
|
79
79
|
override.returns(
|
|
80
80
|
{
|
|
81
81
|
data_extracted:
|
|
82
|
-
T::Array[ContextDev::Models::
|
|
82
|
+
T::Array[ContextDev::Models::AIAIQueryResponse::DataExtracted],
|
|
83
83
|
domain: String,
|
|
84
84
|
status: String,
|
|
85
85
|
urls_analyzed: T::Array[String]
|
|
@@ -93,7 +93,7 @@ module ContextDev
|
|
|
93
93
|
OrHash =
|
|
94
94
|
T.type_alias do
|
|
95
95
|
T.any(
|
|
96
|
-
ContextDev::Models::
|
|
96
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted,
|
|
97
97
|
ContextDev::Internal::AnyHash
|
|
98
98
|
)
|
|
99
99
|
end
|
|
@@ -110,7 +110,7 @@ module ContextDev
|
|
|
110
110
|
sig do
|
|
111
111
|
returns(
|
|
112
112
|
T.nilable(
|
|
113
|
-
ContextDev::Models::
|
|
113
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants
|
|
114
114
|
)
|
|
115
115
|
)
|
|
116
116
|
end
|
|
@@ -119,7 +119,7 @@ module ContextDev
|
|
|
119
119
|
sig do
|
|
120
120
|
params(
|
|
121
121
|
datapoint_value:
|
|
122
|
-
ContextDev::Models::
|
|
122
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants
|
|
123
123
|
).void
|
|
124
124
|
end
|
|
125
125
|
attr_writer :datapoint_value
|
|
@@ -128,7 +128,7 @@ module ContextDev
|
|
|
128
128
|
params(
|
|
129
129
|
datapoint_name: String,
|
|
130
130
|
datapoint_value:
|
|
131
|
-
ContextDev::Models::
|
|
131
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants
|
|
132
132
|
).returns(T.attached_class)
|
|
133
133
|
end
|
|
134
134
|
def self.new(
|
|
@@ -145,7 +145,7 @@ module ContextDev
|
|
|
145
145
|
{
|
|
146
146
|
datapoint_name: String,
|
|
147
147
|
datapoint_value:
|
|
148
|
-
ContextDev::Models::
|
|
148
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants
|
|
149
149
|
}
|
|
150
150
|
)
|
|
151
151
|
end
|
|
@@ -172,7 +172,7 @@ module ContextDev
|
|
|
172
172
|
sig do
|
|
173
173
|
override.returns(
|
|
174
174
|
T::Array[
|
|
175
|
-
ContextDev::Models::
|
|
175
|
+
ContextDev::Models::AIAIQueryResponse::DataExtracted::DatapointValue::Variants
|
|
176
176
|
]
|
|
177
177
|
)
|
|
178
178
|
end
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AIExtractProductParams < ContextDev::Internal::Type::BaseModel
|
|
6
6
|
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include ContextDev::Internal::Type::RequestParameters
|
|
8
8
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias do
|
|
11
|
-
T.any(
|
|
11
|
+
T.any(
|
|
12
|
+
ContextDev::AIExtractProductParams,
|
|
13
|
+
ContextDev::Internal::AnyHash
|
|
14
|
+
)
|
|
12
15
|
end
|
|
13
16
|
|
|
14
17
|
# The product page URL to extract product data from.
|
data/rbi/context_dev/models/{brand_ai_product_response.rbi → ai_extract_product_response.rbi}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
9
|
-
ContextDev::Models::
|
|
9
|
+
ContextDev::Models::AIExtractProductResponse,
|
|
10
10
|
ContextDev::Internal::AnyHash
|
|
11
11
|
)
|
|
12
12
|
end
|
|
@@ -22,7 +22,7 @@ module ContextDev
|
|
|
22
22
|
sig do
|
|
23
23
|
returns(
|
|
24
24
|
T.nilable(
|
|
25
|
-
ContextDev::Models::
|
|
25
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
26
26
|
)
|
|
27
27
|
)
|
|
28
28
|
end
|
|
@@ -30,7 +30,9 @@ module ContextDev
|
|
|
30
30
|
|
|
31
31
|
# The extracted product data, or null if not a product page
|
|
32
32
|
sig do
|
|
33
|
-
returns(
|
|
33
|
+
returns(
|
|
34
|
+
T.nilable(ContextDev::Models::AIExtractProductResponse::Product)
|
|
35
|
+
)
|
|
34
36
|
end
|
|
35
37
|
attr_reader :product
|
|
36
38
|
|
|
@@ -38,7 +40,7 @@ module ContextDev
|
|
|
38
40
|
params(
|
|
39
41
|
product:
|
|
40
42
|
T.nilable(
|
|
41
|
-
ContextDev::Models::
|
|
43
|
+
ContextDev::Models::AIExtractProductResponse::Product::OrHash
|
|
42
44
|
)
|
|
43
45
|
).void
|
|
44
46
|
end
|
|
@@ -49,11 +51,11 @@ module ContextDev
|
|
|
49
51
|
is_product_page: T::Boolean,
|
|
50
52
|
platform:
|
|
51
53
|
T.nilable(
|
|
52
|
-
ContextDev::Models::
|
|
54
|
+
ContextDev::Models::AIExtractProductResponse::Platform::OrSymbol
|
|
53
55
|
),
|
|
54
56
|
product:
|
|
55
57
|
T.nilable(
|
|
56
|
-
ContextDev::Models::
|
|
58
|
+
ContextDev::Models::AIExtractProductResponse::Product::OrHash
|
|
57
59
|
)
|
|
58
60
|
).returns(T.attached_class)
|
|
59
61
|
end
|
|
@@ -73,10 +75,10 @@ module ContextDev
|
|
|
73
75
|
is_product_page: T::Boolean,
|
|
74
76
|
platform:
|
|
75
77
|
T.nilable(
|
|
76
|
-
ContextDev::Models::
|
|
78
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
77
79
|
),
|
|
78
80
|
product:
|
|
79
|
-
T.nilable(ContextDev::Models::
|
|
81
|
+
T.nilable(ContextDev::Models::AIExtractProductResponse::Product)
|
|
80
82
|
}
|
|
81
83
|
)
|
|
82
84
|
end
|
|
@@ -89,35 +91,38 @@ module ContextDev
|
|
|
89
91
|
|
|
90
92
|
TaggedSymbol =
|
|
91
93
|
T.type_alias do
|
|
92
|
-
T.all(
|
|
94
|
+
T.all(
|
|
95
|
+
Symbol,
|
|
96
|
+
ContextDev::Models::AIExtractProductResponse::Platform
|
|
97
|
+
)
|
|
93
98
|
end
|
|
94
99
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
95
100
|
|
|
96
101
|
AMAZON =
|
|
97
102
|
T.let(
|
|
98
103
|
:amazon,
|
|
99
|
-
ContextDev::Models::
|
|
104
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
100
105
|
)
|
|
101
106
|
TIKTOK_SHOP =
|
|
102
107
|
T.let(
|
|
103
108
|
:tiktok_shop,
|
|
104
|
-
ContextDev::Models::
|
|
109
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
105
110
|
)
|
|
106
111
|
ETSY =
|
|
107
112
|
T.let(
|
|
108
113
|
:etsy,
|
|
109
|
-
ContextDev::Models::
|
|
114
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
110
115
|
)
|
|
111
116
|
GENERIC =
|
|
112
117
|
T.let(
|
|
113
118
|
:generic,
|
|
114
|
-
ContextDev::Models::
|
|
119
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
115
120
|
)
|
|
116
121
|
|
|
117
122
|
sig do
|
|
118
123
|
override.returns(
|
|
119
124
|
T::Array[
|
|
120
|
-
ContextDev::Models::
|
|
125
|
+
ContextDev::Models::AIExtractProductResponse::Platform::TaggedSymbol
|
|
121
126
|
]
|
|
122
127
|
)
|
|
123
128
|
end
|
|
@@ -129,7 +134,7 @@ module ContextDev
|
|
|
129
134
|
OrHash =
|
|
130
135
|
T.type_alias do
|
|
131
136
|
T.any(
|
|
132
|
-
ContextDev::Models::
|
|
137
|
+
ContextDev::Models::AIExtractProductResponse::Product,
|
|
133
138
|
ContextDev::Internal::AnyHash
|
|
134
139
|
)
|
|
135
140
|
end
|
|
@@ -162,7 +167,7 @@ module ContextDev
|
|
|
162
167
|
sig do
|
|
163
168
|
returns(
|
|
164
169
|
T.nilable(
|
|
165
|
-
ContextDev::Models::
|
|
170
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
166
171
|
)
|
|
167
172
|
)
|
|
168
173
|
end
|
|
@@ -188,7 +193,7 @@ module ContextDev
|
|
|
188
193
|
sig do
|
|
189
194
|
returns(
|
|
190
195
|
T.nilable(
|
|
191
|
-
ContextDev::Models::
|
|
196
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
192
197
|
)
|
|
193
198
|
)
|
|
194
199
|
end
|
|
@@ -209,7 +214,7 @@ module ContextDev
|
|
|
209
214
|
target_audience: T::Array[String],
|
|
210
215
|
billing_frequency:
|
|
211
216
|
T.nilable(
|
|
212
|
-
ContextDev::Models::
|
|
217
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::OrSymbol
|
|
213
218
|
),
|
|
214
219
|
category: T.nilable(String),
|
|
215
220
|
currency: T.nilable(String),
|
|
@@ -217,7 +222,7 @@ module ContextDev
|
|
|
217
222
|
price: T.nilable(Float),
|
|
218
223
|
pricing_model:
|
|
219
224
|
T.nilable(
|
|
220
|
-
ContextDev::Models::
|
|
225
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::OrSymbol
|
|
221
226
|
),
|
|
222
227
|
url: T.nilable(String)
|
|
223
228
|
).returns(T.attached_class)
|
|
@@ -263,7 +268,7 @@ module ContextDev
|
|
|
263
268
|
target_audience: T::Array[String],
|
|
264
269
|
billing_frequency:
|
|
265
270
|
T.nilable(
|
|
266
|
-
ContextDev::Models::
|
|
271
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
267
272
|
),
|
|
268
273
|
category: T.nilable(String),
|
|
269
274
|
currency: T.nilable(String),
|
|
@@ -271,7 +276,7 @@ module ContextDev
|
|
|
271
276
|
price: T.nilable(Float),
|
|
272
277
|
pricing_model:
|
|
273
278
|
T.nilable(
|
|
274
|
-
ContextDev::Models::
|
|
279
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
275
280
|
),
|
|
276
281
|
url: T.nilable(String)
|
|
277
282
|
}
|
|
@@ -288,7 +293,7 @@ module ContextDev
|
|
|
288
293
|
T.type_alias do
|
|
289
294
|
T.all(
|
|
290
295
|
Symbol,
|
|
291
|
-
ContextDev::Models::
|
|
296
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency
|
|
292
297
|
)
|
|
293
298
|
end
|
|
294
299
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -296,28 +301,28 @@ module ContextDev
|
|
|
296
301
|
MONTHLY =
|
|
297
302
|
T.let(
|
|
298
303
|
:monthly,
|
|
299
|
-
ContextDev::Models::
|
|
304
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
300
305
|
)
|
|
301
306
|
YEARLY =
|
|
302
307
|
T.let(
|
|
303
308
|
:yearly,
|
|
304
|
-
ContextDev::Models::
|
|
309
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
305
310
|
)
|
|
306
311
|
ONE_TIME =
|
|
307
312
|
T.let(
|
|
308
313
|
:one_time,
|
|
309
|
-
ContextDev::Models::
|
|
314
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
310
315
|
)
|
|
311
316
|
USAGE_BASED =
|
|
312
317
|
T.let(
|
|
313
318
|
:usage_based,
|
|
314
|
-
ContextDev::Models::
|
|
319
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
315
320
|
)
|
|
316
321
|
|
|
317
322
|
sig do
|
|
318
323
|
override.returns(
|
|
319
324
|
T::Array[
|
|
320
|
-
ContextDev::Models::
|
|
325
|
+
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
321
326
|
]
|
|
322
327
|
)
|
|
323
328
|
end
|
|
@@ -333,7 +338,7 @@ module ContextDev
|
|
|
333
338
|
T.type_alias do
|
|
334
339
|
T.all(
|
|
335
340
|
Symbol,
|
|
336
|
-
ContextDev::Models::
|
|
341
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel
|
|
337
342
|
)
|
|
338
343
|
end
|
|
339
344
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -341,33 +346,33 @@ module ContextDev
|
|
|
341
346
|
PER_SEAT =
|
|
342
347
|
T.let(
|
|
343
348
|
:per_seat,
|
|
344
|
-
ContextDev::Models::
|
|
349
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
345
350
|
)
|
|
346
351
|
FLAT =
|
|
347
352
|
T.let(
|
|
348
353
|
:flat,
|
|
349
|
-
ContextDev::Models::
|
|
354
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
350
355
|
)
|
|
351
356
|
TIERED =
|
|
352
357
|
T.let(
|
|
353
358
|
:tiered,
|
|
354
|
-
ContextDev::Models::
|
|
359
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
355
360
|
)
|
|
356
361
|
FREEMIUM =
|
|
357
362
|
T.let(
|
|
358
363
|
:freemium,
|
|
359
|
-
ContextDev::Models::
|
|
364
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
360
365
|
)
|
|
361
366
|
CUSTOM =
|
|
362
367
|
T.let(
|
|
363
368
|
:custom,
|
|
364
|
-
ContextDev::Models::
|
|
369
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
365
370
|
)
|
|
366
371
|
|
|
367
372
|
sig do
|
|
368
373
|
override.returns(
|
|
369
374
|
T::Array[
|
|
370
|
-
ContextDev::Models::
|
|
375
|
+
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
371
376
|
]
|
|
372
377
|
)
|
|
373
378
|
end
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AIExtractProductsParams < ContextDev::Internal::Type::BaseModel
|
|
6
6
|
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include ContextDev::Internal::Type::RequestParameters
|
|
8
8
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias do
|
|
11
11
|
T.any(
|
|
12
|
-
ContextDev::
|
|
12
|
+
ContextDev::AIExtractProductsParams,
|
|
13
13
|
ContextDev::Internal::AnyHash
|
|
14
14
|
)
|
|
15
15
|
end
|
|
@@ -17,8 +17,8 @@ module ContextDev
|
|
|
17
17
|
sig do
|
|
18
18
|
returns(
|
|
19
19
|
T.any(
|
|
20
|
-
ContextDev::
|
|
21
|
-
ContextDev::
|
|
20
|
+
ContextDev::AIExtractProductsParams::Body::ByDomain,
|
|
21
|
+
ContextDev::AIExtractProductsParams::Body::ByDirectURL
|
|
22
22
|
)
|
|
23
23
|
)
|
|
24
24
|
end
|
|
@@ -28,8 +28,8 @@ module ContextDev
|
|
|
28
28
|
params(
|
|
29
29
|
body:
|
|
30
30
|
T.any(
|
|
31
|
-
ContextDev::
|
|
32
|
-
ContextDev::
|
|
31
|
+
ContextDev::AIExtractProductsParams::Body::ByDomain::OrHash,
|
|
32
|
+
ContextDev::AIExtractProductsParams::Body::ByDirectURL::OrHash
|
|
33
33
|
),
|
|
34
34
|
request_options: ContextDev::RequestOptions::OrHash
|
|
35
35
|
).returns(T.attached_class)
|
|
@@ -42,8 +42,8 @@ module ContextDev
|
|
|
42
42
|
{
|
|
43
43
|
body:
|
|
44
44
|
T.any(
|
|
45
|
-
ContextDev::
|
|
46
|
-
ContextDev::
|
|
45
|
+
ContextDev::AIExtractProductsParams::Body::ByDomain,
|
|
46
|
+
ContextDev::AIExtractProductsParams::Body::ByDirectURL
|
|
47
47
|
),
|
|
48
48
|
request_options: ContextDev::RequestOptions
|
|
49
49
|
}
|
|
@@ -58,8 +58,8 @@ module ContextDev
|
|
|
58
58
|
Variants =
|
|
59
59
|
T.type_alias do
|
|
60
60
|
T.any(
|
|
61
|
-
ContextDev::
|
|
62
|
-
ContextDev::
|
|
61
|
+
ContextDev::AIExtractProductsParams::Body::ByDomain,
|
|
62
|
+
ContextDev::AIExtractProductsParams::Body::ByDirectURL
|
|
63
63
|
)
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ module ContextDev
|
|
|
67
67
|
OrHash =
|
|
68
68
|
T.type_alias do
|
|
69
69
|
T.any(
|
|
70
|
-
ContextDev::
|
|
70
|
+
ContextDev::AIExtractProductsParams::Body::ByDomain,
|
|
71
71
|
ContextDev::Internal::AnyHash
|
|
72
72
|
)
|
|
73
73
|
end
|
|
@@ -122,7 +122,7 @@ module ContextDev
|
|
|
122
122
|
OrHash =
|
|
123
123
|
T.type_alias do
|
|
124
124
|
T.any(
|
|
125
|
-
ContextDev::
|
|
125
|
+
ContextDev::AIExtractProductsParams::Body::ByDirectURL,
|
|
126
126
|
ContextDev::Internal::AnyHash
|
|
127
127
|
)
|
|
128
128
|
end
|
|
@@ -177,7 +177,7 @@ module ContextDev
|
|
|
177
177
|
|
|
178
178
|
sig do
|
|
179
179
|
override.returns(
|
|
180
|
-
T::Array[ContextDev::
|
|
180
|
+
T::Array[ContextDev::AIExtractProductsParams::Body::Variants]
|
|
181
181
|
)
|
|
182
182
|
end
|
|
183
183
|
def self.variants
|
data/rbi/context_dev/models/{brand_ai_products_response.rbi → ai_extract_products_response.rbi}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module ContextDev
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AIExtractProductsResponse < ContextDev::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
9
|
-
ContextDev::Models::
|
|
9
|
+
ContextDev::Models::AIExtractProductsResponse,
|
|
10
10
|
ContextDev::Internal::AnyHash
|
|
11
11
|
)
|
|
12
12
|
end
|
|
@@ -15,7 +15,7 @@ module ContextDev
|
|
|
15
15
|
sig do
|
|
16
16
|
returns(
|
|
17
17
|
T.nilable(
|
|
18
|
-
T::Array[ContextDev::Models::
|
|
18
|
+
T::Array[ContextDev::Models::AIExtractProductsResponse::Product]
|
|
19
19
|
)
|
|
20
20
|
)
|
|
21
21
|
end
|
|
@@ -25,7 +25,7 @@ module ContextDev
|
|
|
25
25
|
params(
|
|
26
26
|
products:
|
|
27
27
|
T::Array[
|
|
28
|
-
ContextDev::Models::
|
|
28
|
+
ContextDev::Models::AIExtractProductsResponse::Product::OrHash
|
|
29
29
|
]
|
|
30
30
|
).void
|
|
31
31
|
end
|
|
@@ -35,7 +35,7 @@ module ContextDev
|
|
|
35
35
|
params(
|
|
36
36
|
products:
|
|
37
37
|
T::Array[
|
|
38
|
-
ContextDev::Models::
|
|
38
|
+
ContextDev::Models::AIExtractProductsResponse::Product::OrHash
|
|
39
39
|
]
|
|
40
40
|
).returns(T.attached_class)
|
|
41
41
|
end
|
|
@@ -49,7 +49,7 @@ module ContextDev
|
|
|
49
49
|
override.returns(
|
|
50
50
|
{
|
|
51
51
|
products:
|
|
52
|
-
T::Array[ContextDev::Models::
|
|
52
|
+
T::Array[ContextDev::Models::AIExtractProductsResponse::Product]
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
end
|
|
@@ -60,7 +60,7 @@ module ContextDev
|
|
|
60
60
|
OrHash =
|
|
61
61
|
T.type_alias do
|
|
62
62
|
T.any(
|
|
63
|
-
ContextDev::Models::
|
|
63
|
+
ContextDev::Models::AIExtractProductsResponse::Product,
|
|
64
64
|
ContextDev::Internal::AnyHash
|
|
65
65
|
)
|
|
66
66
|
end
|
|
@@ -93,7 +93,7 @@ module ContextDev
|
|
|
93
93
|
sig do
|
|
94
94
|
returns(
|
|
95
95
|
T.nilable(
|
|
96
|
-
ContextDev::Models::
|
|
96
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
97
97
|
)
|
|
98
98
|
)
|
|
99
99
|
end
|
|
@@ -119,7 +119,7 @@ module ContextDev
|
|
|
119
119
|
sig do
|
|
120
120
|
returns(
|
|
121
121
|
T.nilable(
|
|
122
|
-
ContextDev::Models::
|
|
122
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
123
123
|
)
|
|
124
124
|
)
|
|
125
125
|
end
|
|
@@ -139,7 +139,7 @@ module ContextDev
|
|
|
139
139
|
target_audience: T::Array[String],
|
|
140
140
|
billing_frequency:
|
|
141
141
|
T.nilable(
|
|
142
|
-
ContextDev::Models::
|
|
142
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::OrSymbol
|
|
143
143
|
),
|
|
144
144
|
category: T.nilable(String),
|
|
145
145
|
currency: T.nilable(String),
|
|
@@ -147,7 +147,7 @@ module ContextDev
|
|
|
147
147
|
price: T.nilable(Float),
|
|
148
148
|
pricing_model:
|
|
149
149
|
T.nilable(
|
|
150
|
-
ContextDev::Models::
|
|
150
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::OrSymbol
|
|
151
151
|
),
|
|
152
152
|
url: T.nilable(String)
|
|
153
153
|
).returns(T.attached_class)
|
|
@@ -193,7 +193,7 @@ module ContextDev
|
|
|
193
193
|
target_audience: T::Array[String],
|
|
194
194
|
billing_frequency:
|
|
195
195
|
T.nilable(
|
|
196
|
-
ContextDev::Models::
|
|
196
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
197
197
|
),
|
|
198
198
|
category: T.nilable(String),
|
|
199
199
|
currency: T.nilable(String),
|
|
@@ -201,7 +201,7 @@ module ContextDev
|
|
|
201
201
|
price: T.nilable(Float),
|
|
202
202
|
pricing_model:
|
|
203
203
|
T.nilable(
|
|
204
|
-
ContextDev::Models::
|
|
204
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
205
205
|
),
|
|
206
206
|
url: T.nilable(String)
|
|
207
207
|
}
|
|
@@ -218,7 +218,7 @@ module ContextDev
|
|
|
218
218
|
T.type_alias do
|
|
219
219
|
T.all(
|
|
220
220
|
Symbol,
|
|
221
|
-
ContextDev::Models::
|
|
221
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency
|
|
222
222
|
)
|
|
223
223
|
end
|
|
224
224
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -226,28 +226,28 @@ module ContextDev
|
|
|
226
226
|
MONTHLY =
|
|
227
227
|
T.let(
|
|
228
228
|
:monthly,
|
|
229
|
-
ContextDev::Models::
|
|
229
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
230
230
|
)
|
|
231
231
|
YEARLY =
|
|
232
232
|
T.let(
|
|
233
233
|
:yearly,
|
|
234
|
-
ContextDev::Models::
|
|
234
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
235
235
|
)
|
|
236
236
|
ONE_TIME =
|
|
237
237
|
T.let(
|
|
238
238
|
:one_time,
|
|
239
|
-
ContextDev::Models::
|
|
239
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
240
240
|
)
|
|
241
241
|
USAGE_BASED =
|
|
242
242
|
T.let(
|
|
243
243
|
:usage_based,
|
|
244
|
-
ContextDev::Models::
|
|
244
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
245
245
|
)
|
|
246
246
|
|
|
247
247
|
sig do
|
|
248
248
|
override.returns(
|
|
249
249
|
T::Array[
|
|
250
|
-
ContextDev::Models::
|
|
250
|
+
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
251
251
|
]
|
|
252
252
|
)
|
|
253
253
|
end
|
|
@@ -263,7 +263,7 @@ module ContextDev
|
|
|
263
263
|
T.type_alias do
|
|
264
264
|
T.all(
|
|
265
265
|
Symbol,
|
|
266
|
-
ContextDev::Models::
|
|
266
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel
|
|
267
267
|
)
|
|
268
268
|
end
|
|
269
269
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -271,33 +271,33 @@ module ContextDev
|
|
|
271
271
|
PER_SEAT =
|
|
272
272
|
T.let(
|
|
273
273
|
:per_seat,
|
|
274
|
-
ContextDev::Models::
|
|
274
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
275
275
|
)
|
|
276
276
|
FLAT =
|
|
277
277
|
T.let(
|
|
278
278
|
:flat,
|
|
279
|
-
ContextDev::Models::
|
|
279
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
280
280
|
)
|
|
281
281
|
TIERED =
|
|
282
282
|
T.let(
|
|
283
283
|
:tiered,
|
|
284
|
-
ContextDev::Models::
|
|
284
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
285
285
|
)
|
|
286
286
|
FREEMIUM =
|
|
287
287
|
T.let(
|
|
288
288
|
:freemium,
|
|
289
|
-
ContextDev::Models::
|
|
289
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
290
290
|
)
|
|
291
291
|
CUSTOM =
|
|
292
292
|
T.let(
|
|
293
293
|
:custom,
|
|
294
|
-
ContextDev::Models::
|
|
294
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
295
295
|
)
|
|
296
296
|
|
|
297
297
|
sig do
|
|
298
298
|
override.returns(
|
|
299
299
|
T::Array[
|
|
300
|
-
ContextDev::Models::
|
|
300
|
+
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
301
301
|
]
|
|
302
302
|
)
|
|
303
303
|
end
|