context.dev 2.21.0 → 2.22.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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/context_dev/client.rb +4 -9
  5. data/lib/context_dev/models/batch_cancel_params.rb +2 -2
  6. data/lib/context_dev/models/batch_cancel_response.rb +16 -21
  7. data/lib/context_dev/models/batch_delete_params.rb +2 -2
  8. data/lib/context_dev/models/batch_delete_response.rb +8 -8
  9. data/lib/context_dev/models/batch_get_results_params.rb +2 -2
  10. data/lib/context_dev/models/batch_get_results_response.rb +17 -22
  11. data/lib/context_dev/models/batch_list_response.rb +38 -47
  12. data/lib/context_dev/models/batch_retrieve_params.rb +2 -2
  13. data/lib/context_dev/models/batch_retrieve_response.rb +37 -46
  14. data/lib/context_dev/models/batch_submit_params.rb +80 -109
  15. data/lib/context_dev/models/batch_submit_response.rb +18 -28
  16. data/lib/context_dev/models/brand_retrieve_params.rb +90 -149
  17. data/lib/context_dev/models/brand_retrieve_response.rb +18 -22
  18. data/lib/context_dev/models/brand_search_params.rb +2 -3
  19. data/lib/context_dev/models/brand_search_response.rb +8 -8
  20. data/lib/context_dev/models/crawl_controls.rb +1 -2
  21. data/lib/context_dev/models/feedback_submit_params.rb +2 -2
  22. data/lib/context_dev/models/feedback_submit_response.rb +8 -8
  23. data/lib/context_dev/models/industry_retrieve_naics_params.rb +17 -32
  24. data/lib/context_dev/models/industry_retrieve_naics_response.rb +10 -10
  25. data/lib/context_dev/models/industry_retrieve_sic_params.rb +20 -39
  26. data/lib/context_dev/models/industry_retrieve_sic_response.rb +10 -10
  27. data/lib/context_dev/models/intake.rb +7 -13
  28. data/lib/context_dev/models/log_list_response.rb +14 -10
  29. data/lib/context_dev/models/log_retrieve_response.rb +15 -41
  30. data/lib/context_dev/models/monitor_create_params.rb +238 -72
  31. data/lib/context_dev/models/monitor_create_response.rb +364 -175
  32. data/lib/context_dev/models/monitor_delete_params.rb +3 -1
  33. data/lib/context_dev/models/monitor_delete_response.rb +44 -1
  34. data/lib/context_dev/models/monitor_get_credit_usage_response.rb +43 -1
  35. data/lib/context_dev/models/monitor_get_limits_response.rb +47 -7
  36. data/lib/context_dev/models/monitor_list_account_changes_response.rb +143 -20
  37. data/lib/context_dev/models/monitor_list_account_runs_response.rb +50 -8
  38. data/lib/context_dev/models/monitor_list_changes_params.rb +2 -1
  39. data/lib/context_dev/models/monitor_list_changes_response.rb +143 -20
  40. data/lib/context_dev/models/monitor_list_params.rb +3 -3
  41. data/lib/context_dev/models/monitor_list_response.rb +304 -106
  42. data/lib/context_dev/models/monitor_list_runs_params.rb +2 -1
  43. data/lib/context_dev/models/monitor_list_runs_response.rb +50 -8
  44. data/lib/context_dev/models/monitor_retrieve_change_params.rb +3 -1
  45. data/lib/context_dev/models/monitor_retrieve_change_response.rb +45 -15
  46. data/lib/context_dev/models/monitor_retrieve_params.rb +3 -1
  47. data/lib/context_dev/models/monitor_retrieve_response.rb +361 -171
  48. data/lib/context_dev/models/monitor_retrieve_run_params.rb +6 -2
  49. data/lib/context_dev/models/monitor_retrieve_run_response.rb +45 -8
  50. data/lib/context_dev/models/monitor_rotate_webhook_secret_params.rb +3 -1
  51. data/lib/context_dev/models/monitor_rotate_webhook_secret_response.rb +364 -172
  52. data/lib/context_dev/models/monitor_run_params.rb +3 -1
  53. data/lib/context_dev/models/monitor_run_response.rb +42 -4
  54. data/lib/context_dev/models/monitor_update_params.rb +239 -71
  55. data/lib/context_dev/models/monitor_update_response.rb +361 -171
  56. data/lib/context_dev/models/news_search_params.rb +10 -6
  57. data/lib/context_dev/models/news_search_response.rb +8 -8
  58. data/lib/context_dev/models/parse_handle_params.rb +9 -20
  59. data/lib/context_dev/models/parse_handle_response.rb +8 -8
  60. data/lib/context_dev/models/person_enrich_params.rb +76 -50
  61. data/lib/context_dev/models/person_enrich_response.rb +8 -8
  62. data/lib/context_dev/models/utility_prefetch_params.rb +15 -29
  63. data/lib/context_dev/models/utility_prefetch_response.rb +10 -10
  64. data/lib/context_dev/models/web_answers_params.rb +28 -47
  65. data/lib/context_dev/models/web_answers_response.rb +9 -8
  66. data/lib/context_dev/models/web_extract_competitors_params.rb +17 -32
  67. data/lib/context_dev/models/web_extract_competitors_response.rb +8 -8
  68. data/lib/context_dev/models/web_extract_styleguide_params.rb +22 -44
  69. data/lib/context_dev/models/web_extract_styleguide_response.rb +34 -44
  70. data/lib/context_dev/models/web_map_urls_params.rb +30 -51
  71. data/lib/context_dev/models/web_map_urls_response.rb +8 -8
  72. data/lib/context_dev/models/web_scrape_params.rb +193 -191
  73. data/lib/context_dev/models/web_scrape_response.rb +219 -95
  74. data/lib/context_dev/models/web_screenshot_params.rb +20 -39
  75. data/lib/context_dev/models/web_screenshot_response.rb +18 -28
  76. data/lib/context_dev/models/web_search_params.rb +76 -65
  77. data/lib/context_dev/models/web_search_response.rb +68 -27
  78. data/lib/context_dev/models/web_web_crawl_md_params.rb +41 -70
  79. data/lib/context_dev/models/web_web_crawl_md_response.rb +11 -15
  80. data/lib/context_dev/models/webhook_delivery.rb +3 -7
  81. data/lib/context_dev/models/webhooks/attempt.rb +3 -3
  82. data/lib/context_dev/models/webhooks/delivery.rb +16 -11
  83. data/lib/context_dev/models/webhooks/delivery_list_attempts_params.rb +2 -6
  84. data/lib/context_dev/models/webhooks/delivery_list_attempts_response.rb +8 -8
  85. data/lib/context_dev/models/webhooks/delivery_list_params.rb +4 -4
  86. data/lib/context_dev/models/webhooks/delivery_list_response.rb +8 -8
  87. data/lib/context_dev/models/webhooks/delivery_retrieve_params.rb +2 -6
  88. data/lib/context_dev/models/webhooks/delivery_retrieve_response.rb +8 -8
  89. data/lib/context_dev/models/webhooks/delivery_retry_params.rb +4 -4
  90. data/lib/context_dev/models/webhooks/delivery_retry_response.rb +8 -8
  91. data/lib/context_dev/models/webhooks/delivery_summary.rb +16 -11
  92. data/lib/context_dev/resources/batch.rb +17 -16
  93. data/lib/context_dev/resources/brand.rb +6 -8
  94. data/lib/context_dev/resources/feedback.rb +4 -5
  95. data/lib/context_dev/resources/industry.rb +9 -11
  96. data/lib/context_dev/resources/logs.rb +4 -5
  97. data/lib/context_dev/resources/monitors.rb +50 -53
  98. data/lib/context_dev/resources/news.rb +4 -8
  99. data/lib/context_dev/resources/parse.rb +4 -5
  100. data/lib/context_dev/resources/people.rb +11 -13
  101. data/lib/context_dev/resources/utility.rb +4 -11
  102. data/lib/context_dev/resources/web.rb +69 -94
  103. data/lib/context_dev/resources/webhooks/deliveries.rb +10 -18
  104. data/lib/context_dev/resources/webhooks.rb +1 -1
  105. data/lib/context_dev/version.rb +1 -1
  106. data/rbi/context_dev/client.rbi +4 -9
  107. data/rbi/context_dev/models/batch_cancel_params.rbi +2 -2
  108. data/rbi/context_dev/models/batch_cancel_response.rbi +17 -21
  109. data/rbi/context_dev/models/batch_delete_params.rbi +2 -2
  110. data/rbi/context_dev/models/batch_delete_response.rbi +9 -9
  111. data/rbi/context_dev/models/batch_get_results_params.rbi +2 -2
  112. data/rbi/context_dev/models/batch_get_results_response.rbi +18 -26
  113. data/rbi/context_dev/models/batch_list_response.rbi +41 -53
  114. data/rbi/context_dev/models/batch_retrieve_params.rbi +2 -2
  115. data/rbi/context_dev/models/batch_retrieve_response.rbi +40 -52
  116. data/rbi/context_dev/models/batch_submit_params.rbi +87 -147
  117. data/rbi/context_dev/models/batch_submit_response.rbi +19 -31
  118. data/rbi/context_dev/models/brand_retrieve_params.rbi +99 -190
  119. data/rbi/context_dev/models/brand_retrieve_response.rbi +19 -25
  120. data/rbi/context_dev/models/brand_search_params.rbi +2 -4
  121. data/rbi/context_dev/models/brand_search_response.rbi +9 -9
  122. data/rbi/context_dev/models/crawl_controls.rbi +1 -2
  123. data/rbi/context_dev/models/feedback_submit_params.rbi +2 -2
  124. data/rbi/context_dev/models/feedback_submit_response.rbi +9 -9
  125. data/rbi/context_dev/models/industry_retrieve_naics_params.rbi +19 -42
  126. data/rbi/context_dev/models/industry_retrieve_naics_response.rbi +11 -11
  127. data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +22 -51
  128. data/rbi/context_dev/models/industry_retrieve_sic_response.rbi +11 -11
  129. data/rbi/context_dev/models/intake.rbi +7 -19
  130. data/rbi/context_dev/models/log_list_response.rbi +13 -11
  131. data/rbi/context_dev/models/log_retrieve_response.rbi +13 -76
  132. data/rbi/context_dev/models/monitor_create_params.rbi +418 -78
  133. data/rbi/context_dev/models/monitor_create_response.rbi +654 -287
  134. data/rbi/context_dev/models/monitor_delete_params.rbi +6 -1
  135. data/rbi/context_dev/models/monitor_delete_response.rbi +89 -3
  136. data/rbi/context_dev/models/monitor_get_credit_usage_response.rbi +77 -3
  137. data/rbi/context_dev/models/monitor_get_limits_response.rbi +83 -10
  138. data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +236 -24
  139. data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +86 -12
  140. data/rbi/context_dev/models/monitor_list_changes_params.rbi +2 -0
  141. data/rbi/context_dev/models/monitor_list_changes_response.rbi +234 -24
  142. data/rbi/context_dev/models/monitor_list_params.rbi +4 -4
  143. data/rbi/context_dev/models/monitor_list_response.rbi +502 -130
  144. data/rbi/context_dev/models/monitor_list_runs_params.rbi +2 -0
  145. data/rbi/context_dev/models/monitor_list_runs_response.rbi +84 -12
  146. data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +6 -1
  147. data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +79 -15
  148. data/rbi/context_dev/models/monitor_retrieve_params.rbi +6 -1
  149. data/rbi/context_dev/models/monitor_retrieve_response.rbi +654 -283
  150. data/rbi/context_dev/models/monitor_retrieve_run_params.rbi +9 -1
  151. data/rbi/context_dev/models/monitor_retrieve_run_response.rbi +77 -9
  152. data/rbi/context_dev/models/monitor_rotate_webhook_secret_params.rbi +6 -1
  153. data/rbi/context_dev/models/monitor_rotate_webhook_secret_response.rbi +659 -288
  154. data/rbi/context_dev/models/monitor_run_params.rbi +6 -1
  155. data/rbi/context_dev/models/monitor_run_response.rbi +82 -9
  156. data/rbi/context_dev/models/monitor_update_params.rbi +420 -75
  157. data/rbi/context_dev/models/monitor_update_response.rbi +650 -281
  158. data/rbi/context_dev/models/news_search_params.rbi +10 -2
  159. data/rbi/context_dev/models/news_search_response.rbi +9 -9
  160. data/rbi/context_dev/models/parse_handle_params.rbi +10 -29
  161. data/rbi/context_dev/models/parse_handle_response.rbi +9 -9
  162. data/rbi/context_dev/models/person_enrich_params.rbi +86 -44
  163. data/rbi/context_dev/models/person_enrich_response.rbi +9 -9
  164. data/rbi/context_dev/models/utility_prefetch_params.rbi +15 -27
  165. data/rbi/context_dev/models/utility_prefetch_response.rbi +11 -11
  166. data/rbi/context_dev/models/web_answers_params.rbi +33 -63
  167. data/rbi/context_dev/models/web_answers_response.rbi +11 -9
  168. data/rbi/context_dev/models/web_extract_competitors_params.rbi +19 -42
  169. data/rbi/context_dev/models/web_extract_competitors_response.rbi +9 -9
  170. data/rbi/context_dev/models/web_extract_styleguide_params.rbi +25 -61
  171. data/rbi/context_dev/models/web_extract_styleguide_response.rbi +36 -51
  172. data/rbi/context_dev/models/web_map_urls_params.rbi +33 -68
  173. data/rbi/context_dev/models/web_map_urls_response.rbi +9 -9
  174. data/rbi/context_dev/models/web_scrape_params.rbi +212 -206
  175. data/rbi/context_dev/models/web_scrape_response.rbi +296 -120
  176. data/rbi/context_dev/models/web_screenshot_params.rbi +22 -51
  177. data/rbi/context_dev/models/web_screenshot_response.rbi +20 -35
  178. data/rbi/context_dev/models/web_search_params.rbi +114 -82
  179. data/rbi/context_dev/models/web_search_response.rbi +145 -33
  180. data/rbi/context_dev/models/web_web_crawl_md_params.rbi +45 -95
  181. data/rbi/context_dev/models/web_web_crawl_md_response.rbi +12 -18
  182. data/rbi/context_dev/models/webhook_delivery.rbi +3 -9
  183. data/rbi/context_dev/models/webhooks/attempt.rbi +3 -3
  184. data/rbi/context_dev/models/webhooks/delivery.rbi +14 -11
  185. data/rbi/context_dev/models/webhooks/delivery_list_attempts_params.rbi +2 -4
  186. data/rbi/context_dev/models/webhooks/delivery_list_attempts_response.rbi +9 -9
  187. data/rbi/context_dev/models/webhooks/delivery_list_params.rbi +4 -4
  188. data/rbi/context_dev/models/webhooks/delivery_list_response.rbi +9 -9
  189. data/rbi/context_dev/models/webhooks/delivery_retrieve_params.rbi +2 -4
  190. data/rbi/context_dev/models/webhooks/delivery_retrieve_response.rbi +9 -9
  191. data/rbi/context_dev/models/webhooks/delivery_retry_params.rbi +4 -4
  192. data/rbi/context_dev/models/webhooks/delivery_retry_response.rbi +9 -9
  193. data/rbi/context_dev/models/webhooks/delivery_summary.rbi +14 -11
  194. data/rbi/context_dev/resources/batch.rbi +19 -18
  195. data/rbi/context_dev/resources/brand.rbi +6 -9
  196. data/rbi/context_dev/resources/feedback.rbi +4 -5
  197. data/rbi/context_dev/resources/industry.rbi +11 -27
  198. data/rbi/context_dev/resources/logs.rbi +4 -5
  199. data/rbi/context_dev/resources/monitors.rbi +71 -49
  200. data/rbi/context_dev/resources/news.rbi +4 -8
  201. data/rbi/context_dev/resources/parse.rbi +7 -14
  202. data/rbi/context_dev/resources/people.rbi +15 -13
  203. data/rbi/context_dev/resources/utility.rbi +4 -11
  204. data/rbi/context_dev/resources/web.rbi +89 -190
  205. data/rbi/context_dev/resources/webhooks/deliveries.rbi +10 -12
  206. data/rbi/context_dev/resources/webhooks.rbi +1 -1
  207. data/sig/context_dev/models/log_retrieve_response.rbs +0 -28
  208. data/sig/context_dev/models/monitor_create_params.rbs +113 -0
  209. data/sig/context_dev/models/monitor_create_response.rbs +203 -53
  210. data/sig/context_dev/models/monitor_delete_response.rbs +46 -3
  211. data/sig/context_dev/models/monitor_get_credit_usage_response.rbs +36 -3
  212. data/sig/context_dev/models/monitor_get_limits_response.rbs +36 -3
  213. data/sig/context_dev/models/monitor_list_account_changes_response.rbs +111 -8
  214. data/sig/context_dev/models/monitor_list_account_runs_response.rbs +36 -3
  215. data/sig/context_dev/models/monitor_list_changes_response.rbs +111 -8
  216. data/sig/context_dev/models/monitor_list_response.rbs +149 -3
  217. data/sig/context_dev/models/monitor_list_runs_response.rbs +36 -3
  218. data/sig/context_dev/models/monitor_retrieve_change_response.rbs +33 -0
  219. data/sig/context_dev/models/monitor_retrieve_response.rbs +203 -53
  220. data/sig/context_dev/models/monitor_retrieve_run_response.rbs +33 -0
  221. data/sig/context_dev/models/monitor_rotate_webhook_secret_response.rbs +203 -53
  222. data/sig/context_dev/models/monitor_run_response.rbs +48 -3
  223. data/sig/context_dev/models/monitor_update_params.rbs +113 -0
  224. data/sig/context_dev/models/monitor_update_response.rbs +203 -53
  225. data/sig/context_dev/models/web_scrape_response.rbs +204 -27
  226. data/sig/context_dev/models/web_search_params.rbs +25 -0
  227. data/sig/context_dev/models/web_search_response.rbs +48 -0
  228. data/sig/context_dev/resources/web.rbs +1 -0
  229. metadata +2 -2
