brand.dev 0.0.1-alpha.1

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 (310) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +201 -0
  3. package/README.md +372 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +178 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +178 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +454 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +450 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +32 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +32 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +28 -0
  117. package/internal/shim-types.d.ts +28 -0
  118. package/internal/shims.d.mts +20 -0
  119. package/internal/shims.d.mts.map +1 -0
  120. package/internal/shims.d.ts +20 -0
  121. package/internal/shims.d.ts.map +1 -0
  122. package/internal/shims.js +92 -0
  123. package/internal/shims.js.map +1 -0
  124. package/internal/shims.mjs +85 -0
  125. package/internal/shims.mjs.map +1 -0
  126. package/internal/to-file.d.mts +45 -0
  127. package/internal/to-file.d.mts.map +1 -0
  128. package/internal/to-file.d.ts +45 -0
  129. package/internal/to-file.d.ts.map +1 -0
  130. package/internal/to-file.js +91 -0
  131. package/internal/to-file.js.map +1 -0
  132. package/internal/to-file.mjs +88 -0
  133. package/internal/to-file.mjs.map +1 -0
  134. package/internal/tslib.js +81 -0
  135. package/internal/tslib.mjs +17 -0
  136. package/internal/types.d.mts +67 -0
  137. package/internal/types.d.mts.map +1 -0
  138. package/internal/types.d.ts +67 -0
  139. package/internal/types.d.ts.map +1 -0
  140. package/internal/types.js +4 -0
  141. package/internal/types.js.map +1 -0
  142. package/internal/types.mjs +3 -0
  143. package/internal/types.mjs.map +1 -0
  144. package/internal/uploads.d.mts +42 -0
  145. package/internal/uploads.d.mts.map +1 -0
  146. package/internal/uploads.d.ts +42 -0
  147. package/internal/uploads.d.ts.map +1 -0
  148. package/internal/uploads.js +141 -0
  149. package/internal/uploads.js.map +1 -0
  150. package/internal/uploads.mjs +131 -0
  151. package/internal/uploads.mjs.map +1 -0
  152. package/internal/utils/base64.d.mts +3 -0
  153. package/internal/utils/base64.d.mts.map +1 -0
  154. package/internal/utils/base64.d.ts +3 -0
  155. package/internal/utils/base64.d.ts.map +1 -0
  156. package/internal/utils/base64.js +38 -0
  157. package/internal/utils/base64.js.map +1 -0
  158. package/internal/utils/base64.mjs +33 -0
  159. package/internal/utils/base64.mjs.map +1 -0
  160. package/internal/utils/bytes.d.mts +4 -0
  161. package/internal/utils/bytes.d.mts.map +1 -0
  162. package/internal/utils/bytes.d.ts +4 -0
  163. package/internal/utils/bytes.d.ts.map +1 -0
  164. package/internal/utils/bytes.js +31 -0
  165. package/internal/utils/bytes.js.map +1 -0
  166. package/internal/utils/bytes.mjs +26 -0
  167. package/internal/utils/bytes.mjs.map +1 -0
  168. package/internal/utils/env.d.mts +9 -0
  169. package/internal/utils/env.d.mts.map +1 -0
  170. package/internal/utils/env.d.ts +9 -0
  171. package/internal/utils/env.d.ts.map +1 -0
  172. package/internal/utils/env.js +22 -0
  173. package/internal/utils/env.js.map +1 -0
  174. package/internal/utils/env.mjs +18 -0
  175. package/internal/utils/env.mjs.map +1 -0
  176. package/internal/utils/log.d.mts +37 -0
  177. package/internal/utils/log.d.mts.map +1 -0
  178. package/internal/utils/log.d.ts +37 -0
  179. package/internal/utils/log.d.ts.map +1 -0
  180. package/internal/utils/log.js +85 -0
  181. package/internal/utils/log.js.map +1 -0
  182. package/internal/utils/log.mjs +79 -0
  183. package/internal/utils/log.mjs.map +1 -0
  184. package/internal/utils/path.d.mts +15 -0
  185. package/internal/utils/path.d.mts.map +1 -0
  186. package/internal/utils/path.d.ts +15 -0
  187. package/internal/utils/path.d.ts.map +1 -0
  188. package/internal/utils/path.js +58 -0
  189. package/internal/utils/path.js.map +1 -0
  190. package/internal/utils/path.mjs +53 -0
  191. package/internal/utils/path.mjs.map +1 -0
  192. package/internal/utils/sleep.d.mts +2 -0
  193. package/internal/utils/sleep.d.mts.map +1 -0
  194. package/internal/utils/sleep.d.ts +2 -0
  195. package/internal/utils/sleep.d.ts.map +1 -0
  196. package/internal/utils/sleep.js +7 -0
  197. package/internal/utils/sleep.js.map +1 -0
  198. package/internal/utils/sleep.mjs +3 -0
  199. package/internal/utils/sleep.mjs.map +1 -0
  200. package/internal/utils/uuid.d.mts +5 -0
  201. package/internal/utils/uuid.d.mts.map +1 -0
  202. package/internal/utils/uuid.d.ts +5 -0
  203. package/internal/utils/uuid.d.ts.map +1 -0
  204. package/internal/utils/uuid.js +19 -0
  205. package/internal/utils/uuid.js.map +1 -0
  206. package/internal/utils/uuid.mjs +15 -0
  207. package/internal/utils/uuid.mjs.map +1 -0
  208. package/internal/utils/values.d.mts +16 -0
  209. package/internal/utils/values.d.mts.map +1 -0
  210. package/internal/utils/values.d.ts +16 -0
  211. package/internal/utils/values.d.ts.map +1 -0
  212. package/internal/utils/values.js +109 -0
  213. package/internal/utils/values.js.map +1 -0
  214. package/internal/utils/values.mjs +92 -0
  215. package/internal/utils/values.mjs.map +1 -0
  216. package/internal/utils.d.mts +7 -0
  217. package/internal/utils.d.mts.map +1 -0
  218. package/internal/utils.d.ts +7 -0
  219. package/internal/utils.d.ts.map +1 -0
  220. package/internal/utils.js +11 -0
  221. package/internal/utils.js.map +1 -0
  222. package/internal/utils.mjs +8 -0
  223. package/internal/utils.mjs.map +1 -0
  224. package/package.json +142 -0
  225. package/resource.d.mts +2 -0
  226. package/resource.d.mts.map +1 -0
  227. package/resource.d.ts +2 -0
  228. package/resource.d.ts.map +1 -0
  229. package/resource.js +6 -0
  230. package/resource.js.map +1 -0
  231. package/resource.mjs +2 -0
  232. package/resource.mjs.map +1 -0
  233. package/resources/brand.d.mts +806 -0
  234. package/resources/brand.d.mts.map +1 -0
  235. package/resources/brand.d.ts +806 -0
  236. package/resources/brand.d.ts.map +1 -0
  237. package/resources/brand.js +40 -0
  238. package/resources/brand.js.map +1 -0
  239. package/resources/brand.mjs +36 -0
  240. package/resources/brand.mjs.map +1 -0
  241. package/resources/index.d.mts +2 -0
  242. package/resources/index.d.mts.map +1 -0
  243. package/resources/index.d.ts +2 -0
  244. package/resources/index.d.ts.map +1 -0
  245. package/resources/index.js +7 -0
  246. package/resources/index.js.map +1 -0
  247. package/resources/index.mjs +3 -0
  248. package/resources/index.mjs.map +1 -0
  249. package/resources.d.mts +2 -0
  250. package/resources.d.mts.map +1 -0
  251. package/resources.d.ts +2 -0
  252. package/resources.d.ts.map +1 -0
  253. package/resources.js +5 -0
  254. package/resources.js.map +1 -0
  255. package/resources.mjs +2 -0
  256. package/resources.mjs.map +1 -0
  257. package/src/api-promise.ts +2 -0
  258. package/src/client.ts +725 -0
  259. package/src/core/README.md +3 -0
  260. package/src/core/api-promise.ts +92 -0
  261. package/src/core/error.ts +130 -0
  262. package/src/core/resource.ts +11 -0
  263. package/src/core/uploads.ts +2 -0
  264. package/src/error.ts +2 -0
  265. package/src/index.ts +22 -0
  266. package/src/internal/README.md +3 -0
  267. package/src/internal/builtin-types.ts +93 -0
  268. package/src/internal/detect-platform.ts +196 -0
  269. package/src/internal/errors.ts +33 -0
  270. package/src/internal/headers.ts +97 -0
  271. package/src/internal/parse.ts +50 -0
  272. package/src/internal/request-options.ts +37 -0
  273. package/src/internal/shim-types.d.ts +28 -0
  274. package/src/internal/shims.ts +107 -0
  275. package/src/internal/to-file.ts +154 -0
  276. package/src/internal/types.ts +92 -0
  277. package/src/internal/uploads.ts +187 -0
  278. package/src/internal/utils/base64.ts +40 -0
  279. package/src/internal/utils/bytes.ts +32 -0
  280. package/src/internal/utils/env.ts +18 -0
  281. package/src/internal/utils/log.ts +126 -0
  282. package/src/internal/utils/path.ts +63 -0
  283. package/src/internal/utils/sleep.ts +3 -0
  284. package/src/internal/utils/uuid.ts +17 -0
  285. package/src/internal/utils/values.ts +102 -0
  286. package/src/internal/utils.ts +8 -0
  287. package/src/lib/.keep +4 -0
  288. package/src/resource.ts +2 -0
  289. package/src/resources/brand.ts +1046 -0
  290. package/src/resources/index.ts +15 -0
  291. package/src/resources.ts +1 -0
  292. package/src/tsconfig.json +11 -0
  293. package/src/uploads.ts +2 -0
  294. package/src/version.ts +1 -0
  295. package/uploads.d.mts +2 -0
  296. package/uploads.d.mts.map +1 -0
  297. package/uploads.d.ts +2 -0
  298. package/uploads.d.ts.map +1 -0
  299. package/uploads.js +6 -0
  300. package/uploads.js.map +1 -0
  301. package/uploads.mjs +2 -0
  302. package/uploads.mjs.map +1 -0
  303. package/version.d.mts +2 -0
  304. package/version.d.mts.map +1 -0
  305. package/version.d.ts +2 -0
  306. package/version.d.ts.map +1 -0
  307. package/version.js +5 -0
  308. package/version.js.map +1 -0
  309. package/version.mjs +2 -0
  310. package/version.mjs.map +1 -0
