context.dev 1.36.0 → 2.0.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 (162) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +16 -9
  4. data/lib/context_dev/client.rb +7 -0
  5. data/lib/context_dev/models/brand_retrieve_params.rb +1036 -174
  6. data/lib/context_dev/models/monitor_create_params.rb +361 -0
  7. data/lib/context_dev/models/monitor_create_response.rb +484 -0
  8. data/lib/context_dev/models/monitor_delete_params.rb +20 -0
  9. data/lib/context_dev/models/monitor_delete_response.rb +22 -0
  10. data/lib/context_dev/models/monitor_list_account_changes_params.rb +93 -0
  11. data/lib/context_dev/models/monitor_list_account_changes_response.rb +199 -0
  12. data/lib/context_dev/models/monitor_list_account_runs_params.rb +55 -0
  13. data/lib/context_dev/models/monitor_list_account_runs_response.rb +227 -0
  14. data/lib/context_dev/models/monitor_list_changes_params.rb +57 -0
  15. data/lib/context_dev/models/monitor_list_changes_response.rb +198 -0
  16. data/lib/context_dev/models/monitor_list_params.rb +161 -0
  17. data/lib/context_dev/models/monitor_list_response.rb +507 -0
  18. data/lib/context_dev/models/monitor_list_runs_params.rb +62 -0
  19. data/lib/context_dev/models/monitor_list_runs_response.rb +227 -0
  20. data/lib/context_dev/models/monitor_retrieve_change_params.rb +20 -0
  21. data/lib/context_dev/models/monitor_retrieve_change_response.rb +271 -0
  22. data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
  23. data/lib/context_dev/models/monitor_retrieve_response.rb +484 -0
  24. data/lib/context_dev/models/monitor_run_params.rb +20 -0
  25. data/lib/context_dev/models/monitor_run_response.rb +35 -0
  26. data/lib/context_dev/models/monitor_update_params.rb +368 -0
  27. data/lib/context_dev/models/monitor_update_response.rb +484 -0
  28. data/lib/context_dev/models/utility_prefetch_params.rb +70 -6
  29. data/lib/context_dev/models/utility_prefetch_response.rb +23 -1
  30. data/lib/context_dev/models/web_extract_response.rb +17 -1
  31. data/lib/context_dev/models/web_web_crawl_md_params.rb +11 -1
  32. data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -1
  33. data/lib/context_dev/models/web_web_scrape_html_response.rb +10 -2
  34. data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -1
  35. data/lib/context_dev/models/web_web_scrape_md_params.rb +11 -1
  36. data/lib/context_dev/models.rb +20 -12
  37. data/lib/context_dev/resources/ai.rb +0 -33
  38. data/lib/context_dev/resources/brand.rb +7 -204
  39. data/lib/context_dev/resources/monitors.rb +352 -0
  40. data/lib/context_dev/resources/utility.rb +9 -35
  41. data/lib/context_dev/resources/web.rb +14 -4
  42. data/lib/context_dev/version.rb +1 -1
  43. data/lib/context_dev.rb +23 -14
  44. data/rbi/context_dev/client.rbi +6 -0
  45. data/rbi/context_dev/models/brand_retrieve_params.rbi +3792 -679
  46. data/rbi/context_dev/models/monitor_create_params.rbi +640 -0
  47. data/rbi/context_dev/models/monitor_create_response.rbi +820 -0
  48. data/rbi/context_dev/models/monitor_delete_params.rbi +35 -0
  49. data/rbi/context_dev/models/monitor_delete_response.rbi +29 -0
  50. data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +211 -0
  51. data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +376 -0
  52. data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +125 -0
  53. data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +464 -0
  54. data/rbi/context_dev/models/monitor_list_changes_params.rbi +91 -0
  55. data/rbi/context_dev/models/monitor_list_changes_response.rbi +372 -0
  56. data/rbi/context_dev/models/monitor_list_params.rbi +332 -0
  57. data/rbi/context_dev/models/monitor_list_response.rbi +885 -0
  58. data/rbi/context_dev/models/monitor_list_runs_params.rbi +125 -0
  59. data/rbi/context_dev/models/monitor_list_runs_response.rbi +455 -0
  60. data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +38 -0
  61. data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +478 -0
  62. data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
  63. data/rbi/context_dev/models/monitor_retrieve_response.rbi +828 -0
  64. data/rbi/context_dev/models/monitor_run_params.rbi +35 -0
  65. data/rbi/context_dev/models/monitor_run_response.rbi +48 -0
  66. data/rbi/context_dev/models/monitor_update_params.rbi +680 -0
  67. data/rbi/context_dev/models/monitor_update_response.rbi +820 -0
  68. data/rbi/context_dev/models/utility_prefetch_params.rbi +129 -7
  69. data/rbi/context_dev/models/utility_prefetch_response.rbi +55 -3
  70. data/rbi/context_dev/models/web_extract_response.rbi +10 -0
  71. data/rbi/context_dev/models/web_web_crawl_md_params.rbi +15 -0
  72. data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -0
  73. data/rbi/context_dev/models/web_web_scrape_html_response.rbi +29 -3
  74. data/rbi/context_dev/models/web_web_scrape_images_params.rbi +17 -0
  75. data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -0
  76. data/rbi/context_dev/models.rbi +23 -15
  77. data/rbi/context_dev/resources/ai.rbi +0 -28
  78. data/rbi/context_dev/resources/brand.rbi +13 -228
  79. data/rbi/context_dev/resources/monitors.rbi +286 -0
  80. data/rbi/context_dev/resources/utility.rbi +14 -29
  81. data/rbi/context_dev/resources/web.rbi +21 -0
  82. data/sig/context_dev/client.rbs +2 -0
  83. data/sig/context_dev/models/brand_retrieve_params.rbs +1560 -281
  84. data/sig/context_dev/models/monitor_create_params.rbs +311 -0
  85. data/sig/context_dev/models/monitor_create_response.rbs +369 -0
  86. data/sig/context_dev/models/monitor_delete_params.rbs +23 -0
  87. data/sig/context_dev/models/monitor_delete_response.rbs +15 -0
  88. data/sig/context_dev/models/monitor_list_account_changes_params.rbs +104 -0
  89. data/sig/context_dev/models/monitor_list_account_changes_response.rbs +176 -0
  90. data/sig/context_dev/models/monitor_list_account_runs_params.rbs +58 -0
  91. data/sig/context_dev/models/monitor_list_account_runs_response.rbs +184 -0
  92. data/sig/context_dev/models/monitor_list_changes_params.rbs +61 -0
  93. data/sig/context_dev/models/monitor_list_changes_response.rbs +176 -0
  94. data/sig/context_dev/models/monitor_list_params.rbs +160 -0
  95. data/sig/context_dev/models/monitor_list_response.rbs +396 -0
  96. data/sig/context_dev/models/monitor_list_runs_params.rbs +63 -0
  97. data/sig/context_dev/models/monitor_list_runs_response.rbs +184 -0
  98. data/sig/context_dev/models/monitor_retrieve_change_params.rbs +23 -0
  99. data/sig/context_dev/models/monitor_retrieve_change_response.rbs +228 -0
  100. data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
  101. data/sig/context_dev/models/monitor_retrieve_response.rbs +369 -0
  102. data/sig/context_dev/models/monitor_run_params.rbs +23 -0
  103. data/sig/context_dev/models/monitor_run_response.rbs +18 -0
  104. data/sig/context_dev/models/monitor_update_params.rbs +331 -0
  105. data/sig/context_dev/models/monitor_update_response.rbs +369 -0
  106. data/sig/context_dev/models/utility_prefetch_params.rbs +52 -4
  107. data/sig/context_dev/models/utility_prefetch_response.rbs +22 -3
  108. data/sig/context_dev/models/web_extract_response.rbs +5 -0
  109. data/sig/context_dev/models/web_web_crawl_md_params.rbs +7 -0
  110. data/sig/context_dev/models/web_web_scrape_html_params.rbs +7 -0
  111. data/sig/context_dev/models/web_web_scrape_html_response.rbs +8 -0
  112. data/sig/context_dev/models/web_web_scrape_images_params.rbs +7 -0
  113. data/sig/context_dev/models/web_web_scrape_md_params.rbs +7 -0
  114. data/sig/context_dev/models.rbs +20 -12
  115. data/sig/context_dev/resources/ai.rbs +0 -8
  116. data/sig/context_dev/resources/brand.rbs +1 -56
  117. data/sig/context_dev/resources/monitors.rbs +101 -0
  118. data/sig/context_dev/resources/utility.rbs +2 -7
  119. data/sig/context_dev/resources/web.rbs +4 -0
  120. metadata +71 -44
  121. data/lib/context_dev/models/ai_ai_query_params.rb +0 -235
  122. data/lib/context_dev/models/ai_ai_query_response.rb +0 -133
  123. data/lib/context_dev/models/brand_identify_from_transaction_params.rb +0 -474
  124. data/lib/context_dev/models/brand_identify_from_transaction_response.rb +0 -1074
  125. data/lib/context_dev/models/brand_retrieve_by_email_params.rb +0 -195
  126. data/lib/context_dev/models/brand_retrieve_by_email_response.rb +0 -1071
  127. data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +0 -195
  128. data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +0 -1070
  129. data/lib/context_dev/models/brand_retrieve_by_name_params.rb +0 -452
  130. data/lib/context_dev/models/brand_retrieve_by_name_response.rb +0 -1070
  131. data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +0 -283
  132. data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +0 -1072
  133. data/lib/context_dev/models/utility_prefetch_by_email_params.rb +0 -37
  134. data/lib/context_dev/models/utility_prefetch_by_email_response.rb +0 -68
  135. data/rbi/context_dev/models/ai_ai_query_params.rbi +0 -504
  136. data/rbi/context_dev/models/ai_ai_query_response.rbi +0 -267
  137. data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +0 -2020
  138. data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +0 -3515
  139. data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +0 -743
  140. data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +0 -3511
  141. data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +0 -743
  142. data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +0 -3510
  143. data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +0 -1982
  144. data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +0 -3510
  145. data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +0 -1153
  146. data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +0 -3512
  147. data/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +0 -65
  148. data/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +0 -132
  149. data/sig/context_dev/models/ai_ai_query_params.rbs +0 -218
  150. data/sig/context_dev/models/ai_ai_query_response.rbs +0 -121
  151. data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +0 -822
  152. data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +0 -1441
  153. data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +0 -305
  154. data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +0 -1441
  155. data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +0 -305
  156. data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +0 -1441
  157. data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +0 -801
  158. data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +0 -1441
  159. data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +0 -467
  160. data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +0 -1441
  161. data/sig/context_dev/models/utility_prefetch_by_email_params.rbs +0 -30
  162. data/sig/context_dev/models/utility_prefetch_by_email_response.rbs +0 -64
