context.dev 2.19.0 → 2.21.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 +219 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +6 -0
- data/lib/context_dev/models/feedback_submit_params.rb +73 -0
- data/lib/context_dev/models/feedback_submit_response.rb +68 -0
- data/lib/context_dev/models/news_search_params.rb +13 -6
- data/lib/context_dev/models/web_scrape_params.rb +149 -14
- data/lib/context_dev/models/web_scrape_response.rb +404 -12
- data/lib/context_dev/models.rb +2 -0
- data/lib/context_dev/resources/feedback.rb +50 -0
- data/lib/context_dev/resources/news.rb +8 -4
- data/lib/context_dev/resources/web.rb +26 -8
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +3 -0
- data/rbi/context_dev/client.rbi +5 -0
- data/rbi/context_dev/models/feedback_submit_params.rbi +133 -0
- data/rbi/context_dev/models/feedback_submit_response.rbi +122 -0
- data/rbi/context_dev/models/news_search_params.rbi +12 -6
- data/rbi/context_dev/models/web_scrape_params.rbi +248 -18
- data/rbi/context_dev/models/web_scrape_response.rbi +702 -30
- data/rbi/context_dev/models.rbi +2 -0
- data/rbi/context_dev/resources/feedback.rbi +42 -0
- data/rbi/context_dev/resources/news.rbi +7 -4
- data/rbi/context_dev/resources/web.rbi +38 -12
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/feedback_submit_params.rbs +73 -0
- data/sig/context_dev/models/feedback_submit_response.rbs +58 -0
- data/sig/context_dev/models/web_scrape_params.rbs +91 -0
- data/sig/context_dev/models/web_scrape_response.rbs +302 -18
- data/sig/context_dev/models.rbs +2 -0
- data/sig/context_dev/resources/feedback.rbs +16 -0
- data/sig/context_dev/resources/web.rbs +3 -0
- metadata +11 -2
|
@@ -4,11 +4,14 @@ module ContextDev
|
|
|
4
4
|
{
|
|
5
5
|
bytes: ContextDev::Models::WebScrapeResponse::Bytes,
|
|
6
6
|
cache_metadata: ContextDev::Models::WebScrapeResponse::CacheMetadata,
|
|
7
|
+
highlights: ContextDev::Models::WebScrapeResponse::Highlights,
|
|
7
8
|
html: ContextDev::Models::WebScrapeResponse::HTML,
|
|
8
9
|
images: ContextDev::Models::WebScrapeResponse::Images,
|
|
10
|
+
json: ContextDev::Models::WebScrapeResponse::Json,
|
|
9
11
|
markdown: ContextDev::Models::WebScrapeResponse::Markdown,
|
|
10
12
|
metadata: ContextDev::Models::WebScrapeResponse::Metadata,
|
|
11
13
|
parsed: ContextDev::Models::WebScrapeResponse::Parsed,
|
|
14
|
+
product: ContextDev::Models::WebScrapeResponse::Product,
|
|
12
15
|
request_id: String,
|
|
13
16
|
screenshot: ContextDev::Models::WebScrapeResponse::Screenshot,
|
|
14
17
|
url: String,
|
|
@@ -21,16 +24,22 @@ module ContextDev
|
|
|
21
24
|
|
|
22
25
|
attr_accessor cache_metadata: ContextDev::Models::WebScrapeResponse::CacheMetadata
|
|
23
26
|
|
|
27
|
+
attr_accessor highlights: ContextDev::Models::WebScrapeResponse::Highlights
|
|
28
|
+
|
|
24
29
|
attr_accessor html: ContextDev::Models::WebScrapeResponse::HTML
|
|
25
30
|
|
|
26
31
|
attr_accessor images: ContextDev::Models::WebScrapeResponse::Images
|
|
27
32
|
|
|
33
|
+
attr_accessor json: ContextDev::Models::WebScrapeResponse::Json
|
|
34
|
+
|
|
28
35
|
attr_accessor markdown: ContextDev::Models::WebScrapeResponse::Markdown
|
|
29
36
|
|
|
30
37
|
attr_accessor metadata: ContextDev::Models::WebScrapeResponse::Metadata
|
|
31
38
|
|
|
32
39
|
attr_accessor parsed: ContextDev::Models::WebScrapeResponse::Parsed
|
|
33
40
|
|
|
41
|
+
attr_accessor product: ContextDev::Models::WebScrapeResponse::Product
|
|
42
|
+
|
|
34
43
|
attr_accessor request_id: String
|
|
35
44
|
|
|
36
45
|
attr_accessor screenshot: ContextDev::Models::WebScrapeResponse::Screenshot
|
|
@@ -52,11 +61,14 @@ module ContextDev
|
|
|
52
61
|
def initialize: (
|
|
53
62
|
bytes: ContextDev::Models::WebScrapeResponse::Bytes,
|
|
54
63
|
cache_metadata: ContextDev::Models::WebScrapeResponse::CacheMetadata,
|
|
64
|
+
highlights: ContextDev::Models::WebScrapeResponse::Highlights,
|
|
55
65
|
html: ContextDev::Models::WebScrapeResponse::HTML,
|
|
56
66
|
images: ContextDev::Models::WebScrapeResponse::Images,
|
|
67
|
+
json: ContextDev::Models::WebScrapeResponse::Json,
|
|
57
68
|
markdown: ContextDev::Models::WebScrapeResponse::Markdown,
|
|
58
69
|
metadata: ContextDev::Models::WebScrapeResponse::Metadata,
|
|
59
70
|
parsed: ContextDev::Models::WebScrapeResponse::Parsed,
|
|
71
|
+
product: ContextDev::Models::WebScrapeResponse::Product,
|
|
60
72
|
request_id: String,
|
|
61
73
|
screenshot: ContextDev::Models::WebScrapeResponse::Screenshot,
|
|
62
74
|
url: String,
|
|
@@ -67,11 +79,14 @@ module ContextDev
|
|
|
67
79
|
def to_hash: -> {
|
|
68
80
|
bytes: ContextDev::Models::WebScrapeResponse::Bytes,
|
|
69
81
|
cache_metadata: ContextDev::Models::WebScrapeResponse::CacheMetadata,
|
|
82
|
+
highlights: ContextDev::Models::WebScrapeResponse::Highlights,
|
|
70
83
|
html: ContextDev::Models::WebScrapeResponse::HTML,
|
|
71
84
|
images: ContextDev::Models::WebScrapeResponse::Images,
|
|
85
|
+
json: ContextDev::Models::WebScrapeResponse::Json,
|
|
72
86
|
markdown: ContextDev::Models::WebScrapeResponse::Markdown,
|
|
73
87
|
metadata: ContextDev::Models::WebScrapeResponse::Metadata,
|
|
74
88
|
parsed: ContextDev::Models::WebScrapeResponse::Parsed,
|
|
89
|
+
product: ContextDev::Models::WebScrapeResponse::Product,
|
|
75
90
|
request_id: String,
|
|
76
91
|
screenshot: ContextDev::Models::WebScrapeResponse::Screenshot,
|
|
77
92
|
url: String,
|
|
@@ -82,7 +97,8 @@ module ContextDev
|
|
|
82
97
|
type bytes =
|
|
83
98
|
{
|
|
84
99
|
data: ContextDev::Models::WebScrapeResponse::Bytes::Data?,
|
|
85
|
-
requested: bool
|
|
100
|
+
requested: bool,
|
|
101
|
+
success: bool?
|
|
86
102
|
}
|
|
87
103
|
|
|
88
104
|
class Bytes < ContextDev::Internal::Type::BaseModel
|
|
@@ -90,14 +106,18 @@ module ContextDev
|
|
|
90
106
|
|
|
91
107
|
attr_accessor requested: bool
|
|
92
108
|
|
|
109
|
+
attr_accessor success: bool?
|
|
110
|
+
|
|
93
111
|
def initialize: (
|
|
94
112
|
data: ContextDev::Models::WebScrapeResponse::Bytes::Data?,
|
|
95
|
-
requested: bool
|
|
113
|
+
requested: bool,
|
|
114
|
+
success: bool?
|
|
96
115
|
) -> void
|
|
97
116
|
|
|
98
117
|
def to_hash: -> {
|
|
99
118
|
data: ContextDev::Models::WebScrapeResponse::Bytes::Data?,
|
|
100
|
-
requested: bool
|
|
119
|
+
requested: bool,
|
|
120
|
+
success: bool?
|
|
101
121
|
}
|
|
102
122
|
|
|
103
123
|
type data = { :base64 => String, content_type: String }
|
|
@@ -147,22 +167,48 @@ module ContextDev
|
|
|
147
167
|
end
|
|
148
168
|
end
|
|
149
169
|
|
|
150
|
-
type
|
|
170
|
+
type highlights =
|
|
171
|
+
{ data: ::Array[String]?, requested: bool, success: bool? }
|
|
172
|
+
|
|
173
|
+
class Highlights < ContextDev::Internal::Type::BaseModel
|
|
174
|
+
attr_accessor data: ::Array[String]?
|
|
175
|
+
|
|
176
|
+
attr_accessor requested: bool
|
|
177
|
+
|
|
178
|
+
attr_accessor success: bool?
|
|
179
|
+
|
|
180
|
+
def initialize: (
|
|
181
|
+
data: ::Array[String]?,
|
|
182
|
+
requested: bool,
|
|
183
|
+
success: bool?
|
|
184
|
+
) -> void
|
|
185
|
+
|
|
186
|
+
def to_hash: -> {
|
|
187
|
+
data: ::Array[String]?,
|
|
188
|
+
requested: bool,
|
|
189
|
+
success: bool?
|
|
190
|
+
}
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
type html = { data: String?, requested: bool, success: bool? }
|
|
151
194
|
|
|
152
195
|
class HTML < ContextDev::Internal::Type::BaseModel
|
|
153
196
|
attr_accessor data: String?
|
|
154
197
|
|
|
155
198
|
attr_accessor requested: bool
|
|
156
199
|
|
|
157
|
-
|
|
200
|
+
attr_accessor success: bool?
|
|
201
|
+
|
|
202
|
+
def initialize: (data: String?, requested: bool, success: bool?) -> void
|
|
158
203
|
|
|
159
|
-
def to_hash: -> { data: String?, requested: bool }
|
|
204
|
+
def to_hash: -> { data: String?, requested: bool, success: bool? }
|
|
160
205
|
end
|
|
161
206
|
|
|
162
207
|
type images =
|
|
163
208
|
{
|
|
164
209
|
data: ::Array[ContextDev::Models::WebScrapeResponse::Images::Data]?,
|
|
165
|
-
requested: bool
|
|
210
|
+
requested: bool,
|
|
211
|
+
success: bool?
|
|
166
212
|
}
|
|
167
213
|
|
|
168
214
|
class Images < ContextDev::Internal::Type::BaseModel
|
|
@@ -170,14 +216,18 @@ module ContextDev
|
|
|
170
216
|
|
|
171
217
|
attr_accessor requested: bool
|
|
172
218
|
|
|
219
|
+
attr_accessor success: bool?
|
|
220
|
+
|
|
173
221
|
def initialize: (
|
|
174
222
|
data: ::Array[ContextDev::Models::WebScrapeResponse::Images::Data]?,
|
|
175
|
-
requested: bool
|
|
223
|
+
requested: bool,
|
|
224
|
+
success: bool?
|
|
176
225
|
) -> void
|
|
177
226
|
|
|
178
227
|
def to_hash: -> {
|
|
179
228
|
data: ::Array[ContextDev::Models::WebScrapeResponse::Images::Data]?,
|
|
180
|
-
requested: bool
|
|
229
|
+
requested: bool,
|
|
230
|
+
success: bool?
|
|
181
231
|
}
|
|
182
232
|
|
|
183
233
|
type data =
|
|
@@ -258,16 +308,41 @@ module ContextDev
|
|
|
258
308
|
end
|
|
259
309
|
end
|
|
260
310
|
|
|
261
|
-
type
|
|
311
|
+
type json =
|
|
312
|
+
{ data: ::Hash[Symbol, top]?, requested: bool, success: bool? }
|
|
313
|
+
|
|
314
|
+
class Json < ContextDev::Internal::Type::BaseModel
|
|
315
|
+
attr_accessor data: ::Hash[Symbol, top]?
|
|
316
|
+
|
|
317
|
+
attr_accessor requested: bool
|
|
318
|
+
|
|
319
|
+
attr_accessor success: bool?
|
|
320
|
+
|
|
321
|
+
def initialize: (
|
|
322
|
+
data: ::Hash[Symbol, top]?,
|
|
323
|
+
requested: bool,
|
|
324
|
+
success: bool?
|
|
325
|
+
) -> void
|
|
326
|
+
|
|
327
|
+
def to_hash: -> {
|
|
328
|
+
data: ::Hash[Symbol, top]?,
|
|
329
|
+
requested: bool,
|
|
330
|
+
success: bool?
|
|
331
|
+
}
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
type markdown = { data: String?, requested: bool, success: bool? }
|
|
262
335
|
|
|
263
336
|
class Markdown < ContextDev::Internal::Type::BaseModel
|
|
264
337
|
attr_accessor data: String?
|
|
265
338
|
|
|
266
339
|
attr_accessor requested: bool
|
|
267
340
|
|
|
268
|
-
|
|
341
|
+
attr_accessor success: bool?
|
|
342
|
+
|
|
343
|
+
def initialize: (data: String?, requested: bool, success: bool?) -> void
|
|
269
344
|
|
|
270
|
-
def to_hash: -> { data: String?, requested: bool }
|
|
345
|
+
def to_hash: -> { data: String?, requested: bool, success: bool? }
|
|
271
346
|
end
|
|
272
347
|
|
|
273
348
|
type metadata =
|
|
@@ -495,28 +570,237 @@ module ContextDev
|
|
|
495
570
|
end
|
|
496
571
|
end
|
|
497
572
|
|
|
498
|
-
type parsed =
|
|
573
|
+
type parsed =
|
|
574
|
+
{ data: ::Hash[Symbol, top]?, requested: bool, success: bool? }
|
|
499
575
|
|
|
500
576
|
class Parsed < ContextDev::Internal::Type::BaseModel
|
|
501
577
|
attr_accessor data: ::Hash[Symbol, top]?
|
|
502
578
|
|
|
503
579
|
attr_accessor requested: bool
|
|
504
580
|
|
|
505
|
-
|
|
581
|
+
attr_accessor success: bool?
|
|
582
|
+
|
|
583
|
+
def initialize: (
|
|
584
|
+
data: ::Hash[Symbol, top]?,
|
|
585
|
+
requested: bool,
|
|
586
|
+
success: bool?
|
|
587
|
+
) -> void
|
|
588
|
+
|
|
589
|
+
def to_hash: -> {
|
|
590
|
+
data: ::Hash[Symbol, top]?,
|
|
591
|
+
requested: bool,
|
|
592
|
+
success: bool?
|
|
593
|
+
}
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
type product =
|
|
597
|
+
{
|
|
598
|
+
data: ContextDev::Models::WebScrapeResponse::Product::Data?,
|
|
599
|
+
requested: bool,
|
|
600
|
+
success: bool?
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
class Product < ContextDev::Internal::Type::BaseModel
|
|
604
|
+
attr_accessor data: ContextDev::Models::WebScrapeResponse::Product::Data?
|
|
605
|
+
|
|
606
|
+
attr_accessor requested: bool
|
|
607
|
+
|
|
608
|
+
attr_accessor success: bool?
|
|
609
|
+
|
|
610
|
+
def initialize: (
|
|
611
|
+
data: ContextDev::Models::WebScrapeResponse::Product::Data?,
|
|
612
|
+
requested: bool,
|
|
613
|
+
success: bool?
|
|
614
|
+
) -> void
|
|
615
|
+
|
|
616
|
+
def to_hash: -> {
|
|
617
|
+
data: ContextDev::Models::WebScrapeResponse::Product::Data?,
|
|
618
|
+
requested: bool,
|
|
619
|
+
success: bool?
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
type data =
|
|
623
|
+
{
|
|
624
|
+
is_product_page: bool,
|
|
625
|
+
product: ContextDev::Models::WebScrapeResponse::Product::Data::Product?
|
|
626
|
+
}
|
|
506
627
|
|
|
507
|
-
|
|
628
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
629
|
+
attr_accessor is_product_page: bool
|
|
630
|
+
|
|
631
|
+
attr_accessor product: ContextDev::Models::WebScrapeResponse::Product::Data::Product?
|
|
632
|
+
|
|
633
|
+
def initialize: (
|
|
634
|
+
is_product_page: bool,
|
|
635
|
+
product: ContextDev::Models::WebScrapeResponse::Product::Data::Product?
|
|
636
|
+
) -> void
|
|
637
|
+
|
|
638
|
+
def to_hash: -> {
|
|
639
|
+
is_product_page: bool,
|
|
640
|
+
product: ContextDev::Models::WebScrapeResponse::Product::Data::Product?
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
type product =
|
|
644
|
+
{
|
|
645
|
+
availability: ContextDev::Models::WebScrapeResponse::Product::Data::Product::availability?,
|
|
646
|
+
brand: String?,
|
|
647
|
+
category: String?,
|
|
648
|
+
currency: String?,
|
|
649
|
+
description: String?,
|
|
650
|
+
dimensions: ::Array[String],
|
|
651
|
+
features: ::Array[String],
|
|
652
|
+
images: ::Array[String],
|
|
653
|
+
image_url: String?,
|
|
654
|
+
name: String,
|
|
655
|
+
price: Float?,
|
|
656
|
+
regular_price: Float?,
|
|
657
|
+
sku: String?,
|
|
658
|
+
tags: ::Array[String],
|
|
659
|
+
target_audience: ::Array[String],
|
|
660
|
+
variants: ::Array[ContextDev::Models::WebScrapeResponse::Product::Data::Product::Variant]
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
class Product < ContextDev::Internal::Type::BaseModel
|
|
664
|
+
attr_accessor availability: ContextDev::Models::WebScrapeResponse::Product::Data::Product::availability?
|
|
665
|
+
|
|
666
|
+
attr_accessor brand: String?
|
|
667
|
+
|
|
668
|
+
attr_accessor category: String?
|
|
669
|
+
|
|
670
|
+
attr_accessor currency: String?
|
|
671
|
+
|
|
672
|
+
attr_accessor description: String?
|
|
673
|
+
|
|
674
|
+
attr_accessor dimensions: ::Array[String]
|
|
675
|
+
|
|
676
|
+
attr_accessor features: ::Array[String]
|
|
677
|
+
|
|
678
|
+
attr_accessor images: ::Array[String]
|
|
679
|
+
|
|
680
|
+
attr_accessor image_url: String?
|
|
681
|
+
|
|
682
|
+
attr_accessor name: String
|
|
683
|
+
|
|
684
|
+
attr_accessor price: Float?
|
|
685
|
+
|
|
686
|
+
attr_accessor regular_price: Float?
|
|
687
|
+
|
|
688
|
+
attr_accessor sku: String?
|
|
689
|
+
|
|
690
|
+
attr_accessor tags: ::Array[String]
|
|
691
|
+
|
|
692
|
+
attr_accessor target_audience: ::Array[String]
|
|
693
|
+
|
|
694
|
+
attr_accessor variants: ::Array[ContextDev::Models::WebScrapeResponse::Product::Data::Product::Variant]
|
|
695
|
+
|
|
696
|
+
def initialize: (
|
|
697
|
+
availability: ContextDev::Models::WebScrapeResponse::Product::Data::Product::availability?,
|
|
698
|
+
brand: String?,
|
|
699
|
+
category: String?,
|
|
700
|
+
currency: String?,
|
|
701
|
+
description: String?,
|
|
702
|
+
dimensions: ::Array[String],
|
|
703
|
+
features: ::Array[String],
|
|
704
|
+
images: ::Array[String],
|
|
705
|
+
image_url: String?,
|
|
706
|
+
name: String,
|
|
707
|
+
price: Float?,
|
|
708
|
+
regular_price: Float?,
|
|
709
|
+
sku: String?,
|
|
710
|
+
tags: ::Array[String],
|
|
711
|
+
target_audience: ::Array[String],
|
|
712
|
+
variants: ::Array[ContextDev::Models::WebScrapeResponse::Product::Data::Product::Variant]
|
|
713
|
+
) -> void
|
|
714
|
+
|
|
715
|
+
def to_hash: -> {
|
|
716
|
+
availability: ContextDev::Models::WebScrapeResponse::Product::Data::Product::availability?,
|
|
717
|
+
brand: String?,
|
|
718
|
+
category: String?,
|
|
719
|
+
currency: String?,
|
|
720
|
+
description: String?,
|
|
721
|
+
dimensions: ::Array[String],
|
|
722
|
+
features: ::Array[String],
|
|
723
|
+
images: ::Array[String],
|
|
724
|
+
image_url: String?,
|
|
725
|
+
name: String,
|
|
726
|
+
price: Float?,
|
|
727
|
+
regular_price: Float?,
|
|
728
|
+
sku: String?,
|
|
729
|
+
tags: ::Array[String],
|
|
730
|
+
target_audience: ::Array[String],
|
|
731
|
+
variants: ::Array[ContextDev::Models::WebScrapeResponse::Product::Data::Product::Variant]
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
type availability =
|
|
735
|
+
:in_stock
|
|
736
|
+
| :out_of_stock
|
|
737
|
+
| :limited_availability
|
|
738
|
+
| :preorder
|
|
739
|
+
| :backorder
|
|
740
|
+
| :made_to_order
|
|
741
|
+
| :discontinued
|
|
742
|
+
|
|
743
|
+
module Availability
|
|
744
|
+
extend ContextDev::Internal::Type::Enum
|
|
745
|
+
|
|
746
|
+
IN_STOCK: :in_stock
|
|
747
|
+
OUT_OF_STOCK: :out_of_stock
|
|
748
|
+
LIMITED_AVAILABILITY: :limited_availability
|
|
749
|
+
PREORDER: :preorder
|
|
750
|
+
BACKORDER: :backorder
|
|
751
|
+
MADE_TO_ORDER: :made_to_order
|
|
752
|
+
DISCONTINUED: :discontinued
|
|
753
|
+
|
|
754
|
+
def self?.values: -> ::Array[ContextDev::Models::WebScrapeResponse::Product::Data::Product::availability]
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
type variant =
|
|
758
|
+
{
|
|
759
|
+
attributes: ::Hash[Symbol, String],
|
|
760
|
+
images: ::Array[String],
|
|
761
|
+
sku: String?,
|
|
762
|
+
url: String?
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
class Variant < ContextDev::Internal::Type::BaseModel
|
|
766
|
+
attr_accessor attributes: ::Hash[Symbol, String]
|
|
767
|
+
|
|
768
|
+
attr_accessor images: ::Array[String]
|
|
769
|
+
|
|
770
|
+
attr_accessor sku: String?
|
|
771
|
+
|
|
772
|
+
attr_accessor url: String?
|
|
773
|
+
|
|
774
|
+
def initialize: (
|
|
775
|
+
attributes: ::Hash[Symbol, String],
|
|
776
|
+
images: ::Array[String],
|
|
777
|
+
sku: String?,
|
|
778
|
+
url: String?
|
|
779
|
+
) -> void
|
|
780
|
+
|
|
781
|
+
def to_hash: -> {
|
|
782
|
+
attributes: ::Hash[Symbol, String],
|
|
783
|
+
images: ::Array[String],
|
|
784
|
+
sku: String?,
|
|
785
|
+
url: String?
|
|
786
|
+
}
|
|
787
|
+
end
|
|
788
|
+
end
|
|
789
|
+
end
|
|
508
790
|
end
|
|
509
791
|
|
|
510
|
-
type screenshot = { data: String?, requested: bool }
|
|
792
|
+
type screenshot = { data: String?, requested: bool, success: bool? }
|
|
511
793
|
|
|
512
794
|
class Screenshot < ContextDev::Internal::Type::BaseModel
|
|
513
795
|
attr_accessor data: String?
|
|
514
796
|
|
|
515
797
|
attr_accessor requested: bool
|
|
516
798
|
|
|
517
|
-
|
|
799
|
+
attr_accessor success: bool?
|
|
800
|
+
|
|
801
|
+
def initialize: (data: String?, requested: bool, success: bool?) -> void
|
|
518
802
|
|
|
519
|
-
def to_hash: -> { data: String?, requested: bool }
|
|
803
|
+
def to_hash: -> { data: String?, requested: bool, success: bool? }
|
|
520
804
|
end
|
|
521
805
|
|
|
522
806
|
type is_partial = true
|
data/sig/context_dev/models.rbs
CHANGED
|
@@ -19,6 +19,8 @@ module ContextDev
|
|
|
19
19
|
|
|
20
20
|
class Failure = ContextDev::Models::Failure
|
|
21
21
|
|
|
22
|
+
class FeedbackSubmitParams = ContextDev::Models::FeedbackSubmitParams
|
|
23
|
+
|
|
22
24
|
class IndustryRetrieveNaicsParams = ContextDev::Models::IndustryRetrieveNaicsParams
|
|
23
25
|
|
|
24
26
|
class IndustryRetrieveSicParams = ContextDev::Models::IndustryRetrieveSicParams
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Resources
|
|
3
|
+
class Feedback
|
|
4
|
+
def submit: (
|
|
5
|
+
category: ContextDev::Models::FeedbackSubmitParams::category,
|
|
6
|
+
note: String,
|
|
7
|
+
?request_id: String,
|
|
8
|
+
?tags: ::Array[String],
|
|
9
|
+
?url: String,
|
|
10
|
+
?request_options: ContextDev::request_opts
|
|
11
|
+
) -> ContextDev::Models::FeedbackSubmitResponse
|
|
12
|
+
|
|
13
|
+
def initialize: (client: ContextDev::Client) -> void
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -48,10 +48,13 @@ module ContextDev
|
|
|
48
48
|
def scrape: (
|
|
49
49
|
formats: ContextDev::WebScrapeParams::Formats,
|
|
50
50
|
url: String,
|
|
51
|
+
?highlights_params: ContextDev::WebScrapeParams::HighlightsParams,
|
|
51
52
|
?image_params: ContextDev::WebScrapeParams::ImageParams,
|
|
53
|
+
?json_params: ContextDev::WebScrapeParams::JsonParams,
|
|
52
54
|
?markdown_params: ContextDev::WebScrapeParams::MarkdownParams,
|
|
53
55
|
?max_age_ms: Integer,
|
|
54
56
|
?parse_params: ContextDev::WebScrapeParams::ParseParams,
|
|
57
|
+
?product_params: ContextDev::WebScrapeParams::ProductParams,
|
|
55
58
|
?screenshot_params: ContextDev::WebScrapeParams::ScreenshotParams,
|
|
56
59
|
?shared_params: ContextDev::WebScrapeParams::SharedParams,
|
|
57
60
|
?tags: ::Array[String],
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: context.dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Context Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -87,6 +87,8 @@ files:
|
|
|
87
87
|
- lib/context_dev/models/brand_search_response.rb
|
|
88
88
|
- lib/context_dev/models/crawl_controls.rb
|
|
89
89
|
- lib/context_dev/models/failure.rb
|
|
90
|
+
- lib/context_dev/models/feedback_submit_params.rb
|
|
91
|
+
- lib/context_dev/models/feedback_submit_response.rb
|
|
90
92
|
- lib/context_dev/models/industry_retrieve_naics_params.rb
|
|
91
93
|
- lib/context_dev/models/industry_retrieve_naics_response.rb
|
|
92
94
|
- lib/context_dev/models/industry_retrieve_sic_params.rb
|
|
@@ -167,6 +169,7 @@ files:
|
|
|
167
169
|
- lib/context_dev/request_options.rb
|
|
168
170
|
- lib/context_dev/resources/batch.rb
|
|
169
171
|
- lib/context_dev/resources/brand.rb
|
|
172
|
+
- lib/context_dev/resources/feedback.rb
|
|
170
173
|
- lib/context_dev/resources/industry.rb
|
|
171
174
|
- lib/context_dev/resources/logs.rb
|
|
172
175
|
- lib/context_dev/resources/monitors.rb
|
|
@@ -216,6 +219,8 @@ files:
|
|
|
216
219
|
- rbi/context_dev/models/brand_search_response.rbi
|
|
217
220
|
- rbi/context_dev/models/crawl_controls.rbi
|
|
218
221
|
- rbi/context_dev/models/failure.rbi
|
|
222
|
+
- rbi/context_dev/models/feedback_submit_params.rbi
|
|
223
|
+
- rbi/context_dev/models/feedback_submit_response.rbi
|
|
219
224
|
- rbi/context_dev/models/industry_retrieve_naics_params.rbi
|
|
220
225
|
- rbi/context_dev/models/industry_retrieve_naics_response.rbi
|
|
221
226
|
- rbi/context_dev/models/industry_retrieve_sic_params.rbi
|
|
@@ -296,6 +301,7 @@ files:
|
|
|
296
301
|
- rbi/context_dev/request_options.rbi
|
|
297
302
|
- rbi/context_dev/resources/batch.rbi
|
|
298
303
|
- rbi/context_dev/resources/brand.rbi
|
|
304
|
+
- rbi/context_dev/resources/feedback.rbi
|
|
299
305
|
- rbi/context_dev/resources/industry.rbi
|
|
300
306
|
- rbi/context_dev/resources/logs.rbi
|
|
301
307
|
- rbi/context_dev/resources/monitors.rbi
|
|
@@ -344,6 +350,8 @@ files:
|
|
|
344
350
|
- sig/context_dev/models/brand_search_response.rbs
|
|
345
351
|
- sig/context_dev/models/crawl_controls.rbs
|
|
346
352
|
- sig/context_dev/models/failure.rbs
|
|
353
|
+
- sig/context_dev/models/feedback_submit_params.rbs
|
|
354
|
+
- sig/context_dev/models/feedback_submit_response.rbs
|
|
347
355
|
- sig/context_dev/models/industry_retrieve_naics_params.rbs
|
|
348
356
|
- sig/context_dev/models/industry_retrieve_naics_response.rbs
|
|
349
357
|
- sig/context_dev/models/industry_retrieve_sic_params.rbs
|
|
@@ -424,6 +432,7 @@ files:
|
|
|
424
432
|
- sig/context_dev/request_options.rbs
|
|
425
433
|
- sig/context_dev/resources/batch.rbs
|
|
426
434
|
- sig/context_dev/resources/brand.rbs
|
|
435
|
+
- sig/context_dev/resources/feedback.rbs
|
|
427
436
|
- sig/context_dev/resources/industry.rbs
|
|
428
437
|
- sig/context_dev/resources/logs.rbs
|
|
429
438
|
- sig/context_dev/resources/monitors.rbs
|