@@ -40,7 +40,7 @@ module ContextDev
40
40
  optional :sort_by, -> { ContextDev::NewsSearchParams::SortBy }, api_name: :sortBy
41
41
 
42
42
  # @!attribute tags
43
- # Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
43
+ # Labels for filtering usage in the dashboard.
44
44
  #
45
45
  # @return [Array<String>, nil]
46
46
  optional :tags, ContextDev::Internal::Type::ArrayOf[String]
@@ -59,7 +59,7 @@ module ContextDev
59
59
  #
60
60
  # @param sort_by [ContextDev::Models::NewsSearchParams::SortBy] Result ordering. Defaults to newest.
61
61
  #
62
- # @param tags [Array<String>] Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
62
+ # @param tags [Array<String>] Labels for filtering usage in the dashboard.
63
63
  #
64
64
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
65
65
 
@@ -111,6 +111,7 @@ module ContextDev
111
111
  required :name, String
112
112
 
113
113
  # @!attribute type
114
+ # Use `name` to identify the company by name.
114
115
  #
115
116
  # @return [Symbol, :name]
116
117
  required :type, const: :name
@@ -120,7 +121,7 @@ module ContextDev
120
121
  #
121
122
  # @param name [String] Company name.
122
123
  #
123
- # @param type [Symbol, :name]
124
+ # @param type [Symbol, :name] Use `name` to identify the company by name.
124
125
  end