@@ -7,187 +7,1049 @@ module ContextDev
7
7
  extend ContextDev::Internal::Type::RequestParameters::Converter
8
8
  include ContextDev::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute domain
11
- # Domain name to retrieve brand data for (e.g., 'example.com', 'google.com').
12
- # Cannot be used with name or ticker parameters.
10
+ # @!attribute body
11
+ # Exactly one lookup type must be provided.
13
12
  #
14
- # @return [String]
15
- required :domain, String
13
+ # @return [ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction]
14
+ required :body, union: -> { ContextDev::BrandRetrieveParams::Body }
16
15
 
17
- # @!attribute force_language
18
- # Optional parameter to force the language of the retrieved brand data.
16
+ # @!method initialize(body:, request_options: {})
17
+ # @param body [ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction] Exactly one lookup type must be provided.
19
18
  #
20
- # @return [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage, nil]
21
- optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::ForceLanguage }
22
-
23
- # @!attribute max_age_ms
24
- # Maximum age in milliseconds for cached brand data before the API performs a hard
25
- # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
26
- # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
27
- # year.
28
- #
29
- # @return [Integer, nil]
30
- optional :max_age_ms, Integer
19
+ # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
31
20
 
32
- # @!attribute max_speed
33
- # Optional parameter to optimize the API call for maximum speed. When set to true,
34
- # the API will skip time-consuming operations for faster response at the cost of
35
- # less comprehensive data. Works with all three lookup methods.
36
- #
37
- # @return [Boolean, nil]
38
- optional :max_speed, ContextDev::Internal::Type::Boolean
21
+ # Exactly one lookup type must be provided.
22
+ module Body
23
+ extend ContextDev::Internal::Type::Union
39
24
 
40
- # @!attribute timeout_ms
41
- # Optional timeout in milliseconds for the request. If the request takes longer
42
- # than this value, it will be aborted with a 408 status code. Maximum allowed
43
- # value is 300000ms (5 minutes).
44
- #
45
- # @return [Integer, nil]
46
- optional :timeout_ms, Integer
25
+ discriminator :type
47
26
 
