context.dev 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/lib/context_dev/client.rb +15 -1
  5. data/lib/context_dev/models/ai_extract_product_params.rb +11 -1
  6. data/lib/context_dev/models/ai_extract_products_params.rb +22 -2
  7. data/lib/context_dev/models/industry_retrieve_sic_params.rb +76 -0
  8. data/lib/context_dev/models/industry_retrieve_sic_response.rb +139 -0
  9. data/lib/context_dev/models.rb +2 -0
  10. data/lib/context_dev/resources/ai.rb +8 -7
  11. data/lib/context_dev/resources/industry.rb +40 -0
  12. data/lib/context_dev/resources/utility.rb +2 -6
  13. data/lib/context_dev/version.rb +1 -1
  14. data/lib/context_dev.rb +2 -0
  15. data/rbi/context_dev/models/ai_extract_product_params.rbi +15 -0
  16. data/rbi/context_dev/models/ai_extract_products_params.rbi +40 -2
  17. data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +140 -0
  18. data/rbi/context_dev/models/industry_retrieve_sic_response.rbi +292 -0
  19. data/rbi/context_dev/models.rbi +2 -0
  20. data/rbi/context_dev/resources/ai.rbi +10 -6
  21. data/rbi/context_dev/resources/industry.rbi +34 -0
  22. data/rbi/context_dev/resources/utility.rbi +2 -6
  23. data/sig/context_dev/models/ai_extract_product_params.rbs +7 -1
  24. data/sig/context_dev/models/ai_extract_products_params.rbs +24 -2
  25. data/sig/context_dev/models/industry_retrieve_sic_params.rbs +67 -0
  26. data/sig/context_dev/models/industry_retrieve_sic_response.rbs +125 -0
  27. data/sig/context_dev/models.rbs +2 -0
  28. data/sig/context_dev/resources/ai.rbs +1 -0
  29. data/sig/context_dev/resources/industry.rbs +9 -0
  30. metadata +8 -2