125
126
 
126
127
  class Domain < ContextDev::Internal::Type::BaseModel
@@ -131,6 +132,7 @@ module ContextDev
131
132
  required :domain, String
132
133
 
133
134
  # @!attribute type
135
+ # Use `domain` to identify the company by website domain.
134
136
  #
135
137
  # @return [Symbol, :domain]
136
138
  required :type, const: :domain
@@ -140,7 +142,7 @@ module ContextDev
140
142
  #
141
143
  # @param domain [String] Company website domain, such as apple.com.
142
144
  #
143
- # @param type [Symbol, :domain]
145
+ # @param type [Symbol, :domain] Use `domain` to identify the company by website domain.
144
146
  end
145
147
 
146
148
  class Ticker < ContextDev::Internal::Type::BaseModel
@@ -151,6 +153,7 @@ module ContextDev
151
153
  required :ticker, String
152
154
 
153
155
  # @!attribute type
156
+ # Use `ticker` to identify a publicly traded company.
154
157
  #
155
158
  # @return [Symbol, :ticker]
156
159
  required :type, const: :ticker
@@ -173,7 +176,7 @@ module ContextDev
173
176
  #
174
177
  # @param exchange [Symbol, ContextDev::Models::NewsSearchParams::SearchBy::Entity::Ticker::Exchange] Stock exchange the ticker trades on, used to disambiguate tickers listed on mult