48
- # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, request_options: {})
49
- # Some parameter documentations has been truncated, see
50
- # {ContextDev::Models::BrandRetrieveParams} for more details.
51
- #
52
- # @param domain [String] Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). Cann
53
- #
54
- # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
55
- #
56
- # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard
57
- #
58
- # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
59
- #
60
- # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
61
- #
62
- # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
27
+ # Retrieve brand data by domain. Cannot be combined with name, email, or ticker.
28
+ variant :by_domain, -> { ContextDev::BrandRetrieveParams::Body::ByDomain }
29
+
30
+ # Retrieve brand data by company name. Cannot be combined with domain, email, or ticker.
31
+ variant :by_name, -> { ContextDev::BrandRetrieveParams::Body::ByName }
32
+
33
+ # Retrieve brand data by email address. The domain is extracted from the email. Free and disposable email providers are rejected with 422. Cannot be combined with domain, name, or ticker.
34
+ variant :by_email, -> { ContextDev::BrandRetrieveParams::Body::ByEmail }
35
+
36
+ # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or email.
37
+ variant :by_ticker, -> { ContextDev::BrandRetrieveParams::Body::ByTicker }
38
+
39
+ # Identify brand data from a transaction descriptor. Cannot be combined with domain, name, email, or ticker.
40
+ variant :by_transaction, -> { ContextDev::BrandRetrieveParams::Body::ByTransaction }
41
+
42
+ class ByDomain < ContextDev::Internal::Type::BaseModel
43
+ # @!attribute domain
44
+ # Domain name to retrieve brand data for (e.g., 'stripe.com').
45
+ #
46
+ # @return [String]
47
+ required :domain, String
48
+
49
+ # @!attribute type
50
+ # Discriminator for domain-based brand retrieval.
51
+ #
52
+ # @return [Symbol, :by_domain]
53
+ required :type, const: :by_domain
54
+
55
+ # @!attribute force_language
56
+ #
57
+ # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByDomain::ForceLanguage, nil]
58
+ optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByDomain::ForceLanguage }
59
+
60
+ # @!attribute max_age_ms
61
+ # Maximum age in milliseconds for cached brand data before the API performs a hard
62
+ # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
63
+ # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
64
+ # year.
65
+ #
66
+ # @return [Integer, nil]
67
+ optional :max_age_ms, Integer, api_name: :maxAgeMs
68
+
69
+ # @!attribute max_speed
70
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
71
+ # the API will skip time-consuming operations for faster response at the cost of
72
+ # less comprehensive data.
73
+ #
74
+ # @return [Boolean, nil]
75
+ optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed
76
+
77
+ # @!attribute timeout_ms
78
+ # Optional timeout in milliseconds for the request. If the request takes longer
79
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
80
+ # value is 300000ms (5 minutes).
81
+ #
82
+ # @return [Integer, nil]
83
+ optional :timeout_ms, Integer, api_name: :timeoutMS
84
+
85
+ # @!method initialize(domain:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_domain)
86
+ # Some parameter documentations has been truncated, see
87
+ # {ContextDev::Models::BrandRetrieveParams::Body::ByDomain} for more details.
88
+ #
89
+ # Retrieve brand data by domain. Cannot be combined with name, email, or ticker.
90
+ #
91
+ # @param domain [String] Domain name to retrieve brand data for (e.g., 'stripe.com').
92
+ #
93
+ # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByDomain::ForceLanguage]
94
+ #
95
+ # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard
96
+ #
97
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
98
+ #
99
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
100
+ #
101
+ # @param type [Symbol, :by_domain] Discriminator for domain-based brand retrieval.
102
+
103
+ # @see ContextDev::Models::BrandRetrieveParams::Body::ByDomain#force_language
104
+ module ForceLanguage
105
+ extend ContextDev::Internal::Type::Enum
106
+
107
+ AFRIKAANS = :afrikaans
108
+ ALBANIAN = :albanian
109
+ AMHARIC = :amharic
110
+ ARABIC = :arabic
111
+ ARMENIAN = :armenian
112
+ ASSAMESE = :assamese
113
+ AYMARA = :aymara
114
+ AZERI = :azeri
115
+ BASQUE = :basque
116
+ BELARUSIAN = :belarusian
117
+ BENGALI = :bengali
118
+ BOSNIAN = :bosnian
119
+ BULGARIAN = :bulgarian
120
+ BURMESE = :burmese
121
+ CANTONESE = :cantonese
122
+ CATALAN = :catalan
123
+ CEBUANO = :cebuano
124
+ CHINESE = :chinese
125
+ CORSICAN = :corsican
126
+ CROATIAN = :croatian
127
+ CZECH = :czech
128
+ DANISH = :danish
129
+ DUTCH = :dutch
130
+ ENGLISH = :english
131
+ ESPERANTO = :esperanto
132
+ ESTONIAN = :estonian
133
+ FARSI = :farsi
134
+ FIJIAN = :fijian
135
+ FINNISH = :finnish
136
+ FRENCH = :french
137
+ GALICIAN = :galician
138
+ GEORGIAN = :georgian
139
+ GERMAN = :german
140
+ GREEK = :greek
141
+ GUARANI = :guarani
142
+ GUJARATI = :gujarati
143
+ HAITIAN_CREOLE = :"haitian-creole"
144
+ HAUSA = :hausa
145
+ HAWAIIAN = :hawaiian
146
+ HEBREW = :hebrew
147
+ HINDI = :hindi
148
+ HMONG = :hmong
149
+ HUNGARIAN = :hungarian
150
+ ICELANDIC = :icelandic
151
+ IGBO = :igbo
152
+ INDONESIAN = :indonesian
153
+ IRISH = :irish
154
+ ITALIAN = :italian
155
+ JAPANESE = :japanese
156
+ JAVANESE = :javanese
157
+ KANNADA = :kannada
158
+ KAZAKH = :kazakh
159
+ KHMER = :khmer
160
+ KINYARWANDA = :kinyarwanda
161
+ KOREAN = :korean
162
+ KURDISH = :kurdish
163
+ KYRGYZ = :kyrgyz
164
+ LAO = :lao
165
+ LATIN = :latin
166
+ LATVIAN = :latvian
167
+ LINGALA = :lingala
168
+ LITHUANIAN = :lithuanian
169
+ LUXEMBOURGISH = :luxembourgish
170
+ MACEDONIAN = :macedonian
171
+ MALAGASY = :malagasy
172
+ MALAY = :malay
173
+ MALAYALAM = :malayalam
174
+ MALTESE = :maltese
175
+ MAORI = :maori
176
+ MARATHI = :marathi
177
+ MONGOLIAN = :mongolian
178
+ NEPALI = :nepali
179
+ NORWEGIAN = :norwegian
180
+ ODIA = :odia
181
+ OROMO = :oromo
182
+ PASHTO = :pashto
183
+ PIDGIN = :pidgin
184
+ POLISH = :polish
185
+ PORTUGUESE = :portuguese
186
+ PUNJABI = :punjabi
187
+ QUECHUA = :quechua
188
+ ROMANIAN = :romanian
189
+ RUSSIAN = :russian
190
+ SAMOAN = :samoan
191
+ SCOTTISH_GAELIC = :"scottish-gaelic"
192
+ SERBIAN = :serbian
193
+ SESOTHO = :sesotho
194
+ SHONA = :shona
195
+ SINDHI = :sindhi
196
+ SINHALA = :sinhala
197
+ SLOVAK = :slovak
198
+ SLOVENE = :slovene
199
+ SOMALI = :somali
200
+ SPANISH = :spanish
201
+ SUNDANESE = :sundanese
202
+ SWAHILI = :swahili
203
+ SWEDISH = :swedish
204
+ TAGALOG = :tagalog
205
+ TAJIK = :tajik
206
+ TAMIL = :tamil
207
+ TATAR = :tatar
208
+ TELUGU = :telugu
209
+ THAI = :thai
210
+ TIBETAN = :tibetan
211
+ TIGRINYA = :tigrinya
212
+ TONGAN = :tongan
213
+ TSWANA = :tswana
214
+ TURKISH = :turkish
215
+ TURKMEN = :turkmen
216
+ UKRAINIAN = :ukrainian
217
+ URDU = :urdu
218
+ UYGHUR = :uyghur
219
+ UZBEK = :uzbek
220
+ VIETNAMESE = :vietnamese
221
+ WELSH = :welsh
222
+ WOLOF = :wolof
223
+ XHOSA = :xhosa
224
+ YIDDISH = :yiddish
225
+ YORUBA = :yoruba
226
+ ZULU = :zulu
227
+
228
+ # @!method self.values
229
+ # @return [Array<Symbol>]
230
+ end
231
+ end
232
+
233
+ class ByName < ContextDev::Internal::Type::BaseModel
234
+ # @!attribute name
235
+ # Company name to retrieve brand data for (e.g., 'Apple Inc').
236
+ #
237
+ # @return [String]
238
+ required :name, String
239
+
240
+ # @!attribute type
241
+ # Discriminator for name-based brand retrieval.
242
+ #
243
+ # @return [Symbol, :by_name]
244
+ required :type, const: :by_name
245
+
246
+ # @!attribute country_gl
247
+ # Optional country code hint (GL parameter) to specify the country when looking up
248
+ # by company name.
249
+ #
250
+ # @return [String, nil]
251
+ optional :country_gl, String
252
+
253
+ # @!attribute force_language
254
+ #
255
+ # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByName::ForceLanguage, nil]
256
+ optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByName::ForceLanguage }
257
+
258
+ # @!attribute max_age_ms
259
+ # Maximum age in milliseconds for cached brand data before the API performs a hard
260
+ # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
261
+ # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
262
+ # year.
263
+ #
264
+ # @return [Integer, nil]
265
+ optional :max_age_ms, Integer, api_name: :maxAgeMs
266
+
267
+ # @!attribute max_speed
268
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
269
+ # the API will skip time-consuming operations for faster response at the cost of
270
+ # less comprehensive data.
271
+ #
272
+ # @return [Boolean, nil]
273
+ optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed
274
+
275
+ # @!attribute timeout_ms
276
+ # Optional timeout in milliseconds for the request. If the request takes longer
277
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
278
+ # value is 300000ms (5 minutes).
279
+ #
280
+ # @return [Integer, nil]
281
+ optional :timeout_ms, Integer, api_name: :timeoutMS
282
+
283
+ # @!method initialize(name:, country_gl: nil, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_name)
284
+ # Some parameter documentations has been truncated, see
285
+ # {ContextDev::Models::BrandRetrieveParams::Body::ByName} for more details.
286
+ #
287
+ # Retrieve brand data by company name. Cannot be combined with domain, email, or
288
+ # ticker.
289
+ #
290
+ # @param name [String] Company name to retrieve brand data for (e.g., 'Apple Inc').
291
+ #
292
+ # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when looking up
293
+ #
294
+ # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByName::ForceLanguage]
295
+ #
296
+ # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard
297
+ #
298
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
299
+ #
300
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
301
+ #
302
+ # @param type [Symbol, :by_name] Discriminator for name-based brand retrieval.
303
+
304
+ # @see ContextDev::Models::BrandRetrieveParams::Body::ByName#force_language
305
+ module ForceLanguage
306
+ extend ContextDev::Internal::Type::Enum
307
+
308
+ AFRIKAANS = :afrikaans
309
+ ALBANIAN = :albanian
310
+ AMHARIC = :amharic
311
+ ARABIC = :arabic
312
+ ARMENIAN = :armenian
313
+ ASSAMESE = :assamese
314
+ AYMARA = :aymara
315
+ AZERI = :azeri
316
+ BASQUE = :basque
317
+ BELARUSIAN = :belarusian
318
+ BENGALI = :bengali
319
+ BOSNIAN = :bosnian
320
+ BULGARIAN = :bulgarian
321
+ BURMESE = :burmese
322
+ CANTONESE = :cantonese
323
+ CATALAN = :catalan
324
+ CEBUANO = :cebuano
325
+ CHINESE = :chinese
326
+ CORSICAN = :corsican
327
+ CROATIAN = :croatian
328
+ CZECH = :czech
329
+ DANISH = :danish
330
+ DUTCH = :dutch
331
+ ENGLISH = :english
332
+ ESPERANTO = :esperanto
333
+ ESTONIAN = :estonian
334
+ FARSI = :farsi
335
+ FIJIAN = :fijian
336
+ FINNISH = :finnish
337
+ FRENCH = :french
338
+ GALICIAN = :galician
339
+ GEORGIAN = :georgian
340
+ GERMAN = :german
341
+ GREEK = :greek
342
+ GUARANI = :guarani
343
+ GUJARATI = :gujarati
344
+ HAITIAN_CREOLE = :"haitian-creole"
345
+ HAUSA = :hausa
346
+ HAWAIIAN = :hawaiian
347
+ HEBREW = :hebrew
348
+ HINDI = :hindi
349
+ HMONG = :hmong
350
+ HUNGARIAN = :hungarian
351
+ ICELANDIC = :icelandic
352
+ IGBO = :igbo
353
+ INDONESIAN = :indonesian
354
+ IRISH = :irish
355
+ ITALIAN = :italian
356
+ JAPANESE = :japanese
357
+ JAVANESE = :javanese
358
+ KANNADA = :kannada
359
+ KAZAKH = :kazakh
360
+ KHMER = :khmer
361
+ KINYARWANDA = :kinyarwanda
362
+ KOREAN = :korean
363
+ KURDISH = :kurdish
364
+ KYRGYZ = :kyrgyz
365
+ LAO = :lao
366
+ LATIN = :latin
367
+ LATVIAN = :latvian
368
+ LINGALA = :lingala
369
+ LITHUANIAN = :lithuanian
370
+ LUXEMBOURGISH = :luxembourgish
371
+ MACEDONIAN = :macedonian
372
+ MALAGASY = :malagasy
373
+ MALAY = :malay
374
+ MALAYALAM = :malayalam
375
+ MALTESE = :maltese
376
+ MAORI = :maori
377
+ MARATHI = :marathi
378
+ MONGOLIAN = :mongolian
379
+ NEPALI = :nepali
380
+ NORWEGIAN = :norwegian
381
+ ODIA = :odia
382
+ OROMO = :oromo
383
+ PASHTO = :pashto
384
+ PIDGIN = :pidgin
385
+ POLISH = :polish
386
+ PORTUGUESE = :portuguese
387
+ PUNJABI = :punjabi
388
+ QUECHUA = :quechua
389
+ ROMANIAN = :romanian
390
+ RUSSIAN = :russian
391
+ SAMOAN = :samoan
392
+ SCOTTISH_GAELIC = :"scottish-gaelic"
393
+ SERBIAN = :serbian
394
+ SESOTHO = :sesotho
395
+ SHONA = :shona
396
+ SINDHI = :sindhi
397
+ SINHALA = :sinhala
398
+ SLOVAK = :slovak
399
+ SLOVENE = :slovene
400
+ SOMALI = :somali
401
+ SPANISH = :spanish
402
+ SUNDANESE = :sundanese
403
+ SWAHILI = :swahili
404
+ SWEDISH = :swedish
405
+ TAGALOG = :tagalog
406
+ TAJIK = :tajik
407
+ TAMIL = :tamil
408
+ TATAR = :tatar
409
+ TELUGU = :telugu
410
+ THAI = :thai
411
+ TIBETAN = :tibetan
412
+ TIGRINYA = :tigrinya
413
+ TONGAN = :tongan
414
+ TSWANA = :tswana
415
+ TURKISH = :turkish
416
+ TURKMEN = :turkmen
417
+ UKRAINIAN = :ukrainian
418
+ URDU = :urdu
419
+ UYGHUR = :uyghur
420
+ UZBEK = :uzbek
421
+ VIETNAMESE = :vietnamese
422
+ WELSH = :welsh
423
+ WOLOF = :wolof
424
+ XHOSA = :xhosa
425
+ YIDDISH = :yiddish
426
+ YORUBA = :yoruba
427
+ ZULU = :zulu
428
+
429
+ # @!method self.values
430
+ # @return [Array<Symbol>]
431
+ end
432
+ end
433
+
434
+ class ByEmail < ContextDev::Internal::Type::BaseModel
435
+ # @!attribute email
436
+ # Email address to retrieve brand data for (e.g., 'jane@stripe.com').
437
+ #
438
+ # @return [String]
439
+ required :email, String
440
+
441
+ # @!attribute type
442
+ # Discriminator for email-based brand retrieval.
443
+ #
444
+ # @return [Symbol, :by_email]
445
+ required :type, const: :by_email
446
+
447
+ # @!attribute force_language
448
+ #
449
+ # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByEmail::ForceLanguage, nil]
450
+ optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByEmail::ForceLanguage }
451
+
452
+ # @!attribute max_age_ms
453
+ # Maximum age in milliseconds for cached brand data before the API performs a hard
454
+ # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
455
+ # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
456
+ # year.
457
+ #
458
+ # @return [Integer, nil]
459
+ optional :max_age_ms, Integer, api_name: :maxAgeMs
460
+
461
+ # @!attribute max_speed
462
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
463
+ # the API will skip time-consuming operations for faster response at the cost of
464
+ # less comprehensive data.
465
+ #
466
+ # @return [Boolean, nil]
467
+ optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed
468
+
469
+ # @!attribute timeout_ms
470
+ # Optional timeout in milliseconds for the request. If the request takes longer
471
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
472
+ # value is 300000ms (5 minutes).
473
+ #
474
+ # @return [Integer, nil]
475
+ optional :timeout_ms, Integer, api_name: :timeoutMS
476
+
477
+ # @!method initialize(email:, force_language: nil, max_age_ms: nil, max_speed: nil, timeout_ms: nil, type: :by_email)
478
+ # Some parameter documentations has been truncated, see
479
+ # {ContextDev::Models::BrandRetrieveParams::Body::ByEmail} for more details.
480
+ #
481
+ # Retrieve brand data by email address. The domain is extracted from the email.
482
+ # Free and disposable email providers are rejected with 422. Cannot be combined
483
+ # with domain, name, or ticker.
484
+ #
485
+ # @param email [String] Email address to retrieve brand data for (e.g., 'jane@stripe.com').
486
+ #
487
+ # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByEmail::ForceLanguage]
488
+ #
489
+ # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard
490
+ #
491
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
492
+ #
493
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
494
+ #
495
+ # @param type [Symbol, :by_email] Discriminator for email-based brand retrieval.
496
+
497
+ # @see ContextDev::Models::BrandRetrieveParams::Body::ByEmail#force_language
498
+ module ForceLanguage
499
+ extend ContextDev::Internal::Type::Enum
500
+
501
+ AFRIKAANS = :afrikaans
502
+ ALBANIAN = :albanian
503
+ AMHARIC = :amharic
504
+ ARABIC = :arabic
505
+ ARMENIAN = :armenian
506
+ ASSAMESE = :assamese
507
+ AYMARA = :aymara
508
+ AZERI = :azeri
509
+ BASQUE = :basque
510
+ BELARUSIAN = :belarusian
511
+ BENGALI = :bengali
512
+ BOSNIAN = :bosnian
513
+ BULGARIAN = :bulgarian
514
+ BURMESE = :burmese
515
+ CANTONESE = :cantonese
516
+ CATALAN = :catalan
517
+ CEBUANO = :cebuano
518
+ CHINESE = :chinese
519
+ CORSICAN = :corsican
520
+ CROATIAN = :croatian
521
+ CZECH = :czech
522
+ DANISH = :danish
523
+ DUTCH = :dutch
524
+ ENGLISH = :english
525
+ ESPERANTO = :esperanto
526
+ ESTONIAN = :estonian
527
+ FARSI = :farsi
528
+ FIJIAN = :fijian
529
+ FINNISH = :finnish
530
+ FRENCH = :french
531
+ GALICIAN = :galician
532
+ GEORGIAN = :georgian
533
+ GERMAN = :german
534
+ GREEK = :greek
535
+ GUARANI = :guarani
536
+ GUJARATI = :gujarati
537
+ HAITIAN_CREOLE = :"haitian-creole"
538
+ HAUSA = :hausa
539
+ HAWAIIAN = :hawaiian
540
+ HEBREW = :hebrew
541
+ HINDI = :hindi
542
+ HMONG = :hmong
543
+ HUNGARIAN = :hungarian
544
+ ICELANDIC = :icelandic
545
+ IGBO = :igbo
546
+ INDONESIAN = :indonesian
547
+ IRISH = :irish
548
+ ITALIAN = :italian
549
+ JAPANESE = :japanese
550
+ JAVANESE = :javanese
551
+ KANNADA = :kannada
552
+ KAZAKH = :kazakh
553
+ KHMER = :khmer
554
+ KINYARWANDA = :kinyarwanda
555
+ KOREAN = :korean
556
+ KURDISH = :kurdish
557
+ KYRGYZ = :kyrgyz
558
+ LAO = :lao
559
+ LATIN = :latin
560
+ LATVIAN = :latvian
561
+ LINGALA = :lingala
562
+ LITHUANIAN = :lithuanian
563
+ LUXEMBOURGISH = :luxembourgish
564
+ MACEDONIAN = :macedonian
565
+ MALAGASY = :malagasy
566
+ MALAY = :malay
567
+ MALAYALAM = :malayalam
568
+ MALTESE = :maltese
569
+ MAORI = :maori
570
+ MARATHI = :marathi
571
+ MONGOLIAN = :mongolian
572
+ NEPALI = :nepali
573
+ NORWEGIAN = :norwegian
574
+ ODIA = :odia
575
+ OROMO = :oromo
576
+ PASHTO = :pashto
577
+ PIDGIN = :pidgin
578
+ POLISH = :polish
579
+ PORTUGUESE = :portuguese
580
+ PUNJABI = :punjabi
581
+ QUECHUA = :quechua
582
+ ROMANIAN = :romanian
583
+ RUSSIAN = :russian
584
+ SAMOAN = :samoan
585
+ SCOTTISH_GAELIC = :"scottish-gaelic"
586
+ SERBIAN = :serbian
587
+ SESOTHO = :sesotho
588
+ SHONA = :shona
589
+ SINDHI = :sindhi
590
+ SINHALA = :sinhala
591
+ SLOVAK = :slovak
592
+ SLOVENE = :slovene
593
+ SOMALI = :somali
594
+ SPANISH = :spanish
595
+ SUNDANESE = :sundanese
596
+ SWAHILI = :swahili
597
+ SWEDISH = :swedish
598
+ TAGALOG = :tagalog
599
+ TAJIK = :tajik
600
+ TAMIL = :tamil
601
+ TATAR = :tatar
602
+ TELUGU = :telugu
603
+ THAI = :thai
604
+ TIBETAN = :tibetan
605
+ TIGRINYA = :tigrinya
606
+ TONGAN = :tongan
607
+ TSWANA = :tswana
608
+ TURKISH = :turkish
609
+ TURKMEN = :turkmen
610
+ UKRAINIAN = :ukrainian
611
+ URDU = :urdu
612
+ UYGHUR = :uyghur
613
+ UZBEK = :uzbek
614
+ VIETNAMESE = :vietnamese
615
+ WELSH = :welsh
616
+ WOLOF = :wolof
617
+ XHOSA = :xhosa
618
+ YIDDISH = :yiddish
619
+ YORUBA = :yoruba
620
+ ZULU = :zulu
621
+
622
+ # @!method self.values
623
+ # @return [Array<Symbol>]
624
+ end
625
+ end
626
+
627
+ class ByTicker < ContextDev::Internal::Type::BaseModel
628
+ # @!attribute ticker
629
+ # Stock ticker symbol to retrieve brand data for (e.g., 'AAPL').
630
+ #
631
+ # @return [String]
632
+ required :ticker, String
633
+
634
+ # @!attribute type
635
+ # Discriminator for ticker-based brand retrieval.
636
+ #
637
+ # @return [Symbol, :by_ticker]
638
+ required :type, const: :by_ticker
639
+
640
+ # @!attribute force_language
641
+ #
642
+ # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTicker::ForceLanguage, nil]
643
+ optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByTicker::ForceLanguage }
644
+
645
+ # @!attribute max_age_ms
646
+ # Maximum age in milliseconds for cached brand data before the API performs a hard
647
+ # refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
648
+ # are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
649
+ # year.
650
+ #
651
+ # @return [Integer, nil]
652
+ optional :max_age_ms, Integer, api_name: :maxAgeMs
653
+
654
+ # @!attribute max_speed
655
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
656
+ # the API will skip time-consuming operations for faster response at the cost of
657
+ # less comprehensive data.
658
+ #
659
+ # @return [Boolean, nil]
660
+ optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed
661
+
662
+ # @!attribute ticker_exchange
663
+ # Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
664
+ #
665
+ # @return [String, nil]
666
+ optional :ticker_exchange, String
667
+
668
+ # @!attribute timeout_ms
669
+ # Optional timeout in milliseconds for the request. If the request takes longer
670
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
671
+ # value is 300000ms (5 minutes).
672
+ #
673
+ # @return [Integer, nil]
674
+ optional :timeout_ms, Integer, api_name: :timeoutMS
675
+
676
+ # @!method initialize(ticker:, force_language: nil, max_age_ms: nil, max_speed: nil, ticker_exchange: nil, timeout_ms: nil, type: :by_ticker)
677
+ # Some parameter documentations has been truncated, see
678
+ # {ContextDev::Models::BrandRetrieveParams::Body::ByTicker} for more details.
679
+ #
680
+ # Retrieve brand data by stock ticker. Cannot be combined with domain, name, or
681
+ # email.
682
+ #
683
+ # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g., 'AAPL').
684
+ #
685
+ # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTicker::ForceLanguage]
686
+ #
687
+ # @param max_age_ms [Integer] Maximum age in milliseconds for cached brand data before the API performs a hard
688
+ #
689
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
690
+ #
691
+ # @param ticker_exchange [String] Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.
692
+ #
693
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
694
+ #
695
+ # @param type [Symbol, :by_ticker] Discriminator for ticker-based brand retrieval.
696
+
697
+ # @see ContextDev::Models::BrandRetrieveParams::Body::ByTicker#force_language
698
+ module ForceLanguage
699
+ extend ContextDev::Internal::Type::Enum
700
+
701
+ AFRIKAANS = :afrikaans
702
+ ALBANIAN = :albanian
703
+ AMHARIC = :amharic
704
+ ARABIC = :arabic
705
+ ARMENIAN = :armenian
706
+ ASSAMESE = :assamese
707
+ AYMARA = :aymara
708
+ AZERI = :azeri
709
+ BASQUE = :basque
710
+ BELARUSIAN = :belarusian
711
+ BENGALI = :bengali
712
+ BOSNIAN = :bosnian
713
+ BULGARIAN = :bulgarian
714
+ BURMESE = :burmese
715
+ CANTONESE = :cantonese
716
+ CATALAN = :catalan
717
+ CEBUANO = :cebuano
718
+ CHINESE = :chinese
719
+ CORSICAN = :corsican
720
+ CROATIAN = :croatian
721
+ CZECH = :czech
722
+ DANISH = :danish
723
+ DUTCH = :dutch
724
+ ENGLISH = :english
725
+ ESPERANTO = :esperanto
726
+ ESTONIAN = :estonian
727
+ FARSI = :farsi
728
+ FIJIAN = :fijian
729
+ FINNISH = :finnish
730
+ FRENCH = :french
731
+ GALICIAN = :galician
732
+ GEORGIAN = :georgian
733
+ GERMAN = :german
734
+ GREEK = :greek
735
+ GUARANI = :guarani
736
+ GUJARATI = :gujarati
737
+ HAITIAN_CREOLE = :"haitian-creole"
738
+ HAUSA = :hausa
739
+ HAWAIIAN = :hawaiian
740
+ HEBREW = :hebrew
741
+ HINDI = :hindi
742
+ HMONG = :hmong
743
+ HUNGARIAN = :hungarian
744
+ ICELANDIC = :icelandic
745
+ IGBO = :igbo
746
+ INDONESIAN = :indonesian
747
+ IRISH = :irish
748
+ ITALIAN = :italian
749
+ JAPANESE = :japanese
750
+ JAVANESE = :javanese
751
+ KANNADA = :kannada
752
+ KAZAKH = :kazakh
753
+ KHMER = :khmer
754
+ KINYARWANDA = :kinyarwanda
755
+ KOREAN = :korean
756
+ KURDISH = :kurdish
757
+ KYRGYZ = :kyrgyz
758
+ LAO = :lao
759
+ LATIN = :latin
760
+ LATVIAN = :latvian
761
+ LINGALA = :lingala
762
+ LITHUANIAN = :lithuanian
763
+ LUXEMBOURGISH = :luxembourgish
764
+ MACEDONIAN = :macedonian
765
+ MALAGASY = :malagasy
766
+ MALAY = :malay
767
+ MALAYALAM = :malayalam
768
+ MALTESE = :maltese
769
+ MAORI = :maori
770
+ MARATHI = :marathi
771
+ MONGOLIAN = :mongolian
772
+ NEPALI = :nepali
773
+ NORWEGIAN = :norwegian
774
+ ODIA = :odia
775
+ OROMO = :oromo
776
+ PASHTO = :pashto
777
+ PIDGIN = :pidgin
778
+ POLISH = :polish
779
+ PORTUGUESE = :portuguese
780
+ PUNJABI = :punjabi
781
+ QUECHUA = :quechua
782
+ ROMANIAN = :romanian
783
+ RUSSIAN = :russian
784
+ SAMOAN = :samoan
785
+ SCOTTISH_GAELIC = :"scottish-gaelic"
786
+ SERBIAN = :serbian
787
+ SESOTHO = :sesotho
788
+ SHONA = :shona
789
+ SINDHI = :sindhi
790
+ SINHALA = :sinhala
791
+ SLOVAK = :slovak
792
+ SLOVENE = :slovene
793
+ SOMALI = :somali
794
+ SPANISH = :spanish
795
+ SUNDANESE = :sundanese
796
+ SWAHILI = :swahili
797
+ SWEDISH = :swedish
798
+ TAGALOG = :tagalog
799
+ TAJIK = :tajik
800
+ TAMIL = :tamil
801
+ TATAR = :tatar
802
+ TELUGU = :telugu
803
+ THAI = :thai
804
+ TIBETAN = :tibetan
805
+ TIGRINYA = :tigrinya
806
+ TONGAN = :tongan
807
+ TSWANA = :tswana
808
+ TURKISH = :turkish
809
+ TURKMEN = :turkmen
810
+ UKRAINIAN = :ukrainian
811
+ URDU = :urdu
812
+ UYGHUR = :uyghur
813
+ UZBEK = :uzbek
814
+ VIETNAMESE = :vietnamese
815
+ WELSH = :welsh
816
+ WOLOF = :wolof
817
+ XHOSA = :xhosa
818
+ YIDDISH = :yiddish
819
+ YORUBA = :yoruba
820
+ ZULU = :zulu
821
+
822
+ # @!method self.values
823
+ # @return [Array<Symbol>]
824
+ end
825
+ end
826
+
827
+ class ByTransaction < ContextDev::Internal::Type::BaseModel
828
+ # @!attribute transaction_info
829
+ # Transaction information to identify the brand.
830
+ #
831
+ # @return [String]
832
+ required :transaction_info, String
833
+
834
+ # @!attribute type
835
+ # Discriminator for transaction-based brand retrieval.
836
+ #
837
+ # @return [Symbol, :by_transaction]
838
+ required :type, const: :by_transaction
839
+
840
+ # @!attribute city
841
+ # Optional city name to prioritize when searching for the brand.
842
+ #
843
+ # @return [String, nil]
844
+ optional :city, String
845
+
846
+ # @!attribute country_gl
847
+ # Optional country code hint (GL parameter) to specify the country when
848
+ # identifying a transaction.
849
+ #
850
+ # @return [String, nil]
851
+ optional :country_gl, String
852
+
853
+ # @!attribute force_language
854
+ #
855
+ # @return [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::ForceLanguage, nil]
856
+ optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::Body::ByTransaction::ForceLanguage }
857
+
858
+ # @!attribute high_confidence_only
859
+ # When set to true, the API performs additional verification to ensure the
860
+ # identified brand matches the transaction with high confidence.
861
+ #
862
+ # @return [Boolean, nil]
863
+ optional :high_confidence_only, ContextDev::Internal::Type::Boolean
864
+
865
+ # @!attribute max_speed
866
+ # Optional parameter to optimize the API call for maximum speed. When set to true,
867
+ # the API will skip time-consuming operations for faster response at the cost of
868
+ # less comprehensive data.
869
+ #
870
+ # @return [Boolean, nil]
871
+ optional :max_speed, ContextDev::Internal::Type::Boolean, api_name: :maxSpeed
872
+
873
+ # @!attribute mcc
874
+ # Optional Merchant Category Code (MCC) to help identify the business category or
875
+ # industry.
876
+ #
877
+ # @return [Integer, nil]
878
+ optional :mcc, Integer
879
+
880
+ # @!attribute phone
881
+ # Optional phone number from the transaction to help verify brand match.
882
+ #
883
+ # @return [Float, nil]
884
+ optional :phone, Float
885
+
886
+ # @!attribute timeout_ms
887
+ # Optional timeout in milliseconds for the request. If the request takes longer
888
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
889
+ # value is 300000ms (5 minutes).
890
+ #
891
+ # @return [Integer, nil]
892
+ optional :timeout_ms, Integer, api_name: :timeoutMS
893
+
894
+ # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, high_confidence_only: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, type: :by_transaction)
895
+ # Some parameter documentations has been truncated, see
896
+ # {ContextDev::Models::BrandRetrieveParams::Body::ByTransaction} for more details.
897
+ #
898
+ # Identify brand data from a transaction descriptor. Cannot be combined with
899
+ # domain, name, email, or ticker.
900
+ #
901
+ # @param transaction_info [String] Transaction information to identify the brand.
902
+ #
903
+ # @param city [String] Optional city name to prioritize when searching for the brand.
904
+ #
905
+ # @param country_gl [String] Optional country code hint (GL parameter) to specify the country when identifyin
906
+ #
907
+ # @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction::ForceLanguage]
908
+ #
909
+ # @param high_confidence_only [Boolean] When set to true, the API performs additional verification to ensure the identif
910
+ #
911
+ # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
912
+ #
913
+ # @param mcc [Integer] Optional Merchant Category Code (MCC) to help identify the business category or
914
+ #
915
+ # @param phone [Float] Optional phone number from the transaction to help verify brand match.
916
+ #
917
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
918
+ #
919
+ # @param type [Symbol, :by_transaction] Discriminator for transaction-based brand retrieval.
920
+
921
+ # @see ContextDev::Models::BrandRetrieveParams::Body::ByTransaction#force_language
922
+ module ForceLanguage
923
+ extend ContextDev::Internal::Type::Enum
924
+
925
+ AFRIKAANS = :afrikaans
926
+ ALBANIAN = :albanian
927
+ AMHARIC = :amharic
928
+ ARABIC = :arabic
929
+ ARMENIAN = :armenian
930
+ ASSAMESE = :assamese
931
+ AYMARA = :aymara
932
+ AZERI = :azeri
933
+ BASQUE = :basque
934
+ BELARUSIAN = :belarusian
935
+ BENGALI = :bengali
936
+ BOSNIAN = :bosnian
937
+ BULGARIAN = :bulgarian
938
+ BURMESE = :burmese
939
+ CANTONESE = :cantonese
940
+ CATALAN = :catalan
941
+ CEBUANO = :cebuano
942
+ CHINESE = :chinese
943
+ CORSICAN = :corsican
944
+ CROATIAN = :croatian
945
+ CZECH = :czech
946
+ DANISH = :danish
947
+ DUTCH = :dutch
948
+ ENGLISH = :english
949
+ ESPERANTO = :esperanto
950
+ ESTONIAN = :estonian
951
+ FARSI = :farsi
952
+ FIJIAN = :fijian
953
+ FINNISH = :finnish
954
+ FRENCH = :french
955
+ GALICIAN = :galician
956
+ GEORGIAN = :georgian
957
+ GERMAN = :german
958
+ GREEK = :greek
959
+ GUARANI = :guarani
960
+ GUJARATI = :gujarati
961
+ HAITIAN_CREOLE = :"haitian-creole"
962
+ HAUSA = :hausa
963
+ HAWAIIAN = :hawaiian
964
+ HEBREW = :hebrew
965
+ HINDI = :hindi
966
+ HMONG = :hmong
967
+ HUNGARIAN = :hungarian
968
+ ICELANDIC = :icelandic
969
+ IGBO = :igbo
970
+ INDONESIAN = :indonesian
971
+ IRISH = :irish
972
+ ITALIAN = :italian
973
+ JAPANESE = :japanese
974
+ JAVANESE = :javanese
975
+ KANNADA = :kannada
976
+ KAZAKH = :kazakh
977
+ KHMER = :khmer
978
+ KINYARWANDA = :kinyarwanda
979
+ KOREAN = :korean
980
+ KURDISH = :kurdish
981
+ KYRGYZ = :kyrgyz
982
+ LAO = :lao
983
+ LATIN = :latin
984
+ LATVIAN = :latvian
985
+ LINGALA = :lingala
986
+ LITHUANIAN = :lithuanian
987
+ LUXEMBOURGISH = :luxembourgish
988
+ MACEDONIAN = :macedonian
989
+ MALAGASY = :malagasy
990
+ MALAY = :malay
991
+ MALAYALAM = :malayalam
992
+ MALTESE = :maltese
993
+ MAORI = :maori
994
+ MARATHI = :marathi
995
+ MONGOLIAN = :mongolian
996
+ NEPALI = :nepali
997
+ NORWEGIAN = :norwegian
998
+ ODIA = :odia
999
+ OROMO = :oromo
1000
+ PASHTO = :pashto
1001
+ PIDGIN = :pidgin
1002
+ POLISH = :polish
1003
+ PORTUGUESE = :portuguese
1004
+ PUNJABI = :punjabi
1005
+ QUECHUA = :quechua
1006
+ ROMANIAN = :romanian
1007
+ RUSSIAN = :russian
1008
+ SAMOAN = :samoan
1009
+ SCOTTISH_GAELIC = :"scottish-gaelic"
1010
+ SERBIAN = :serbian
1011
+ SESOTHO = :sesotho
1012
+ SHONA = :shona
1013
+ SINDHI = :sindhi
1014
+ SINHALA = :sinhala
1015
+ SLOVAK = :slovak
1016
+ SLOVENE = :slovene
1017
+ SOMALI = :somali
1018
+ SPANISH = :spanish
1019
+ SUNDANESE = :sundanese
1020
+ SWAHILI = :swahili
1021
+ SWEDISH = :swedish
1022
+ TAGALOG = :tagalog
1023
+ TAJIK = :tajik
1024
+ TAMIL = :tamil
1025
+ TATAR = :tatar
1026
+ TELUGU = :telugu
1027
+ THAI = :thai
1028
+ TIBETAN = :tibetan
1029
+ TIGRINYA = :tigrinya
1030
+ TONGAN = :tongan
1031
+ TSWANA = :tswana
1032
+ TURKISH = :turkish
1033
+ TURKMEN = :turkmen
1034
+ UKRAINIAN = :ukrainian
1035
+ URDU = :urdu
1036
+ UYGHUR = :uyghur
1037
+ UZBEK = :uzbek
1038
+ VIETNAMESE = :vietnamese
1039
+ WELSH = :welsh
1040
+ WOLOF = :wolof
1041
+ XHOSA = :xhosa
1042
+ YIDDISH = :yiddish
1043
+ YORUBA = :yoruba
1044
+ ZULU = :zulu
1045
+
1046
+ # @!method self.values
1047
+ # @return [Array<Symbol>]
1048
+ end
1049
+ end
63
1050
 