@@ -0,0 +1,67 @@
1
+ module ContextDev
2
+ module Models
3
+ type industry_retrieve_sic_params =
4
+ {
5
+ input: String,
6
+ max_results: Integer,
7
+ min_results: Integer,
8
+ timeout_ms: Integer,
9
+ type: ContextDev::Models::IndustryRetrieveSicParams::type_
10
+ }
11
+ & ContextDev::Internal::Type::request_parameters
12
+
13
+ class IndustryRetrieveSicParams < ContextDev::Internal::Type::BaseModel
14
+ extend ContextDev::Internal::Type::RequestParameters::Converter
15
+ include ContextDev::Internal::Type::RequestParameters
16
+
17
+ attr_accessor input: String
18
+
19
+ attr_reader max_results: Integer?
20
+
21
+ def max_results=: (Integer) -> Integer
22
+
23
+ attr_reader min_results: Integer?
24
+
25
+ def min_results=: (Integer) -> Integer
26
+
27
+ attr_reader timeout_ms: Integer?
28
+
29
+ def timeout_ms=: (Integer) -> Integer
30
+
31
+ attr_reader type: ContextDev::Models::IndustryRetrieveSicParams::type_?
32
+
33
+ def type=: (
34
+ ContextDev::Models::IndustryRetrieveSicParams::type_
35
+ ) -> ContextDev::Models::IndustryRetrieveSicParams::type_
36
+
37
+ def initialize: (
38
+ input: String,
39
+ ?max_results: Integer,
40
+ ?min_results: Integer,
41
+ ?timeout_ms: Integer,
42
+ ?type: ContextDev::Models::IndustryRetrieveSicParams::type_,
43
+ ?request_options: ContextDev::request_opts
44
+ ) -> void
45
+
46
+ def to_hash: -> {
47
+ input: String,
48
+ max_results: Integer,
49
+ min_results: Integer,
50
+ timeout_ms: Integer,
51
+ type: ContextDev::Models::IndustryRetrieveSicParams::type_,
52
+ request_options: ContextDev::RequestOptions
53
+ }
54
+
55
+ type type_ = :original_sic | :latest_sec
56
+
57
+ module Type
58
+ extend ContextDev::Internal::Type::Enum
59
+
60
+ ORIGINAL_SIC: :original_sic
61
+ LATEST_SEC: :latest_sec
62
+
63
+ def self?.values: -> ::Array[ContextDev::Models::IndustryRetrieveSicParams::type_]
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,125 @@
1
+ module ContextDev
2
+ module Models
3
+ type industry_retrieve_sic_response =
4
+ {
5
+ classification: ContextDev::Models::IndustryRetrieveSicResponse::classification,
6
+ codes: ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code],
7
+ domain: String,
8
+ status: String,
9
+ type: String
10
+ }
11
+
12
+ class IndustryRetrieveSicResponse < ContextDev::Internal::Type::BaseModel
13
+ attr_reader classification: ContextDev::Models::IndustryRetrieveSicResponse::classification?
14
+
15
+ def classification=: (
16
+ ContextDev::Models::IndustryRetrieveSicResponse::classification
17
+ ) -> ContextDev::Models::IndustryRetrieveSicResponse::classification
18
+
19
+ attr_reader codes: ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code]?
20
+
21
+ def codes=: (
22
+ ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code]
23
+ ) -> ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code]
24
+
25
+ attr_reader domain: String?
26
+
27
+ def domain=: (String) -> String
28
+
29
+ attr_reader status: String?
30
+
31
+ def status=: (String) -> String
32
+
33
+ attr_reader type: String?
34
+
35
+ def type=: (String) -> String
36
+
37
+ def initialize: (
38
+ ?classification: ContextDev::Models::IndustryRetrieveSicResponse::classification,
39
+ ?codes: ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code],
40
+ ?domain: String,
41
+ ?status: String,
42
+ ?type: String
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ classification: ContextDev::Models::IndustryRetrieveSicResponse::classification,
47
+ codes: ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code],
48
+ domain: String,
49
+ status: String,
50
+ type: String
51
+ }
52
+
53
+ type classification = :original_sic | :latest_sec
54
+
55
+ module Classification
56
+ extend ContextDev::Internal::Type::Enum
57
+
58
+ ORIGINAL_SIC: :original_sic
59
+ LATEST_SEC: :latest_sec
60
+
61
+ def self?.values: -> ::Array[ContextDev::Models::IndustryRetrieveSicResponse::classification]
62
+ end
63
+
64
+ type code =
65
+ {
66
+ code: String,
67
+ confidence: ContextDev::Models::IndustryRetrieveSicResponse::Code::confidence,
68
+ name: String,
69
+ major_group: String,
70
+ major_group_name: String,
71
+ office: String
72
+ }
73
+
74
+ class Code < ContextDev::Internal::Type::BaseModel
75
+ attr_accessor code: String
76
+
77
+ attr_accessor confidence: ContextDev::Models::IndustryRetrieveSicResponse::Code::confidence
78
+
79
+ attr_accessor name: String
80
+
81
+ attr_reader major_group: String?
82
+
83
+ def major_group=: (String) -> String
84
+
85
+ attr_reader major_group_name: String?
86
+
87
+ def major_group_name=: (String) -> String
88
+
89
+ attr_reader office: String?
90
+
91
+ def office=: (String) -> String
92
+
93
+ def initialize: (
94
+ code: String,
95
+ confidence: ContextDev::Models::IndustryRetrieveSicResponse::Code::confidence,
96
+ name: String,
97
+ ?major_group: String,
98
+ ?major_group_name: String,
99
+ ?office: String
100
+ ) -> void
101
+
102
+ def to_hash: -> {
103
+ code: String,
104
+ confidence: ContextDev::Models::IndustryRetrieveSicResponse::Code::confidence,
105
+ name: String,
106
+ major_group: String,
107
+ major_group_name: String,
108
+ office: String
109
+ }
110
+
111
+ type confidence = :high | :medium | :low
112
+
113
+ module Confidence
114
+ extend ContextDev::Internal::Type::Enum
115
+
116
+ HIGH: :high
117
+ MEDIUM: :medium
118
+ LOW: :low
119
+
120
+ def self?.values: -> ::Array[ContextDev::Models::IndustryRetrieveSicResponse::Code::confidence]
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
@@ -21,6 +21,8 @@ module ContextDev
21
21
 