175
178
  #
176
- # @param type [Symbol, :ticker]
179
+ # @param type [Symbol, :ticker] Use `ticker` to identify a publicly traded company.
177
180
 
178
181
  # Stock exchange the ticker trades on, used to disambiguate tickers listed on
179
182
  # multiple exchanges.
@@ -268,6 +271,7 @@ module ContextDev
268
271
  required :isin, String
269
272
 
270
273
  # @!attribute type
274
+ # Use `isin` to identify the company by its securities identifier.
271
275
  #
272
276
  # @return [Symbol, :isin]
273
277
  required :type, const: :isin
@@ -277,7 +281,7 @@ module ContextDev
277
281
  #
278
282
  # @param isin [String] International Securities Identification Number.
279
283
  #
280
- # @param type [Symbol, :isin]
284
+ # @param type [Symbol, :isin] Use `isin` to identify the company by its securities identifier.
281
285
  end
282
286
 
283
287
  # @!method self.variants
@@ -30,14 +30,14 @@ module ContextDev
30
30
  required :next_cursor, String, nil?: true
31
31
 
32
32
  # @!attribute request_id
33
- # Unique id of this API call, also sent in the X-Request-Id response header. Quote
34
- # it when contacting support about a failed request.
33
+ # Unique ID of this request, also in `X-Request-Id`. Include it when contacting
34
+ # support.
35
35
  #
36
36
  # @return [String]
37
37
  required :request_id, String
38
38
 
39
39
  # @!attribute key_metadata
40
- # Credit usage, included whenever a valid API key is provided.
40
+ # Credits this request used and your remaining balance.
41
41
  #
42
42
  # @return [ContextDev::Models::NewsSearchResponse::KeyMetadata, nil]
43
43
  optional :key_metadata, -> { ContextDev::Models::NewsSearchResponse::KeyMetadata }
@@ -54,9 +54,9 @@ module ContextDev
54
54
  #
55
55
  # @param next_cursor [String, nil] Pass as cursor in the next request to fetch the following page. Null when there
56
56
  #
57
- # @param request_id [String] Unique id of this API call, also sent in the X-Request-Id response header. Quote
57
+ # @param request_id [String] Unique ID of this request, also in `X-Request-Id`. Include it when contacting su
58
58
  #
59
- # @param key_metadata [ContextDev::Models::NewsSearchResponse::KeyMetadata] Credit usage, included whenever a valid API key is provided.
59
+ # @param key_metadata [ContextDev::Models::NewsSearchResponse::KeyMetadata] Credits this request used and your remaining balance.
60
60
 
61
61
  class Data < ContextDev::Internal::Type::BaseModel
