brand.dev 0.1.0-alpha.1 → 0.1.0-alpha.10
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.
- package/CHANGELOG.md +109 -0
- package/README.md +16 -29
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +23 -20
- package/client.js.map +1 -1
- package/client.mjs +12 -9
- package/client.mjs.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +4 -4
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +4 -4
- package/internal/headers.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +1 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.d.mts +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +4 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +2 -0
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -4
- package/resources/brand.d.mts +681 -1
- package/resources/brand.d.mts.map +1 -1
- package/resources/brand.d.ts +681 -1
- package/resources/brand.d.ts.map +1 -1
- package/resources/brand.js +41 -0
- package/resources/brand.js.map +1 -1
- package/resources/brand.mjs +41 -0
- package/resources/brand.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +46 -9
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +5 -5
- package/src/internal/request-options.ts +1 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/uploads.ts +2 -2
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +1 -1
- package/src/internal/utils/values.ts +3 -0
- package/src/resources/brand.ts +890 -11
- package/src/resources/index.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/src/internal/shim-types.d.ts +0 -28
package/resources/brand.d.mts
CHANGED
|
@@ -6,11 +6,24 @@ export declare class Brand extends APIResource {
|
|
|
6
6
|
* Retrieve brand data by domain
|
|
7
7
|
*/
|
|
8
8
|
retrieve(query: BrandRetrieveParams, options?: RequestOptions): APIPromise<BrandRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Beta feature: Use AI to extract specific data points from a brand's website. The
|
|
11
|
+
* AI will crawl the website and extract the requested information based on the
|
|
12
|
+
* provided data points.
|
|
13
|
+
*/
|
|
14
|
+
aiQuery(body: BrandAIQueryParams, options?: RequestOptions): APIPromise<BrandAIQueryResponse>;
|
|
9
15
|
/**
|
|
10
16
|
* Endpoint specially designed for platforms that want to identify transaction data
|
|
11
17
|
* by the transaction title.
|
|
12
18
|
*/
|
|
13
19
|
identifyFromTransaction(query: BrandIdentifyFromTransactionParams, options?: RequestOptions): APIPromise<BrandIdentifyFromTransactionResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Signal that you may fetch brand data for a particular domain soon to improve
|
|
22
|
+
* latency. This endpoint does not charge credits and is available for paid
|
|
23
|
+
* customers to optimize future requests. [You must be on a paid plan to use this
|
|
24
|
+
* endpoint]
|
|
25
|
+
*/
|
|
26
|
+
prefetch(body: BrandPrefetchParams, options?: RequestOptions): APIPromise<BrandPrefetchResponse>;
|
|
14
27
|
/**
|
|
15
28
|
* Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)
|
|
16
29
|
*/
|
|
@@ -19,10 +32,28 @@ export declare class Brand extends APIResource {
|
|
|
19
32
|
* Endpoint to classify any brand into a 2022 NAICS code.
|
|
20
33
|
*/
|
|
21
34
|
retrieveNaics(query: BrandRetrieveNaicsParams, options?: RequestOptions): APIPromise<BrandRetrieveNaicsResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a simplified version of brand data containing only essential
|
|
37
|
+
* information: domain, title, colors, logos, and backdrops. This endpoint is
|
|
38
|
+
* optimized for faster responses and reduced data transfer.
|
|
39
|
+
*/
|
|
40
|
+
retrieveSimplified(query: BrandRetrieveSimplifiedParams, options?: RequestOptions): APIPromise<BrandRetrieveSimplifiedResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Beta feature: Capture a screenshot of a website. Supports both viewport
|
|
43
|
+
* (standard browser view) and full-page screenshots. Returns a URL to the uploaded
|
|
44
|
+
* screenshot image hosted on our CDN.
|
|
45
|
+
*/
|
|
46
|
+
screenshot(query: BrandScreenshotParams, options?: RequestOptions): APIPromise<BrandScreenshotResponse>;
|
|
22
47
|
/**
|
|
23
48
|
* Search brands by query
|
|
24
49
|
*/
|
|
25
50
|
search(query: BrandSearchParams, options?: RequestOptions): APIPromise<BrandSearchResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Beta feature: Automatically extract comprehensive design system information from
|
|
53
|
+
* a brand's website including colors, typography, spacing, shadows, and UI
|
|
54
|
+
* components.
|
|
55
|
+
*/
|
|
56
|
+
styleguide(query: BrandStyleguideParams, options?: RequestOptions): APIPromise<BrandStyleguideResponse>;
|
|
26
57
|
}
|
|
27
58
|
export interface BrandRetrieveResponse {
|
|
28
59
|
/**
|
|
@@ -255,6 +286,32 @@ export declare namespace BrandRetrieveResponse {
|
|
|
255
286
|
}
|
|
256
287
|
}
|
|
257
288
|
}
|
|
289
|
+
export interface BrandAIQueryResponse {
|
|
290
|
+
/**
|
|
291
|
+
* Array of extracted data points
|
|
292
|
+
*/
|
|
293
|
+
data_extracted?: Array<BrandAIQueryResponse.DataExtracted>;
|
|
294
|
+
/**
|
|
295
|
+
* The domain that was analyzed
|
|
296
|
+
*/
|
|
297
|
+
domain?: string;
|
|
298
|
+
/**
|
|
299
|
+
* List of URLs that were analyzed
|
|
300
|
+
*/
|
|
301
|
+
urls_analyzed?: Array<string>;
|
|
302
|
+
}
|
|
303
|
+
export declare namespace BrandAIQueryResponse {
|
|
304
|
+
interface DataExtracted {
|
|
305
|
+
/**
|
|
306
|
+
* Name of the extracted data point
|
|
307
|
+
*/
|
|
308
|
+
datapoint_name?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Value of the extracted data point
|
|
311
|
+
*/
|
|
312
|
+
datapoint_value?: string | number | boolean | Array<string> | Array<number>;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
258
315
|
export interface BrandIdentifyFromTransactionResponse {
|
|
259
316
|
/**
|
|
260
317
|
* Detailed brand information
|
|
@@ -486,6 +543,20 @@ export declare namespace BrandIdentifyFromTransactionResponse {
|
|
|
486
543
|
}
|
|
487
544
|
}
|
|
488
545
|
}
|
|
546
|
+
export interface BrandPrefetchResponse {
|
|
547
|
+
/**
|
|
548
|
+
* The domain that was queued for prefetching
|
|
549
|
+
*/
|
|
550
|
+
domain?: string;
|
|
551
|
+
/**
|
|
552
|
+
* Success message
|
|
553
|
+
*/
|
|
554
|
+
message?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Status of the response, e.g., 'ok'
|
|
557
|
+
*/
|
|
558
|
+
status?: string;
|
|
559
|
+
}
|
|
489
560
|
export interface BrandRetrieveByTickerResponse {
|
|
490
561
|
/**
|
|
491
562
|
* Detailed brand information
|
|
@@ -747,6 +818,179 @@ export declare namespace BrandRetrieveNaicsResponse {
|
|
|
747
818
|
title?: string;
|
|
748
819
|
}
|
|
749
820
|
}
|
|
821
|
+
export interface BrandRetrieveSimplifiedResponse {
|
|
822
|
+
/**
|
|
823
|
+
* Simplified brand information
|
|
824
|
+
*/
|
|
825
|
+
brand?: BrandRetrieveSimplifiedResponse.Brand;
|
|
826
|
+
/**
|
|
827
|
+
* HTTP status code of the response
|
|
828
|
+
*/
|
|
829
|
+
code?: number;
|
|
830
|
+
/**
|
|
831
|
+
* Status of the response, e.g., 'ok'
|
|
832
|
+
*/
|
|
833
|
+
status?: string;
|
|
834
|
+
}
|
|
835
|
+
export declare namespace BrandRetrieveSimplifiedResponse {
|
|
836
|
+
/**
|
|
837
|
+
* Simplified brand information
|
|
838
|
+
*/
|
|
839
|
+
interface Brand {
|
|
840
|
+
/**
|
|
841
|
+
* An array of backdrop images for the brand
|
|
842
|
+
*/
|
|
843
|
+
backdrops?: Array<Brand.Backdrop>;
|
|
844
|
+
/**
|
|
845
|
+
* An array of brand colors
|
|
846
|
+
*/
|
|
847
|
+
colors?: Array<Brand.Color>;
|
|
848
|
+
/**
|
|
849
|
+
* The domain name of the brand
|
|
850
|
+
*/
|
|
851
|
+
domain?: string;
|
|
852
|
+
/**
|
|
853
|
+
* An array of logos associated with the brand
|
|
854
|
+
*/
|
|
855
|
+
logos?: Array<Brand.Logo>;
|
|
856
|
+
/**
|
|
857
|
+
* The title or name of the brand
|
|
858
|
+
*/
|
|
859
|
+
title?: string;
|
|
860
|
+
}
|
|
861
|
+
namespace Brand {
|
|
862
|
+
interface Backdrop {
|
|
863
|
+
/**
|
|
864
|
+
* Array of colors in the backdrop image
|
|
865
|
+
*/
|
|
866
|
+
colors?: Array<Backdrop.Color>;
|
|
867
|
+
/**
|
|
868
|
+
* Resolution of the backdrop image
|
|
869
|
+
*/
|
|
870
|
+
resolution?: Backdrop.Resolution;
|
|
871
|
+
/**
|
|
872
|
+
* URL of the backdrop image
|
|
873
|
+
*/
|
|
874
|
+
url?: string;
|
|
875
|
+
}
|
|
876
|
+
namespace Backdrop {
|
|
877
|
+
interface Color {
|
|
878
|
+
/**
|
|
879
|
+
* Color in hexadecimal format
|
|
880
|
+
*/
|
|
881
|
+
hex?: string;
|
|
882
|
+
/**
|
|
883
|
+
* Name of the color
|
|
884
|
+
*/
|
|
885
|
+
name?: string;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Resolution of the backdrop image
|
|
889
|
+
*/
|
|
890
|
+
interface Resolution {
|
|
891
|
+
/**
|
|
892
|
+
* Aspect ratio of the image (width/height)
|
|
893
|
+
*/
|
|
894
|
+
aspect_ratio?: number;
|
|
895
|
+
/**
|
|
896
|
+
* Height of the image in pixels
|
|
897
|
+
*/
|
|
898
|
+
height?: number;
|
|
899
|
+
/**
|
|
900
|
+
* Width of the image in pixels
|
|
901
|
+
*/
|
|
902
|
+
width?: number;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
interface Color {
|
|
906
|
+
/**
|
|
907
|
+
* Color in hexadecimal format
|
|
908
|
+
*/
|
|
909
|
+
hex?: string;
|
|
910
|
+
/**
|
|
911
|
+
* Name of the color
|
|
912
|
+
*/
|
|
913
|
+
name?: string;
|
|
914
|
+
}
|
|
915
|
+
interface Logo {
|
|
916
|
+
/**
|
|
917
|
+
* Array of colors in the logo
|
|
918
|
+
*/
|
|
919
|
+
colors?: Array<Logo.Color>;
|
|
920
|
+
/**
|
|
921
|
+
* Group identifier for logos
|
|
922
|
+
*/
|
|
923
|
+
group?: number;
|
|
924
|
+
/**
|
|
925
|
+
* Mode of the logo, e.g., 'dark', 'light'
|
|
926
|
+
*/
|
|
927
|
+
mode?: string;
|
|
928
|
+
/**
|
|
929
|
+
* Resolution of the logo image
|
|
930
|
+
*/
|
|
931
|
+
resolution?: Logo.Resolution;
|
|
932
|
+
/**
|
|
933
|
+
* Type of the logo based on resolution (e.g., 'icon', 'logo', 'banner')
|
|
934
|
+
*/
|
|
935
|
+
type?: string;
|
|
936
|
+
/**
|
|
937
|
+
* URL of the logo image
|
|
938
|
+
*/
|
|
939
|
+
url?: string;
|
|
940
|
+
}
|
|
941
|
+
namespace Logo {
|
|
942
|
+
interface Color {
|
|
943
|
+
/**
|
|
944
|
+
* Color in hexadecimal format
|
|
945
|
+
*/
|
|
946
|
+
hex?: string;
|
|
947
|
+
/**
|
|
948
|
+
* Name of the color
|
|
949
|
+
*/
|
|
950
|
+
name?: string;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Resolution of the logo image
|
|
954
|
+
*/
|
|
955
|
+
interface Resolution {
|
|
956
|
+
/**
|
|
957
|
+
* Aspect ratio of the image (width/height)
|
|
958
|
+
*/
|
|
959
|
+
aspect_ratio?: number;
|
|
960
|
+
/**
|
|
961
|
+
* Height of the image in pixels
|
|
962
|
+
*/
|
|
963
|
+
height?: number;
|
|
964
|
+
/**
|
|
965
|
+
* Width of the image in pixels
|
|
966
|
+
*/
|
|
967
|
+
width?: number;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
export interface BrandScreenshotResponse {
|
|
973
|
+
/**
|
|
974
|
+
* HTTP status code
|
|
975
|
+
*/
|
|
976
|
+
code?: number;
|
|
977
|
+
/**
|
|
978
|
+
* The normalized domain that was processed
|
|
979
|
+
*/
|
|
980
|
+
domain?: string;
|
|
981
|
+
/**
|
|
982
|
+
* Public URL of the uploaded screenshot image
|
|
983
|
+
*/
|
|
984
|
+
screenshot?: string;
|
|
985
|
+
/**
|
|
986
|
+
* Type of screenshot that was captured
|
|
987
|
+
*/
|
|
988
|
+
screenshotType?: 'viewport' | 'fullPage';
|
|
989
|
+
/**
|
|
990
|
+
* Status of the response, e.g., 'ok'
|
|
991
|
+
*/
|
|
992
|
+
status?: string;
|
|
993
|
+
}
|
|
750
994
|
export type BrandSearchResponse = Array<BrandSearchResponse.BrandSearchResponseItem>;
|
|
751
995
|
export declare namespace BrandSearchResponse {
|
|
752
996
|
interface BrandSearchResponseItem {
|
|
@@ -764,6 +1008,279 @@ export declare namespace BrandSearchResponse {
|
|
|
764
1008
|
title?: string;
|
|
765
1009
|
}
|
|
766
1010
|
}
|
|
1011
|
+
export interface BrandStyleguideResponse {
|
|
1012
|
+
/**
|
|
1013
|
+
* HTTP status code
|
|
1014
|
+
*/
|
|
1015
|
+
code?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* The normalized domain that was processed
|
|
1018
|
+
*/
|
|
1019
|
+
domain?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Status of the response, e.g., 'ok'
|
|
1022
|
+
*/
|
|
1023
|
+
status?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Comprehensive styleguide data extracted from the website
|
|
1026
|
+
*/
|
|
1027
|
+
styleguide?: BrandStyleguideResponse.Styleguide;
|
|
1028
|
+
}
|
|
1029
|
+
export declare namespace BrandStyleguideResponse {
|
|
1030
|
+
/**
|
|
1031
|
+
* Comprehensive styleguide data extracted from the website
|
|
1032
|
+
*/
|
|
1033
|
+
interface Styleguide {
|
|
1034
|
+
/**
|
|
1035
|
+
* Primary colors used on the website
|
|
1036
|
+
*/
|
|
1037
|
+
colors?: Styleguide.Colors;
|
|
1038
|
+
/**
|
|
1039
|
+
* UI component styles
|
|
1040
|
+
*/
|
|
1041
|
+
components?: Styleguide.Components;
|
|
1042
|
+
/**
|
|
1043
|
+
* Spacing system used on the website
|
|
1044
|
+
*/
|
|
1045
|
+
elementSpacing?: Styleguide.ElementSpacing;
|
|
1046
|
+
/**
|
|
1047
|
+
* Shadow styles used on the website
|
|
1048
|
+
*/
|
|
1049
|
+
shadows?: Styleguide.Shadows;
|
|
1050
|
+
/**
|
|
1051
|
+
* Typography styles used on the website
|
|
1052
|
+
*/
|
|
1053
|
+
typography?: Styleguide.Typography;
|
|
1054
|
+
}
|
|
1055
|
+
namespace Styleguide {
|
|
1056
|
+
/**
|
|
1057
|
+
* Primary colors used on the website
|
|
1058
|
+
*/
|
|
1059
|
+
interface Colors {
|
|
1060
|
+
/**
|
|
1061
|
+
* Accent color of the website (hex format)
|
|
1062
|
+
*/
|
|
1063
|
+
accent?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Background color of the website (hex format)
|
|
1066
|
+
*/
|
|
1067
|
+
background?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* Text color of the website (hex format)
|
|
1070
|
+
*/
|
|
1071
|
+
text?: string;
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* UI component styles
|
|
1075
|
+
*/
|
|
1076
|
+
interface Components {
|
|
1077
|
+
/**
|
|
1078
|
+
* Button component styles
|
|
1079
|
+
*/
|
|
1080
|
+
button?: Components.Button;
|
|
1081
|
+
/**
|
|
1082
|
+
* Card component style
|
|
1083
|
+
*/
|
|
1084
|
+
card?: Components.Card;
|
|
1085
|
+
}
|
|
1086
|
+
namespace Components {
|
|
1087
|
+
/**
|
|
1088
|
+
* Button component styles
|
|
1089
|
+
*/
|
|
1090
|
+
interface Button {
|
|
1091
|
+
/**
|
|
1092
|
+
* Link button style
|
|
1093
|
+
*/
|
|
1094
|
+
link?: Button.Link;
|
|
1095
|
+
/**
|
|
1096
|
+
* Primary button style
|
|
1097
|
+
*/
|
|
1098
|
+
primary?: Button.Primary;
|
|
1099
|
+
/**
|
|
1100
|
+
* Secondary button style
|
|
1101
|
+
*/
|
|
1102
|
+
secondary?: Button.Secondary;
|
|
1103
|
+
}
|
|
1104
|
+
namespace Button {
|
|
1105
|
+
/**
|
|
1106
|
+
* Link button style
|
|
1107
|
+
*/
|
|
1108
|
+
interface Link {
|
|
1109
|
+
backgroundColor?: string;
|
|
1110
|
+
borderColor?: string;
|
|
1111
|
+
borderRadius?: string;
|
|
1112
|
+
borderStyle?: string;
|
|
1113
|
+
borderWidth?: string;
|
|
1114
|
+
boxShadow?: string;
|
|
1115
|
+
color?: string;
|
|
1116
|
+
fontSize?: string;
|
|
1117
|
+
fontWeight?: number;
|
|
1118
|
+
padding?: string;
|
|
1119
|
+
textDecoration?: string;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Primary button style
|
|
1123
|
+
*/
|
|
1124
|
+
interface Primary {
|
|
1125
|
+
backgroundColor?: string;
|
|
1126
|
+
borderColor?: string;
|
|
1127
|
+
borderRadius?: string;
|
|
1128
|
+
borderStyle?: string;
|
|
1129
|
+
borderWidth?: string;
|
|
1130
|
+
boxShadow?: string;
|
|
1131
|
+
color?: string;
|
|
1132
|
+
fontSize?: string;
|
|
1133
|
+
fontWeight?: number;
|
|
1134
|
+
padding?: string;
|
|
1135
|
+
textDecoration?: string;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Secondary button style
|
|
1139
|
+
*/
|
|
1140
|
+
interface Secondary {
|
|
1141
|
+
backgroundColor?: string;
|
|
1142
|
+
borderColor?: string;
|
|
1143
|
+
borderRadius?: string;
|
|
1144
|
+
borderStyle?: string;
|
|
1145
|
+
borderWidth?: string;
|
|
1146
|
+
boxShadow?: string;
|
|
1147
|
+
color?: string;
|
|
1148
|
+
fontSize?: string;
|
|
1149
|
+
fontWeight?: number;
|
|
1150
|
+
padding?: string;
|
|
1151
|
+
textDecoration?: string;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Card component style
|
|
1156
|
+
*/
|
|
1157
|
+
interface Card {
|
|
1158
|
+
backgroundColor?: string;
|
|
1159
|
+
borderColor?: string;
|
|
1160
|
+
borderRadius?: string;
|
|
1161
|
+
borderStyle?: string;
|
|
1162
|
+
borderWidth?: string;
|
|
1163
|
+
boxShadow?: string;
|
|
1164
|
+
padding?: string;
|
|
1165
|
+
textColor?: string;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
/**
|
|
1169
|
+
* Spacing system used on the website
|
|
1170
|
+
*/
|
|
1171
|
+
interface ElementSpacing {
|
|
1172
|
+
/**
|
|
1173
|
+
* Large spacing value
|
|
1174
|
+
*/
|
|
1175
|
+
lg?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Medium spacing value
|
|
1178
|
+
*/
|
|
1179
|
+
md?: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Small spacing value
|
|
1182
|
+
*/
|
|
1183
|
+
sm?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Extra large spacing value
|
|
1186
|
+
*/
|
|
1187
|
+
xl?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Extra small spacing value
|
|
1190
|
+
*/
|
|
1191
|
+
xs?: string;
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Shadow styles used on the website
|
|
1195
|
+
*/
|
|
1196
|
+
interface Shadows {
|
|
1197
|
+
/**
|
|
1198
|
+
* Inner shadow value
|
|
1199
|
+
*/
|
|
1200
|
+
inner?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* Large shadow value
|
|
1203
|
+
*/
|
|
1204
|
+
lg?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* Medium shadow value
|
|
1207
|
+
*/
|
|
1208
|
+
md?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Small shadow value
|
|
1211
|
+
*/
|
|
1212
|
+
sm?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Extra large shadow value
|
|
1215
|
+
*/
|
|
1216
|
+
xl?: string;
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Typography styles used on the website
|
|
1220
|
+
*/
|
|
1221
|
+
interface Typography {
|
|
1222
|
+
/**
|
|
1223
|
+
* Heading styles
|
|
1224
|
+
*/
|
|
1225
|
+
headings?: Typography.Headings;
|
|
1226
|
+
/**
|
|
1227
|
+
* Paragraph text styles
|
|
1228
|
+
*/
|
|
1229
|
+
p?: Typography.P;
|
|
1230
|
+
}
|
|
1231
|
+
namespace Typography {
|
|
1232
|
+
/**
|
|
1233
|
+
* Heading styles
|
|
1234
|
+
*/
|
|
1235
|
+
interface Headings {
|
|
1236
|
+
h1?: Headings.H1;
|
|
1237
|
+
h2?: Headings.H2;
|
|
1238
|
+
h3?: Headings.H3;
|
|
1239
|
+
h4?: Headings.H4;
|
|
1240
|
+
}
|
|
1241
|
+
namespace Headings {
|
|
1242
|
+
interface H1 {
|
|
1243
|
+
fontFamily?: string;
|
|
1244
|
+
fontSize?: string;
|
|
1245
|
+
fontWeight?: number;
|
|
1246
|
+
letterSpacing?: string;
|
|
1247
|
+
lineHeight?: string;
|
|
1248
|
+
}
|
|
1249
|
+
interface H2 {
|
|
1250
|
+
fontFamily?: string;
|
|
1251
|
+
fontSize?: string;
|
|
1252
|
+
fontWeight?: number;
|
|
1253
|
+
letterSpacing?: string;
|
|
1254
|
+
lineHeight?: string;
|
|
1255
|
+
}
|
|
1256
|
+
interface H3 {
|
|
1257
|
+
fontFamily?: string;
|
|
1258
|
+
fontSize?: string;
|
|
1259
|
+
fontWeight?: number;
|
|
1260
|
+
letterSpacing?: string;
|
|
1261
|
+
lineHeight?: string;
|
|
1262
|
+
}
|
|
1263
|
+
interface H4 {
|
|
1264
|
+
fontFamily?: string;
|
|
1265
|
+
fontSize?: string;
|
|
1266
|
+
fontWeight?: number;
|
|
1267
|
+
letterSpacing?: string;
|
|
1268
|
+
lineHeight?: string;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Paragraph text styles
|
|
1273
|
+
*/
|
|
1274
|
+
interface P {
|
|
1275
|
+
fontFamily?: string;
|
|
1276
|
+
fontSize?: string;
|
|
1277
|
+
fontWeight?: number;
|
|
1278
|
+
letterSpacing?: string;
|
|
1279
|
+
lineHeight?: string;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
767
1284
|
export interface BrandRetrieveParams {
|
|
768
1285
|
/**
|
|
769
1286
|
* Domain name to retrieve brand data for
|
|
@@ -773,18 +1290,131 @@ export interface BrandRetrieveParams {
|
|
|
773
1290
|
* Optional parameter to force the language of the retrieved brand data
|
|
774
1291
|
*/
|
|
775
1292
|
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';
|
|
1293
|
+
/**
|
|
1294
|
+
* Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
1295
|
+
* the API will skip time-consuming operations for faster response at the cost of
|
|
1296
|
+
* less comprehensive data.
|
|
1297
|
+
*/
|
|
1298
|
+
maxSpeed?: boolean;
|
|
1299
|
+
/**
|
|
1300
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1301
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1302
|
+
* value is 300000ms (5 minutes).
|
|
1303
|
+
*/
|
|
1304
|
+
timeoutMS?: number;
|
|
1305
|
+
}
|
|
1306
|
+
export interface BrandAIQueryParams {
|
|
1307
|
+
/**
|
|
1308
|
+
* Array of data points to extract from the website
|
|
1309
|
+
*/
|
|
1310
|
+
data_to_extract: Array<BrandAIQueryParams.DataToExtract>;
|
|
1311
|
+
/**
|
|
1312
|
+
* The domain name to analyze
|
|
1313
|
+
*/
|
|
1314
|
+
domain: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* Optional object specifying which pages to analyze
|
|
1317
|
+
*/
|
|
1318
|
+
specific_pages?: BrandAIQueryParams.SpecificPages;
|
|
1319
|
+
/**
|
|
1320
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1321
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1322
|
+
* value is 300000ms (5 minutes).
|
|
1323
|
+
*/
|
|
1324
|
+
timeoutMS?: number;
|
|
1325
|
+
}
|
|
1326
|
+
export declare namespace BrandAIQueryParams {
|
|
1327
|
+
interface DataToExtract {
|
|
1328
|
+
/**
|
|
1329
|
+
* Description of what to extract
|
|
1330
|
+
*/
|
|
1331
|
+
datapoint_description: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* Example of the expected value
|
|
1334
|
+
*/
|
|
1335
|
+
datapoint_example: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Name of the data point to extract
|
|
1338
|
+
*/
|
|
1339
|
+
datapoint_name: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Type of the data point
|
|
1342
|
+
*/
|
|
1343
|
+
datapoint_type: 'text' | 'number' | 'date' | 'boolean' | 'list' | 'url';
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1346
|
+
* Optional object specifying which pages to analyze
|
|
1347
|
+
*/
|
|
1348
|
+
interface SpecificPages {
|
|
1349
|
+
/**
|
|
1350
|
+
* Whether to analyze the about us page
|
|
1351
|
+
*/
|
|
1352
|
+
about_us?: boolean;
|
|
1353
|
+
/**
|
|
1354
|
+
* Whether to analyze the blog
|
|
1355
|
+
*/
|
|
1356
|
+
blog?: boolean;
|
|
1357
|
+
/**
|
|
1358
|
+
* Whether to analyze the careers page
|
|
1359
|
+
*/
|
|
1360
|
+
careers?: boolean;
|
|
1361
|
+
/**
|
|
1362
|
+
* Whether to analyze the contact us page
|
|
1363
|
+
*/
|
|
1364
|
+
contact_us?: boolean;
|
|
1365
|
+
/**
|
|
1366
|
+
* Whether to analyze the FAQ page
|
|
1367
|
+
*/
|
|
1368
|
+
faq?: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* Whether to analyze the home page
|
|
1371
|
+
*/
|
|
1372
|
+
home_page?: boolean;
|
|
1373
|
+
/**
|
|
1374
|
+
* Whether to analyze the privacy policy page
|
|
1375
|
+
*/
|
|
1376
|
+
privacy_policy?: boolean;
|
|
1377
|
+
/**
|
|
1378
|
+
* Whether to analyze the terms and conditions page
|
|
1379
|
+
*/
|
|
1380
|
+
terms_and_conditions?: boolean;
|
|
1381
|
+
}
|
|
776
1382
|
}
|
|
777
1383
|
export interface BrandIdentifyFromTransactionParams {
|
|
778
1384
|
/**
|
|
779
1385
|
* Transaction information to identify the brand
|
|
780
1386
|
*/
|
|
781
1387
|
transaction_info: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1390
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1391
|
+
* value is 300000ms (5 minutes).
|
|
1392
|
+
*/
|
|
1393
|
+
timeoutMS?: number;
|
|
1394
|
+
}
|
|
1395
|
+
export interface BrandPrefetchParams {
|
|
1396
|
+
/**
|
|
1397
|
+
* Domain name to prefetch brand data for
|
|
1398
|
+
*/
|
|
1399
|
+
domain: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1402
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1403
|
+
* value is 300000ms (5 minutes).
|
|
1404
|
+
*/
|
|
1405
|
+
timeoutMS?: number;
|
|
782
1406
|
}
|
|
783
1407
|
export interface BrandRetrieveByTickerParams {
|
|
784
1408
|
/**
|
|
785
1409
|
* Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
|
786
1410
|
*/
|
|
787
1411
|
ticker: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1414
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1415
|
+
* value is 300000ms (5 minutes).
|
|
1416
|
+
*/
|
|
1417
|
+
timeoutMS?: number;
|
|
788
1418
|
}
|
|
789
1419
|
export interface BrandRetrieveNaicsParams {
|
|
790
1420
|
/**
|
|
@@ -793,14 +1423,64 @@ export interface BrandRetrieveNaicsParams {
|
|
|
793
1423
|
* the brand using the provided title.
|
|
794
1424
|
*/
|
|
795
1425
|
input: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1428
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1429
|
+
* value is 300000ms (5 minutes).
|
|
1430
|
+
*/
|
|
1431
|
+
timeoutMS?: number;
|
|
1432
|
+
}
|
|
1433
|
+
export interface BrandRetrieveSimplifiedParams {
|
|
1434
|
+
/**
|
|
1435
|
+
* Domain name to retrieve simplified brand data for
|
|
1436
|
+
*/
|
|
1437
|
+
domain: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1440
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1441
|
+
* value is 300000ms (5 minutes).
|
|
1442
|
+
*/
|
|
1443
|
+
timeoutMS?: number;
|
|
1444
|
+
}
|
|
1445
|
+
export interface BrandScreenshotParams {
|
|
1446
|
+
/**
|
|
1447
|
+
* Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
|
|
1448
|
+
* domain will be automatically normalized and validated.
|
|
1449
|
+
*/
|
|
1450
|
+
domain: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* Optional parameter to determine screenshot type. If 'true', takes a full page
|
|
1453
|
+
* screenshot capturing all content. If 'false' or not provided, takes a viewport
|
|
1454
|
+
* screenshot (standard browser view).
|
|
1455
|
+
*/
|
|
1456
|
+
fullScreenshot?: 'true' | 'false';
|
|
796
1457
|
}
|
|
797
1458
|
export interface BrandSearchParams {
|
|
798
1459
|
/**
|
|
799
1460
|
* Query string to search brands
|
|
800
1461
|
*/
|
|
801
1462
|
query: string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1465
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1466
|
+
* value is 300000ms (5 minutes).
|
|
1467
|
+
*/
|
|
1468
|
+
timeoutMS?: number;
|
|
1469
|
+
}
|
|
1470
|
+
export interface BrandStyleguideParams {
|
|
1471
|
+
/**
|
|
1472
|
+
* Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
|
|
1473
|
+
* domain will be automatically normalized and validated.
|
|
1474
|
+
*/
|
|
1475
|
+
domain: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Optional timeout in milliseconds for the request. If the request takes longer
|
|
1478
|
+
* than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
1479
|
+
* value is 300000ms (5 minutes).
|
|
1480
|
+
*/
|
|
1481
|
+
timeoutMS?: number;
|
|
802
1482
|
}
|
|
803
1483
|
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, };
|
|
1484
|
+
export { type BrandRetrieveResponse as BrandRetrieveResponse, type BrandAIQueryResponse as BrandAIQueryResponse, type BrandIdentifyFromTransactionResponse as BrandIdentifyFromTransactionResponse, type BrandPrefetchResponse as BrandPrefetchResponse, type BrandRetrieveByTickerResponse as BrandRetrieveByTickerResponse, type BrandRetrieveNaicsResponse as BrandRetrieveNaicsResponse, type BrandRetrieveSimplifiedResponse as BrandRetrieveSimplifiedResponse, type BrandScreenshotResponse as BrandScreenshotResponse, type BrandSearchResponse as BrandSearchResponse, type BrandStyleguideResponse as BrandStyleguideResponse, type BrandRetrieveParams as BrandRetrieveParams, type BrandAIQueryParams as BrandAIQueryParams, type BrandIdentifyFromTransactionParams as BrandIdentifyFromTransactionParams, type BrandPrefetchParams as BrandPrefetchParams, type BrandRetrieveByTickerParams as BrandRetrieveByTickerParams, type BrandRetrieveNaicsParams as BrandRetrieveNaicsParams, type BrandRetrieveSimplifiedParams as BrandRetrieveSimplifiedParams, type BrandScreenshotParams as BrandScreenshotParams, type BrandSearchParams as BrandSearchParams, type BrandStyleguideParams as BrandStyleguideParams, };
|
|
805
1485
|
}
|
|
806
1486
|
//# sourceMappingURL=brand.d.mts.map
|