context.dev 2.7.0 → 2.9.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 +23 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +5 -0
- data/lib/context_dev/models/batch_delete_params.rb +22 -0
- data/lib/context_dev/models/batch_delete_response.rb +60 -0
- data/lib/context_dev/models/batch_get_results_response.rb +13 -1
- data/lib/context_dev/models/batch_list_response.rb +13 -4
- data/lib/context_dev/models/batch_retrieve_response.rb +13 -4
- data/lib/context_dev/models/batch_submit_params.rb +2352 -26
- data/lib/context_dev/models/batch_submit_response.rb +125 -531
- data/lib/context_dev/models/brand_retrieve_response.rb +50 -1
- data/lib/context_dev/models/brand_search_params.rb +36 -0
- data/lib/context_dev/models/brand_search_response.rb +85 -0
- data/lib/context_dev/models/crawl_controls.rb +21 -15
- data/lib/context_dev/models/parse_handle_params.rb +11 -9
- data/lib/context_dev/models/person_enrich_params.rb +176 -0
- data/lib/context_dev/models/person_enrich_response.rb +581 -0
- data/lib/context_dev/models/web_search_response.rb +1 -0
- data/lib/context_dev/models/web_web_crawl_md_params.rb +5 -4
- data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -9
- data/lib/context_dev/models/web_web_scrape_md_params.rb +11 -9
- data/lib/context_dev/models/web_web_scrape_sitemap_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_sitemap_response.rb +3 -2
- data/lib/context_dev/models.rb +6 -0
- data/lib/context_dev/resources/batch.rb +33 -7
- data/lib/context_dev/resources/brand.rb +35 -0
- data/lib/context_dev/resources/parse.rb +1 -1
- data/lib/context_dev/resources/people.rb +56 -0
- data/lib/context_dev/resources/web.rb +21 -2
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +7 -0
- data/rbi/context_dev/client.rbi +4 -0
- data/rbi/context_dev/models/batch_delete_params.rbi +40 -0
- data/rbi/context_dev/models/batch_delete_response.rbi +116 -0
- data/rbi/context_dev/models/batch_get_results_response.rbi +14 -1
- data/rbi/context_dev/models/batch_list_response.rbi +24 -8
- data/rbi/context_dev/models/batch_retrieve_response.rbi +24 -8
- data/rbi/context_dev/models/batch_submit_params.rbi +6955 -44
- data/rbi/context_dev/models/batch_submit_response.rbi +184 -1151
- data/rbi/context_dev/models/brand_retrieve_response.rbi +152 -0
- data/rbi/context_dev/models/brand_search_params.rbi +60 -0
- data/rbi/context_dev/models/brand_search_response.rbi +148 -0
- data/rbi/context_dev/models/crawl_controls.rbi +22 -28
- data/rbi/context_dev/models/parse_handle_params.rbi +15 -12
- data/rbi/context_dev/models/person_enrich_params.rbi +332 -0
- data/rbi/context_dev/models/person_enrich_response.rbi +1208 -0
- data/rbi/context_dev/models/web_search_response.rbi +5 -0
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +8 -6
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -12
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -12
- data/rbi/context_dev/models/web_web_scrape_sitemap_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_sitemap_response.rbi +4 -2
- data/rbi/context_dev/models.rbi +6 -0
- data/rbi/context_dev/resources/batch.rbi +32 -10
- data/rbi/context_dev/resources/brand.rbi +27 -0
- data/rbi/context_dev/resources/parse.rbi +5 -5
- data/rbi/context_dev/resources/people.rbi +47 -0
- data/rbi/context_dev/resources/web.rbi +23 -1
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/batch_delete_params.rbs +23 -0
- data/sig/context_dev/models/batch_delete_response.rbs +57 -0
- data/sig/context_dev/models/batch_get_results_response.rbs +9 -2
- data/sig/context_dev/models/batch_list_response.rbs +16 -2
- data/sig/context_dev/models/batch_retrieve_response.rbs +16 -2
- data/sig/context_dev/models/batch_submit_params.rbs +2756 -15
- data/sig/context_dev/models/batch_submit_response.rbs +78 -466
- data/sig/context_dev/models/brand_retrieve_response.rbs +62 -0
- data/sig/context_dev/models/brand_search_params.rbs +30 -0
- data/sig/context_dev/models/brand_search_response.rbs +62 -0
- data/sig/context_dev/models/crawl_controls.rbs +16 -16
- data/sig/context_dev/models/person_enrich_params.rbs +199 -0
- data/sig/context_dev/models/person_enrich_response.rbs +607 -0
- data/sig/context_dev/models/web_search_response.rbs +2 -0
- data/sig/context_dev/models/web_web_scrape_sitemap_params.rbs +7 -0
- data/sig/context_dev/models.rbs +6 -0
- data/sig/context_dev/resources/batch.rbs +8 -2
- data/sig/context_dev/resources/brand.rbs +6 -0
- data/sig/context_dev/resources/people.rbs +19 -0
- data/sig/context_dev/resources/web.rbs +1 -0
- metadata +23 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type brand_search_params =
|
|
4
|
+
{ query: String, tags: ::Array[String] }
|
|
5
|
+
& ContextDev::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BrandSearchParams < ContextDev::Internal::Type::BaseModel
|
|
8
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor query: String
|
|
12
|
+
|
|
13
|
+
attr_reader tags: ::Array[String]?
|
|
14
|
+
|
|
15
|
+
def tags=: (::Array[String]) -> ::Array[String]
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
query: String,
|
|
19
|
+
?tags: ::Array[String],
|
|
20
|
+
?request_options: ContextDev::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
query: String,
|
|
25
|
+
tags: ::Array[String],
|
|
26
|
+
request_options: ContextDev::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type brand_search_response =
|
|
4
|
+
{
|
|
5
|
+
results: ::Array[ContextDev::Models::BrandSearchResponse::Result],
|
|
6
|
+
key_metadata: ContextDev::Models::BrandSearchResponse::KeyMetadata
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class BrandSearchResponse < ContextDev::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor results: ::Array[ContextDev::Models::BrandSearchResponse::Result]
|
|
11
|
+
|
|
12
|
+
attr_reader key_metadata: ContextDev::Models::BrandSearchResponse::KeyMetadata?
|
|
13
|
+
|
|
14
|
+
def key_metadata=: (
|
|
15
|
+
ContextDev::Models::BrandSearchResponse::KeyMetadata
|
|
16
|
+
) -> ContextDev::Models::BrandSearchResponse::KeyMetadata
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
results: ::Array[ContextDev::Models::BrandSearchResponse::Result],
|
|
20
|
+
?key_metadata: ContextDev::Models::BrandSearchResponse::KeyMetadata
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
results: ::Array[ContextDev::Models::BrandSearchResponse::Result],
|
|
25
|
+
key_metadata: ContextDev::Models::BrandSearchResponse::KeyMetadata
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type result = { domain: String, logo: String, name: String }
|
|
29
|
+
|
|
30
|
+
class Result < ContextDev::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor domain: String
|
|
32
|
+
|
|
33
|
+
attr_accessor logo: String
|
|
34
|
+
|
|
35
|
+
attr_accessor name: String
|
|
36
|
+
|
|
37
|
+
def initialize: (domain: String, logo: String, name: String) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> { domain: String, logo: String, name: String }
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
type key_metadata =
|
|
43
|
+
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
44
|
+
|
|
45
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
46
|
+
attr_accessor credits_consumed: Integer
|
|
47
|
+
|
|
48
|
+
attr_accessor credits_remaining: Integer
|
|
49
|
+
|
|
50
|
+
def initialize: (
|
|
51
|
+
credits_consumed: Integer,
|
|
52
|
+
credits_remaining: Integer
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
credits_consumed: Integer,
|
|
57
|
+
credits_remaining: Integer
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -37,30 +37,30 @@ module ContextDev
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
type source =
|
|
40
|
-
ContextDev::CrawlControls::Source::
|
|
41
|
-
| ContextDev::CrawlControls::Source::
|
|
40
|
+
ContextDev::CrawlControls::Source::StartURL
|
|
41
|
+
| ContextDev::CrawlControls::Source::Sitemap
|
|
42
42
|
|
|
43
43
|
module Source
|
|
44
44
|
extend ContextDev::Internal::Type::Union
|
|
45
45
|
|
|
46
|
-
type
|
|
46
|
+
type start_url =
|
|
47
47
|
{
|
|
48
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
48
|
+
type: ContextDev::Models::CrawlControls::Source::StartURL::type_,
|
|
49
49
|
url: String
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
class
|
|
53
|
-
attr_accessor type: ContextDev::Models::CrawlControls::Source::
|
|
52
|
+
class StartURL < ContextDev::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor type: ContextDev::Models::CrawlControls::Source::StartURL::type_
|
|
54
54
|
|
|
55
55
|
attr_accessor url: String
|
|
56
56
|
|
|
57
57
|
def initialize: (
|
|
58
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
58
|
+
type: ContextDev::Models::CrawlControls::Source::StartURL::type_,
|
|
59
59
|
url: String
|
|
60
60
|
) -> void
|
|
61
61
|
|
|
62
62
|
def to_hash: -> {
|
|
63
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
63
|
+
type: ContextDev::Models::CrawlControls::Source::StartURL::type_,
|
|
64
64
|
url: String
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -71,29 +71,29 @@ module ContextDev
|
|
|
71
71
|
|
|
72
72
|
START_URL: :start_url
|
|
73
73
|
|
|
74
|
-
def self?.values: -> ::Array[ContextDev::Models::CrawlControls::Source::
|
|
74
|
+
def self?.values: -> ::Array[ContextDev::Models::CrawlControls::Source::StartURL::type_]
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
type
|
|
78
|
+
type sitemap =
|
|
79
79
|
{
|
|
80
80
|
domain: String,
|
|
81
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
81
|
+
type: ContextDev::Models::CrawlControls::Source::Sitemap::type_
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class Sitemap < ContextDev::Internal::Type::BaseModel
|
|
85
85
|
attr_accessor domain: String
|
|
86
86
|
|
|
87
|
-
attr_accessor type: ContextDev::Models::CrawlControls::Source::
|
|
87
|
+
attr_accessor type: ContextDev::Models::CrawlControls::Source::Sitemap::type_
|
|
88
88
|
|
|
89
89
|
def initialize: (
|
|
90
90
|
domain: String,
|
|
91
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
91
|
+
type: ContextDev::Models::CrawlControls::Source::Sitemap::type_
|
|
92
92
|
) -> void
|
|
93
93
|
|
|
94
94
|
def to_hash: -> {
|
|
95
95
|
domain: String,
|
|
96
|
-
type: ContextDev::Models::CrawlControls::Source::
|
|
96
|
+
type: ContextDev::Models::CrawlControls::Source::Sitemap::type_
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
type type_ = :sitemap
|
|
@@ -103,7 +103,7 @@ module ContextDev
|
|
|
103
103
|
|
|
104
104
|
SITEMAP: :sitemap
|
|
105
105
|
|
|
106
|
-
def self?.values: -> ::Array[ContextDev::Models::CrawlControls::Source::
|
|
106
|
+
def self?.values: -> ::Array[ContextDev::Models::CrawlControls::Source::Sitemap::type_]
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type person_enrich_params =
|
|
4
|
+
{
|
|
5
|
+
company: ContextDev::PersonEnrichParams::Company,
|
|
6
|
+
education: ::Array[ContextDev::PersonEnrichParams::Education],
|
|
7
|
+
email: String,
|
|
8
|
+
location: ContextDev::PersonEnrichParams::Location,
|
|
9
|
+
name: ContextDev::PersonEnrichParams::Name,
|
|
10
|
+
social_urls: ::Array[String],
|
|
11
|
+
tags: ::Array[String],
|
|
12
|
+
timeout_ms: Integer
|
|
13
|
+
}
|
|
14
|
+
& ContextDev::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class PersonEnrichParams < ContextDev::Internal::Type::BaseModel
|
|
17
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_reader company: ContextDev::PersonEnrichParams::Company?
|
|
21
|
+
|
|
22
|
+
def company=: (
|
|
23
|
+
ContextDev::PersonEnrichParams::Company
|
|
24
|
+
) -> ContextDev::PersonEnrichParams::Company
|
|
25
|
+
|
|
26
|
+
attr_reader education: ::Array[ContextDev::PersonEnrichParams::Education]?
|
|
27
|
+
|
|
28
|
+
def education=: (
|
|
29
|
+
::Array[ContextDev::PersonEnrichParams::Education]
|
|
30
|
+
) -> ::Array[ContextDev::PersonEnrichParams::Education]
|
|
31
|
+
|
|
32
|
+
attr_reader email: String?
|
|
33
|
+
|
|
34
|
+
def email=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader location: ContextDev::PersonEnrichParams::Location?
|
|
37
|
+
|
|
38
|
+
def location=: (
|
|
39
|
+
ContextDev::PersonEnrichParams::Location
|
|
40
|
+
) -> ContextDev::PersonEnrichParams::Location
|
|
41
|
+
|
|
42
|
+
attr_reader name: ContextDev::PersonEnrichParams::Name?
|
|
43
|
+
|
|
44
|
+
def name=: (
|
|
45
|
+
ContextDev::PersonEnrichParams::Name
|
|
46
|
+
) -> ContextDev::PersonEnrichParams::Name
|
|
47
|
+
|
|
48
|
+
attr_reader social_urls: ::Array[String]?
|
|
49
|
+
|
|
50
|
+
def social_urls=: (::Array[String]) -> ::Array[String]
|
|
51
|
+
|
|
52
|
+
attr_reader tags: ::Array[String]?
|
|
53
|
+
|
|
54
|
+
def tags=: (::Array[String]) -> ::Array[String]
|
|
55
|
+
|
|
56
|
+
attr_reader timeout_ms: Integer?
|
|
57
|
+
|
|
58
|
+
def timeout_ms=: (Integer) -> Integer
|
|
59
|
+
|
|
60
|
+
def initialize: (
|
|
61
|
+
?company: ContextDev::PersonEnrichParams::Company,
|
|
62
|
+
?education: ::Array[ContextDev::PersonEnrichParams::Education],
|
|
63
|
+
?email: String,
|
|
64
|
+
?location: ContextDev::PersonEnrichParams::Location,
|
|
65
|
+
?name: ContextDev::PersonEnrichParams::Name,
|
|
66
|
+
?social_urls: ::Array[String],
|
|
67
|
+
?tags: ::Array[String],
|
|
68
|
+
?timeout_ms: Integer,
|
|
69
|
+
?request_options: ContextDev::request_opts
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> {
|
|
73
|
+
company: ContextDev::PersonEnrichParams::Company,
|
|
74
|
+
education: ::Array[ContextDev::PersonEnrichParams::Education],
|
|
75
|
+
email: String,
|
|
76
|
+
location: ContextDev::PersonEnrichParams::Location,
|
|
77
|
+
name: ContextDev::PersonEnrichParams::Name,
|
|
78
|
+
social_urls: ::Array[String],
|
|
79
|
+
tags: ::Array[String],
|
|
80
|
+
timeout_ms: Integer,
|
|
81
|
+
request_options: ContextDev::RequestOptions
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type company = { domain: String, name: String }
|
|
85
|
+
|
|
86
|
+
class Company < ContextDev::Internal::Type::BaseModel
|
|
87
|
+
attr_reader domain: String?
|
|
88
|
+
|
|
89
|
+
def domain=: (String) -> String
|
|
90
|
+
|
|
91
|
+
attr_reader name: String?
|
|
92
|
+
|
|
93
|
+
def name=: (String) -> String
|
|
94
|
+
|
|
95
|
+
def initialize: (?domain: String, ?name: String) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { domain: String, name: String }
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type education =
|
|
101
|
+
{
|
|
102
|
+
degree: String,
|
|
103
|
+
field_of_study: String,
|
|
104
|
+
graduation_year: Integer,
|
|
105
|
+
institution: ContextDev::PersonEnrichParams::Education::Institution
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class Education < ContextDev::Internal::Type::BaseModel
|
|
109
|
+
attr_reader degree: String?
|
|
110
|
+
|
|
111
|
+
def degree=: (String) -> String
|
|
112
|
+
|
|
113
|
+
attr_reader field_of_study: String?
|
|
114
|
+
|
|
115
|
+
def field_of_study=: (String) -> String
|
|
116
|
+
|
|
117
|
+
attr_reader graduation_year: Integer?
|
|
118
|
+
|
|
119
|
+
def graduation_year=: (Integer) -> Integer
|
|
120
|
+
|
|
121
|
+
attr_reader institution: ContextDev::PersonEnrichParams::Education::Institution?
|
|
122
|
+
|
|
123
|
+
def institution=: (
|
|
124
|
+
ContextDev::PersonEnrichParams::Education::Institution
|
|
125
|
+
) -> ContextDev::PersonEnrichParams::Education::Institution
|
|
126
|
+
|
|
127
|
+
def initialize: (
|
|
128
|
+
?degree: String,
|
|
129
|
+
?field_of_study: String,
|
|
130
|
+
?graduation_year: Integer,
|
|
131
|
+
?institution: ContextDev::PersonEnrichParams::Education::Institution
|
|
132
|
+
) -> void
|
|
133
|
+
|
|
134
|
+
def to_hash: -> {
|
|
135
|
+
degree: String,
|
|
136
|
+
field_of_study: String,
|
|
137
|
+
graduation_year: Integer,
|
|
138
|
+
institution: ContextDev::PersonEnrichParams::Education::Institution
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
type institution = { domain: String, name: String }
|
|
142
|
+
|
|
143
|
+
class Institution < ContextDev::Internal::Type::BaseModel
|
|
144
|
+
attr_reader domain: String?
|
|
145
|
+
|
|
146
|
+
def domain=: (String) -> String
|
|
147
|
+
|
|
148
|
+
attr_reader name: String?
|
|
149
|
+
|
|
150
|
+
def name=: (String) -> String
|
|
151
|
+
|
|
152
|
+
def initialize: (?domain: String, ?name: String) -> void
|
|
153
|
+
|
|
154
|
+
def to_hash: -> { domain: String, name: String }
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
type location = { city: String, country: String, region: String }
|
|
159
|
+
|
|
160
|
+
class Location < ContextDev::Internal::Type::BaseModel
|
|
161
|
+
attr_reader city: String?
|
|
162
|
+
|
|
163
|
+
def city=: (String) -> String
|
|
164
|
+
|
|
165
|
+
attr_reader country: String?
|
|
166
|
+
|
|
167
|
+
def country=: (String) -> String
|
|
168
|
+
|
|
169
|
+
attr_reader region: String?
|
|
170
|
+
|
|
171
|
+
def region=: (String) -> String
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
?city: String,
|
|
175
|
+
?country: String,
|
|
176
|
+
?region: String
|
|
177
|
+
) -> void
|
|
178
|
+
|
|
179
|
+
def to_hash: -> { city: String, country: String, region: String }
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type name_ = { first: String, last: String }
|
|
183
|
+
|
|
184
|
+
class Name < ContextDev::Internal::Type::BaseModel
|
|
185
|
+
attr_reader first: String?
|
|
186
|
+
|
|
187
|
+
def first=: (String) -> String
|
|
188
|
+
|
|
189
|
+
attr_reader last: String?
|
|
190
|
+
|
|
191
|
+
def last=: (String) -> String
|
|
192
|
+
|
|
193
|
+
def initialize: (?first: String, ?last: String) -> void
|
|
194
|
+
|
|
195
|
+
def to_hash: -> { first: String, last: String }
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|