62
62
  # @!attribute id
@@ -268,7 +268,7 @@ module ContextDev
268
268
  # @see ContextDev::Models::NewsSearchResponse#key_metadata
269
269
  class KeyMetadata < ContextDev::Internal::Type::BaseModel
270
270
  # @!attribute credits_consumed
271
- # Credits used by this request.
271
+ # Credits charged for this request.
272
272
  #
273
273
  # @return [Integer]
274
274
  required :credits_consumed, Integer
@@ -280,9 +280,9 @@ module ContextDev
280
280
  required :credits_remaining, Integer
281
281
 
282
282
  # @!method initialize(credits_consumed:, credits_remaining:)
283
- # Credit usage, included whenever a valid API key is provided.
283
+ # Credits this request used and your remaining balance.
284
284
  #
285
- # @param credits_consumed [Integer] Credits used by this request.
285
+ # @param credits_consumed [Integer] Credits charged for this request.
286
286
  #
287
287
  # @param credits_remaining [Integer] Credits remaining for your organization.
288
288
  end
@@ -38,11 +38,7 @@ module ContextDev
38
38
  optional :include_links, ContextDev::Internal::Type::Boolean
39
39
 
40
40
  # @!attribute ocr
41
- # When true for PDF inputs, OCR the selected pages that have no usable text layer
42
- # (scans), replacing each recovered page's text with the OCR result while pages
43
- # with a real text layer keep it. pdf.start/pdf.end limit the inclusive page
44
- # range. Billed at 1 credit per page OCR actually recovered, on top of the base
45
- # request cost. When false, no OCR runs.
41
+ # Read text from images and scanned PDF pages. PDF page ranges still apply.
46
42
  #
47
43
  # @return [Boolean, nil]
48
44
  optional :ocr, ContextDev::Internal::Type::Boolean
@@ -60,8 +56,7 @@ module ContextDev
60
56
  optional :shorten_base64_images, ContextDev::Internal::Type::Boolean
61
57
 
62
58
  # @!attribute tags
63
- # Comma-separated tags for tracking request usage. Up to 20 tags, each 1-50
64
- # characters.
59
+ # Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
65
60
  #
66
61
  # @return [Array<String>, nil]
67
62
  optional :tags, ContextDev::Internal::Type::ArrayOf[String]
@@ -73,11 +68,8 @@ module ContextDev
73
68
  optional :use_main_content_only, ContextDev::Internal::Type::Boolean
74
69
 
75
70
  # @!attribute zdr
76
- # Set to enabled to bypass shared caches and omit request and response content
77
- # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
78
- # omitted. Requires zero data retention to be enabled for your organization
79
- # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
80
- # Successful ZDR responses include X-Context-ZDR: true.
71
+ # `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
72
+ # your organization has ZDR.
81
73
  #
82
74
  # @return [Symbol, ContextDev::Models::ParseHandleParams::Zdr, nil]
83
75
  optional :zdr, enum: -> { ContextDev::ParseHandleParams::Zdr }
@@ -96,17 +88,17 @@ module ContextDev
96
88
  #
97
89
  # @param include_links [Boolean] Preserve hyperlinks in Markdown output
98
90
  #
99
- # @param ocr [Boolean] When true for PDF inputs, OCR the selected pages that have no usable text layer
91
+ # @param ocr [Boolean] Read text from images and scanned PDF pages. PDF page ranges still apply.
100
92
  #
101
93
  # @param pdf [ContextDev::Models::ParseHandleParams::Pdf] PDF page-range options as a JSON object, e.g. {"start": 2, "end": 5}.
102
94
  #
103
95
  # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
104
96
  #
105
- # @param tags [Array<String>] Comma-separated tags for tracking request usage. Up to 20 tags, each 1-50 charac
97
+ # @param tags [Array<String>] Comma-separated labels for filtering usage, e.g. `production,team-alpha`.
106
98
  #
107
99
  # @param use_main_content_only [Boolean] Extract only the main content from HTML-like inputs
108
100
  #
109
- # @param zdr [Symbol, ContextDev::Models::ParseHandleParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
101
+ # @param zdr [Symbol, ContextDev::Models::ParseHandleParams::Zdr] `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless you
110
102
  #
111
103
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
112
104
 
@@ -215,11 +207,8 @@ module ContextDev
215
207
  # @param start [Integer] First 1-based PDF page to parse. When omitted, parsing starts at the first page.
216
208
  end
217
209
 
218
- # Set to enabled to bypass shared caches and omit request and response content
219
- # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
220
- # omitted. Requires zero data retention to be enabled for your organization
221
- # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
222
- # Successful ZDR responses include X-Context-ZDR: true.
210
+ # `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
211
+ # your organization has ZDR.
223
212
  module Zdr
224
213
  extend ContextDev::Internal::Type::Enum
225
214
 
@@ -11,8 +11,8 @@ module ContextDev
11
11
  required :markdown, String
12
12
 
13
13
  # @!attribute request_id
14
- # Unique id of this API call, also sent in the X-Request-Id response header. Quote
15
- # it when contacting support about a failed request.
14
+ # Unique ID of this request, also in `X-Request-Id`. Include it when contacting
15
+ # support.
16
16
  #
17
17
  # @return [String]
18
18
  required :request_id, String
@@ -30,7 +30,7 @@ module ContextDev
30
30
  required :type, enum: -> { ContextDev::Models::ParseHandleResponse::Type }
31
31
 
32
32
  # @!attribute key_metadata
33
- # Credit usage, included whenever a valid API key is provided.
33
+ # Credits this request used and your remaining balance.
34
34
  #
35
35
  # @return [ContextDev::Models::ParseHandleResponse::KeyMetadata, nil]
36
36
  optional :key_metadata, -> { ContextDev::Models::ParseHandleResponse::KeyMetadata }
@@ -41,13 +41,13 @@ module ContextDev
41
41
  #
42
42
  # @param markdown [String] Input bytes converted to GitHub Flavored Markdown
