context.dev 2.18.0 → 2.19.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 +18 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +0 -4
- data/lib/context_dev/models/monitor_retrieve_run_params.rb +26 -0
- data/lib/context_dev/models/monitor_retrieve_run_response.rb +232 -0
- data/lib/context_dev/models/monitor_rotate_webhook_secret_params.rb +20 -0
- data/lib/context_dev/models/monitor_rotate_webhook_secret_response.rb +765 -0
- data/lib/context_dev/models/{web_web_scrape_sitemap_params.rb → web_map_urls_params.rb} +14 -14
- data/lib/context_dev/models/web_map_urls_response.rb +123 -0
- data/lib/context_dev/models/web_scrape_params.rb +906 -0
- data/lib/context_dev/models/web_scrape_response.rb +659 -0
- data/lib/context_dev/models/web_screenshot_params.rb +15 -1
- data/lib/context_dev/models/web_screenshot_response.rb +3 -3
- data/lib/context_dev/models.rb +8 -22
- data/lib/context_dev/resources/brand.rb +0 -36
- data/lib/context_dev/resources/monitors.rb +47 -0
- data/lib/context_dev/resources/web.rb +106 -486
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +8 -23
- data/rbi/context_dev/client.rbi +0 -3
- data/rbi/context_dev/models/monitor_retrieve_run_params.rbi +46 -0
- data/rbi/context_dev/models/monitor_retrieve_run_response.rbi +452 -0
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_response.rbi +1367 -0
- data/rbi/context_dev/models/{web_web_scrape_sitemap_params.rbi → web_map_urls_params.rbi} +23 -45
- data/rbi/context_dev/models/web_map_urls_response.rbi +226 -0
- data/rbi/context_dev/models/web_scrape_params.rbi +2000 -0
- data/rbi/context_dev/models/{web_web_scrape_html_response.rbi → web_scrape_response.rbi} +539 -510
- data/rbi/context_dev/models/web_screenshot_params.rbi +23 -0
- data/rbi/context_dev/models/web_screenshot_response.rbi +4 -4
- data/rbi/context_dev/models.rbi +9 -24
- data/rbi/context_dev/resources/brand.rbi +0 -35
- data/rbi/context_dev/resources/monitors.rbi +24 -0
- data/rbi/context_dev/resources/web.rbi +135 -654
- data/sig/context_dev/client.rbs +0 -2
- data/sig/context_dev/models/monitor_retrieve_run_params.rbs +28 -0
- data/sig/context_dev/models/monitor_retrieve_run_response.rbs +182 -0
- data/sig/context_dev/models/monitor_rotate_webhook_secret_params.rbs +23 -0
- data/sig/context_dev/models/monitor_rotate_webhook_secret_response.rbs +545 -0
- data/sig/context_dev/models/{web_web_scrape_sitemap_params.rbs → web_map_urls_params.rbs} +22 -22
- data/sig/context_dev/models/web_map_urls_response.rbs +125 -0
- data/sig/context_dev/models/web_scrape_params.rbs +834 -0
- data/sig/context_dev/models/web_scrape_response.rbs +552 -0
- data/sig/context_dev/models/web_screenshot_params.rbs +7 -0
- data/sig/context_dev/models.rbs +8 -22
- data/sig/context_dev/resources/brand.rbs +0 -9
- data/sig/context_dev/resources/monitors.rbs +11 -0
- data/sig/context_dev/resources/web.rbs +30 -128
- metadata +26 -71
- data/lib/context_dev/models/ai_extract_product_params.rb +0 -125
- data/lib/context_dev/models/ai_extract_product_response.rb +0 -402
- data/lib/context_dev/models/ai_extract_products_params.rb +0 -233
- data/lib/context_dev/models/ai_extract_products_response.rb +0 -370
- data/lib/context_dev/models/brand_retrieve_simplified_params.rb +0 -120
- data/lib/context_dev/models/brand_retrieve_simplified_response.rb +0 -441
- data/lib/context_dev/models/web_extract_fonts_params.rb +0 -114
- data/lib/context_dev/models/web_extract_fonts_response.rb +0 -291
- data/lib/context_dev/models/web_extract_params.rb +0 -419
- data/lib/context_dev/models/web_extract_response.rb +0 -287
- data/lib/context_dev/models/web_web_scrape_bytes_params.rb +0 -346
- data/lib/context_dev/models/web_web_scrape_bytes_response.rb +0 -135
- data/lib/context_dev/models/web_web_scrape_html_params.rb +0 -812
- data/lib/context_dev/models/web_web_scrape_html_response.rb +0 -628
- data/lib/context_dev/models/web_web_scrape_images_params.rb +0 -373
- data/lib/context_dev/models/web_web_scrape_images_response.rb +0 -409
- data/lib/context_dev/models/web_web_scrape_md_params.rb +0 -670
- data/lib/context_dev/models/web_web_scrape_md_response.rb +0 -567
- data/lib/context_dev/models/web_web_scrape_screenshot_params.rb +0 -471
- data/lib/context_dev/models/web_web_scrape_screenshot_response.rb +0 -169
- data/lib/context_dev/models/web_web_scrape_sitemap_response.rb +0 -144
- data/lib/context_dev/resources/ai.rb +0 -71
- data/rbi/context_dev/models/ai_extract_product_params.rbi +0 -253
- data/rbi/context_dev/models/ai_extract_product_response.rbi +0 -791
- data/rbi/context_dev/models/ai_extract_products_params.rbi +0 -490
- data/rbi/context_dev/models/ai_extract_products_response.rbi +0 -718
- data/rbi/context_dev/models/brand_retrieve_simplified_params.rbi +0 -256
- data/rbi/context_dev/models/brand_retrieve_simplified_response.rbi +0 -1040
- data/rbi/context_dev/models/web_extract_fonts_params.rbi +0 -223
- data/rbi/context_dev/models/web_extract_fonts_response.rbi +0 -563
- data/rbi/context_dev/models/web_extract_params.rbi +0 -781
- data/rbi/context_dev/models/web_extract_response.rbi +0 -512
- data/rbi/context_dev/models/web_web_scrape_bytes_params.rbi +0 -702
- data/rbi/context_dev/models/web_web_scrape_bytes_response.rbi +0 -238
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +0 -1690
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +0 -728
- data/rbi/context_dev/models/web_web_scrape_images_response.rbi +0 -910
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +0 -1052
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +0 -1088
- data/rbi/context_dev/models/web_web_scrape_screenshot_params.rbi +0 -1580
- data/rbi/context_dev/models/web_web_scrape_screenshot_response.rbi +0 -332
- data/rbi/context_dev/models/web_web_scrape_sitemap_response.rbi +0 -258
- data/rbi/context_dev/resources/ai.rbi +0 -63
- data/sig/context_dev/models/ai_extract_product_params.rbs +0 -106
- data/sig/context_dev/models/ai_extract_product_response.rbs +0 -314
- data/sig/context_dev/models/ai_extract_products_params.rbs +0 -202
- data/sig/context_dev/models/ai_extract_products_response.rbs +0 -293
- data/sig/context_dev/models/brand_retrieve_simplified_params.rbs +0 -104
- data/sig/context_dev/models/brand_retrieve_simplified_response.rbs +0 -413
- data/sig/context_dev/models/web_extract_fonts_params.rbs +0 -93
- data/sig/context_dev/models/web_extract_fonts_response.rbs +0 -230
- data/sig/context_dev/models/web_extract_params.rbs +0 -324
- data/sig/context_dev/models/web_extract_response.rbs +0 -239
- data/sig/context_dev/models/web_web_scrape_bytes_params.rbs +0 -531
- data/sig/context_dev/models/web_web_scrape_bytes_response.rbs +0 -108
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +0 -878
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +0 -525
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +0 -281
- data/sig/context_dev/models/web_web_scrape_images_response.rbs +0 -371
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +0 -758
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +0 -465
- data/sig/context_dev/models/web_web_scrape_screenshot_params.rbs +0 -619
- data/sig/context_dev/models/web_web_scrape_screenshot_response.rbs +0 -127
- data/sig/context_dev/models/web_web_scrape_sitemap_response.rbs +0 -117
- data/sig/context_dev/resources/ai.rbs +0 -21
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
module ContextDev
|
|
2
|
-
module Models
|
|
3
|
-
type ai_extract_product_params =
|
|
4
|
-
{
|
|
5
|
-
url: String,
|
|
6
|
-
max_age_ms: Integer,
|
|
7
|
-
tags: ::Array[String],
|
|
8
|
-
timeout_opts: ContextDev::AIExtractProductParams::TimeoutOpts,
|
|
9
|
-
zdr: ContextDev::Models::AIExtractProductParams::zdr
|
|
10
|
-
}
|
|
11
|
-
& ContextDev::Internal::Type::request_parameters
|
|
12
|
-
|
|
13
|
-
class AIExtractProductParams < ContextDev::Internal::Type::BaseModel
|
|
14
|
-
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
15
|
-
include ContextDev::Internal::Type::RequestParameters
|
|
16
|
-
|
|
17
|
-
attr_accessor url: String
|
|
18
|
-
|
|
19
|
-
attr_reader max_age_ms: Integer?
|
|
20
|
-
|
|
21
|
-
def max_age_ms=: (Integer) -> Integer
|
|
22
|
-
|
|
23
|
-
attr_reader tags: ::Array[String]?
|
|
24
|
-
|
|
25
|
-
def tags=: (::Array[String]) -> ::Array[String]
|
|
26
|
-
|
|
27
|
-
attr_reader timeout_opts: ContextDev::AIExtractProductParams::TimeoutOpts?
|
|
28
|
-
|
|
29
|
-
def timeout_opts=: (
|
|
30
|
-
ContextDev::AIExtractProductParams::TimeoutOpts
|
|
31
|
-
) -> ContextDev::AIExtractProductParams::TimeoutOpts
|
|
32
|
-
|
|
33
|
-
attr_reader zdr: ContextDev::Models::AIExtractProductParams::zdr?
|
|
34
|
-
|
|
35
|
-
def zdr=: (
|
|
36
|
-
ContextDev::Models::AIExtractProductParams::zdr
|
|
37
|
-
) -> ContextDev::Models::AIExtractProductParams::zdr
|
|
38
|
-
|
|
39
|
-
def initialize: (
|
|
40
|
-
url: String,
|
|
41
|
-
?max_age_ms: Integer,
|
|
42
|
-
?tags: ::Array[String],
|
|
43
|
-
?timeout_opts: ContextDev::AIExtractProductParams::TimeoutOpts,
|
|
44
|
-
?zdr: ContextDev::Models::AIExtractProductParams::zdr,
|
|
45
|
-
?request_options: ContextDev::request_opts
|
|
46
|
-
) -> void
|
|
47
|
-
|
|
48
|
-
def to_hash: -> {
|
|
49
|
-
url: String,
|
|
50
|
-
max_age_ms: Integer,
|
|
51
|
-
tags: ::Array[String],
|
|
52
|
-
timeout_opts: ContextDev::AIExtractProductParams::TimeoutOpts,
|
|
53
|
-
zdr: ContextDev::Models::AIExtractProductParams::zdr,
|
|
54
|
-
request_options: ContextDev::RequestOptions
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type timeout_opts =
|
|
58
|
-
{
|
|
59
|
-
milliseconds: Integer,
|
|
60
|
-
behavior: ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
class TimeoutOpts < ContextDev::Internal::Type::BaseModel
|
|
64
|
-
attr_accessor milliseconds: Integer
|
|
65
|
-
|
|
66
|
-
attr_reader behavior: ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior?
|
|
67
|
-
|
|
68
|
-
def behavior=: (
|
|
69
|
-
ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior
|
|
70
|
-
) -> ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior
|
|
71
|
-
|
|
72
|
-
def initialize: (
|
|
73
|
-
milliseconds: Integer,
|
|
74
|
-
?behavior: ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior
|
|
75
|
-
) -> void
|
|
76
|
-
|
|
77
|
-
def to_hash: -> {
|
|
78
|
-
milliseconds: Integer,
|
|
79
|
-
behavior: ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type behavior = :fail | :"return-partial"
|
|
83
|
-
|
|
84
|
-
module Behavior
|
|
85
|
-
extend ContextDev::Internal::Type::Enum
|
|
86
|
-
|
|
87
|
-
FAIL: :fail
|
|
88
|
-
RETURN_PARTIAL: :"return-partial"
|
|
89
|
-
|
|
90
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductParams::TimeoutOpts::behavior]
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
type zdr = :enabled | :disabled
|
|
95
|
-
|
|
96
|
-
module Zdr
|
|
97
|
-
extend ContextDev::Internal::Type::Enum
|
|
98
|
-
|
|
99
|
-
ENABLED: :enabled
|
|
100
|
-
DISABLED: :disabled
|
|
101
|
-
|
|
102
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductParams::zdr]
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
end
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
module ContextDev
|
|
2
|
-
module Models
|
|
3
|
-
type ai_extract_product_response =
|
|
4
|
-
{
|
|
5
|
-
cache_metadata: ContextDev::Models::AIExtractProductResponse::CacheMetadata,
|
|
6
|
-
request_id: String,
|
|
7
|
-
is_product_page: bool,
|
|
8
|
-
key_metadata: ContextDev::Models::AIExtractProductResponse::KeyMetadata,
|
|
9
|
-
partial: bool,
|
|
10
|
-
platform: ContextDev::Models::AIExtractProductResponse::platform?,
|
|
11
|
-
product: ContextDev::Models::AIExtractProductResponse::Product?
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor cache_metadata: ContextDev::Models::AIExtractProductResponse::CacheMetadata
|
|
16
|
-
|
|
17
|
-
attr_accessor request_id: String
|
|
18
|
-
|
|
19
|
-
attr_reader is_product_page: bool?
|
|
20
|
-
|
|
21
|
-
def is_product_page=: (bool) -> bool
|
|
22
|
-
|
|
23
|
-
attr_reader key_metadata: ContextDev::Models::AIExtractProductResponse::KeyMetadata?
|
|
24
|
-
|
|
25
|
-
def key_metadata=: (
|
|
26
|
-
ContextDev::Models::AIExtractProductResponse::KeyMetadata
|
|
27
|
-
) -> ContextDev::Models::AIExtractProductResponse::KeyMetadata
|
|
28
|
-
|
|
29
|
-
attr_reader partial: bool?
|
|
30
|
-
|
|
31
|
-
def partial=: (bool) -> bool
|
|
32
|
-
|
|
33
|
-
attr_accessor platform: ContextDev::Models::AIExtractProductResponse::platform?
|
|
34
|
-
|
|
35
|
-
attr_accessor product: ContextDev::Models::AIExtractProductResponse::Product?
|
|
36
|
-
|
|
37
|
-
def initialize: (
|
|
38
|
-
cache_metadata: ContextDev::Models::AIExtractProductResponse::CacheMetadata,
|
|
39
|
-
request_id: String,
|
|
40
|
-
?is_product_page: bool,
|
|
41
|
-
?key_metadata: ContextDev::Models::AIExtractProductResponse::KeyMetadata,
|
|
42
|
-
?partial: bool,
|
|
43
|
-
?platform: ContextDev::Models::AIExtractProductResponse::platform?,
|
|
44
|
-
?product: ContextDev::Models::AIExtractProductResponse::Product?
|
|
45
|
-
) -> void
|
|
46
|
-
|
|
47
|
-
def to_hash: -> {
|
|
48
|
-
cache_metadata: ContextDev::Models::AIExtractProductResponse::CacheMetadata,
|
|
49
|
-
request_id: String,
|
|
50
|
-
is_product_page: bool,
|
|
51
|
-
key_metadata: ContextDev::Models::AIExtractProductResponse::KeyMetadata,
|
|
52
|
-
partial: bool,
|
|
53
|
-
platform: ContextDev::Models::AIExtractProductResponse::platform?,
|
|
54
|
-
product: ContextDev::Models::AIExtractProductResponse::Product?
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type cache_metadata =
|
|
58
|
-
{
|
|
59
|
-
age_ms: Integer,
|
|
60
|
-
status: ContextDev::Models::AIExtractProductResponse::CacheMetadata::status
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
class CacheMetadata < ContextDev::Internal::Type::BaseModel
|
|
64
|
-
attr_accessor age_ms: Integer
|
|
65
|
-
|
|
66
|
-
attr_accessor status: ContextDev::Models::AIExtractProductResponse::CacheMetadata::status
|
|
67
|
-
|
|
68
|
-
def initialize: (
|
|
69
|
-
age_ms: Integer,
|
|
70
|
-
status: ContextDev::Models::AIExtractProductResponse::CacheMetadata::status
|
|
71
|
-
) -> void
|
|
72
|
-
|
|
73
|
-
def to_hash: -> {
|
|
74
|
-
age_ms: Integer,
|
|
75
|
-
status: ContextDev::Models::AIExtractProductResponse::CacheMetadata::status
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
type status = :hit | :miss | :zdr
|
|
79
|
-
|
|
80
|
-
module Status
|
|
81
|
-
extend ContextDev::Internal::Type::Enum
|
|
82
|
-
|
|
83
|
-
HIT: :hit
|
|
84
|
-
MISS: :miss
|
|
85
|
-
ZDR: :zdr
|
|
86
|
-
|
|
87
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductResponse::CacheMetadata::status]
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
type key_metadata =
|
|
92
|
-
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
93
|
-
|
|
94
|
-
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
95
|
-
attr_accessor credits_consumed: Integer
|
|
96
|
-
|
|
97
|
-
attr_accessor credits_remaining: Integer
|
|
98
|
-
|
|
99
|
-
def initialize: (
|
|
100
|
-
credits_consumed: Integer,
|
|
101
|
-
credits_remaining: Integer
|
|
102
|
-
) -> void
|
|
103
|
-
|
|
104
|
-
def to_hash: -> {
|
|
105
|
-
credits_consumed: Integer,
|
|
106
|
-
credits_remaining: Integer
|
|
107
|
-
}
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
type platform = :amazon | :tiktok_shop | :etsy | :generic
|
|
111
|
-
|
|
112
|
-
module Platform
|
|
113
|
-
extend ContextDev::Internal::Type::Enum
|
|
114
|
-
|
|
115
|
-
AMAZON: :amazon
|
|
116
|
-
TIKTOK_SHOP: :tiktok_shop
|
|
117
|
-
ETSY: :etsy
|
|
118
|
-
GENERIC: :generic
|
|
119
|
-
|
|
120
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductResponse::platform]
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
type product =
|
|
124
|
-
{
|
|
125
|
-
description: String,
|
|
126
|
-
features: ::Array[String],
|
|
127
|
-
images: ::Array[String],
|
|
128
|
-
name: String,
|
|
129
|
-
sku: String?,
|
|
130
|
-
tags: ::Array[String],
|
|
131
|
-
target_audience: ::Array[String],
|
|
132
|
-
availability: ContextDev::Models::AIExtractProductResponse::Product::availability?,
|
|
133
|
-
billing_frequency: ContextDev::Models::AIExtractProductResponse::Product::billing_frequency?,
|
|
134
|
-
category: String?,
|
|
135
|
-
currency: String?,
|
|
136
|
-
dimensions: ::Array[String],
|
|
137
|
-
image_url: String?,
|
|
138
|
-
price: Float?,
|
|
139
|
-
pricing_model: ContextDev::Models::AIExtractProductResponse::Product::pricing_model?,
|
|
140
|
-
regular_price: Float?,
|
|
141
|
-
url: String?,
|
|
142
|
-
variants: ::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
class Product < ContextDev::Internal::Type::BaseModel
|
|
146
|
-
attr_accessor description: String
|
|
147
|
-
|
|
148
|
-
attr_accessor features: ::Array[String]
|
|
149
|
-
|
|
150
|
-
attr_accessor images: ::Array[String]
|
|
151
|
-
|
|
152
|
-
attr_accessor name: String
|
|
153
|
-
|
|
154
|
-
attr_accessor sku: String?
|
|
155
|
-
|
|
156
|
-
attr_accessor tags: ::Array[String]
|
|
157
|
-
|
|
158
|
-
attr_accessor target_audience: ::Array[String]
|
|
159
|
-
|
|
160
|
-
attr_accessor availability: ContextDev::Models::AIExtractProductResponse::Product::availability?
|
|
161
|
-
|
|
162
|
-
attr_accessor billing_frequency: ContextDev::Models::AIExtractProductResponse::Product::billing_frequency?
|
|
163
|
-
|
|
164
|
-
attr_accessor category: String?
|
|
165
|
-
|
|
166
|
-
attr_accessor currency: String?
|
|
167
|
-
|
|
168
|
-
attr_reader dimensions: ::Array[String]?
|
|
169
|
-
|
|
170
|
-
def dimensions=: (::Array[String]) -> ::Array[String]
|
|
171
|
-
|
|
172
|
-
attr_accessor image_url: String?
|
|
173
|
-
|
|
174
|
-
attr_accessor price: Float?
|
|
175
|
-
|
|
176
|
-
attr_accessor pricing_model: ContextDev::Models::AIExtractProductResponse::Product::pricing_model?
|
|
177
|
-
|
|
178
|
-
attr_accessor regular_price: Float?
|
|
179
|
-
|
|
180
|
-
attr_accessor url: String?
|
|
181
|
-
|
|
182
|
-
attr_reader variants: ::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]?
|
|
183
|
-
|
|
184
|
-
def variants=: (
|
|
185
|
-
::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]
|
|
186
|
-
) -> ::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]
|
|
187
|
-
|
|
188
|
-
def initialize: (
|
|
189
|
-
description: String,
|
|
190
|
-
features: ::Array[String],
|
|
191
|
-
images: ::Array[String],
|
|
192
|
-
name: String,
|
|
193
|
-
sku: String?,
|
|
194
|
-
tags: ::Array[String],
|
|
195
|
-
target_audience: ::Array[String],
|
|
196
|
-
?availability: ContextDev::Models::AIExtractProductResponse::Product::availability?,
|
|
197
|
-
?billing_frequency: ContextDev::Models::AIExtractProductResponse::Product::billing_frequency?,
|
|
198
|
-
?category: String?,
|
|
199
|
-
?currency: String?,
|
|
200
|
-
?dimensions: ::Array[String],
|
|
201
|
-
?image_url: String?,
|
|
202
|
-
?price: Float?,
|
|
203
|
-
?pricing_model: ContextDev::Models::AIExtractProductResponse::Product::pricing_model?,
|
|
204
|
-
?regular_price: Float?,
|
|
205
|
-
?url: String?,
|
|
206
|
-
?variants: ::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]
|
|
207
|
-
) -> void
|
|
208
|
-
|
|
209
|
-
def to_hash: -> {
|
|
210
|
-
description: String,
|
|
211
|
-
features: ::Array[String],
|
|
212
|
-
images: ::Array[String],
|
|
213
|
-
name: String,
|
|
214
|
-
sku: String?,
|
|
215
|
-
tags: ::Array[String],
|
|
216
|
-
target_audience: ::Array[String],
|
|
217
|
-
availability: ContextDev::Models::AIExtractProductResponse::Product::availability?,
|
|
218
|
-
billing_frequency: ContextDev::Models::AIExtractProductResponse::Product::billing_frequency?,
|
|
219
|
-
category: String?,
|
|
220
|
-
currency: String?,
|
|
221
|
-
dimensions: ::Array[String],
|
|
222
|
-
image_url: String?,
|
|
223
|
-
price: Float?,
|
|
224
|
-
pricing_model: ContextDev::Models::AIExtractProductResponse::Product::pricing_model?,
|
|
225
|
-
regular_price: Float?,
|
|
226
|
-
url: String?,
|
|
227
|
-
variants: ::Array[ContextDev::Models::AIExtractProductResponse::Product::Variant]
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
type availability =
|
|
231
|
-
:in_stock
|
|
232
|
-
| :out_of_stock
|
|
233
|
-
| :limited_availability
|
|
234
|
-
| :preorder
|
|
235
|
-
| :backorder
|
|
236
|
-
| :made_to_order
|
|
237
|
-
| :discontinued
|
|
238
|
-
|
|
239
|
-
module Availability
|
|
240
|
-
extend ContextDev::Internal::Type::Enum
|
|
241
|
-
|
|
242
|
-
IN_STOCK: :in_stock
|
|
243
|
-
OUT_OF_STOCK: :out_of_stock
|
|
244
|
-
LIMITED_AVAILABILITY: :limited_availability
|
|
245
|
-
PREORDER: :preorder
|
|
246
|
-
BACKORDER: :backorder
|
|
247
|
-
MADE_TO_ORDER: :made_to_order
|
|
248
|
-
DISCONTINUED: :discontinued
|
|
249
|
-
|
|
250
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductResponse::Product::availability]
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
type billing_frequency = :monthly | :yearly | :one_time | :usage_based
|
|
254
|
-
|
|
255
|
-
module BillingFrequency
|
|
256
|
-
extend ContextDev::Internal::Type::Enum
|
|
257
|
-
|
|
258
|
-
MONTHLY: :monthly
|
|
259
|
-
YEARLY: :yearly
|
|
260
|
-
ONE_TIME: :one_time
|
|
261
|
-
USAGE_BASED: :usage_based
|
|
262
|
-
|
|
263
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductResponse::Product::billing_frequency]
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
type pricing_model = :per_seat | :flat | :tiered | :freemium | :custom
|
|
267
|
-
|
|
268
|
-
module PricingModel
|
|
269
|
-
extend ContextDev::Internal::Type::Enum
|
|
270
|
-
|
|
271
|
-
PER_SEAT: :per_seat
|
|
272
|
-
FLAT: :flat
|
|
273
|
-
TIERED: :tiered
|
|
274
|
-
FREEMIUM: :freemium
|
|
275
|
-
CUSTOM: :custom
|
|
276
|
-
|
|
277
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductResponse::Product::pricing_model]
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
type variant =
|
|
281
|
-
{
|
|
282
|
-
attributes: ::Hash[Symbol, String],
|
|
283
|
-
images: ::Array[String],
|
|
284
|
-
sku: String?,
|
|
285
|
-
url: String?
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
class Variant < ContextDev::Internal::Type::BaseModel
|
|
289
|
-
attr_accessor attributes: ::Hash[Symbol, String]
|
|
290
|
-
|
|
291
|
-
attr_accessor images: ::Array[String]
|
|
292
|
-
|
|
293
|
-
attr_accessor sku: String?
|
|
294
|
-
|
|
295
|
-
attr_accessor url: String?
|
|
296
|
-
|
|
297
|
-
def initialize: (
|
|
298
|
-
attributes: ::Hash[Symbol, String],
|
|
299
|
-
images: ::Array[String],
|
|
300
|
-
sku: String?,
|
|
301
|
-
url: String?
|
|
302
|
-
) -> void
|
|
303
|
-
|
|
304
|
-
def to_hash: -> {
|
|
305
|
-
attributes: ::Hash[Symbol, String],
|
|
306
|
-
images: ::Array[String],
|
|
307
|
-
sku: String?,
|
|
308
|
-
url: String?
|
|
309
|
-
}
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
|
-
end
|
|
314
|
-
end
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
module ContextDev
|
|
2
|
-
module Models
|
|
3
|
-
type ai_extract_products_params =
|
|
4
|
-
{ body: ContextDev::Models::AIExtractProductsParams::body }
|
|
5
|
-
& ContextDev::Internal::Type::request_parameters
|
|
6
|
-
|
|
7
|
-
class AIExtractProductsParams < ContextDev::Internal::Type::BaseModel
|
|
8
|
-
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include ContextDev::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
attr_accessor body: ContextDev::Models::AIExtractProductsParams::body
|
|
12
|
-
|
|
13
|
-
def initialize: (
|
|
14
|
-
body: ContextDev::Models::AIExtractProductsParams::body,
|
|
15
|
-
?request_options: ContextDev::request_opts
|
|
16
|
-
) -> void
|
|
17
|
-
|
|
18
|
-
def to_hash: -> {
|
|
19
|
-
body: ContextDev::Models::AIExtractProductsParams::body,
|
|
20
|
-
request_options: ContextDev::RequestOptions
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type body =
|
|
24
|
-
ContextDev::AIExtractProductsParams::Body::ByDomain
|
|
25
|
-
| ContextDev::AIExtractProductsParams::Body::ByDirectURL
|
|
26
|
-
|
|
27
|
-
module Body
|
|
28
|
-
extend ContextDev::Internal::Type::Union
|
|
29
|
-
|
|
30
|
-
type by_domain =
|
|
31
|
-
{
|
|
32
|
-
domain: String,
|
|
33
|
-
max_age_ms: Integer,
|
|
34
|
-
max_products: Integer,
|
|
35
|
-
tags: ::Array[String],
|
|
36
|
-
timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
class ByDomain < ContextDev::Internal::Type::BaseModel
|
|
40
|
-
attr_accessor domain: String
|
|
41
|
-
|
|
42
|
-
attr_reader max_age_ms: Integer?
|
|
43
|
-
|
|
44
|
-
def max_age_ms=: (Integer) -> Integer
|
|
45
|
-
|
|
46
|
-
attr_reader max_products: Integer?
|
|
47
|
-
|
|
48
|
-
def max_products=: (Integer) -> Integer
|
|
49
|
-
|
|
50
|
-
attr_reader tags: ::Array[String]?
|
|
51
|
-
|
|
52
|
-
def tags=: (::Array[String]) -> ::Array[String]
|
|
53
|
-
|
|
54
|
-
attr_reader timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts?
|
|
55
|
-
|
|
56
|
-
def timeout_opts=: (
|
|
57
|
-
ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts
|
|
58
|
-
) -> ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts
|
|
59
|
-
|
|
60
|
-
def initialize: (
|
|
61
|
-
domain: String,
|
|
62
|
-
?max_age_ms: Integer,
|
|
63
|
-
?max_products: Integer,
|
|
64
|
-
?tags: ::Array[String],
|
|
65
|
-
?timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts
|
|
66
|
-
) -> void
|
|
67
|
-
|
|
68
|
-
def to_hash: -> {
|
|
69
|
-
domain: String,
|
|
70
|
-
max_age_ms: Integer,
|
|
71
|
-
max_products: Integer,
|
|
72
|
-
tags: ::Array[String],
|
|
73
|
-
timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDomain::TimeoutOpts
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
type timeout_opts =
|
|
77
|
-
{
|
|
78
|
-
milliseconds: Integer,
|
|
79
|
-
behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
class TimeoutOpts < ContextDev::Internal::Type::BaseModel
|
|
83
|
-
attr_accessor milliseconds: Integer
|
|
84
|
-
|
|
85
|
-
attr_reader behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior?
|
|
86
|
-
|
|
87
|
-
def behavior=: (
|
|
88
|
-
ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior
|
|
89
|
-
) -> ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior
|
|
90
|
-
|
|
91
|
-
def initialize: (
|
|
92
|
-
milliseconds: Integer,
|
|
93
|
-
?behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior
|
|
94
|
-
) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> {
|
|
97
|
-
milliseconds: Integer,
|
|
98
|
-
behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
type behavior = :fail | :"return-partial"
|
|
102
|
-
|
|
103
|
-
module Behavior
|
|
104
|
-
extend ContextDev::Internal::Type::Enum
|
|
105
|
-
|
|
106
|
-
FAIL: :fail
|
|
107
|
-
RETURN_PARTIAL: :"return-partial"
|
|
108
|
-
|
|
109
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductsParams::Body::ByDomain::TimeoutOpts::behavior]
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
type by_direct_url =
|
|
115
|
-
{
|
|
116
|
-
direct_url: String,
|
|
117
|
-
max_age_ms: Integer,
|
|
118
|
-
max_products: Integer,
|
|
119
|
-
tags: ::Array[String],
|
|
120
|
-
timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
class ByDirectURL < ContextDev::Internal::Type::BaseModel
|
|
124
|
-
attr_accessor direct_url: String
|
|
125
|
-
|
|
126
|
-
attr_reader max_age_ms: Integer?
|
|
127
|
-
|
|
128
|
-
def max_age_ms=: (Integer) -> Integer
|
|
129
|
-
|
|
130
|
-
attr_reader max_products: Integer?
|
|
131
|
-
|
|
132
|
-
def max_products=: (Integer) -> Integer
|
|
133
|
-
|
|
134
|
-
attr_reader tags: ::Array[String]?
|
|
135
|
-
|
|
136
|
-
def tags=: (::Array[String]) -> ::Array[String]
|
|
137
|
-
|
|
138
|
-
attr_reader timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts?
|
|
139
|
-
|
|
140
|
-
def timeout_opts=: (
|
|
141
|
-
ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts
|
|
142
|
-
) -> ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts
|
|
143
|
-
|
|
144
|
-
def initialize: (
|
|
145
|
-
direct_url: String,
|
|
146
|
-
?max_age_ms: Integer,
|
|
147
|
-
?max_products: Integer,
|
|
148
|
-
?tags: ::Array[String],
|
|
149
|
-
?timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts
|
|
150
|
-
) -> void
|
|
151
|
-
|
|
152
|
-
def to_hash: -> {
|
|
153
|
-
direct_url: String,
|
|
154
|
-
max_age_ms: Integer,
|
|
155
|
-
max_products: Integer,
|
|
156
|
-
tags: ::Array[String],
|
|
157
|
-
timeout_opts: ContextDev::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
type timeout_opts =
|
|
161
|
-
{
|
|
162
|
-
milliseconds: Integer,
|
|
163
|
-
behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
class TimeoutOpts < ContextDev::Internal::Type::BaseModel
|
|
167
|
-
attr_accessor milliseconds: Integer
|
|
168
|
-
|
|
169
|
-
attr_reader behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior?
|
|
170
|
-
|
|
171
|
-
def behavior=: (
|
|
172
|
-
ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior
|
|
173
|
-
) -> ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior
|
|
174
|
-
|
|
175
|
-
def initialize: (
|
|
176
|
-
milliseconds: Integer,
|
|
177
|
-
?behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior
|
|
178
|
-
) -> void
|
|
179
|
-
|
|
180
|
-
def to_hash: -> {
|
|
181
|
-
milliseconds: Integer,
|
|
182
|
-
behavior: ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
type behavior = :fail | :"return-partial"
|
|
186
|
-
|
|
187
|
-
module Behavior
|
|
188
|
-
extend ContextDev::Internal::Type::Enum
|
|
189
|
-
|
|
190
|
-
FAIL: :fail
|
|
191
|
-
RETURN_PARTIAL: :"return-partial"
|
|
192
|
-
|
|
193
|
-
def self?.values: -> ::Array[ContextDev::Models::AIExtractProductsParams::Body::ByDirectURL::TimeoutOpts::behavior]
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
def self?.variants: -> ::Array[ContextDev::Models::AIExtractProductsParams::body]
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
end
|