64
- # Optional parameter to force the language of the retrieved brand data.
65
- module ForceLanguage
66
- extend ContextDev::Internal::Type::Enum
67
-
68
- AFRIKAANS = :afrikaans
69
- ALBANIAN = :albanian
70
- AMHARIC = :amharic
71
- ARABIC = :arabic
72
- ARMENIAN = :armenian
73
- ASSAMESE = :assamese
74
- AYMARA = :aymara
75
- AZERI = :azeri
76
- BASQUE = :basque
77
- BELARUSIAN = :belarusian
78
- BENGALI = :bengali
79
- BOSNIAN = :bosnian
80
- BULGARIAN = :bulgarian
81
- BURMESE = :burmese
82
- CANTONESE = :cantonese
83
- CATALAN = :catalan
84
- CEBUANO = :cebuano
85
- CHINESE = :chinese
86
- CORSICAN = :corsican
87
- CROATIAN = :croatian
88
- CZECH = :czech
89
- DANISH = :danish
90
- DUTCH = :dutch
91
- ENGLISH = :english
92
- ESPERANTO = :esperanto
93
- ESTONIAN = :estonian
94
- FARSI = :farsi
95
- FIJIAN = :fijian
96
- FINNISH = :finnish
97
- FRENCH = :french
98
- GALICIAN = :galician
99
- GEORGIAN = :georgian
100
- GERMAN = :german
101
- GREEK = :greek
102
- GUARANI = :guarani
103
- GUJARATI = :gujarati
104
- HAITIAN_CREOLE = :"haitian-creole"
105
- HAUSA = :hausa
106
- HAWAIIAN = :hawaiian
107
- HEBREW = :hebrew
108
- HINDI = :hindi
109
- HMONG = :hmong
110
- HUNGARIAN = :hungarian
111
- ICELANDIC = :icelandic
112
- IGBO = :igbo
113
- INDONESIAN = :indonesian
114
- IRISH = :irish
115
- ITALIAN = :italian
116
- JAPANESE = :japanese
117
- JAVANESE = :javanese
118
- KANNADA = :kannada
119
- KAZAKH = :kazakh
120
- KHMER = :khmer
121
- KINYARWANDA = :kinyarwanda
122
- KOREAN = :korean
123
- KURDISH = :kurdish
124
- KYRGYZ = :kyrgyz
125
- LAO = :lao
126
- LATIN = :latin
127
- LATVIAN = :latvian
128
- LINGALA = :lingala
129
- LITHUANIAN = :lithuanian
130
- LUXEMBOURGISH = :luxembourgish
131
- MACEDONIAN = :macedonian
132
- MALAGASY = :malagasy
133
- MALAY = :malay
134
- MALAYALAM = :malayalam
135
- MALTESE = :maltese
136
- MAORI = :maori
137
- MARATHI = :marathi
138
- MONGOLIAN = :mongolian
139
- NEPALI = :nepali
140
- NORWEGIAN = :norwegian
141
- ODIA = :odia
142
- OROMO = :oromo
143
- PASHTO = :pashto
144
- PIDGIN = :pidgin
145
- POLISH = :polish
146
- PORTUGUESE = :portuguese
147
- PUNJABI = :punjabi
148
- QUECHUA = :quechua
149
- ROMANIAN = :romanian
150
- RUSSIAN = :russian
151
- SAMOAN = :samoan
152
- SCOTTISH_GAELIC = :"scottish-gaelic"
153
- SERBIAN = :serbian
154
- SESOTHO = :sesotho
155
- SHONA = :shona
156
- SINDHI = :sindhi
157
- SINHALA = :sinhala
158
- SLOVAK = :slovak
159
- SLOVENE = :slovene
160
- SOMALI = :somali
161
- SPANISH = :spanish
162
- SUNDANESE = :sundanese
163
- SWAHILI = :swahili
164
- SWEDISH = :swedish
165
- TAGALOG = :tagalog
166
- TAJIK = :tajik
167
- TAMIL = :tamil
168
- TATAR = :tatar
169
- TELUGU = :telugu
170
- THAI = :thai
171
- TIBETAN = :tibetan
172
- TIGRINYA = :tigrinya
173
- TONGAN = :tongan
174
- TSWANA = :tswana
175
- TURKISH = :turkish
176
- TURKMEN = :turkmen
177
- UKRAINIAN = :ukrainian
178
- URDU = :urdu
179
- UYGHUR = :uyghur
180
- UZBEK = :uzbek
181
- VIETNAMESE = :vietnamese
182
- WELSH = :welsh
183
- WOLOF = :wolof
184
- XHOSA = :xhosa
185
- YIDDISH = :yiddish
186
- YORUBA = :yoruba
187
- ZULU = :zulu
188
-
189
- # @!method self.values
190
- # @return [Array<Symbol>]
1051
+ # @!method self.variants
1052
+ # @return [Array(ContextDev::Models::BrandRetrieveParams::Body::ByDomain, ContextDev::Models::BrandRetrieveParams::Body::ByName, ContextDev::Models::BrandRetrieveParams::Body::ByEmail, ContextDev::Models::BrandRetrieveParams::Body::ByTicker, ContextDev::Models::BrandRetrieveParams::Body::ByTransaction)]
191
1053
  end
192
1054
  end
193
1055
  end