43
43
  #
44
- # @param request_id [String] Unique id of this API call, also sent in the X-Request-Id response header. Quote
44
+ # @param request_id [String] Unique ID of this request, also in `X-Request-Id`. Include it when contacting su
45
45
  #
46
46
  # @param success [Boolean, ContextDev::Models::ParseHandleResponse::Success] Indicates success
47
47
  #
48
48
  # @param type [Symbol, ContextDev::Models::ParseHandleResponse::Type] Detected content type used for parsing
49
49
  #
50
- # @param key_metadata [ContextDev::Models::ParseHandleResponse::KeyMetadata] Credit usage, included whenever a valid API key is provided.
50
+ # @param key_metadata [ContextDev::Models::ParseHandleResponse::KeyMetadata] Credits this request used and your remaining balance.
51
51
 
52
52
  # Indicates success
53
53
  #
@@ -116,7 +116,7 @@ module ContextDev
116
116
  # @see ContextDev::Models::ParseHandleResponse#key_metadata
117
117
  class KeyMetadata < ContextDev::Internal::Type::BaseModel
118
118
  # @!attribute credits_consumed
119
- # Credits used by this request.
119
+ # Credits charged for this request.
120
120
  #
121
121
  # @return [Integer]
122
122
  required :credits_consumed, Integer
@@ -128,9 +128,9 @@ module ContextDev
128
128
  required :credits_remaining, Integer
129
129
 
130
130
  # @!method initialize(credits_consumed:, credits_remaining:)
131
- # Credit usage, included whenever a valid API key is provided.
131
+ # Credits this request used and your remaining balance.
132
132
  #
133
- # @param credits_consumed [Integer] Credits used by this request.
133
+ # @param credits_consumed [Integer] Credits charged for this request.
134
134
  #
135
135
  # @param credits_remaining [Integer] Credits remaining for your organization.
136
136
  end
@@ -8,55 +8,59 @@ module ContextDev
8
8
  include ContextDev::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute company
11
+ # Company context to help identify the person. Provide a name or domain.
11
12
  #
12
13
  # @return [ContextDev::Models::PersonEnrichParams::Company, nil]
13
14
  optional :company, -> { ContextDev::PersonEnrichParams::Company }
14
15
 
15
16
  # @!attribute education
17
+ # Education history to help distinguish people with similar names.
16
18
  #
17
19
  # @return [Array<ContextDev::Models::PersonEnrichParams::Education>, nil]
18
20
  optional :education, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::PersonEnrichParams::Education] }
19
21
 
20
22
  # @!attribute email
23
+ # Email address of the person to find.
21
24
  #
22
25
  # @return [String, nil]
23
26
  optional :email, String
24
27
 
25
28
  # @!attribute location
29
+ # Location context to help identify the person. Provide a city, region, or
30
+ # country.
26
31
  #
27
32
  # @return [ContextDev::Models::PersonEnrichParams::Location, nil]
28
33
  optional :location, -> { ContextDev::PersonEnrichParams::Location }
29
34
 
30
35
  # @!attribute name
36
+ # Person name. Without an email or person-profile URL, provide both first and last
37
+ # name plus company, education, or location.
31
38
  #
32
39
  # @return [ContextDev::Models::PersonEnrichParams::Name, nil]
33
40
  optional :name, -> { ContextDev::PersonEnrichParams::Name }
34
41
 
35
42
  # @!attribute social_urls
43
+ # Public profile URLs for the person. A person-profile URL can identify the person
44
+ # without a name.
36
45
  #
37
46
  # @return [Array<String>, nil]
38
47
  optional :social_urls, ContextDev::Internal::Type::ArrayOf[String]
39
48
 
40
49
  # @!attribute tags
41
- # Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
50
+ # Labels for filtering usage in the dashboard.
42
51
  #
43
52
  # @return [Array<String>, nil]
44
53
  optional :tags, ContextDev::Internal::Type::ArrayOf[String]
45
54
 
46
55
  # @!attribute timeout_opts
47
- # Optional request deadline and behavior on timeout. For GET requests, use
48
- # timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
49
- # timeoutOpts object.
56
+ # Request deadline and what to return when it passes.
50
57
  #
51
58
  # @return [ContextDev::Models::PersonEnrichParams::TimeoutOpts, nil]
52
59
  optional :timeout_opts, -> { ContextDev::PersonEnrichParams::TimeoutOpts }, api_name: :timeoutOpts
53
60
 
54
61
  # @!attribute zdr
55
- # Set to enabled to bypass shared caches and omit request and response content
56
- # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
57
- # omitted. Requires zero data retention to be enabled for your organization
58
- # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
59
- # Successful ZDR responses include X-Context-ZDR: true.
62
+ # `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
63
+ # your organization has ZDR.
60
64
  #
61
65
  # @return [Symbol, ContextDev::Models::PersonEnrichParams::Zdr, nil]
62
66
  optional :zdr, enum: -> { ContextDev::PersonEnrichParams::Zdr }
@@ -65,137 +69,166 @@ module ContextDev
65
69
  # Some parameter documentations has been truncated, see
66
70
  # {ContextDev::Models::PersonEnrichParams} for more details.
67
71
  #
68
- # @param company [ContextDev::Models::PersonEnrichParams::Company]
72
+ # @param company [ContextDev::Models::PersonEnrichParams::Company] Company context to help identify the person. Provide a name or domain.
69
73
  #
70
- # @param education [Array<ContextDev::Models::PersonEnrichParams::Education>]
74
+ # @param education [Array<ContextDev::Models::PersonEnrichParams::Education>] Education history to help distinguish people with similar names.
71
75
  #
72
- # @param email [String]
76
+ # @param email [String] Email address of the person to find.
73
77
  #
74
- # @param location [ContextDev::Models::PersonEnrichParams::Location]
78
+ # @param location [ContextDev::Models::PersonEnrichParams::Location] Location context to help identify the person. Provide a city, region, or country
75
79
  #
