context.dev 2.8.0 → 2.9.0

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