context.dev 2.8.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 +15 -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_response.rb +3 -2
- 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 +4 -0
- data/lib/context_dev/resources/batch.rb +33 -7
- data/lib/context_dev/resources/brand.rb +2 -1
- 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 +5 -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_response.rbi +4 -2
- 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 +4 -0
- data/rbi/context_dev/resources/batch.rbi +32 -10
- data/rbi/context_dev/resources/brand.rbi +2 -1
- 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/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 +4 -0
- data/sig/context_dev/resources/batch.rbs +8 -2
- data/sig/context_dev/resources/people.rbs +19 -0
- data/sig/context_dev/resources/web.rbs +1 -0
- metadata +17 -2
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type person_enrich_response =
|
|
4
|
+
{
|
|
5
|
+
match: ContextDev::Models::PersonEnrichResponse::match,
|
|
6
|
+
key_metadata: ContextDev::Models::PersonEnrichResponse::KeyMetadata
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class PersonEnrichResponse < ContextDev::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor match: ContextDev::Models::PersonEnrichResponse::match
|
|
11
|
+
|
|
12
|
+
attr_reader key_metadata: ContextDev::Models::PersonEnrichResponse::KeyMetadata?
|
|
13
|
+
|
|
14
|
+
def key_metadata=: (
|
|
15
|
+
ContextDev::Models::PersonEnrichResponse::KeyMetadata
|
|
16
|
+
) -> ContextDev::Models::PersonEnrichResponse::KeyMetadata
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
match: ContextDev::Models::PersonEnrichResponse::match,
|
|
20
|
+
?key_metadata: ContextDev::Models::PersonEnrichResponse::KeyMetadata
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
match: ContextDev::Models::PersonEnrichResponse::match,
|
|
25
|
+
key_metadata: ContextDev::Models::PersonEnrichResponse::KeyMetadata
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type match =
|
|
29
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate
|
|
30
|
+
| ContextDev::Models::PersonEnrichResponse::Match::NotFound
|
|
31
|
+
|
|
32
|
+
module Match
|
|
33
|
+
extend ContextDev::Internal::Type::Union
|
|
34
|
+
|
|
35
|
+
type candidate =
|
|
36
|
+
{
|
|
37
|
+
person: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person,
|
|
38
|
+
score: Integer,
|
|
39
|
+
status: :candidate
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class Candidate < ContextDev::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor person: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person
|
|
44
|
+
|
|
45
|
+
attr_accessor score: Integer
|
|
46
|
+
|
|
47
|
+
attr_accessor status: :candidate
|
|
48
|
+
|
|
49
|
+
def initialize: (
|
|
50
|
+
person: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person,
|
|
51
|
+
score: Integer,
|
|
52
|
+
?status: :candidate
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
person: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person,
|
|
57
|
+
score: Integer,
|
|
58
|
+
status: :candidate
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type person =
|
|
62
|
+
{
|
|
63
|
+
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
64
|
+
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
65
|
+
skills: ::Array[String],
|
|
66
|
+
social_urls: ::Array[String],
|
|
67
|
+
website_urls: ::Array[String],
|
|
68
|
+
avatar_url: String,
|
|
69
|
+
bio: String,
|
|
70
|
+
current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
71
|
+
email: String,
|
|
72
|
+
location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
73
|
+
name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class Person < ContextDev::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education]
|
|
78
|
+
|
|
79
|
+
attr_accessor experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience]
|
|
80
|
+
|
|
81
|
+
attr_accessor skills: ::Array[String]
|
|
82
|
+
|
|
83
|
+
attr_accessor social_urls: ::Array[String]
|
|
84
|
+
|
|
85
|
+
attr_accessor website_urls: ::Array[String]
|
|
86
|
+
|
|
87
|
+
attr_reader avatar_url: String?
|
|
88
|
+
|
|
89
|
+
def avatar_url=: (String) -> String
|
|
90
|
+
|
|
91
|
+
attr_reader bio: String?
|
|
92
|
+
|
|
93
|
+
def bio=: (String) -> String
|
|
94
|
+
|
|
95
|
+
attr_reader current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole?
|
|
96
|
+
|
|
97
|
+
def current_role=: (
|
|
98
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole
|
|
99
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole
|
|
100
|
+
|
|
101
|
+
attr_reader email: String?
|
|
102
|
+
|
|
103
|
+
def email=: (String) -> String
|
|
104
|
+
|
|
105
|
+
attr_reader location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location?
|
|
106
|
+
|
|
107
|
+
def location=: (
|
|
108
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location
|
|
109
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location
|
|
110
|
+
|
|
111
|
+
attr_reader name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name?
|
|
112
|
+
|
|
113
|
+
def name=: (
|
|
114
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
115
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
116
|
+
|
|
117
|
+
def initialize: (
|
|
118
|
+
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
119
|
+
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
120
|
+
skills: ::Array[String],
|
|
121
|
+
social_urls: ::Array[String],
|
|
122
|
+
website_urls: ::Array[String],
|
|
123
|
+
?avatar_url: String,
|
|
124
|
+
?bio: String,
|
|
125
|
+
?current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
126
|
+
?email: String,
|
|
127
|
+
?location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
128
|
+
?name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
129
|
+
) -> void
|
|
130
|
+
|
|
131
|
+
def to_hash: -> {
|
|
132
|
+
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
133
|
+
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
134
|
+
skills: ::Array[String],
|
|
135
|
+
social_urls: ::Array[String],
|
|
136
|
+
website_urls: ::Array[String],
|
|
137
|
+
avatar_url: String,
|
|
138
|
+
bio: String,
|
|
139
|
+
current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
140
|
+
email: String,
|
|
141
|
+
location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
142
|
+
name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
type education =
|
|
146
|
+
{
|
|
147
|
+
institution: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution,
|
|
148
|
+
degree: String,
|
|
149
|
+
description: String,
|
|
150
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate,
|
|
151
|
+
field_of_study: String,
|
|
152
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
class Education < ContextDev::Internal::Type::BaseModel
|
|
156
|
+
attr_accessor institution: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution
|
|
157
|
+
|
|
158
|
+
attr_reader degree: String?
|
|
159
|
+
|
|
160
|
+
def degree=: (String) -> String
|
|
161
|
+
|
|
162
|
+
attr_reader description: String?
|
|
163
|
+
|
|
164
|
+
def description=: (String) -> String
|
|
165
|
+
|
|
166
|
+
attr_reader end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate?
|
|
167
|
+
|
|
168
|
+
def end_date=: (
|
|
169
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate
|
|
170
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate
|
|
171
|
+
|
|
172
|
+
attr_reader field_of_study: String?
|
|
173
|
+
|
|
174
|
+
def field_of_study=: (String) -> String
|
|
175
|
+
|
|
176
|
+
attr_reader start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate?
|
|
177
|
+
|
|
178
|
+
def start_date=: (
|
|
179
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate
|
|
180
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate
|
|
181
|
+
|
|
182
|
+
def initialize: (
|
|
183
|
+
institution: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution,
|
|
184
|
+
?degree: String,
|
|
185
|
+
?description: String,
|
|
186
|
+
?end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate,
|
|
187
|
+
?field_of_study: String,
|
|
188
|
+
?start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
institution: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution,
|
|
193
|
+
degree: String,
|
|
194
|
+
description: String,
|
|
195
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate,
|
|
196
|
+
field_of_study: String,
|
|
197
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
type institution = { name: String, domain: String }
|
|
201
|
+
|
|
202
|
+
class Institution < ContextDev::Internal::Type::BaseModel
|
|
203
|
+
attr_accessor name: String
|
|
204
|
+
|
|
205
|
+
attr_reader domain: String?
|
|
206
|
+
|
|
207
|
+
def domain=: (String) -> String
|
|
208
|
+
|
|
209
|
+
def initialize: (name: String, ?domain: String) -> void
|
|
210
|
+
|
|
211
|
+
def to_hash: -> { name: String, domain: String }
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
type end_date = { year: Integer, day: Integer, month: Integer }
|
|
215
|
+
|
|
216
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
217
|
+
attr_accessor year: Integer
|
|
218
|
+
|
|
219
|
+
attr_reader day: Integer?
|
|
220
|
+
|
|
221
|
+
def day=: (Integer) -> Integer
|
|
222
|
+
|
|
223
|
+
attr_reader month: Integer?
|
|
224
|
+
|
|
225
|
+
def month=: (Integer) -> Integer
|
|
226
|
+
|
|
227
|
+
def initialize: (
|
|
228
|
+
year: Integer,
|
|
229
|
+
?day: Integer,
|
|
230
|
+
?month: Integer
|
|
231
|
+
) -> void
|
|
232
|
+
|
|
233
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
type start_date = { year: Integer, day: Integer, month: Integer }
|
|
237
|
+
|
|
238
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
239
|
+
attr_accessor year: Integer
|
|
240
|
+
|
|
241
|
+
attr_reader day: Integer?
|
|
242
|
+
|
|
243
|
+
def day=: (Integer) -> Integer
|
|
244
|
+
|
|
245
|
+
attr_reader month: Integer?
|
|
246
|
+
|
|
247
|
+
def month=: (Integer) -> Integer
|
|
248
|
+
|
|
249
|
+
def initialize: (
|
|
250
|
+
year: Integer,
|
|
251
|
+
?day: Integer,
|
|
252
|
+
?month: Integer
|
|
253
|
+
) -> void
|
|
254
|
+
|
|
255
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
type experience =
|
|
260
|
+
{
|
|
261
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization,
|
|
262
|
+
title: String,
|
|
263
|
+
description: String,
|
|
264
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate,
|
|
265
|
+
is_current: bool,
|
|
266
|
+
location: String,
|
|
267
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
class Experience < ContextDev::Internal::Type::BaseModel
|
|
271
|
+
attr_accessor organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization
|
|
272
|
+
|
|
273
|
+
attr_accessor title: String
|
|
274
|
+
|
|
275
|
+
attr_reader description: String?
|
|
276
|
+
|
|
277
|
+
def description=: (String) -> String
|
|
278
|
+
|
|
279
|
+
attr_reader end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate?
|
|
280
|
+
|
|
281
|
+
def end_date=: (
|
|
282
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate
|
|
283
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate
|
|
284
|
+
|
|
285
|
+
attr_reader is_current: bool?
|
|
286
|
+
|
|
287
|
+
def is_current=: (bool) -> bool
|
|
288
|
+
|
|
289
|
+
attr_reader location: String?
|
|
290
|
+
|
|
291
|
+
def location=: (String) -> String
|
|
292
|
+
|
|
293
|
+
attr_reader start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate?
|
|
294
|
+
|
|
295
|
+
def start_date=: (
|
|
296
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate
|
|
297
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate
|
|
298
|
+
|
|
299
|
+
def initialize: (
|
|
300
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization,
|
|
301
|
+
title: String,
|
|
302
|
+
?description: String,
|
|
303
|
+
?end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate,
|
|
304
|
+
?is_current: bool,
|
|
305
|
+
?location: String,
|
|
306
|
+
?start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate
|
|
307
|
+
) -> void
|
|
308
|
+
|
|
309
|
+
def to_hash: -> {
|
|
310
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization,
|
|
311
|
+
title: String,
|
|
312
|
+
description: String,
|
|
313
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate,
|
|
314
|
+
is_current: bool,
|
|
315
|
+
location: String,
|
|
316
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
type organization = { name: String, domain: String }
|
|
320
|
+
|
|
321
|
+
class Organization < ContextDev::Internal::Type::BaseModel
|
|
322
|
+
attr_accessor name: String
|
|
323
|
+
|
|
324
|
+
attr_reader domain: String?
|
|
325
|
+
|
|
326
|
+
def domain=: (String) -> String
|
|
327
|
+
|
|
328
|
+
def initialize: (name: String, ?domain: String) -> void
|
|
329
|
+
|
|
330
|
+
def to_hash: -> { name: String, domain: String }
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
type end_date = { year: Integer, day: Integer, month: Integer }
|
|
334
|
+
|
|
335
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
336
|
+
attr_accessor year: Integer
|
|
337
|
+
|
|
338
|
+
attr_reader day: Integer?
|
|
339
|
+
|
|
340
|
+
def day=: (Integer) -> Integer
|
|
341
|
+
|
|
342
|
+
attr_reader month: Integer?
|
|
343
|
+
|
|
344
|
+
def month=: (Integer) -> Integer
|
|
345
|
+
|
|
346
|
+
def initialize: (
|
|
347
|
+
year: Integer,
|
|
348
|
+
?day: Integer,
|
|
349
|
+
?month: Integer
|
|
350
|
+
) -> void
|
|
351
|
+
|
|
352
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
type start_date = { year: Integer, day: Integer, month: Integer }
|
|
356
|
+
|
|
357
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
358
|
+
attr_accessor year: Integer
|
|
359
|
+
|
|
360
|
+
attr_reader day: Integer?
|
|
361
|
+
|
|
362
|
+
def day=: (Integer) -> Integer
|
|
363
|
+
|
|
364
|
+
attr_reader month: Integer?
|
|
365
|
+
|
|
366
|
+
def month=: (Integer) -> Integer
|
|
367
|
+
|
|
368
|
+
def initialize: (
|
|
369
|
+
year: Integer,
|
|
370
|
+
?day: Integer,
|
|
371
|
+
?month: Integer
|
|
372
|
+
) -> void
|
|
373
|
+
|
|
374
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
type current_role =
|
|
379
|
+
{
|
|
380
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization,
|
|
381
|
+
title: String,
|
|
382
|
+
description: String,
|
|
383
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate,
|
|
384
|
+
is_current: bool,
|
|
385
|
+
location: String,
|
|
386
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
class CurrentRole < ContextDev::Internal::Type::BaseModel
|
|
390
|
+
attr_accessor organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization
|
|
391
|
+
|
|
392
|
+
attr_accessor title: String
|
|
393
|
+
|
|
394
|
+
attr_reader description: String?
|
|
395
|
+
|
|
396
|
+
def description=: (String) -> String
|
|
397
|
+
|
|
398
|
+
attr_reader end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate?
|
|
399
|
+
|
|
400
|
+
def end_date=: (
|
|
401
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate
|
|
402
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate
|
|
403
|
+
|
|
404
|
+
attr_reader is_current: bool?
|
|
405
|
+
|
|
406
|
+
def is_current=: (bool) -> bool
|
|
407
|
+
|
|
408
|
+
attr_reader location: String?
|
|
409
|
+
|
|
410
|
+
def location=: (String) -> String
|
|
411
|
+
|
|
412
|
+
attr_reader start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate?
|
|
413
|
+
|
|
414
|
+
def start_date=: (
|
|
415
|
+
ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate
|
|
416
|
+
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate
|
|
417
|
+
|
|
418
|
+
def initialize: (
|
|
419
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization,
|
|
420
|
+
title: String,
|
|
421
|
+
?description: String,
|
|
422
|
+
?end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate,
|
|
423
|
+
?is_current: bool,
|
|
424
|
+
?location: String,
|
|
425
|
+
?start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate
|
|
426
|
+
) -> void
|
|
427
|
+
|
|
428
|
+
def to_hash: -> {
|
|
429
|
+
organization: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization,
|
|
430
|
+
title: String,
|
|
431
|
+
description: String,
|
|
432
|
+
end_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate,
|
|
433
|
+
is_current: bool,
|
|
434
|
+
location: String,
|
|
435
|
+
start_date: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
type organization = { name: String, domain: String }
|
|
439
|
+
|
|
440
|
+
class Organization < ContextDev::Internal::Type::BaseModel
|
|
441
|
+
attr_accessor name: String
|
|
442
|
+
|
|
443
|
+
attr_reader domain: String?
|
|
444
|
+
|
|
445
|
+
def domain=: (String) -> String
|
|
446
|
+
|
|
447
|
+
def initialize: (name: String, ?domain: String) -> void
|
|
448
|
+
|
|
449
|
+
def to_hash: -> { name: String, domain: String }
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
type end_date = { year: Integer, day: Integer, month: Integer }
|
|
453
|
+
|
|
454
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
455
|
+
attr_accessor year: Integer
|
|
456
|
+
|
|
457
|
+
attr_reader day: Integer?
|
|
458
|
+
|
|
459
|
+
def day=: (Integer) -> Integer
|
|
460
|
+
|
|
461
|
+
attr_reader month: Integer?
|
|
462
|
+
|
|
463
|
+
def month=: (Integer) -> Integer
|
|
464
|
+
|
|
465
|
+
def initialize: (
|
|
466
|
+
year: Integer,
|
|
467
|
+
?day: Integer,
|
|
468
|
+
?month: Integer
|
|
469
|
+
) -> void
|
|
470
|
+
|
|
471
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
type start_date = { year: Integer, day: Integer, month: Integer }
|
|
475
|
+
|
|
476
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
477
|
+
attr_accessor year: Integer
|
|
478
|
+
|
|
479
|
+
attr_reader day: Integer?
|
|
480
|
+
|
|
481
|
+
def day=: (Integer) -> Integer
|
|
482
|
+
|
|
483
|
+
attr_reader month: Integer?
|
|
484
|
+
|
|
485
|
+
def month=: (Integer) -> Integer
|
|
486
|
+
|
|
487
|
+
def initialize: (
|
|
488
|
+
year: Integer,
|
|
489
|
+
?day: Integer,
|
|
490
|
+
?month: Integer
|
|
491
|
+
) -> void
|
|
492
|
+
|
|
493
|
+
def to_hash: -> { year: Integer, day: Integer, month: Integer }
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
type location =
|
|
498
|
+
{
|
|
499
|
+
city: String,
|
|
500
|
+
country: String,
|
|
501
|
+
country_code: String,
|
|
502
|
+
display_: String,
|
|
503
|
+
region: String
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
class Location < ContextDev::Internal::Type::BaseModel
|
|
507
|
+
attr_reader city: String?
|
|
508
|
+
|
|
509
|
+
def city=: (String) -> String
|
|
510
|
+
|
|
511
|
+
attr_reader country: String?
|
|
512
|
+
|
|
513
|
+
def country=: (String) -> String
|
|
514
|
+
|
|
515
|
+
attr_reader country_code: String?
|
|
516
|
+
|
|
517
|
+
def country_code=: (String) -> String
|
|
518
|
+
|
|
519
|
+
attr_reader display_: String?
|
|
520
|
+
|
|
521
|
+
def display_=: (String) -> String
|
|
522
|
+
|
|
523
|
+
attr_reader region: String?
|
|
524
|
+
|
|
525
|
+
def region=: (String) -> String
|
|
526
|
+
|
|
527
|
+
def initialize: (
|
|
528
|
+
?city: String,
|
|
529
|
+
?country: String,
|
|
530
|
+
?country_code: String,
|
|
531
|
+
?display_: String,
|
|
532
|
+
?region: String
|
|
533
|
+
) -> void
|
|
534
|
+
|
|
535
|
+
def to_hash: -> {
|
|
536
|
+
city: String,
|
|
537
|
+
country: String,
|
|
538
|
+
country_code: String,
|
|
539
|
+
display_: String,
|
|
540
|
+
region: String
|
|
541
|
+
}
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
type name_ = { first: String, full: String, last: String }
|
|
545
|
+
|
|
546
|
+
class Name < ContextDev::Internal::Type::BaseModel
|
|
547
|
+
attr_reader first: String?
|
|
548
|
+
|
|
549
|
+
def first=: (String) -> String
|
|
550
|
+
|
|
551
|
+
attr_reader full: String?
|
|
552
|
+
|
|
553
|
+
def full=: (String) -> String
|
|
554
|
+
|
|
555
|
+
attr_reader last: String?
|
|
556
|
+
|
|
557
|
+
def last=: (String) -> String
|
|
558
|
+
|
|
559
|
+
def initialize: (
|
|
560
|
+
?first: String,
|
|
561
|
+
?full: String,
|
|
562
|
+
?last: String
|
|
563
|
+
) -> void
|
|
564
|
+
|
|
565
|
+
def to_hash: -> { first: String, full: String, last: String }
|
|
566
|
+
end
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
type not_found = { person: nil, score: nil, status: :not_found }
|
|
571
|
+
|
|
572
|
+
class NotFound < ContextDev::Internal::Type::BaseModel
|
|
573
|
+
attr_accessor person: nil
|
|
574
|
+
|
|
575
|
+
attr_accessor score: nil
|
|
576
|
+
|
|
577
|
+
attr_accessor status: :not_found
|
|
578
|
+
|
|
579
|
+
def initialize: (person: nil, score: nil, ?status: :not_found) -> void
|
|
580
|
+
|
|
581
|
+
def to_hash: -> { person: nil, score: nil, status: :not_found }
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
def self?.variants: -> ::Array[ContextDev::Models::PersonEnrichResponse::match]
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
type key_metadata =
|
|
588
|
+
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
589
|
+
|
|
590
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
591
|
+
attr_accessor credits_consumed: Integer
|
|
592
|
+
|
|
593
|
+
attr_accessor credits_remaining: Integer
|
|
594
|
+
|
|
595
|
+
def initialize: (
|
|
596
|
+
credits_consumed: Integer,
|
|
597
|
+
credits_remaining: Integer
|
|
598
|
+
) -> void
|
|
599
|
+
|
|
600
|
+
def to_hash: -> {
|
|
601
|
+
credits_consumed: Integer,
|
|
602
|
+
credits_remaining: Integer
|
|
603
|
+
}
|
|
604
|
+
end
|
|
605
|
+
end
|
|
606
|
+
end
|
|
607
|
+
end
|
|
@@ -91,6 +91,7 @@ module ContextDev
|
|
|
91
91
|
:SUCCESS
|
|
92
92
|
| :NOT_REQUESTED
|
|
93
93
|
| :TIMEOUT
|
|
94
|
+
| :CONTENT_TOO_LARGE
|
|
94
95
|
| :WEBSITE_ACCESS_ERROR
|
|
95
96
|
| :ERROR
|
|
96
97
|
|
|
@@ -100,6 +101,7 @@ module ContextDev
|
|
|
100
101
|
SUCCESS: :SUCCESS
|
|
101
102
|
NOT_REQUESTED: :NOT_REQUESTED
|
|
102
103
|
TIMEOUT: :TIMEOUT
|
|
104
|
+
CONTENT_TOO_LARGE: :CONTENT_TOO_LARGE
|
|
103
105
|
WEBSITE_ACCESS_ERROR: :WEBSITE_ACCESS_ERROR
|
|
104
106
|
ERROR: :ERROR
|
|
105
107
|
|
|
@@ -5,6 +5,7 @@ module ContextDev
|
|
|
5
5
|
domain: String,
|
|
6
6
|
headers: ::Hash[Symbol, String],
|
|
7
7
|
max_links: Integer,
|
|
8
|
+
search: String,
|
|
8
9
|
sitemap_url: String,
|
|
9
10
|
tags: ::Array[String],
|
|
10
11
|
timeout_ms: Integer,
|
|
@@ -27,6 +28,10 @@ module ContextDev
|
|
|
27
28
|
|
|
28
29
|
def max_links=: (Integer) -> Integer
|
|
29
30
|
|
|
31
|
+
attr_reader search: String?
|
|
32
|
+
|
|
33
|
+
def search=: (String) -> String
|
|
34
|
+
|
|
30
35
|
attr_reader sitemap_url: String?
|
|
31
36
|
|
|
32
37
|
def sitemap_url=: (String) -> String
|
|
@@ -53,6 +58,7 @@ module ContextDev
|
|
|
53
58
|
domain: String,
|
|
54
59
|
?headers: ::Hash[Symbol, String],
|
|
55
60
|
?max_links: Integer,
|
|
61
|
+
?search: String,
|
|
56
62
|
?sitemap_url: String,
|
|
57
63
|
?tags: ::Array[String],
|
|
58
64
|
?timeout_ms: Integer,
|
|
@@ -65,6 +71,7 @@ module ContextDev
|
|
|
65
71
|
domain: String,
|
|
66
72
|
headers: ::Hash[Symbol, String],
|
|
67
73
|
max_links: Integer,
|
|
74
|
+
search: String,
|
|
68
75
|
sitemap_url: String,
|
|
69
76
|
tags: ::Array[String],
|
|
70
77
|
timeout_ms: Integer,
|
data/sig/context_dev/models.rbs
CHANGED
|
@@ -5,6 +5,8 @@ module ContextDev
|
|
|
5
5
|
|
|
6
6
|
class BatchCancelParams = ContextDev::Models::BatchCancelParams
|
|
7
7
|
|
|
8
|
+
class BatchDeleteParams = ContextDev::Models::BatchDeleteParams
|
|
9
|
+
|
|
8
10
|
class BatchGetResultsParams = ContextDev::Models::BatchGetResultsParams
|
|
9
11
|
|
|
10
12
|
class BatchListParams = ContextDev::Models::BatchListParams
|
|
@@ -59,6 +61,8 @@ module ContextDev
|
|
|
59
61
|
|
|
60
62
|
class ParseHandleParams = ContextDev::Models::ParseHandleParams
|
|
61
63
|
|
|
64
|
+
class PersonEnrichParams = ContextDev::Models::PersonEnrichParams
|
|
65
|
+
|
|
62
66
|
class UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams
|
|
63
67
|
|
|
64
68
|
class WebExtractCompetitorsParams = ContextDev::Models::WebExtractCompetitorsParams
|
|
@@ -16,6 +16,11 @@ module ContextDev
|
|
|
16
16
|
?request_options: ContextDev::request_opts
|
|
17
17
|
) -> ContextDev::Models::BatchListResponse
|
|
18
18
|
|
|
19
|
+
def delete: (
|
|
20
|
+
String batch_id,
|
|
21
|
+
?request_options: ContextDev::request_opts
|
|
22
|
+
) -> ContextDev::Models::BatchDeleteResponse
|
|
23
|
+
|
|
19
24
|
def cancel: (
|
|
20
25
|
String batch_id,
|
|
21
26
|
?request_options: ContextDev::request_opts
|
|
@@ -29,9 +34,10 @@ module ContextDev
|
|
|
29
34
|
) -> ContextDev::Models::BatchGetResultsResponse
|
|
30
35
|
|
|
31
36
|
def submit: (
|
|
32
|
-
|
|
37
|
+
input: ContextDev::Models::BatchSubmitParams::input,
|
|
33
38
|
?tags: ::Array[String],
|
|
34
|
-
?
|
|
39
|
+
?webhook_url: String,
|
|
40
|
+
?idempotency_key: String,
|
|
35
41
|
?request_options: ContextDev::request_opts
|
|
36
42
|
) -> ContextDev::Models::BatchSubmitResponse
|
|
37
43
|
|