76
- # @param name [ContextDev::Models::PersonEnrichParams::Name]
80
+ # @param name [ContextDev::Models::PersonEnrichParams::Name] Person name. Without an email or person-profile URL, provide both first and last
77
81
  #
78
- # @param social_urls [Array<String>]
82
+ # @param social_urls [Array<String>] Public profile URLs for the person. A person-profile URL can identify the person
79
83
  #
80
- # @param tags [Array<String>] Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
84
+ # @param tags [Array<String>] Labels for filtering usage in the dashboard.
81
85
  #
82
- # @param timeout_opts [ContextDev::Models::PersonEnrichParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
86
+ # @param timeout_opts [ContextDev::Models::PersonEnrichParams::TimeoutOpts] Request deadline and what to return when it passes.
83
87
  #
84
- # @param zdr [Symbol, ContextDev::Models::PersonEnrichParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
88
+ # @param zdr [Symbol, ContextDev::Models::PersonEnrichParams::Zdr] `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless you
85
89
  #
86
90
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
87
91
 
88
92
  class Company < ContextDev::Internal::Type::BaseModel
89
93
  # @!attribute domain
94
+ # Website domain of a company associated with the person.
90
95
  #
91
96
  # @return [String, nil]
92
97
  optional :domain, String
93
98
 
94
99
  # @!attribute name
100
+ # Name of a company associated with the person.
95
101
  #
96
102
  # @return [String, nil]
97
103
  optional :name, String
98
104
 
99
105
  # @!method initialize(domain: nil, name: nil)
100
- # @param domain [String]
101
- # @param name [String]
106
+ # Company context to help identify the person. Provide a name or domain.
107
+ #
108
+ # @param domain [String] Website domain of a company associated with the person.
109
+ #
110
+ # @param name [String] Name of a company associated with the person.
102
111
  end
103
112
 
104
113
  class Education < ContextDev::Internal::Type::BaseModel
105
114
  # @!attribute degree
115
+ # Degree or qualification earned.
106
116
  #
107
117
  # @return [String, nil]
108
118
  optional :degree, String
109
119
 
110
120
  # @!attribute field_of_study
121
+ # Subject or major studied.
111
122
  #
112
123
  # @return [String, nil]
113
124
  optional :field_of_study, String
114
125
 
115
126
  # @!attribute graduation_year
127
+ # Four-digit graduation year.
116
128
  #
117
129
  # @return [Integer, nil]
118
130
  optional :graduation_year, Integer
119
131
 
120
132
  # @!attribute institution
133
+ # School or university, identified by name or domain.
121
134
  #
122
135
  # @return [ContextDev::Models::PersonEnrichParams::Education::Institution, nil]
123
136
  optional :institution, -> { ContextDev::PersonEnrichParams::Education::Institution }
124
137
 
125
138
  # @!method initialize(degree: nil, field_of_study: nil, graduation_year: nil, institution: nil)
126
- # @param degree [String]
127
- # @param field_of_study [String]
128
- # @param graduation_year [Integer]
129
- # @param institution [ContextDev::Models::PersonEnrichParams::Education::Institution]
139
+ # @param degree [String] Degree or qualification earned.
140
+ #
141
+ # @param field_of_study [String] Subject or major studied.
142
+ #
143
+ # @param graduation_year [Integer] Four-digit graduation year.
144
+ #
145
+ # @param institution [ContextDev::Models::PersonEnrichParams::Education::Institution] School or university, identified by name or domain.
130
146
 
131
147
  # @see ContextDev::Models::PersonEnrichParams::Education#institution
132
148
  class Institution < ContextDev::Internal::Type::BaseModel
133
149
  # @!attribute domain
150
+ # Website domain of the school or university.
134
151
  #
135
152
  # @return [String, nil]
136
153
  optional :domain, String
137
154
 
138
155
  # @!attribute name
156
+ # Name of the school or university.
139
157
  #
140
158
  # @return [String, nil]
141
159
  optional :name, String
142
160
 
143
161
  # @!method initialize(domain: nil, name: nil)
144
- # @param domain [String]
145
- # @param name [String]
162
+ # School or university, identified by name or domain.
163
+ #
164
+ # @param domain [String] Website domain of the school or university.
165
+ #
166
+ # @param name [String] Name of the school or university.
146
167
  end
147
168
  end
148
169
 
149
170
  class Location < ContextDev::Internal::Type::BaseModel
150
171
  # @!attribute city
172
+ # City associated with the person.
151
173
  #
152
174
  # @return [String, nil]
153
175
  optional :city, String
154
176
 
155
177
  # @!attribute country
178
+ # Country associated with the person.
156
179
  #
157
180
  # @return [String, nil]
158
181
  optional :country, String
159
182
 
160
183
  # @!attribute region
184
+ # State, province, or region associated with the person.
161
185
  #
162
186
  # @return [String, nil]
163
187
  optional :region, String
164
188
 
165
189
  # @!method initialize(city: nil, country: nil, region: nil)
166
- # @param city [String]
167
- # @param country [String]
168
- # @param region [String]
190
+ # Location context to help identify the person. Provide a city, region, or
191
+ # country.
192
+ #
193
+ # @param city [String] City associated with the person.
194
+ #
195
+ # @param country [String] Country associated with the person.
196
+ #
197
+ # @param region [String] State, province, or region associated with the person.
169
198
  end
170
199
 
171
200
  class Name < ContextDev::Internal::Type::BaseModel
172
201
  # @!attribute first
202
+ # First or given name.
173
203
  #
174
204
  # @return [String, nil]
175
205
  optional :first, String
176
206
 
177
207
  # @!attribute last
208
+ # Last or family name.
178
209
  #
179
210
  # @return [String, nil]
180
211
  optional :last, String
181
212
 
182
213
  # @!method initialize(first: nil, last: nil)
183
- # @param first [String]
184
- # @param last [String]
214
+ # Person name. Without an email or person-profile URL, provide both first and last
215
+ # name plus company, education, or location.
216
+ #
217
+ # @param first [String] First or given name.
218
+ #
219
+ # @param last [String] Last or family name.
185
220
  end
