context.dev 2.8.0 → 2.10.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 +28 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +10 -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 +46 -4
- 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 +2080 -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 +41 -3
- 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/news_search_params.rb +467 -0
- data/lib/context_dev/models/news_search_response.rb +238 -0
- data/lib/context_dev/models/parse_handle_params.rb +20 -147
- data/lib/context_dev/models/person_enrich_params.rb +176 -0
- data/lib/context_dev/models/person_enrich_response.rb +641 -0
- data/lib/context_dev/models/utility_prefetch_params.rb +19 -16
- data/lib/context_dev/models/utility_prefetch_response.rb +4 -5
- data/lib/context_dev/models/web_screenshot_params.rb +3 -30
- 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_crawl_md_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +20 -156
- data/lib/context_dev/models/web_web_scrape_html_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -124
- data/lib/context_dev/models/web_web_scrape_md_params.rb +40 -241
- data/lib/context_dev/models/web_web_scrape_md_response.rb +41 -2
- 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 +10 -10
- data/lib/context_dev/resources/news.rb +51 -0
- data/lib/context_dev/resources/parse.rb +5 -5
- data/lib/context_dev/resources/people.rb +56 -0
- data/lib/context_dev/resources/utility.rb +7 -6
- data/lib/context_dev/resources/web.rb +46 -24
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +8 -0
- data/rbi/context_dev/client.rbi +8 -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 +85 -3
- 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 +6421 -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 +71 -2
- 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/news_search_params.rbi +1294 -0
- data/rbi/context_dev/models/news_search_response.rbi +423 -0
- data/rbi/context_dev/models/parse_handle_params.rbi +30 -323
- data/rbi/context_dev/models/person_enrich_params.rbi +332 -0
- data/rbi/context_dev/models/person_enrich_response.rbi +1295 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +24 -16
- data/rbi/context_dev/models/utility_prefetch_response.rbi +8 -6
- data/rbi/context_dev/models/web_screenshot_params.rbi +4 -71
- 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_crawl_md_response.rbi +67 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +30 -363
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +65 -0
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +16 -287
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +57 -558
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +80 -0
- 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 +14 -8
- data/rbi/context_dev/resources/news.rbi +46 -0
- data/rbi/context_dev/resources/parse.rbi +10 -26
- data/rbi/context_dev/resources/people.rbi +47 -0
- data/rbi/context_dev/resources/utility.rbi +8 -6
- data/rbi/context_dev/resources/web.rbi +49 -66
- data/sig/context_dev/client.rbs +4 -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 +30 -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 +2666 -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 +38 -1
- data/sig/context_dev/models/crawl_controls.rbs +16 -16
- data/sig/context_dev/models/news_search_params.rbs +532 -0
- data/sig/context_dev/models/news_search_response.rbs +206 -0
- data/sig/context_dev/models/parse_handle_params.rbs +25 -90
- data/sig/context_dev/models/person_enrich_params.rbs +199 -0
- data/sig/context_dev/models/person_enrich_response.rbs +638 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +2 -1
- data/sig/context_dev/models/utility_prefetch_response.rbs +2 -1
- data/sig/context_dev/models/web_screenshot_params.rbs +5 -18
- data/sig/context_dev/models/web_search_response.rbs +2 -0
- data/sig/context_dev/models/web_web_crawl_md_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +24 -94
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +20 -72
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +46 -148
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +28 -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 +3 -0
- data/sig/context_dev/resources/news.rbs +17 -0
- data/sig/context_dev/resources/parse.rbs +5 -5
- data/sig/context_dev/resources/people.rbs +19 -0
- data/sig/context_dev/resources/web.rbs +13 -11
- metadata +26 -2
|
@@ -11,42 +11,69 @@ module ContextDev
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
#
|
|
15
|
-
sig
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
# Batch ID. Poll GET /batch/{batch_id} with it.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# The crawl controls as submitted, so the limits requested can be compared against
|
|
19
|
+
# what the crawl reached.
|
|
20
|
+
sig { returns(T.nilable(ContextDev::CrawlControls)) }
|
|
21
|
+
attr_reader :crawl
|
|
22
|
+
|
|
23
|
+
sig { params(crawl: T.nilable(ContextDev::CrawlControls::OrHash)).void }
|
|
24
|
+
attr_writer :crawl
|
|
25
|
+
|
|
26
|
+
# When the batch was created.
|
|
27
|
+
sig { returns(String) }
|
|
28
|
+
attr_accessor :created_at
|
|
19
29
|
|
|
20
|
-
#
|
|
21
|
-
sig { returns(ContextDev::Models::BatchSubmitResponse::
|
|
22
|
-
attr_reader :
|
|
30
|
+
# What accepting this batch cost.
|
|
31
|
+
sig { returns(ContextDev::Models::BatchSubmitResponse::Credits) }
|
|
32
|
+
attr_reader :credits
|
|
23
33
|
|
|
24
34
|
sig do
|
|
25
35
|
params(
|
|
26
|
-
|
|
36
|
+
credits: ContextDev::Models::BatchSubmitResponse::Credits::OrHash
|
|
27
37
|
).void
|
|
28
38
|
end
|
|
29
|
-
attr_writer :
|
|
39
|
+
attr_writer :credits
|
|
40
|
+
|
|
41
|
+
# What each page will be returned as.
|
|
42
|
+
sig do
|
|
43
|
+
returns(ContextDev::Models::BatchSubmitResponse::Format::TaggedSymbol)
|
|
44
|
+
end
|
|
45
|
+
attr_accessor :format_
|
|
46
|
+
|
|
47
|
+
# What submission took in, and what it charged for.
|
|
48
|
+
sig { returns(ContextDev::Intake) }
|
|
49
|
+
attr_reader :input
|
|
30
50
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
attr_reader :person
|
|
51
|
+
sig { params(input: ContextDev::Intake::OrHash).void }
|
|
52
|
+
attr_writer :input
|
|
34
53
|
|
|
54
|
+
# Rejected URLs, up to 100. These are not charged.
|
|
35
55
|
sig do
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
56
|
+
returns(T::Array[ContextDev::Models::BatchSubmitResponse::InvalidURL])
|
|
57
|
+
end
|
|
58
|
+
attr_accessor :invalid_urls
|
|
59
|
+
|
|
60
|
+
# How pages will be selected.
|
|
61
|
+
sig do
|
|
62
|
+
returns(ContextDev::Models::BatchSubmitResponse::Mode::TaggedSymbol)
|
|
39
63
|
end
|
|
40
|
-
|
|
64
|
+
attr_accessor :mode
|
|
41
65
|
|
|
42
|
-
#
|
|
66
|
+
# Always `queued`. An accepted batch has not started yet.
|
|
43
67
|
sig do
|
|
44
68
|
returns(ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol)
|
|
45
69
|
end
|
|
46
70
|
attr_accessor :status
|
|
47
71
|
|
|
48
|
-
#
|
|
49
|
-
|
|
72
|
+
# Tags stored on the batch.
|
|
73
|
+
sig { returns(T::Array[String]) }
|
|
74
|
+
attr_accessor :tags
|
|
75
|
+
|
|
76
|
+
# API key usage for this request.
|
|
50
77
|
sig do
|
|
51
78
|
returns(T.nilable(ContextDev::Models::BatchSubmitResponse::KeyMetadata))
|
|
52
79
|
end
|
|
@@ -60,1205 +87,212 @@ module ContextDev
|
|
|
60
87
|
end
|
|
61
88
|
attr_writer :key_metadata
|
|
62
89
|
|
|
90
|
+
# Signing secret for the completion webhook, returned only here and never again.
|
|
91
|
+
# Store it now; it is not repeated by GET /batch/{batch_id}.
|
|
92
|
+
sig { returns(T.nilable(String)) }
|
|
93
|
+
attr_reader :webhook_secret
|
|
94
|
+
|
|
95
|
+
sig { params(webhook_secret: String).void }
|
|
96
|
+
attr_writer :webhook_secret
|
|
97
|
+
|
|
63
98
|
sig do
|
|
64
99
|
params(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
100
|
+
id: String,
|
|
101
|
+
crawl: T.nilable(ContextDev::CrawlControls::OrHash),
|
|
102
|
+
created_at: String,
|
|
103
|
+
credits: ContextDev::Models::BatchSubmitResponse::Credits::OrHash,
|
|
104
|
+
format_: ContextDev::Models::BatchSubmitResponse::Format::OrSymbol,
|
|
105
|
+
input: ContextDev::Intake::OrHash,
|
|
106
|
+
invalid_urls:
|
|
107
|
+
T::Array[
|
|
108
|
+
ContextDev::Models::BatchSubmitResponse::InvalidURL::OrHash
|
|
109
|
+
],
|
|
110
|
+
mode: ContextDev::Models::BatchSubmitResponse::Mode::OrSymbol,
|
|
68
111
|
status: ContextDev::Models::BatchSubmitResponse::Status::OrSymbol,
|
|
112
|
+
tags: T::Array[String],
|
|
69
113
|
key_metadata:
|
|
70
|
-
ContextDev::Models::BatchSubmitResponse::KeyMetadata::OrHash
|
|
114
|
+
ContextDev::Models::BatchSubmitResponse::KeyMetadata::OrHash,
|
|
115
|
+
webhook_secret: String
|
|
71
116
|
).returns(T.attached_class)
|
|
72
117
|
end
|
|
73
118
|
def self.new(
|
|
74
|
-
#
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
119
|
+
# Batch ID. Poll GET /batch/{batch_id} with it.
|
|
120
|
+
id:,
|
|
121
|
+
# The crawl controls as submitted, so the limits requested can be compared against
|
|
122
|
+
# what the crawl reached.
|
|
123
|
+
crawl:,
|
|
124
|
+
# When the batch was created.
|
|
125
|
+
created_at:,
|
|
126
|
+
# What accepting this batch cost.
|
|
127
|
+
credits:,
|
|
128
|
+
# What each page will be returned as.
|
|
129
|
+
format_:,
|
|
130
|
+
# What submission took in, and what it charged for.
|
|
131
|
+
input:,
|
|
132
|
+
# Rejected URLs, up to 100. These are not charged.
|
|
133
|
+
invalid_urls:,
|
|
134
|
+
# How pages will be selected.
|
|
135
|
+
mode:,
|
|
136
|
+
# Always `queued`. An accepted batch has not started yet.
|
|
81
137
|
status:,
|
|
82
|
-
#
|
|
83
|
-
|
|
84
|
-
|
|
138
|
+
# Tags stored on the batch.
|
|
139
|
+
tags:,
|
|
140
|
+
# API key usage for this request.
|
|
141
|
+
key_metadata: nil,
|
|
142
|
+
# Signing secret for the completion webhook, returned only here and never again.
|
|
143
|
+
# Store it now; it is not repeated by GET /batch/{batch_id}.
|
|
144
|
+
webhook_secret: nil
|
|
85
145
|
)
|
|
86
146
|
end
|
|
87
147
|
|
|
88
148
|
sig do
|
|
89
149
|
override.returns(
|
|
90
150
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
151
|
+
id: String,
|
|
152
|
+
crawl: T.nilable(ContextDev::CrawlControls),
|
|
153
|
+
created_at: String,
|
|
154
|
+
credits: ContextDev::Models::BatchSubmitResponse::Credits,
|
|
155
|
+
format_:
|
|
156
|
+
ContextDev::Models::BatchSubmitResponse::Format::TaggedSymbol,
|
|
157
|
+
input: ContextDev::Intake,
|
|
158
|
+
invalid_urls:
|
|
159
|
+
T::Array[ContextDev::Models::BatchSubmitResponse::InvalidURL],
|
|
160
|
+
mode: ContextDev::Models::BatchSubmitResponse::Mode::TaggedSymbol,
|
|
94
161
|
status:
|
|
95
162
|
ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol,
|
|
96
|
-
|
|
163
|
+
tags: T::Array[String],
|
|
164
|
+
key_metadata: ContextDev::Models::BatchSubmitResponse::KeyMetadata,
|
|
165
|
+
webhook_secret: String
|
|
97
166
|
}
|
|
98
167
|
)
|
|
99
168
|
end
|
|
100
169
|
def to_hash
|
|
101
170
|
end
|
|
102
171
|
|
|
103
|
-
|
|
104
|
-
module Code
|
|
105
|
-
extend ContextDev::Internal::Type::Enum
|
|
106
|
-
|
|
107
|
-
TaggedInteger =
|
|
108
|
-
T.type_alias do
|
|
109
|
-
T.all(Integer, ContextDev::Models::BatchSubmitResponse::Code)
|
|
110
|
-
end
|
|
111
|
-
OrInteger = T.type_alias { Integer }
|
|
112
|
-
|
|
113
|
-
CODE_200 =
|
|
114
|
-
T.let(
|
|
115
|
-
200,
|
|
116
|
-
ContextDev::Models::BatchSubmitResponse::Code::TaggedInteger
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
sig do
|
|
120
|
-
override.returns(
|
|
121
|
-
T::Array[
|
|
122
|
-
ContextDev::Models::BatchSubmitResponse::Code::TaggedInteger
|
|
123
|
-
]
|
|
124
|
-
)
|
|
125
|
-
end
|
|
126
|
-
def self.values
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
class Metadata < ContextDev::Internal::Type::BaseModel
|
|
172
|
+
class Credits < ContextDev::Internal::Type::BaseModel
|
|
131
173
|
OrHash =
|
|
132
174
|
T.type_alias do
|
|
133
175
|
T.any(
|
|
134
|
-
ContextDev::Models::BatchSubmitResponse::
|
|
176
|
+
ContextDev::Models::BatchSubmitResponse::Credits,
|
|
135
177
|
ContextDev::Internal::AnyHash
|
|
136
178
|
)
|
|
137
179
|
end
|
|
138
180
|
|
|
139
|
-
#
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
)
|
|
144
|
-
end
|
|
145
|
-
attr_reader :identifiers
|
|
146
|
-
|
|
147
|
-
sig do
|
|
148
|
-
params(
|
|
149
|
-
identifiers:
|
|
150
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::Identifiers::OrHash
|
|
151
|
-
).void
|
|
152
|
-
end
|
|
153
|
-
attr_writer :identifiers
|
|
154
|
-
|
|
155
|
-
# Source categories checked.
|
|
156
|
-
sig do
|
|
157
|
-
returns(
|
|
158
|
-
T::Array[
|
|
159
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
160
|
-
]
|
|
161
|
-
)
|
|
162
|
-
end
|
|
163
|
-
attr_accessor :sources_attempted
|
|
164
|
-
|
|
165
|
-
# Source categories with data.
|
|
166
|
-
sig do
|
|
167
|
-
returns(
|
|
168
|
-
T::Array[
|
|
169
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
170
|
-
]
|
|
171
|
-
)
|
|
172
|
-
end
|
|
173
|
-
attr_accessor :sources_succeeded
|
|
174
|
-
|
|
175
|
-
# URLs reviewed for this profile.
|
|
176
|
-
sig { returns(T::Array[String]) }
|
|
177
|
-
attr_accessor :urls_analyzed
|
|
178
|
-
|
|
179
|
-
# Personal website URL, when found.
|
|
180
|
-
sig { returns(T.nilable(String)) }
|
|
181
|
-
attr_reader :personal_website_url
|
|
182
|
-
|
|
183
|
-
sig { params(personal_website_url: String).void }
|
|
184
|
-
attr_writer :personal_website_url
|
|
181
|
+
# Credits just debited from your balance. Whatever the batch does not spend is
|
|
182
|
+
# refunded when it settles.
|
|
183
|
+
sig { returns(Integer) }
|
|
184
|
+
attr_accessor :reserved
|
|
185
185
|
|
|
186
|
-
#
|
|
187
|
-
sig
|
|
188
|
-
params(
|
|
189
|
-
identifiers:
|
|
190
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::Identifiers::OrHash,
|
|
191
|
-
sources_attempted:
|
|
192
|
-
T::Array[
|
|
193
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::OrSymbol
|
|
194
|
-
],
|
|
195
|
-
sources_succeeded:
|
|
196
|
-
T::Array[
|
|
197
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::OrSymbol
|
|
198
|
-
],
|
|
199
|
-
urls_analyzed: T::Array[String],
|
|
200
|
-
personal_website_url: String
|
|
201
|
-
).returns(T.attached_class)
|
|
202
|
-
end
|
|
186
|
+
# What accepting this batch cost.
|
|
187
|
+
sig { params(reserved: Integer).returns(T.attached_class) }
|
|
203
188
|
def self.new(
|
|
204
|
-
#
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
sources_attempted:,
|
|
208
|
-
# Source categories with data.
|
|
209
|
-
sources_succeeded:,
|
|
210
|
-
# URLs reviewed for this profile.
|
|
211
|
-
urls_analyzed:,
|
|
212
|
-
# Personal website URL, when found.
|
|
213
|
-
personal_website_url: nil
|
|
189
|
+
# Credits just debited from your balance. Whatever the batch does not spend is
|
|
190
|
+
# refunded when it settles.
|
|
191
|
+
reserved:
|
|
214
192
|
)
|
|
215
193
|
end
|
|
216
194
|
|
|
217
|
-
sig
|
|
218
|
-
override.returns(
|
|
219
|
-
{
|
|
220
|
-
identifiers:
|
|
221
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::Identifiers,
|
|
222
|
-
sources_attempted:
|
|
223
|
-
T::Array[
|
|
224
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
225
|
-
],
|
|
226
|
-
sources_succeeded:
|
|
227
|
-
T::Array[
|
|
228
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
229
|
-
],
|
|
230
|
-
urls_analyzed: T::Array[String],
|
|
231
|
-
personal_website_url: String
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
end
|
|
195
|
+
sig { override.returns({ reserved: Integer }) }
|
|
235
196
|
def to_hash
|
|
236
197
|
end
|
|
198
|
+
end
|
|
237
199
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
T.any(
|
|
242
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::Identifiers,
|
|
243
|
-
ContextDev::Internal::AnyHash
|
|
244
|
-
)
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# LinkedIn profile URL.
|
|
248
|
-
sig { returns(T.nilable(String)) }
|
|
249
|
-
attr_reader :linkedin_url
|
|
250
|
-
|
|
251
|
-
sig { params(linkedin_url: String).void }
|
|
252
|
-
attr_writer :linkedin_url
|
|
253
|
-
|
|
254
|
-
# Identifiers returned for the person.
|
|
255
|
-
sig { params(linkedin_url: String).returns(T.attached_class) }
|
|
256
|
-
def self.new(
|
|
257
|
-
# LinkedIn profile URL.
|
|
258
|
-
linkedin_url: nil
|
|
259
|
-
)
|
|
260
|
-
end
|
|
200
|
+
# What each page will be returned as.
|
|
201
|
+
module Format
|
|
202
|
+
extend ContextDev::Internal::Type::Enum
|
|
261
203
|
|
|
262
|
-
|
|
263
|
-
|
|
204
|
+
TaggedSymbol =
|
|
205
|
+
T.type_alias do
|
|
206
|
+
T.all(Symbol, ContextDev::Models::BatchSubmitResponse::Format)
|
|
264
207
|
end
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
module SourcesAttempted
|
|
268
|
-
extend ContextDev::Internal::Type::Enum
|
|
269
|
-
|
|
270
|
-
TaggedSymbol =
|
|
271
|
-
T.type_alias do
|
|
272
|
-
T.all(
|
|
273
|
-
Symbol,
|
|
274
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted
|
|
275
|
-
)
|
|
276
|
-
end
|
|
277
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
208
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
278
209
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
MANUAL =
|
|
290
|
-
T.let(
|
|
291
|
-
:manual,
|
|
292
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
293
|
-
)
|
|
294
|
-
GITHUB =
|
|
295
|
-
T.let(
|
|
296
|
-
:github,
|
|
297
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
298
|
-
)
|
|
299
|
-
OTHER =
|
|
300
|
-
T.let(
|
|
301
|
-
:other,
|
|
302
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
303
|
-
)
|
|
210
|
+
MARKDOWN =
|
|
211
|
+
T.let(
|
|
212
|
+
:markdown,
|
|
213
|
+
ContextDev::Models::BatchSubmitResponse::Format::TaggedSymbol
|
|
214
|
+
)
|
|
215
|
+
HTML =
|
|
216
|
+
T.let(
|
|
217
|
+
:html,
|
|
218
|
+
ContextDev::Models::BatchSubmitResponse::Format::TaggedSymbol
|
|
219
|
+
)
|
|
304
220
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
end
|
|
312
|
-
def self.values
|
|
313
|
-
end
|
|
221
|
+
sig do
|
|
222
|
+
override.returns(
|
|
223
|
+
T::Array[
|
|
224
|
+
ContextDev::Models::BatchSubmitResponse::Format::TaggedSymbol
|
|
225
|
+
]
|
|
226
|
+
)
|
|
314
227
|
end
|
|
315
|
-
|
|
316
|
-
module SourcesSucceeded
|
|
317
|
-
extend ContextDev::Internal::Type::Enum
|
|
318
|
-
|
|
319
|
-
TaggedSymbol =
|
|
320
|
-
T.type_alias do
|
|
321
|
-
T.all(
|
|
322
|
-
Symbol,
|
|
323
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded
|
|
324
|
-
)
|
|
325
|
-
end
|
|
326
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
327
|
-
|
|
328
|
-
LINKEDIN =
|
|
329
|
-
T.let(
|
|
330
|
-
:linkedin,
|
|
331
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
332
|
-
)
|
|
333
|
-
CV =
|
|
334
|
-
T.let(
|
|
335
|
-
:cv,
|
|
336
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
337
|
-
)
|
|
338
|
-
MANUAL =
|
|
339
|
-
T.let(
|
|
340
|
-
:manual,
|
|
341
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
342
|
-
)
|
|
343
|
-
GITHUB =
|
|
344
|
-
T.let(
|
|
345
|
-
:github,
|
|
346
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
347
|
-
)
|
|
348
|
-
OTHER =
|
|
349
|
-
T.let(
|
|
350
|
-
:other,
|
|
351
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
352
|
-
)
|
|
353
|
-
|
|
354
|
-
sig do
|
|
355
|
-
override.returns(
|
|
356
|
-
T::Array[
|
|
357
|
-
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesSucceeded::TaggedSymbol
|
|
358
|
-
]
|
|
359
|
-
)
|
|
360
|
-
end
|
|
361
|
-
def self.values
|
|
362
|
-
end
|
|
228
|
+
def self.values
|
|
363
229
|
end
|
|
364
230
|
end
|
|
365
231
|
|
|
366
|
-
class
|
|
232
|
+
class InvalidURL < ContextDev::Internal::Type::BaseModel
|
|
367
233
|
OrHash =
|
|
368
234
|
T.type_alias do
|
|
369
235
|
T.any(
|
|
370
|
-
ContextDev::Models::BatchSubmitResponse::
|
|
236
|
+
ContextDev::Models::BatchSubmitResponse::InvalidURL,
|
|
371
237
|
ContextDev::Internal::AnyHash
|
|
372
238
|
)
|
|
373
239
|
end
|
|
374
240
|
|
|
375
|
-
#
|
|
376
|
-
sig
|
|
377
|
-
|
|
378
|
-
T::Array[ContextDev::Models::BatchSubmitResponse::Person::Education]
|
|
379
|
-
)
|
|
380
|
-
end
|
|
381
|
-
attr_accessor :education
|
|
382
|
-
|
|
383
|
-
# Work history.
|
|
384
|
-
sig do
|
|
385
|
-
returns(
|
|
386
|
-
T::Array[
|
|
387
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience
|
|
388
|
-
]
|
|
389
|
-
)
|
|
390
|
-
end
|
|
391
|
-
attr_accessor :experience
|
|
241
|
+
# Why it was rejected.
|
|
242
|
+
sig { returns(String) }
|
|
243
|
+
attr_accessor :reason
|
|
392
244
|
|
|
393
|
-
#
|
|
394
|
-
sig
|
|
395
|
-
|
|
396
|
-
end
|
|
397
|
-
attr_reader :profile
|
|
398
|
-
|
|
399
|
-
sig do
|
|
400
|
-
params(
|
|
401
|
-
profile:
|
|
402
|
-
ContextDev::Models::BatchSubmitResponse::Person::Profile::OrHash
|
|
403
|
-
).void
|
|
404
|
-
end
|
|
405
|
-
attr_writer :profile
|
|
406
|
-
|
|
407
|
-
# Listed skills.
|
|
408
|
-
sig do
|
|
409
|
-
returns(
|
|
410
|
-
T::Array[ContextDev::Models::BatchSubmitResponse::Person::Skill]
|
|
411
|
-
)
|
|
412
|
-
end
|
|
413
|
-
attr_accessor :skills
|
|
245
|
+
# Rejected URL.
|
|
246
|
+
sig { returns(String) }
|
|
247
|
+
attr_accessor :url
|
|
414
248
|
|
|
415
|
-
|
|
416
|
-
sig do
|
|
417
|
-
params(
|
|
418
|
-
education:
|
|
419
|
-
T::Array[
|
|
420
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::OrHash
|
|
421
|
-
],
|
|
422
|
-
experience:
|
|
423
|
-
T::Array[
|
|
424
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::OrHash
|
|
425
|
-
],
|
|
426
|
-
profile:
|
|
427
|
-
ContextDev::Models::BatchSubmitResponse::Person::Profile::OrHash,
|
|
428
|
-
skills:
|
|
429
|
-
T::Array[
|
|
430
|
-
ContextDev::Models::BatchSubmitResponse::Person::Skill::OrHash
|
|
431
|
-
]
|
|
432
|
-
).returns(T.attached_class)
|
|
433
|
-
end
|
|
249
|
+
sig { params(reason: String, url: String).returns(T.attached_class) }
|
|
434
250
|
def self.new(
|
|
435
|
-
#
|
|
436
|
-
|
|
437
|
-
#
|
|
438
|
-
|
|
439
|
-
# Core profile details.
|
|
440
|
-
profile:,
|
|
441
|
-
# Listed skills.
|
|
442
|
-
skills:
|
|
251
|
+
# Why it was rejected.
|
|
252
|
+
reason:,
|
|
253
|
+
# Rejected URL.
|
|
254
|
+
url:
|
|
443
255
|
)
|
|
444
256
|
end
|
|
445
257
|
|
|
446
|
-
sig
|
|
447
|
-
override.returns(
|
|
448
|
-
{
|
|
449
|
-
education:
|
|
450
|
-
T::Array[
|
|
451
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education
|
|
452
|
-
],
|
|
453
|
-
experience:
|
|
454
|
-
T::Array[
|
|
455
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience
|
|
456
|
-
],
|
|
457
|
-
profile: ContextDev::Models::BatchSubmitResponse::Person::Profile,
|
|
458
|
-
skills:
|
|
459
|
-
T::Array[ContextDev::Models::BatchSubmitResponse::Person::Skill]
|
|
460
|
-
}
|
|
461
|
-
)
|
|
462
|
-
end
|
|
258
|
+
sig { override.returns({ reason: String, url: String }) }
|
|
463
259
|
def to_hash
|
|
464
260
|
end
|
|
261
|
+
end
|
|
465
262
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
T.any(
|
|
470
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education,
|
|
471
|
-
ContextDev::Internal::AnyHash
|
|
472
|
-
)
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
# School or institution name.
|
|
476
|
-
sig do
|
|
477
|
-
returns(
|
|
478
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Institution
|
|
479
|
-
)
|
|
480
|
-
end
|
|
481
|
-
attr_reader :institution
|
|
482
|
-
|
|
483
|
-
sig do
|
|
484
|
-
params(
|
|
485
|
-
institution:
|
|
486
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Institution::OrHash
|
|
487
|
-
).void
|
|
488
|
-
end
|
|
489
|
-
attr_writer :institution
|
|
490
|
-
|
|
491
|
-
# Education dates.
|
|
492
|
-
sig do
|
|
493
|
-
returns(
|
|
494
|
-
T.nilable(
|
|
495
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates
|
|
496
|
-
)
|
|
497
|
-
)
|
|
498
|
-
end
|
|
499
|
-
attr_reader :dates
|
|
263
|
+
# How pages will be selected.
|
|
264
|
+
module Mode
|
|
265
|
+
extend ContextDev::Internal::Type::Enum
|
|
500
266
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::OrHash
|
|
505
|
-
).void
|
|
267
|
+
TaggedSymbol =
|
|
268
|
+
T.type_alias do
|
|
269
|
+
T.all(Symbol, ContextDev::Models::BatchSubmitResponse::Mode)
|
|
506
270
|
end
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
# Additional education details.
|
|
510
|
-
sig { returns(T.nilable(String)) }
|
|
511
|
-
attr_reader :description
|
|
512
|
-
|
|
513
|
-
sig { params(description: String).void }
|
|
514
|
-
attr_writer :description
|
|
515
|
-
|
|
516
|
-
# Area of study.
|
|
517
|
-
sig { returns(T.nilable(String)) }
|
|
518
|
-
attr_reader :field_of_study
|
|
519
|
-
|
|
520
|
-
sig { params(field_of_study: String).void }
|
|
521
|
-
attr_writer :field_of_study
|
|
522
|
-
|
|
523
|
-
# Degree, certificate, or credential.
|
|
524
|
-
sig { returns(T.nilable(String)) }
|
|
525
|
-
attr_reader :qualification
|
|
526
|
-
|
|
527
|
-
sig { params(qualification: String).void }
|
|
528
|
-
attr_writer :qualification
|
|
271
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
529
272
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
dates:
|
|
535
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::OrHash,
|
|
536
|
-
description: String,
|
|
537
|
-
field_of_study: String,
|
|
538
|
-
qualification: String
|
|
539
|
-
).returns(T.attached_class)
|
|
540
|
-
end
|
|
541
|
-
def self.new(
|
|
542
|
-
# School or institution name.
|
|
543
|
-
institution:,
|
|
544
|
-
# Education dates.
|
|
545
|
-
dates: nil,
|
|
546
|
-
# Additional education details.
|
|
547
|
-
description: nil,
|
|
548
|
-
# Area of study.
|
|
549
|
-
field_of_study: nil,
|
|
550
|
-
# Degree, certificate, or credential.
|
|
551
|
-
qualification: nil
|
|
273
|
+
SCRAPE =
|
|
274
|
+
T.let(
|
|
275
|
+
:scrape,
|
|
276
|
+
ContextDev::Models::BatchSubmitResponse::Mode::TaggedSymbol
|
|
552
277
|
)
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
{
|
|
558
|
-
institution:
|
|
559
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Institution,
|
|
560
|
-
dates:
|
|
561
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates,
|
|
562
|
-
description: String,
|
|
563
|
-
field_of_study: String,
|
|
564
|
-
qualification: String
|
|
565
|
-
}
|
|
566
|
-
)
|
|
567
|
-
end
|
|
568
|
-
def to_hash
|
|
569
|
-
end
|
|
570
|
-
|
|
571
|
-
class Institution < ContextDev::Internal::Type::BaseModel
|
|
572
|
-
OrHash =
|
|
573
|
-
T.type_alias do
|
|
574
|
-
T.any(
|
|
575
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Institution,
|
|
576
|
-
ContextDev::Internal::AnyHash
|
|
577
|
-
)
|
|
578
|
-
end
|
|
579
|
-
|
|
580
|
-
# Display name.
|
|
581
|
-
sig { returns(String) }
|
|
582
|
-
attr_accessor :display_
|
|
583
|
-
|
|
584
|
-
# Standardized name, when available.
|
|
585
|
-
sig { returns(T.nilable(String)) }
|
|
586
|
-
attr_reader :normalized
|
|
587
|
-
|
|
588
|
-
sig { params(normalized: String).void }
|
|
589
|
-
attr_writer :normalized
|
|
590
|
-
|
|
591
|
-
# School or institution name.
|
|
592
|
-
sig do
|
|
593
|
-
params(display_: String, normalized: String).returns(
|
|
594
|
-
T.attached_class
|
|
595
|
-
)
|
|
596
|
-
end
|
|
597
|
-
def self.new(
|
|
598
|
-
# Display name.
|
|
599
|
-
display_:,
|
|
600
|
-
# Standardized name, when available.
|
|
601
|
-
normalized: nil
|
|
602
|
-
)
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
sig { override.returns({ display_: String, normalized: String }) }
|
|
606
|
-
def to_hash
|
|
607
|
-
end
|
|
608
|
-
end
|
|
609
|
-
|
|
610
|
-
class Dates < ContextDev::Internal::Type::BaseModel
|
|
611
|
-
OrHash =
|
|
612
|
-
T.type_alias do
|
|
613
|
-
T.any(
|
|
614
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates,
|
|
615
|
-
ContextDev::Internal::AnyHash
|
|
616
|
-
)
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
# End date, when known.
|
|
620
|
-
sig do
|
|
621
|
-
returns(
|
|
622
|
-
T.nilable(
|
|
623
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::EndDate
|
|
624
|
-
)
|
|
625
|
-
)
|
|
626
|
-
end
|
|
627
|
-
attr_reader :end_date
|
|
628
|
-
|
|
629
|
-
sig do
|
|
630
|
-
params(
|
|
631
|
-
end_date:
|
|
632
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::EndDate::OrHash
|
|
633
|
-
).void
|
|
634
|
-
end
|
|
635
|
-
attr_writer :end_date
|
|
636
|
-
|
|
637
|
-
# Whether the entry is current.
|
|
638
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
639
|
-
attr_reader :is_current
|
|
640
|
-
|
|
641
|
-
sig { params(is_current: T::Boolean).void }
|
|
642
|
-
attr_writer :is_current
|
|
643
|
-
|
|
644
|
-
# Start date, when known.
|
|
645
|
-
sig do
|
|
646
|
-
returns(
|
|
647
|
-
T.nilable(
|
|
648
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::StartDate
|
|
649
|
-
)
|
|
650
|
-
)
|
|
651
|
-
end
|
|
652
|
-
attr_reader :start_date
|
|
653
|
-
|
|
654
|
-
sig do
|
|
655
|
-
params(
|
|
656
|
-
start_date:
|
|
657
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::StartDate::OrHash
|
|
658
|
-
).void
|
|
659
|
-
end
|
|
660
|
-
attr_writer :start_date
|
|
661
|
-
|
|
662
|
-
# Education dates.
|
|
663
|
-
sig do
|
|
664
|
-
params(
|
|
665
|
-
end_date:
|
|
666
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::EndDate::OrHash,
|
|
667
|
-
is_current: T::Boolean,
|
|
668
|
-
start_date:
|
|
669
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::StartDate::OrHash
|
|
670
|
-
).returns(T.attached_class)
|
|
671
|
-
end
|
|
672
|
-
def self.new(
|
|
673
|
-
# End date, when known.
|
|
674
|
-
end_date: nil,
|
|
675
|
-
# Whether the entry is current.
|
|
676
|
-
is_current: nil,
|
|
677
|
-
# Start date, when known.
|
|
678
|
-
start_date: nil
|
|
679
|
-
)
|
|
680
|
-
end
|
|
681
|
-
|
|
682
|
-
sig do
|
|
683
|
-
override.returns(
|
|
684
|
-
{
|
|
685
|
-
end_date:
|
|
686
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::EndDate,
|
|
687
|
-
is_current: T::Boolean,
|
|
688
|
-
start_date:
|
|
689
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::StartDate
|
|
690
|
-
}
|
|
691
|
-
)
|
|
692
|
-
end
|
|
693
|
-
def to_hash
|
|
694
|
-
end
|
|
695
|
-
|
|
696
|
-
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
697
|
-
OrHash =
|
|
698
|
-
T.type_alias do
|
|
699
|
-
T.any(
|
|
700
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::EndDate,
|
|
701
|
-
ContextDev::Internal::AnyHash
|
|
702
|
-
)
|
|
703
|
-
end
|
|
704
|
-
|
|
705
|
-
# Year value.
|
|
706
|
-
sig { returns(Integer) }
|
|
707
|
-
attr_accessor :year
|
|
708
|
-
|
|
709
|
-
# Day value, when known.
|
|
710
|
-
sig { returns(T.nilable(Integer)) }
|
|
711
|
-
attr_reader :day
|
|
712
|
-
|
|
713
|
-
sig { params(day: Integer).void }
|
|
714
|
-
attr_writer :day
|
|
715
|
-
|
|
716
|
-
# Month value, when known.
|
|
717
|
-
sig { returns(T.nilable(Integer)) }
|
|
718
|
-
attr_reader :month
|
|
719
|
-
|
|
720
|
-
sig { params(month: Integer).void }
|
|
721
|
-
attr_writer :month
|
|
722
|
-
|
|
723
|
-
# End date, when known.
|
|
724
|
-
sig do
|
|
725
|
-
params(year: Integer, day: Integer, month: Integer).returns(
|
|
726
|
-
T.attached_class
|
|
727
|
-
)
|
|
728
|
-
end
|
|
729
|
-
def self.new(
|
|
730
|
-
# Year value.
|
|
731
|
-
year:,
|
|
732
|
-
# Day value, when known.
|
|
733
|
-
day: nil,
|
|
734
|
-
# Month value, when known.
|
|
735
|
-
month: nil
|
|
736
|
-
)
|
|
737
|
-
end
|
|
738
|
-
|
|
739
|
-
sig do
|
|
740
|
-
override.returns(
|
|
741
|
-
{ year: Integer, day: Integer, month: Integer }
|
|
742
|
-
)
|
|
743
|
-
end
|
|
744
|
-
def to_hash
|
|
745
|
-
end
|
|
746
|
-
end
|
|
747
|
-
|
|
748
|
-
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
749
|
-
OrHash =
|
|
750
|
-
T.type_alias do
|
|
751
|
-
T.any(
|
|
752
|
-
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::StartDate,
|
|
753
|
-
ContextDev::Internal::AnyHash
|
|
754
|
-
)
|
|
755
|
-
end
|
|
756
|
-
|
|
757
|
-
# Year value.
|
|
758
|
-
sig { returns(Integer) }
|
|
759
|
-
attr_accessor :year
|
|
760
|
-
|
|
761
|
-
# Day value, when known.
|
|
762
|
-
sig { returns(T.nilable(Integer)) }
|
|
763
|
-
attr_reader :day
|
|
764
|
-
|
|
765
|
-
sig { params(day: Integer).void }
|
|
766
|
-
attr_writer :day
|
|
767
|
-
|
|
768
|
-
# Month value, when known.
|
|
769
|
-
sig { returns(T.nilable(Integer)) }
|
|
770
|
-
attr_reader :month
|
|
771
|
-
|
|
772
|
-
sig { params(month: Integer).void }
|
|
773
|
-
attr_writer :month
|
|
774
|
-
|
|
775
|
-
# Start date, when known.
|
|
776
|
-
sig do
|
|
777
|
-
params(year: Integer, day: Integer, month: Integer).returns(
|
|
778
|
-
T.attached_class
|
|
779
|
-
)
|
|
780
|
-
end
|
|
781
|
-
def self.new(
|
|
782
|
-
# Year value.
|
|
783
|
-
year:,
|
|
784
|
-
# Day value, when known.
|
|
785
|
-
day: nil,
|
|
786
|
-
# Month value, when known.
|
|
787
|
-
month: nil
|
|
788
|
-
)
|
|
789
|
-
end
|
|
790
|
-
|
|
791
|
-
sig do
|
|
792
|
-
override.returns(
|
|
793
|
-
{ year: Integer, day: Integer, month: Integer }
|
|
794
|
-
)
|
|
795
|
-
end
|
|
796
|
-
def to_hash
|
|
797
|
-
end
|
|
798
|
-
end
|
|
799
|
-
end
|
|
800
|
-
end
|
|
801
|
-
|
|
802
|
-
class Experience < ContextDev::Internal::Type::BaseModel
|
|
803
|
-
OrHash =
|
|
804
|
-
T.type_alias do
|
|
805
|
-
T.any(
|
|
806
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience,
|
|
807
|
-
ContextDev::Internal::AnyHash
|
|
808
|
-
)
|
|
809
|
-
end
|
|
810
|
-
|
|
811
|
-
# Company or organization name.
|
|
812
|
-
sig do
|
|
813
|
-
returns(
|
|
814
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Company
|
|
815
|
-
)
|
|
816
|
-
end
|
|
817
|
-
attr_reader :company
|
|
818
|
-
|
|
819
|
-
sig do
|
|
820
|
-
params(
|
|
821
|
-
company:
|
|
822
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Company::OrHash
|
|
823
|
-
).void
|
|
824
|
-
end
|
|
825
|
-
attr_writer :company
|
|
826
|
-
|
|
827
|
-
# Role or job title.
|
|
828
|
-
sig { returns(String) }
|
|
829
|
-
attr_accessor :title
|
|
830
|
-
|
|
831
|
-
# Role dates.
|
|
832
|
-
sig do
|
|
833
|
-
returns(
|
|
834
|
-
T.nilable(
|
|
835
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates
|
|
836
|
-
)
|
|
837
|
-
)
|
|
838
|
-
end
|
|
839
|
-
attr_reader :dates
|
|
840
|
-
|
|
841
|
-
sig do
|
|
842
|
-
params(
|
|
843
|
-
dates:
|
|
844
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::OrHash
|
|
845
|
-
).void
|
|
846
|
-
end
|
|
847
|
-
attr_writer :dates
|
|
848
|
-
|
|
849
|
-
# Role description.
|
|
850
|
-
sig { returns(T.nilable(String)) }
|
|
851
|
-
attr_reader :description
|
|
852
|
-
|
|
853
|
-
sig { params(description: String).void }
|
|
854
|
-
attr_writer :description
|
|
855
|
-
|
|
856
|
-
sig do
|
|
857
|
-
params(
|
|
858
|
-
company:
|
|
859
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Company::OrHash,
|
|
860
|
-
title: String,
|
|
861
|
-
dates:
|
|
862
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::OrHash,
|
|
863
|
-
description: String
|
|
864
|
-
).returns(T.attached_class)
|
|
865
|
-
end
|
|
866
|
-
def self.new(
|
|
867
|
-
# Company or organization name.
|
|
868
|
-
company:,
|
|
869
|
-
# Role or job title.
|
|
870
|
-
title:,
|
|
871
|
-
# Role dates.
|
|
872
|
-
dates: nil,
|
|
873
|
-
# Role description.
|
|
874
|
-
description: nil
|
|
278
|
+
CRAWL =
|
|
279
|
+
T.let(
|
|
280
|
+
:crawl,
|
|
281
|
+
ContextDev::Models::BatchSubmitResponse::Mode::TaggedSymbol
|
|
875
282
|
)
|
|
876
|
-
end
|
|
877
|
-
|
|
878
|
-
sig do
|
|
879
|
-
override.returns(
|
|
880
|
-
{
|
|
881
|
-
company:
|
|
882
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Company,
|
|
883
|
-
title: String,
|
|
884
|
-
dates:
|
|
885
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates,
|
|
886
|
-
description: String
|
|
887
|
-
}
|
|
888
|
-
)
|
|
889
|
-
end
|
|
890
|
-
def to_hash
|
|
891
|
-
end
|
|
892
283
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
ContextDev::Internal::AnyHash
|
|
899
|
-
)
|
|
900
|
-
end
|
|
901
|
-
|
|
902
|
-
# Display name.
|
|
903
|
-
sig { returns(String) }
|
|
904
|
-
attr_accessor :display_
|
|
905
|
-
|
|
906
|
-
# Standardized name, when available.
|
|
907
|
-
sig { returns(T.nilable(String)) }
|
|
908
|
-
attr_reader :normalized
|
|
909
|
-
|
|
910
|
-
sig { params(normalized: String).void }
|
|
911
|
-
attr_writer :normalized
|
|
912
|
-
|
|
913
|
-
# Company or organization name.
|
|
914
|
-
sig do
|
|
915
|
-
params(display_: String, normalized: String).returns(
|
|
916
|
-
T.attached_class
|
|
917
|
-
)
|
|
918
|
-
end
|
|
919
|
-
def self.new(
|
|
920
|
-
# Display name.
|
|
921
|
-
display_:,
|
|
922
|
-
# Standardized name, when available.
|
|
923
|
-
normalized: nil
|
|
924
|
-
)
|
|
925
|
-
end
|
|
926
|
-
|
|
927
|
-
sig { override.returns({ display_: String, normalized: String }) }
|
|
928
|
-
def to_hash
|
|
929
|
-
end
|
|
930
|
-
end
|
|
931
|
-
|
|
932
|
-
class Dates < ContextDev::Internal::Type::BaseModel
|
|
933
|
-
OrHash =
|
|
934
|
-
T.type_alias do
|
|
935
|
-
T.any(
|
|
936
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates,
|
|
937
|
-
ContextDev::Internal::AnyHash
|
|
938
|
-
)
|
|
939
|
-
end
|
|
940
|
-
|
|
941
|
-
# End date, when known.
|
|
942
|
-
sig do
|
|
943
|
-
returns(
|
|
944
|
-
T.nilable(
|
|
945
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate
|
|
946
|
-
)
|
|
947
|
-
)
|
|
948
|
-
end
|
|
949
|
-
attr_reader :end_date
|
|
950
|
-
|
|
951
|
-
sig do
|
|
952
|
-
params(
|
|
953
|
-
end_date:
|
|
954
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate::OrHash
|
|
955
|
-
).void
|
|
956
|
-
end
|
|
957
|
-
attr_writer :end_date
|
|
958
|
-
|
|
959
|
-
# Whether the entry is current.
|
|
960
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
961
|
-
attr_reader :is_current
|
|
962
|
-
|
|
963
|
-
sig { params(is_current: T::Boolean).void }
|
|
964
|
-
attr_writer :is_current
|
|
965
|
-
|
|
966
|
-
# Start date, when known.
|
|
967
|
-
sig do
|
|
968
|
-
returns(
|
|
969
|
-
T.nilable(
|
|
970
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate
|
|
971
|
-
)
|
|
972
|
-
)
|
|
973
|
-
end
|
|
974
|
-
attr_reader :start_date
|
|
975
|
-
|
|
976
|
-
sig do
|
|
977
|
-
params(
|
|
978
|
-
start_date:
|
|
979
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate::OrHash
|
|
980
|
-
).void
|
|
981
|
-
end
|
|
982
|
-
attr_writer :start_date
|
|
983
|
-
|
|
984
|
-
# Role dates.
|
|
985
|
-
sig do
|
|
986
|
-
params(
|
|
987
|
-
end_date:
|
|
988
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate::OrHash,
|
|
989
|
-
is_current: T::Boolean,
|
|
990
|
-
start_date:
|
|
991
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate::OrHash
|
|
992
|
-
).returns(T.attached_class)
|
|
993
|
-
end
|
|
994
|
-
def self.new(
|
|
995
|
-
# End date, when known.
|
|
996
|
-
end_date: nil,
|
|
997
|
-
# Whether the entry is current.
|
|
998
|
-
is_current: nil,
|
|
999
|
-
# Start date, when known.
|
|
1000
|
-
start_date: nil
|
|
1001
|
-
)
|
|
1002
|
-
end
|
|
1003
|
-
|
|
1004
|
-
sig do
|
|
1005
|
-
override.returns(
|
|
1006
|
-
{
|
|
1007
|
-
end_date:
|
|
1008
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate,
|
|
1009
|
-
is_current: T::Boolean,
|
|
1010
|
-
start_date:
|
|
1011
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate
|
|
1012
|
-
}
|
|
1013
|
-
)
|
|
1014
|
-
end
|
|
1015
|
-
def to_hash
|
|
1016
|
-
end
|
|
1017
|
-
|
|
1018
|
-
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
1019
|
-
OrHash =
|
|
1020
|
-
T.type_alias do
|
|
1021
|
-
T.any(
|
|
1022
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::EndDate,
|
|
1023
|
-
ContextDev::Internal::AnyHash
|
|
1024
|
-
)
|
|
1025
|
-
end
|
|
1026
|
-
|
|
1027
|
-
# Year value.
|
|
1028
|
-
sig { returns(Integer) }
|
|
1029
|
-
attr_accessor :year
|
|
1030
|
-
|
|
1031
|
-
# Day value, when known.
|
|
1032
|
-
sig { returns(T.nilable(Integer)) }
|
|
1033
|
-
attr_reader :day
|
|
1034
|
-
|
|
1035
|
-
sig { params(day: Integer).void }
|
|
1036
|
-
attr_writer :day
|
|
1037
|
-
|
|
1038
|
-
# Month value, when known.
|
|
1039
|
-
sig { returns(T.nilable(Integer)) }
|
|
1040
|
-
attr_reader :month
|
|
1041
|
-
|
|
1042
|
-
sig { params(month: Integer).void }
|
|
1043
|
-
attr_writer :month
|
|
1044
|
-
|
|
1045
|
-
# End date, when known.
|
|
1046
|
-
sig do
|
|
1047
|
-
params(year: Integer, day: Integer, month: Integer).returns(
|
|
1048
|
-
T.attached_class
|
|
1049
|
-
)
|
|
1050
|
-
end
|
|
1051
|
-
def self.new(
|
|
1052
|
-
# Year value.
|
|
1053
|
-
year:,
|
|
1054
|
-
# Day value, when known.
|
|
1055
|
-
day: nil,
|
|
1056
|
-
# Month value, when known.
|
|
1057
|
-
month: nil
|
|
1058
|
-
)
|
|
1059
|
-
end
|
|
1060
|
-
|
|
1061
|
-
sig do
|
|
1062
|
-
override.returns(
|
|
1063
|
-
{ year: Integer, day: Integer, month: Integer }
|
|
1064
|
-
)
|
|
1065
|
-
end
|
|
1066
|
-
def to_hash
|
|
1067
|
-
end
|
|
1068
|
-
end
|
|
1069
|
-
|
|
1070
|
-
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
1071
|
-
OrHash =
|
|
1072
|
-
T.type_alias do
|
|
1073
|
-
T.any(
|
|
1074
|
-
ContextDev::Models::BatchSubmitResponse::Person::Experience::Dates::StartDate,
|
|
1075
|
-
ContextDev::Internal::AnyHash
|
|
1076
|
-
)
|
|
1077
|
-
end
|
|
1078
|
-
|
|
1079
|
-
# Year value.
|
|
1080
|
-
sig { returns(Integer) }
|
|
1081
|
-
attr_accessor :year
|
|
1082
|
-
|
|
1083
|
-
# Day value, when known.
|
|
1084
|
-
sig { returns(T.nilable(Integer)) }
|
|
1085
|
-
attr_reader :day
|
|
1086
|
-
|
|
1087
|
-
sig { params(day: Integer).void }
|
|
1088
|
-
attr_writer :day
|
|
1089
|
-
|
|
1090
|
-
# Month value, when known.
|
|
1091
|
-
sig { returns(T.nilable(Integer)) }
|
|
1092
|
-
attr_reader :month
|
|
1093
|
-
|
|
1094
|
-
sig { params(month: Integer).void }
|
|
1095
|
-
attr_writer :month
|
|
1096
|
-
|
|
1097
|
-
# Start date, when known.
|
|
1098
|
-
sig do
|
|
1099
|
-
params(year: Integer, day: Integer, month: Integer).returns(
|
|
1100
|
-
T.attached_class
|
|
1101
|
-
)
|
|
1102
|
-
end
|
|
1103
|
-
def self.new(
|
|
1104
|
-
# Year value.
|
|
1105
|
-
year:,
|
|
1106
|
-
# Day value, when known.
|
|
1107
|
-
day: nil,
|
|
1108
|
-
# Month value, when known.
|
|
1109
|
-
month: nil
|
|
1110
|
-
)
|
|
1111
|
-
end
|
|
1112
|
-
|
|
1113
|
-
sig do
|
|
1114
|
-
override.returns(
|
|
1115
|
-
{ year: Integer, day: Integer, month: Integer }
|
|
1116
|
-
)
|
|
1117
|
-
end
|
|
1118
|
-
def to_hash
|
|
1119
|
-
end
|
|
1120
|
-
end
|
|
1121
|
-
end
|
|
1122
|
-
end
|
|
1123
|
-
|
|
1124
|
-
class Profile < ContextDev::Internal::Type::BaseModel
|
|
1125
|
-
OrHash =
|
|
1126
|
-
T.type_alias do
|
|
1127
|
-
T.any(
|
|
1128
|
-
ContextDev::Models::BatchSubmitResponse::Person::Profile,
|
|
1129
|
-
ContextDev::Internal::AnyHash
|
|
1130
|
-
)
|
|
1131
|
-
end
|
|
1132
|
-
|
|
1133
|
-
# Person's full name.
|
|
1134
|
-
sig { returns(T.nilable(String)) }
|
|
1135
|
-
attr_reader :full_name
|
|
1136
|
-
|
|
1137
|
-
sig { params(full_name: String).void }
|
|
1138
|
-
attr_writer :full_name
|
|
1139
|
-
|
|
1140
|
-
# Short professional headline.
|
|
1141
|
-
sig { returns(T.nilable(String)) }
|
|
1142
|
-
attr_reader :headline
|
|
1143
|
-
|
|
1144
|
-
sig { params(headline: String).void }
|
|
1145
|
-
attr_writer :headline
|
|
1146
|
-
|
|
1147
|
-
# Person's listed location.
|
|
1148
|
-
sig { returns(T.nilable(String)) }
|
|
1149
|
-
attr_reader :location
|
|
1150
|
-
|
|
1151
|
-
sig { params(location: String).void }
|
|
1152
|
-
attr_writer :location
|
|
1153
|
-
|
|
1154
|
-
# Profile image URL.
|
|
1155
|
-
sig { returns(T.nilable(String)) }
|
|
1156
|
-
attr_reader :profile_picture_url
|
|
1157
|
-
|
|
1158
|
-
sig { params(profile_picture_url: String).void }
|
|
1159
|
-
attr_writer :profile_picture_url
|
|
1160
|
-
|
|
1161
|
-
# Brief profile summary.
|
|
1162
|
-
sig { returns(T.nilable(String)) }
|
|
1163
|
-
attr_reader :summary
|
|
1164
|
-
|
|
1165
|
-
sig { params(summary: String).void }
|
|
1166
|
-
attr_writer :summary
|
|
1167
|
-
|
|
1168
|
-
# Core profile details.
|
|
1169
|
-
sig do
|
|
1170
|
-
params(
|
|
1171
|
-
full_name: String,
|
|
1172
|
-
headline: String,
|
|
1173
|
-
location: String,
|
|
1174
|
-
profile_picture_url: String,
|
|
1175
|
-
summary: String
|
|
1176
|
-
).returns(T.attached_class)
|
|
1177
|
-
end
|
|
1178
|
-
def self.new(
|
|
1179
|
-
# Person's full name.
|
|
1180
|
-
full_name: nil,
|
|
1181
|
-
# Short professional headline.
|
|
1182
|
-
headline: nil,
|
|
1183
|
-
# Person's listed location.
|
|
1184
|
-
location: nil,
|
|
1185
|
-
# Profile image URL.
|
|
1186
|
-
profile_picture_url: nil,
|
|
1187
|
-
# Brief profile summary.
|
|
1188
|
-
summary: nil
|
|
284
|
+
sig do
|
|
285
|
+
override.returns(
|
|
286
|
+
T::Array[
|
|
287
|
+
ContextDev::Models::BatchSubmitResponse::Mode::TaggedSymbol
|
|
288
|
+
]
|
|
1189
289
|
)
|
|
1190
|
-
end
|
|
1191
|
-
|
|
1192
|
-
sig do
|
|
1193
|
-
override.returns(
|
|
1194
|
-
{
|
|
1195
|
-
full_name: String,
|
|
1196
|
-
headline: String,
|
|
1197
|
-
location: String,
|
|
1198
|
-
profile_picture_url: String,
|
|
1199
|
-
summary: String
|
|
1200
|
-
}
|
|
1201
|
-
)
|
|
1202
|
-
end
|
|
1203
|
-
def to_hash
|
|
1204
|
-
end
|
|
1205
290
|
end
|
|
1206
|
-
|
|
1207
|
-
class Skill < ContextDev::Internal::Type::BaseModel
|
|
1208
|
-
OrHash =
|
|
1209
|
-
T.type_alias do
|
|
1210
|
-
T.any(
|
|
1211
|
-
ContextDev::Models::BatchSubmitResponse::Person::Skill,
|
|
1212
|
-
ContextDev::Internal::AnyHash
|
|
1213
|
-
)
|
|
1214
|
-
end
|
|
1215
|
-
|
|
1216
|
-
# Skill name.
|
|
1217
|
-
sig { returns(String) }
|
|
1218
|
-
attr_accessor :name
|
|
1219
|
-
|
|
1220
|
-
# Standardized skill name, when available.
|
|
1221
|
-
sig { returns(T.nilable(String)) }
|
|
1222
|
-
attr_reader :normalized
|
|
1223
|
-
|
|
1224
|
-
sig { params(normalized: String).void }
|
|
1225
|
-
attr_writer :normalized
|
|
1226
|
-
|
|
1227
|
-
# Skill proficiency, when available.
|
|
1228
|
-
sig { returns(T.nilable(String)) }
|
|
1229
|
-
attr_reader :proficiency
|
|
1230
|
-
|
|
1231
|
-
sig { params(proficiency: String).void }
|
|
1232
|
-
attr_writer :proficiency
|
|
1233
|
-
|
|
1234
|
-
sig do
|
|
1235
|
-
params(
|
|
1236
|
-
name: String,
|
|
1237
|
-
normalized: String,
|
|
1238
|
-
proficiency: String
|
|
1239
|
-
).returns(T.attached_class)
|
|
1240
|
-
end
|
|
1241
|
-
def self.new(
|
|
1242
|
-
# Skill name.
|
|
1243
|
-
name:,
|
|
1244
|
-
# Standardized skill name, when available.
|
|
1245
|
-
normalized: nil,
|
|
1246
|
-
# Skill proficiency, when available.
|
|
1247
|
-
proficiency: nil
|
|
1248
|
-
)
|
|
1249
|
-
end
|
|
1250
|
-
|
|
1251
|
-
sig do
|
|
1252
|
-
override.returns(
|
|
1253
|
-
{ name: String, normalized: String, proficiency: String }
|
|
1254
|
-
)
|
|
1255
|
-
end
|
|
1256
|
-
def to_hash
|
|
1257
|
-
end
|
|
291
|
+
def self.values
|
|
1258
292
|
end
|
|
1259
293
|
end
|
|
1260
294
|
|
|
1261
|
-
#
|
|
295
|
+
# Always `queued`. An accepted batch has not started yet.
|
|
1262
296
|
module Status
|
|
1263
297
|
extend ContextDev::Internal::Type::Enum
|
|
1264
298
|
|
|
@@ -1268,9 +302,9 @@ module ContextDev
|
|
|
1268
302
|
end
|
|
1269
303
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1270
304
|
|
|
1271
|
-
|
|
305
|
+
QUEUED =
|
|
1272
306
|
T.let(
|
|
1273
|
-
:
|
|
307
|
+
:queued,
|
|
1274
308
|
ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol
|
|
1275
309
|
)
|
|
1276
310
|
|
|
@@ -1302,8 +336,7 @@ module ContextDev
|
|
|
1302
336
|
sig { returns(Integer) }
|
|
1303
337
|
attr_accessor :credits_remaining
|
|
1304
338
|
|
|
1305
|
-
#
|
|
1306
|
-
# whenever a valid API key is provided, even when the response status is not 200.
|
|
339
|
+
# API key usage for this request.
|
|
1307
340
|
sig do
|
|
1308
341
|
params(credits_consumed: Integer, credits_remaining: Integer).returns(
|
|
1309
342
|
T.attached_class
|