22
22
  class IndustryRetrieveNaicsParams = ContextDev::Models::IndustryRetrieveNaicsParams
23
23
 
24
+ class IndustryRetrieveSicParams = ContextDev::Models::IndustryRetrieveSicParams
25
+
24
26
  class UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams
25
27
 
26
28
  class UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams
@@ -11,6 +11,7 @@ module ContextDev
11
11
 
12
12
  def extract_product: (
13
13
  url: String,
14
+ ?max_age_ms: Integer,
14
15
  ?timeout_ms: Integer,
15
16
  ?request_options: ContextDev::request_opts
16
17
  ) -> ContextDev::Models::AIExtractProductResponse
@@ -9,6 +9,15 @@ module ContextDev
9
9
  ?request_options: ContextDev::request_opts
10
10
  ) -> ContextDev::Models::IndustryRetrieveNaicsResponse
11
11
 
12
+ def retrieve_sic: (
13
+ input: String,
14
+ ?max_results: Integer,
15
+ ?min_results: Integer,
16
+ ?timeout_ms: Integer,
17
+ ?type: ContextDev::Models::IndustryRetrieveSicParams::type_,
18
+ ?request_options: ContextDev::request_opts
19
+ ) -> ContextDev::Models::IndustryRetrieveSicResponse
20
+
12
21
  def initialize: (client: ContextDev::Client) -> void
13
22
  end
14
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Context Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-24 00:00:00.000000000 Z
11
+ date: 2026-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -91,6 +91,8 @@ files:
91
91
  - lib/context_dev/models/brand_retrieve_simplified_response.rb
92
92
  - lib/context_dev/models/industry_retrieve_naics_params.rb
93
93
  - lib/context_dev/models/industry_retrieve_naics_response.rb
94
+ - lib/context_dev/models/industry_retrieve_sic_params.rb
95
+ - lib/context_dev/models/industry_retrieve_sic_response.rb
94
96
  - lib/context_dev/models/utility_prefetch_by_email_params.rb
95
97
  - lib/context_dev/models/utility_prefetch_by_email_response.rb
96
98
  - lib/context_dev/models/utility_prefetch_params.rb
@@ -160,6 +162,8 @@ files:
160
162
  - rbi/context_dev/models/brand_retrieve_simplified_response.rbi
161
163
  - rbi/context_dev/models/industry_retrieve_naics_params.rbi
162
164
  - rbi/context_dev/models/industry_retrieve_naics_response.rbi
165
+ - rbi/context_dev/models/industry_retrieve_sic_params.rbi
166
+ - rbi/context_dev/models/industry_retrieve_sic_response.rbi
163
167
  - rbi/context_dev/models/utility_prefetch_by_email_params.rbi
164
168
  - rbi/context_dev/models/utility_prefetch_by_email_response.rbi
165
169
  - rbi/context_dev/models/utility_prefetch_params.rbi
@@ -228,6 +232,8 @@ files:
228
232
  - sig/context_dev/models/brand_retrieve_simplified_response.rbs
229
233
  - sig/context_dev/models/industry_retrieve_naics_params.rbs
230
234
  - sig/context_dev/models/industry_retrieve_naics_response.rbs
235
+ - sig/context_dev/models/industry_retrieve_sic_params.rbs
236
+ - sig/context_dev/models/industry_retrieve_sic_response.rbs
231
237
  - sig/context_dev/models/utility_prefetch_by_email_params.rbs
232
238
  - sig/context_dev/models/utility_prefetch_by_email_response.rbs
233
239
  - sig/context_dev/models/utility_prefetch_params.rbs