@@ -0,0 +1,806 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Brand extends APIResource {
5
+ /**
6
+ * Retrieve brand data by domain
7
+ */
8
+ retrieve(query: BrandRetrieveParams, options?: RequestOptions): APIPromise<BrandRetrieveResponse>;
9
+ /**
10
+ * Endpoint specially designed for platforms that want to identify transaction data
11
+ * by the transaction title.
12
+ */
13
+ identifyFromTransaction(query: BrandIdentifyFromTransactionParams, options?: RequestOptions): APIPromise<BrandIdentifyFromTransactionResponse>;
14
+ /**
15
+ * Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)
16
+ */
17
+ retrieveByTicker(query: BrandRetrieveByTickerParams, options?: RequestOptions): APIPromise<BrandRetrieveByTickerResponse>;
18
+ /**
19
+ * Endpoint to classify any brand into a 2022 NAICS code.
20
+ */
21
+ retrieveNaics(query: BrandRetrieveNaicsParams, options?: RequestOptions): APIPromise<BrandRetrieveNaicsResponse>;
22
+ /**
23
+ * Search brands by query
24
+ */
25
+ search(query: BrandSearchParams, options?: RequestOptions): APIPromise<BrandSearchResponse>;
26
+ }
27
+ export interface BrandRetrieveResponse {
28
+ /**
29
+ * Detailed brand information
30
+ */
31
+ brand?: BrandRetrieveResponse.Brand;
32
+ /**
33
+ * HTTP status code
34
+ */
35
+ code?: number;
36
+ /**
37
+ * Status of the response, e.g., 'ok'
38
+ */
39
+ status?: string;
40
+ }
41
+ export declare namespace BrandRetrieveResponse {
42
+ /**
43
+ * Detailed brand information
44
+ */
45
+ interface Brand {
46
+ /**
47
+ * Physical address of the brand
48
+ */
49
+ address?: Brand.Address;
50
+ /**
51
+ * An array of backdrop images for the brand
52
+ */
53
+ backdrops?: Array<Brand.Backdrop>;
54
+ /**
55
+ * An array of brand colors
56
+ */
57
+ colors?: Array<Brand.Color>;
58
+ /**
59
+ * A brief description of the brand
60
+ */
61
+ description?: string;
62
+ /**
63
+ * The domain name of the brand
64
+ */
65
+ domain?: string;
66
+ /**
67
+ * An array of fonts used by the brand's website
68
+ */
69
+ fonts?: Array<Brand.Font>;
70
+ /**
71
+ * An array of logos associated with the brand
72
+ */
73
+ logos?: Array<Brand.Logo>;
74
+ /**
75
+ * The brand's slogan
76
+ */
77
+ slogan?: string;
78
+ /**
79
+ * An array of social media links for the brand
80
+ */
81
+ socials?: Array<Brand.Social>;
82
+ /**
83
+ * Stock market information for this brand (will be null if not a publicly traded
84
+ * company)
85
+ */
86
+ stock?: Brand.Stock;
87
+ /**
88
+ * The title or name of the brand
89
+ */
90
+ title?: string;
91
+ }
92
+ namespace Brand {
93
+ /**
94
+ * Physical address of the brand
95
+ */
96
+ interface Address {
97
+ /**
98
+ * City name
99
+ */
100
+ city?: string;
101
+ /**
102
+ * Country name
103
+ */
104
+ country?: string;
105
+ /**
106
+ * Country code
107
+ */
108
+ country_code?: string;
109
+ /**
110
+ * Postal or ZIP code
111
+ */
112
+ postal_code?: string;
113
+ /**
114
+ * State or province code
115
+ */
116
+ state_code?: string;
117
+ /**
118
+ * State or province name
119
+ */
120
+ state_province?: string;
121
+ /**
122
+ * Street address
123
+ */
124
+ street?: string;
125
+ }
126
+ interface Backdrop {
127
+ /**
128
+ * Array of colors in the backdrop image
129
+ */
130
+ colors?: Array<Backdrop.Color>;
131
+ /**
132
+ * Resolution of the backdrop image
133
+ */
134
+ resolution?: Backdrop.Resolution;
135
+ /**
136
+ * URL of the backdrop image
137
+ */
138
+ url?: string;
139
+ }
140
+ namespace Backdrop {
141
+ interface Color {
142
+ /**
143
+ * Color in hexadecimal format
144
+ */
145
+ hex?: string;
146
+ /**
147
+ * Name of the color
148
+ */
149
+ name?: string;
150
+ }
151
+ /**
152
+ * Resolution of the backdrop image
153
+ */
154
+ interface Resolution {
155
+ /**
156
+ * Height of the image in pixels
157
+ */
158
+ height?: number;
159
+ /**
160
+ * Width of the image in pixels
161
+ */
162
+ width?: number;
163
+ }
164
+ }
165
+ interface Color {
166
+ /**
167
+ * Color in hexadecimal format
168
+ */
169
+ hex?: string;
170
+ /**
171
+ * Name of the color
172
+ */
173
+ name?: string;
174
+ }
175
+ interface Font {
176
+ /**
177
+ * Name of the font
178
+ */
179
+ name?: string;
180
+ /**
181
+ * Usage of the font, e.g., 'title', 'body', 'button'
182
+ */
183
+ usage?: string;
184
+ }
185
+ interface Logo {
186
+ /**
187
+ * Array of colors in the logo
188
+ */
189
+ colors?: Array<Logo.Color>;
190
+ /**
191
+ * Group identifier for logos
192
+ */
193
+ group?: number;
194
+ /**
195
+ * Mode of the logo, e.g., 'dark', 'light'
196
+ */
197
+ mode?: string;
198
+ /**
199
+ * Resolution of the logo image
200
+ */
201
+ resolution?: Logo.Resolution;
202
+ /**
203
+ * URL of the logo image
204
+ */
205
+ url?: string;
206
+ }
207
+ namespace Logo {
208
+ interface Color {
209
+ /**
210
+ * Color in hexadecimal format
211
+ */
212
+ hex?: string;
213
+ /**
214
+ * Name of the color
215
+ */
216
+ name?: string;
217
+ }
218
+ /**
219
+ * Resolution of the logo image
220
+ */
221
+ interface Resolution {
222
+ /**
223
+ * Height of the image in pixels
224
+ */
225
+ height?: number;
226
+ /**
227
+ * Width of the image in pixels
228
+ */
229
+ width?: number;
230
+ }
231
+ }
232
+ interface Social {
233
+ /**
234
+ * Type of social media, e.g., 'facebook', 'twitter'
235
+ */
236
+ type?: string;
237
+ /**
238
+ * URL of the social media page
239
+ */
240
+ url?: string;
241
+ }
242
+ /**
243
+ * Stock market information for this brand (will be null if not a publicly traded
244
+ * company)
245
+ */
246
+ interface Stock {
247
+ /**
248
+ * Stock exchange name
249
+ */
250
+ exchange?: string;
251
+ /**
252
+ * Stock ticker symbol
253
+ */
254
+ ticker?: string;
255
+ }
256
+ }
257
+ }
258
+ export interface BrandIdentifyFromTransactionResponse {
259
+ /**
260
+ * Detailed brand information
261
+ */
262
+ brand?: BrandIdentifyFromTransactionResponse.Brand;
263
+ /**
264
+ * HTTP status code
265
+ */
266
+ code?: number;
267
+ /**
268
+ * Status of the response, e.g., 'ok'
269
+ */
270
+ status?: string;
271
+ }
272
+ export declare namespace BrandIdentifyFromTransactionResponse {
273
+ /**
274
+ * Detailed brand information
275
+ */
276
+ interface Brand {
277
+ /**
278
+ * Physical address of the brand
279
+ */
280
+ address?: Brand.Address;
281
+ /**
282
+ * An array of backdrop images for the brand
283
+ */
284
+ backdrops?: Array<Brand.Backdrop>;
285
+ /**
286
+ * An array of brand colors
287
+ */
288
+ colors?: Array<Brand.Color>;
289
+ /**
290
+ * A brief description of the brand
291
+ */
292
+ description?: string;
293
+ /**
294
+ * The domain name of the brand
295
+ */
296
+ domain?: string;
297
+ /**
298
+ * An array of fonts used by the brand's website
299
+ */
300
+ fonts?: Array<Brand.Font>;
301
+ /**
302
+ * An array of logos associated with the brand
303
+ */
304
+ logos?: Array<Brand.Logo>;
305
+ /**
306
+ * The brand's slogan
307
+ */
308
+ slogan?: string;
309
+ /**
310
+ * An array of social media links for the brand
311
+ */
312
+ socials?: Array<Brand.Social>;
313
+ /**
314
+ * Stock market information for this brand (will be null if not a publicly traded
315
+ * company)
316
+ */
317
+ stock?: Brand.Stock;
318
+ /**
319
+ * The title or name of the brand
320
+ */
321
+ title?: string;
322
+ }
323
+ namespace Brand {
324
+ /**
325
+ * Physical address of the brand
326
+ */
327
+ interface Address {
328
+ /**
329
+ * City name
330
+ */
331
+ city?: string;
332
+ /**
333
+ * Country name
334
+ */
335
+ country?: string;
336
+ /**
337
+ * Country code
338
+ */
339
+ country_code?: string;
340
+ /**
341
+ * Postal or ZIP code
342
+ */
343
+ postal_code?: string;
344
+ /**
345
+ * State or province code
346
+ */
347
+ state_code?: string;
348
+ /**
349
+ * State or province name
350
+ */
351
+ state_province?: string;
352
+ /**
353
+ * Street address
354
+ */
355
+ street?: string;
356
+ }
357
+ interface Backdrop {
358
+ /**
359
+ * Array of colors in the backdrop image
360
+ */
361
+ colors?: Array<Backdrop.Color>;
362
+ /**
363
+ * Resolution of the backdrop image
364
+ */
365
+ resolution?: Backdrop.Resolution;
366
+ /**
367
+ * URL of the backdrop image
368
+ */
369
+ url?: string;
370
+ }
371
+ namespace Backdrop {
372
+ interface Color {
373
+ /**
374
+ * Color in hexadecimal format
375
+ */
376
+ hex?: string;
377
+ /**
378
+ * Name of the color
379
+ */
380
+ name?: string;
381
+ }
382
+ /**
383
+ * Resolution of the backdrop image
384
+ */
385
+ interface Resolution {
386
+ /**
387
+ * Height of the image in pixels
388
+ */
389
+ height?: number;
390
+ /**
391
+ * Width of the image in pixels
392
+ */
393
+ width?: number;
394
+ }
395
+ }
396
+ interface Color {
397
+ /**
398
+ * Color in hexadecimal format
399
+ */
400
+ hex?: string;
401
+ /**
402
+ * Name of the color
403
+ */
404
+ name?: string;
405
+ }
406
+ interface Font {
407
+ /**
408
+ * Name of the font
409
+ */
410
+ name?: string;
411
+ /**
412
+ * Usage of the font, e.g., 'title', 'body', 'button'
413
+ */
414
+ usage?: string;
415
+ }
416
+ interface Logo {
417
+ /**
418
+ * Array of colors in the logo
419
+ */
420
+ colors?: Array<Logo.Color>;
421
+ /**
422
+ * Group identifier for logos
423
+ */
424
+ group?: number;
425
+ /**
426
+ * Mode of the logo, e.g., 'dark', 'light'
427
+ */
428
+ mode?: string;
429
+ /**
430
+ * Resolution of the logo image
431
+ */
432
+ resolution?: Logo.Resolution;
433
+ /**
434
+ * URL of the logo image
435
+ */
436
+ url?: string;
437
+ }
438
+ namespace Logo {
439
+ interface Color {
440
+ /**
441
+ * Color in hexadecimal format
442
+ */
443
+ hex?: string;
444
+ /**
445
+ * Name of the color
446
+ */
447
+ name?: string;
448
+ }
449
+ /**
450
+ * Resolution of the logo image
451
+ */
452
+ interface Resolution {
453
+ /**
454
+ * Height of the image in pixels
455
+ */
456
+ height?: number;
457
+ /**
458
+ * Width of the image in pixels
459
+ */
460
+ width?: number;
461
+ }
462
+ }
463
+ interface Social {
464
+ /**
465
+ * Type of social media, e.g., 'facebook', 'twitter'
466
+ */
467
+ type?: string;
468
+ /**
469
+ * URL of the social media page
470
+ */
471
+ url?: string;
472
+ }
473
+ /**
474
+ * Stock market information for this brand (will be null if not a publicly traded
475
+ * company)
476
+ */
477
+ interface Stock {
478
+ /**
479
+ * Stock exchange name
480
+ */
481
+ exchange?: string;
482
+ /**
483
+ * Stock ticker symbol
484
+ */
485
+ ticker?: string;
486
+ }
487
+ }
488
+ }
489
+ export interface BrandRetrieveByTickerResponse {
490
+ /**
491
+ * Detailed brand information
492
+ */
493
+ brand?: BrandRetrieveByTickerResponse.Brand;
494
+ /**
495
+ * HTTP status code
496
+ */
497
+ code?: number;
498
+ /**
499
+ * Status of the response, e.g., 'ok'
500
+ */
501
+ status?: string;
502
+ }
503
+ export declare namespace BrandRetrieveByTickerResponse {
504
+ /**
505
+ * Detailed brand information
506
+ */
507
+ interface Brand {
508
+ /**
509
+ * Physical address of the brand
510
+ */
511
+ address?: Brand.Address;
512
+ /**
513
+ * An array of backdrop images for the brand
514
+ */
515
+ backdrops?: Array<Brand.Backdrop>;
516
+ /**
517
+ * An array of brand colors
518
+ */
519
+ colors?: Array<Brand.Color>;
520
+ /**
521
+ * A brief description of the brand
522
+ */
523
+ description?: string;
524
+ /**
525
+ * The domain name of the brand
526
+ */
527
+ domain?: string;
528
+ /**
529
+ * An array of fonts used by the brand's website
530
+ */
531
+ fonts?: Array<Brand.Font>;
532
+ /**
533
+ * An array of logos associated with the brand
534
+ */
535
+ logos?: Array<Brand.Logo>;
536
+ /**
537
+ * The brand's slogan
538
+ */
539
+ slogan?: string;
540
+ /**
541
+ * An array of social media links for the brand
542
+ */
543
+ socials?: Array<Brand.Social>;
544
+ /**
545
+ * Stock market information for this brand (will be null if not a publicly traded
546
+ * company)
547
+ */
548
+ stock?: Brand.Stock;
549
+ /**
550
+ * The title or name of the brand
551
+ */
552
+ title?: string;
553
+ }
554
+ namespace Brand {
555
+ /**
556
+ * Physical address of the brand
557
+ */
558
+ interface Address {
559
+ /**
560
+ * City name
561
+ */
562
+ city?: string;
563
+ /**
564
+ * Country name
565
+ */
566
+ country?: string;
567
+ /**
568
+ * Country code
569
+ */
570
+ country_code?: string;
571
+ /**
572
+ * Postal or ZIP code
573
+ */
574
+ postal_code?: string;
575
+ /**
576
+ * State or province code
577
+ */
578
+ state_code?: string;
579
+ /**
580
+ * State or province name
581
+ */
582
+ state_province?: string;
583
+ /**
584
+ * Street address
585
+ */
586
+ street?: string;
587
+ }
588
+ interface Backdrop {
589
+ /**
590
+ * Array of colors in the backdrop image
591
+ */
592
+ colors?: Array<Backdrop.Color>;
593
+ /**
594
+ * Resolution of the backdrop image
595
+ */
596
+ resolution?: Backdrop.Resolution;
597
+ /**
598
+ * URL of the backdrop image
599
+ */
600
+ url?: string;
601
+ }
602
+ namespace Backdrop {
603
+ interface Color {
604
+ /**
605
+ * Color in hexadecimal format
606
+ */
607
+ hex?: string;
608
+ /**
609
+ * Name of the color
610
+ */
611
+ name?: string;
612
+ }
613
+ /**
614
+ * Resolution of the backdrop image
615
+ */
616
+ interface Resolution {
617
+ /**
618
+ * Height of the image in pixels
619
+ */
620
+ height?: number;
621
+ /**
622
+ * Width of the image in pixels
623
+ */
624
+ width?: number;
625
+ }
626
+ }
627
+ interface Color {
628
+ /**
629
+ * Color in hexadecimal format
630
+ */
631
+ hex?: string;
632
+ /**
633
+ * Name of the color
634
+ */
635
+ name?: string;
636
+ }
637
+ interface Font {
638
+ /**
639
+ * Name of the font
640
+ */
641
+ name?: string;
642
+ /**
643
+ * Usage of the font, e.g., 'title', 'body', 'button'
644
+ */
645
+ usage?: string;
646
+ }
647
+ interface Logo {
648
+ /**
649
+ * Array of colors in the logo
650
+ */
651
+ colors?: Array<Logo.Color>;
652
+ /**
653
+ * Group identifier for logos
654
+ */
655
+ group?: number;
656
+ /**
657
+ * Mode of the logo, e.g., 'dark', 'light'
658
+ */
659
+ mode?: string;
660
+ /**
661
+ * Resolution of the logo image
662
+ */
663
+ resolution?: Logo.Resolution;
664
+ /**
665
+ * URL of the logo image
666
+ */
667
+ url?: string;
668
+ }
669
+ namespace Logo {
670
+ interface Color {
671
+ /**
672
+ * Color in hexadecimal format
673
+ */
674
+ hex?: string;
675
+ /**
676
+ * Name of the color
677
+ */
678
+ name?: string;
679
+ }
680
+ /**
681
+ * Resolution of the logo image
682
+ */
683
+ interface Resolution {
684
+ /**
685
+ * Height of the image in pixels
686
+ */
687
+ height?: number;
688
+ /**
689
+ * Width of the image in pixels
690
+ */
691
+ width?: number;
692
+ }
693
+ }
694
+ interface Social {
695
+ /**
696
+ * Type of social media, e.g., 'facebook', 'twitter'
697
+ */
698
+ type?: string;
699
+ /**
700
+ * URL of the social media page
701
+ */
702
+ url?: string;
703
+ }
704
+ /**
705
+ * Stock market information for this brand (will be null if not a publicly traded
706
+ * company)
707
+ */
708
+ interface Stock {
709
+ /**
710
+ * Stock exchange name
711
+ */
712
+ exchange?: string;
713
+ /**
714
+ * Stock ticker symbol
715
+ */
716
+ ticker?: string;
717
+ }
718
+ }
719
+ }
720
+ export interface BrandRetrieveNaicsResponse {
721
+ /**
722
+ * Array of NAICS codes and titles.
723
+ */
724
+ codes?: Array<BrandRetrieveNaicsResponse.Code>;
725
+ /**
726
+ * Domain found for the brand
727
+ */
728
+ domain?: string;
729
+ /**
730
+ * Status of the response, e.g., 'ok'
731
+ */
732
+ status?: string;
733
+ /**
734
+ * Industry classification type, for naics api it will be `naics`
735
+ */
736
+ type?: string;
737
+ }
738
+ export declare namespace BrandRetrieveNaicsResponse {
739
+ interface Code {
740
+ /**
741
+ * NAICS code
742
+ */
743
+ code?: string;
744
+ /**
745
+ * NAICS title
746
+ */
747
+ title?: string;
748
+ }
749
+ }
750
+ export type BrandSearchResponse = Array<BrandSearchResponse.BrandSearchResponseItem>;
751
+ export declare namespace BrandSearchResponse {
752
+ interface BrandSearchResponseItem {
753
+ /**
754
+ * Domain name of the brand
755
+ */
756
+ domain?: string;
757
+ /**
758
+ * URL of the brand's logo
759
+ */
760
+ logo?: string;
761
+ /**
762
+ * Title or name of the brand
763
+ */
764
+ title?: string;
765
+ }
766
+ }
767
+ export interface BrandRetrieveParams {
768
+ /**
769
+ * Domain name to retrieve brand data for
770
+ */
771
+ domain: string;
772
+ /**
773
+ * Optional parameter to force the language of the retrieved brand data
774
+ */
775
+ force_language?: 'albanian' | 'arabic' | 'azeri' | 'bengali' | 'bulgarian' | 'cebuano' | 'croatian' | 'czech' | 'danish' | 'dutch' | 'english' | 'estonian' | 'farsi' | 'finnish' | 'french' | 'german' | 'hausa' | 'hawaiian' | 'hindi' | 'hungarian' | 'icelandic' | 'indonesian' | 'italian' | 'kazakh' | 'kyrgyz' | 'latin' | 'latvian' | 'lithuanian' | 'macedonian' | 'mongolian' | 'nepali' | 'norwegian' | 'pashto' | 'pidgin' | 'polish' | 'portuguese' | 'romanian' | 'russian' | 'serbian' | 'slovak' | 'slovene' | 'somali' | 'spanish' | 'swahili' | 'swedish' | 'tagalog' | 'turkish' | 'ukrainian' | 'urdu' | 'uzbek' | 'vietnamese' | 'welsh';
776
+ }
777
+ export interface BrandIdentifyFromTransactionParams {
778
+ /**
779
+ * Transaction information to identify the brand
780
+ */
781
+ transaction_info: string;
782
+ }
783
+ export interface BrandRetrieveByTickerParams {
784
+ /**
785
+ * Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
786
+ */
787
+ ticker: string;
788
+ }
789
+ export interface BrandRetrieveNaicsParams {
790
+ /**
791
+ * Brand domain or title to retrieve NAICS code for. If a valid domain is provided
792
+ * in `input`, it will be used for classification, otherwise, we will search for
793
+ * the brand using the provided title.
794
+ */
795
+ input: string;
796
+ }
797
+ export interface BrandSearchParams {
798
+ /**
799
+ * Query string to search brands
800
+ */
801
+ query: string;
802
+ }
803
+ export declare namespace Brand {
804
+ export { type BrandRetrieveResponse as BrandRetrieveResponse, type BrandIdentifyFromTransactionResponse as BrandIdentifyFromTransactionResponse, type BrandRetrieveByTickerResponse as BrandRetrieveByTickerResponse, type BrandRetrieveNaicsResponse as BrandRetrieveNaicsResponse, type BrandSearchResponse as BrandSearchResponse, type BrandRetrieveParams as BrandRetrieveParams, type BrandIdentifyFromTransactionParams as BrandIdentifyFromTransactionParams, type BrandRetrieveByTickerParams as BrandRetrieveByTickerParams, type BrandRetrieveNaicsParams as BrandRetrieveNaicsParams, type BrandSearchParams as BrandSearchParams, };
805
+ }
806
+ //# sourceMappingURL=brand.d.mts.map