context.dev 2.5.0 → 2.6.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 +13 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +4 -0
- data/lib/context_dev/models/batch_cancel_params.rb +22 -0
- data/lib/context_dev/models/batch_cancel_response.rb +354 -0
- data/lib/context_dev/models/batch_get_results_params.rb +42 -0
- data/lib/context_dev/models/batch_get_results_response.rb +463 -0
- data/lib/context_dev/models/batch_list_params.rb +94 -0
- data/lib/context_dev/models/batch_list_response.rb +388 -0
- data/lib/context_dev/models/batch_retrieve_params.rb +22 -0
- data/lib/context_dev/models/batch_retrieve_response.rb +390 -0
- data/lib/context_dev/models/batch_submit_params.rb +56 -0
- data/lib/context_dev/models/batch_submit_response.rb +614 -0
- data/lib/context_dev/models/error.rb +26 -0
- data/lib/context_dev/models/error_count.rb +26 -0
- data/lib/context_dev/models/monitor_create_params.rb +141 -127
- data/lib/context_dev/models/monitor_create_response.rb +34 -10
- data/lib/context_dev/models/monitor_list_response.rb +21 -7
- data/lib/context_dev/models/monitor_retrieve_response.rb +21 -7
- data/lib/context_dev/models/monitor_update_params.rb +21 -7
- data/lib/context_dev/models/monitor_update_response.rb +21 -7
- data/lib/context_dev/models/web_web_scrape_html_response.rb +93 -1
- data/lib/context_dev/models/web_web_scrape_md_response.rb +93 -1
- data/lib/context_dev/models.rb +14 -0
- data/lib/context_dev/resources/batch.rb +155 -0
- data/lib/context_dev/resources/monitors.rb +5 -5
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +13 -0
- data/rbi/context_dev/client.rbi +3 -0
- data/rbi/context_dev/models/batch_cancel_params.rbi +40 -0
- data/rbi/context_dev/models/batch_cancel_response.rbi +642 -0
- data/rbi/context_dev/models/batch_get_results_params.rbi +70 -0
- data/rbi/context_dev/models/batch_get_results_response.rbi +848 -0
- data/rbi/context_dev/models/batch_list_params.rbi +166 -0
- data/rbi/context_dev/models/batch_list_response.rbi +738 -0
- data/rbi/context_dev/models/batch_retrieve_params.rbi +40 -0
- data/rbi/context_dev/models/batch_retrieve_response.rbi +707 -0
- data/rbi/context_dev/models/batch_submit_params.rbi +105 -0
- data/rbi/context_dev/models/batch_submit_response.rbi +1330 -0
- data/rbi/context_dev/models/error.rbi +32 -0
- data/rbi/context_dev/models/error_count.rbi +34 -0
- data/rbi/context_dev/models/monitor_create_params.rbi +274 -242
- data/rbi/context_dev/models/monitor_create_response.rbi +38 -7
- data/rbi/context_dev/models/monitor_list_response.rbi +24 -5
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +24 -5
- data/rbi/context_dev/models/monitor_update_params.rbi +24 -5
- data/rbi/context_dev/models/monitor_update_response.rbi +24 -5
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +182 -0
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +180 -0
- data/rbi/context_dev/models.rbi +14 -0
- data/rbi/context_dev/resources/batch.rbi +120 -0
- data/rbi/context_dev/resources/monitors.rbi +12 -12
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/batch_cancel_params.rbs +23 -0
- data/sig/context_dev/models/batch_cancel_response.rbs +266 -0
- data/sig/context_dev/models/batch_get_results_params.rbs +36 -0
- data/sig/context_dev/models/batch_get_results_response.rbs +399 -0
- data/sig/context_dev/models/batch_list_params.rbs +94 -0
- data/sig/context_dev/models/batch_list_response.rbs +304 -0
- data/sig/context_dev/models/batch_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/batch_retrieve_response.rbs +290 -0
- data/sig/context_dev/models/batch_submit_params.rbs +52 -0
- data/sig/context_dev/models/batch_submit_response.rbs +542 -0
- data/sig/context_dev/models/error.rbs +15 -0
- data/sig/context_dev/models/error_count.rbs +15 -0
- data/sig/context_dev/models/monitor_create_params.rbs +117 -97
- data/sig/context_dev/models/monitor_create_response.rbs +18 -1
- data/sig/context_dev/models/monitor_list_response.rbs +13 -1
- data/sig/context_dev/models/monitor_retrieve_response.rbs +13 -1
- data/sig/context_dev/models/monitor_update_params.rbs +13 -1
- data/sig/context_dev/models/monitor_update_response.rbs +13 -1
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +85 -0
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +85 -0
- data/sig/context_dev/models.rbs +14 -0
- data/sig/context_dev/resources/batch.rbs +41 -0
- data/sig/context_dev/resources/monitors.rbs +2 -2
- metadata +41 -2
|
@@ -0,0 +1,1330 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
class BatchSubmitResponse < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
ContextDev::Models::BatchSubmitResponse,
|
|
10
|
+
ContextDev::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# HTTP status code.
|
|
15
|
+
sig do
|
|
16
|
+
returns(ContextDev::Models::BatchSubmitResponse::Code::TaggedInteger)
|
|
17
|
+
end
|
|
18
|
+
attr_accessor :code
|
|
19
|
+
|
|
20
|
+
# Additional response details.
|
|
21
|
+
sig { returns(ContextDev::Models::BatchSubmitResponse::Metadata) }
|
|
22
|
+
attr_reader :metadata
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
metadata: ContextDev::Models::BatchSubmitResponse::Metadata::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :metadata
|
|
30
|
+
|
|
31
|
+
# Retrieved person profile.
|
|
32
|
+
sig { returns(ContextDev::Models::BatchSubmitResponse::Person) }
|
|
33
|
+
attr_reader :person
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
person: ContextDev::Models::BatchSubmitResponse::Person::OrHash
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :person
|
|
41
|
+
|
|
42
|
+
# Response status.
|
|
43
|
+
sig do
|
|
44
|
+
returns(ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol)
|
|
45
|
+
end
|
|
46
|
+
attr_accessor :status
|
|
47
|
+
|
|
48
|
+
# Metadata about the API key used for the request. Included in every response
|
|
49
|
+
# whenever a valid API key is provided, even when the response status is not 200.
|
|
50
|
+
sig do
|
|
51
|
+
returns(T.nilable(ContextDev::Models::BatchSubmitResponse::KeyMetadata))
|
|
52
|
+
end
|
|
53
|
+
attr_reader :key_metadata
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
key_metadata:
|
|
58
|
+
ContextDev::Models::BatchSubmitResponse::KeyMetadata::OrHash
|
|
59
|
+
).void
|
|
60
|
+
end
|
|
61
|
+
attr_writer :key_metadata
|
|
62
|
+
|
|
63
|
+
sig do
|
|
64
|
+
params(
|
|
65
|
+
code: ContextDev::Models::BatchSubmitResponse::Code::OrInteger,
|
|
66
|
+
metadata: ContextDev::Models::BatchSubmitResponse::Metadata::OrHash,
|
|
67
|
+
person: ContextDev::Models::BatchSubmitResponse::Person::OrHash,
|
|
68
|
+
status: ContextDev::Models::BatchSubmitResponse::Status::OrSymbol,
|
|
69
|
+
key_metadata:
|
|
70
|
+
ContextDev::Models::BatchSubmitResponse::KeyMetadata::OrHash
|
|
71
|
+
).returns(T.attached_class)
|
|
72
|
+
end
|
|
73
|
+
def self.new(
|
|
74
|
+
# HTTP status code.
|
|
75
|
+
code:,
|
|
76
|
+
# Additional response details.
|
|
77
|
+
metadata:,
|
|
78
|
+
# Retrieved person profile.
|
|
79
|
+
person:,
|
|
80
|
+
# Response status.
|
|
81
|
+
status:,
|
|
82
|
+
# Metadata about the API key used for the request. Included in every response
|
|
83
|
+
# whenever a valid API key is provided, even when the response status is not 200.
|
|
84
|
+
key_metadata: nil
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
override.returns(
|
|
90
|
+
{
|
|
91
|
+
code: ContextDev::Models::BatchSubmitResponse::Code::TaggedInteger,
|
|
92
|
+
metadata: ContextDev::Models::BatchSubmitResponse::Metadata,
|
|
93
|
+
person: ContextDev::Models::BatchSubmitResponse::Person,
|
|
94
|
+
status:
|
|
95
|
+
ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol,
|
|
96
|
+
key_metadata: ContextDev::Models::BatchSubmitResponse::KeyMetadata
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# HTTP status code.
|
|
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
|
|
131
|
+
OrHash =
|
|
132
|
+
T.type_alias do
|
|
133
|
+
T.any(
|
|
134
|
+
ContextDev::Models::BatchSubmitResponse::Metadata,
|
|
135
|
+
ContextDev::Internal::AnyHash
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Identifiers returned for the person.
|
|
140
|
+
sig do
|
|
141
|
+
returns(
|
|
142
|
+
ContextDev::Models::BatchSubmitResponse::Metadata::Identifiers
|
|
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
|
|
185
|
+
|
|
186
|
+
# Additional response details.
|
|
187
|
+
sig do
|
|
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
|
|
203
|
+
def self.new(
|
|
204
|
+
# Identifiers returned for the person.
|
|
205
|
+
identifiers:,
|
|
206
|
+
# Source categories checked.
|
|
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
|
|
214
|
+
)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
sig do
|
|
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
|
|
235
|
+
def to_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
class Identifiers < ContextDev::Internal::Type::BaseModel
|
|
239
|
+
OrHash =
|
|
240
|
+
T.type_alias do
|
|
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
|
|
261
|
+
|
|
262
|
+
sig { override.returns({ linkedin_url: String }) }
|
|
263
|
+
def to_hash
|
|
264
|
+
end
|
|
265
|
+
end
|
|
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) }
|
|
278
|
+
|
|
279
|
+
LINKEDIN =
|
|
280
|
+
T.let(
|
|
281
|
+
:linkedin,
|
|
282
|
+
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
283
|
+
)
|
|
284
|
+
CV =
|
|
285
|
+
T.let(
|
|
286
|
+
:cv,
|
|
287
|
+
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
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
|
+
)
|
|
304
|
+
|
|
305
|
+
sig do
|
|
306
|
+
override.returns(
|
|
307
|
+
T::Array[
|
|
308
|
+
ContextDev::Models::BatchSubmitResponse::Metadata::SourcesAttempted::TaggedSymbol
|
|
309
|
+
]
|
|
310
|
+
)
|
|
311
|
+
end
|
|
312
|
+
def self.values
|
|
313
|
+
end
|
|
314
|
+
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
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
class Person < ContextDev::Internal::Type::BaseModel
|
|
367
|
+
OrHash =
|
|
368
|
+
T.type_alias do
|
|
369
|
+
T.any(
|
|
370
|
+
ContextDev::Models::BatchSubmitResponse::Person,
|
|
371
|
+
ContextDev::Internal::AnyHash
|
|
372
|
+
)
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Education history.
|
|
376
|
+
sig do
|
|
377
|
+
returns(
|
|
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
|
|
392
|
+
|
|
393
|
+
# Core profile details.
|
|
394
|
+
sig do
|
|
395
|
+
returns(ContextDev::Models::BatchSubmitResponse::Person::Profile)
|
|
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
|
|
414
|
+
|
|
415
|
+
# Retrieved person profile.
|
|
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
|
|
434
|
+
def self.new(
|
|
435
|
+
# Education history.
|
|
436
|
+
education:,
|
|
437
|
+
# Work history.
|
|
438
|
+
experience:,
|
|
439
|
+
# Core profile details.
|
|
440
|
+
profile:,
|
|
441
|
+
# Listed skills.
|
|
442
|
+
skills:
|
|
443
|
+
)
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
sig do
|
|
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
|
|
463
|
+
def to_hash
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
class Education < ContextDev::Internal::Type::BaseModel
|
|
467
|
+
OrHash =
|
|
468
|
+
T.type_alias do
|
|
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
|
|
500
|
+
|
|
501
|
+
sig do
|
|
502
|
+
params(
|
|
503
|
+
dates:
|
|
504
|
+
ContextDev::Models::BatchSubmitResponse::Person::Education::Dates::OrHash
|
|
505
|
+
).void
|
|
506
|
+
end
|
|
507
|
+
attr_writer :dates
|
|
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
|
|
529
|
+
|
|
530
|
+
sig do
|
|
531
|
+
params(
|
|
532
|
+
institution:
|
|
533
|
+
ContextDev::Models::BatchSubmitResponse::Person::Education::Institution::OrHash,
|
|
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
|
|
552
|
+
)
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
sig do
|
|
556
|
+
override.returns(
|
|
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
|
|
875
|
+
)
|
|
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
|
+
|
|
893
|
+
class Company < ContextDev::Internal::Type::BaseModel
|
|
894
|
+
OrHash =
|
|
895
|
+
T.type_alias do
|
|
896
|
+
T.any(
|
|
897
|
+
ContextDev::Models::BatchSubmitResponse::Person::Experience::Company,
|
|
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
|
|
1189
|
+
)
|
|
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
|
+
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
|
|
1258
|
+
end
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1261
|
+
# Response status.
|
|
1262
|
+
module Status
|
|
1263
|
+
extend ContextDev::Internal::Type::Enum
|
|
1264
|
+
|
|
1265
|
+
TaggedSymbol =
|
|
1266
|
+
T.type_alias do
|
|
1267
|
+
T.all(Symbol, ContextDev::Models::BatchSubmitResponse::Status)
|
|
1268
|
+
end
|
|
1269
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1270
|
+
|
|
1271
|
+
OK =
|
|
1272
|
+
T.let(
|
|
1273
|
+
:ok,
|
|
1274
|
+
ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol
|
|
1275
|
+
)
|
|
1276
|
+
|
|
1277
|
+
sig do
|
|
1278
|
+
override.returns(
|
|
1279
|
+
T::Array[
|
|
1280
|
+
ContextDev::Models::BatchSubmitResponse::Status::TaggedSymbol
|
|
1281
|
+
]
|
|
1282
|
+
)
|
|
1283
|
+
end
|
|
1284
|
+
def self.values
|
|
1285
|
+
end
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
1289
|
+
OrHash =
|
|
1290
|
+
T.type_alias do
|
|
1291
|
+
T.any(
|
|
1292
|
+
ContextDev::Models::BatchSubmitResponse::KeyMetadata,
|
|
1293
|
+
ContextDev::Internal::AnyHash
|
|
1294
|
+
)
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
# The number of credits consumed by this request.
|
|
1298
|
+
sig { returns(Integer) }
|
|
1299
|
+
attr_accessor :credits_consumed
|
|
1300
|
+
|
|
1301
|
+
# The number of credits remaining for your organization after this request.
|
|
1302
|
+
sig { returns(Integer) }
|
|
1303
|
+
attr_accessor :credits_remaining
|
|
1304
|
+
|
|
1305
|
+
# Metadata about the API key used for the request. Included in every response
|
|
1306
|
+
# whenever a valid API key is provided, even when the response status is not 200.
|
|
1307
|
+
sig do
|
|
1308
|
+
params(credits_consumed: Integer, credits_remaining: Integer).returns(
|
|
1309
|
+
T.attached_class
|
|
1310
|
+
)
|
|
1311
|
+
end
|
|
1312
|
+
def self.new(
|
|
1313
|
+
# The number of credits consumed by this request.
|
|
1314
|
+
credits_consumed:,
|
|
1315
|
+
# The number of credits remaining for your organization after this request.
|
|
1316
|
+
credits_remaining:
|
|
1317
|
+
)
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
sig do
|
|
1321
|
+
override.returns(
|
|
1322
|
+
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
1323
|
+
)
|
|
1324
|
+
end
|
|
1325
|
+
def to_hash
|
|
1326
|
+
end
|
|
1327
|
+
end
|
|
1328
|
+
end
|
|
1329
|
+
end
|
|
1330
|
+
end
|