186
221
 
187
222
  class TimeoutOpts < ContextDev::Internal::Type::BaseModel
188
223
  # @!attribute milliseconds
189
- # Request deadline in milliseconds. Maximum: 300000 (5 minutes).
224
+ # Deadline in milliseconds.
190
225
  #
191
226
  # @return [Integer]
192
227
  required :milliseconds, Integer
193
228
 
194
229
  # @!attribute behavior
195
- # What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging
196
- # credits. "return-partial" returns usable results collected so far; if none are
197
- # available, the request still fails without charging credits. Partial results are
198
- # not cached as complete results.
230
+ # "fail" returns 408 at the deadline. "return-partial" returns available results;
231
+ # inspect the response’s partial flag.
199
232
  #
200
233
  # @return [Symbol, ContextDev::Models::PersonEnrichParams::TimeoutOpts::Behavior, nil]
201
234
  optional :behavior, enum: -> { ContextDev::PersonEnrichParams::TimeoutOpts::Behavior }
@@ -204,18 +237,14 @@ module ContextDev
204
237
  # Some parameter documentations has been truncated, see
205
238
  # {ContextDev::Models::PersonEnrichParams::TimeoutOpts} for more details.
206
239
  #
207
- # Optional request deadline and behavior on timeout. For GET requests, use
208
- # timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
209
- # timeoutOpts object.
240
+ # Request deadline and what to return when it passes.
210
241
  #
211
- # @param milliseconds [Integer] Request deadline in milliseconds. Maximum: 300000 (5 minutes).
242
+ # @param milliseconds [Integer] Deadline in milliseconds.
212
243
  #
213
- # @param behavior [Symbol, ContextDev::Models::PersonEnrichParams::TimeoutOpts::Behavior] What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging
244
+ # @param behavior [Symbol, ContextDev::Models::PersonEnrichParams::TimeoutOpts::Behavior] "fail" returns 408 at the deadline. "return-partial" returns available results;
214
245
 
215
- # What to do at the deadline. "fail" returns 408 REQUEST_TIMEOUT without charging
216
- # credits. "return-partial" returns usable results collected so far; if none are
217
- # available, the request still fails without charging credits. Partial results are
218
- # not cached as complete results.
246
+ # "fail" returns 408 at the deadline. "return-partial" returns available results;
247
+ # inspect the response’s partial flag.
219
248
  #
220
249
  # @see ContextDev::Models::PersonEnrichParams::TimeoutOpts#behavior
221
250
  module Behavior
@@ -229,11 +258,8 @@ module ContextDev
229
258
  end
230
259
  end
231
260
 
232
- # Set to enabled to bypass shared caches and omit request and response content
233
- # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
234
- # omitted. Requires zero data retention to be enabled for your organization
235
- # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
236
- # Successful ZDR responses include X-Context-ZDR: true.
261
+ # `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
262
+ # your organization has ZDR.
237
263
  module Zdr
238
264
  extend ContextDev::Internal::Type::Enum
239
265
 
@@ -11,14 +11,14 @@ module ContextDev
11
11
  required :match, union: -> { ContextDev::Models::PersonEnrichResponse::Match }
12
12
 
13
13
  # @!attribute request_id
14
- # Unique id of this API call, also sent in the X-Request-Id response header. Quote
15
- # it when contacting support about a failed request.
14
+ # Unique ID of this request, also in `X-Request-Id`. Include it when contacting
15
+ # support.
16
16
  #
17
17
  # @return [String]
18
18
  required :request_id, String
19
19
 
20
20
  # @!attribute key_metadata
21
- # Credit usage, included whenever a valid API key is provided.
21
+ # Credits this request used and your remaining balance.
22
22
  #
23
23
  # @return [ContextDev::Models::PersonEnrichResponse::KeyMetadata, nil]
24
24
  optional :key_metadata, -> { ContextDev::Models::PersonEnrichResponse::KeyMetadata }
@@ -36,9 +36,9 @@ module ContextDev
36
36
  #
37
37
  # @param match [ContextDev::Models::PersonEnrichResponse::Match::Candidate, ContextDev::Models::PersonEnrichResponse::Match::NotFound] The highest-scoring person candidate.
38
38
  #
39
- # @param request_id [String] Unique id of this API call, also sent in the X-Request-Id response header. Quote
39
+ # @param request_id [String] Unique ID of this request, also in `X-Request-Id`. Include it when contacting su
40
40
  #
41
- # @param key_metadata [ContextDev::Models::PersonEnrichResponse::KeyMetadata] Credit usage, included whenever a valid API key is provided.
41
+ # @param key_metadata [ContextDev::Models::PersonEnrichResponse::KeyMetadata] Credits this request used and your remaining balance.
42
42
  #
43
43
  # @param partial [Boolean] True when the timeout ended processing and this response contains the usable dat
44
44
 
@@ -634,7 +634,7 @@ module ContextDev
634
634
  # @see ContextDev::Models::PersonEnrichResponse#key_metadata
635
635
  class KeyMetadata < ContextDev::Internal::Type::BaseModel
636
636
  # @!attribute credits_consumed
637
- # Credits used by this request.
637
+ # Credits charged for this request.
638
638
  #
639
639
  # @return [Integer]
640
640
  required :credits_consumed, Integer
@@ -646,9 +646,9 @@ module ContextDev
646
646
  required :credits_remaining, Integer
647
647
 
648
648
  # @!method initialize(credits_consumed:, credits_remaining:)
649
- # Credit usage, included whenever a valid API key is provided.
649
+ # Credits this request used and your remaining balance.
650
650
  #
651
- # @param credits_consumed [Integer] Credits used by this request.
651
+ # @param credits_consumed [Integer] Credits charged for this request.
652
652
  #
653
653
  # @param credits_remaining [Integer] Credits remaining for your organization.
654
654
  end