@dealcrawl/sdk 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 (166) hide show
  1. package/README.md +540 -0
  2. package/dist/sdk/src/client.d.ts +285 -0
  3. package/dist/sdk/src/client.d.ts.map +1 -0
  4. package/dist/sdk/src/client.js +336 -0
  5. package/dist/sdk/src/client.js.map +1 -0
  6. package/dist/sdk/src/error.d.ts +54 -0
  7. package/dist/sdk/src/error.d.ts.map +1 -0
  8. package/dist/sdk/src/error.js +115 -0
  9. package/dist/sdk/src/error.js.map +1 -0
  10. package/dist/sdk/src/index.d.ts +58 -0
  11. package/dist/sdk/src/index.d.ts.map +1 -0
  12. package/dist/sdk/src/index.js +65 -0
  13. package/dist/sdk/src/index.js.map +1 -0
  14. package/dist/sdk/src/resources/account.d.ts +143 -0
  15. package/dist/sdk/src/resources/account.d.ts.map +1 -0
  16. package/dist/sdk/src/resources/account.js +186 -0
  17. package/dist/sdk/src/resources/account.js.map +1 -0
  18. package/dist/sdk/src/resources/crawl.d.ts +87 -0
  19. package/dist/sdk/src/resources/crawl.d.ts.map +1 -0
  20. package/dist/sdk/src/resources/crawl.js +205 -0
  21. package/dist/sdk/src/resources/crawl.js.map +1 -0
  22. package/dist/sdk/src/resources/data.d.ts +157 -0
  23. package/dist/sdk/src/resources/data.d.ts.map +1 -0
  24. package/dist/sdk/src/resources/data.js +239 -0
  25. package/dist/sdk/src/resources/data.js.map +1 -0
  26. package/dist/sdk/src/resources/dork.d.ts +104 -0
  27. package/dist/sdk/src/resources/dork.d.ts.map +1 -0
  28. package/dist/sdk/src/resources/dork.js +163 -0
  29. package/dist/sdk/src/resources/dork.js.map +1 -0
  30. package/dist/sdk/src/resources/extract.d.ts +105 -0
  31. package/dist/sdk/src/resources/extract.d.ts.map +1 -0
  32. package/dist/sdk/src/resources/extract.js +246 -0
  33. package/dist/sdk/src/resources/extract.js.map +1 -0
  34. package/dist/sdk/src/resources/index.d.ts +14 -0
  35. package/dist/sdk/src/resources/index.d.ts.map +1 -0
  36. package/dist/sdk/src/resources/index.js +14 -0
  37. package/dist/sdk/src/resources/index.js.map +1 -0
  38. package/dist/sdk/src/resources/keys.d.ts +124 -0
  39. package/dist/sdk/src/resources/keys.d.ts.map +1 -0
  40. package/dist/sdk/src/resources/keys.js +168 -0
  41. package/dist/sdk/src/resources/keys.js.map +1 -0
  42. package/dist/sdk/src/resources/scrape.d.ts +53 -0
  43. package/dist/sdk/src/resources/scrape.d.ts.map +1 -0
  44. package/dist/sdk/src/resources/scrape.js +85 -0
  45. package/dist/sdk/src/resources/scrape.js.map +1 -0
  46. package/dist/sdk/src/resources/status.d.ts +100 -0
  47. package/dist/sdk/src/resources/status.d.ts.map +1 -0
  48. package/dist/sdk/src/resources/status.js +133 -0
  49. package/dist/sdk/src/resources/status.js.map +1 -0
  50. package/dist/sdk/src/resources/webhooks.d.ts +126 -0
  51. package/dist/sdk/src/resources/webhooks.d.ts.map +1 -0
  52. package/dist/sdk/src/resources/webhooks.js +167 -0
  53. package/dist/sdk/src/resources/webhooks.js.map +1 -0
  54. package/dist/sdk/src/types/config.d.ts +45 -0
  55. package/dist/sdk/src/types/config.d.ts.map +1 -0
  56. package/dist/sdk/src/types/config.js +10 -0
  57. package/dist/sdk/src/types/config.js.map +1 -0
  58. package/dist/sdk/src/types/index.d.ts +8 -0
  59. package/dist/sdk/src/types/index.d.ts.map +1 -0
  60. package/dist/sdk/src/types/index.js +8 -0
  61. package/dist/sdk/src/types/index.js.map +1 -0
  62. package/dist/sdk/src/types/options.d.ts +286 -0
  63. package/dist/sdk/src/types/options.d.ts.map +1 -0
  64. package/dist/sdk/src/types/options.js +6 -0
  65. package/dist/sdk/src/types/options.js.map +1 -0
  66. package/dist/sdk/src/types/responses.d.ts +385 -0
  67. package/dist/sdk/src/types/responses.d.ts.map +1 -0
  68. package/dist/sdk/src/types/responses.js +6 -0
  69. package/dist/sdk/src/types/responses.js.map +1 -0
  70. package/dist/sdk/src/utils/polling.d.ts +57 -0
  71. package/dist/sdk/src/utils/polling.d.ts.map +1 -0
  72. package/dist/sdk/src/utils/polling.js +110 -0
  73. package/dist/sdk/src/utils/polling.js.map +1 -0
  74. package/dist/sdk/src/utils/request.d.ts +47 -0
  75. package/dist/sdk/src/utils/request.d.ts.map +1 -0
  76. package/dist/sdk/src/utils/request.js +161 -0
  77. package/dist/sdk/src/utils/request.js.map +1 -0
  78. package/dist/shared/src/constants/errors.d.ts +26 -0
  79. package/dist/shared/src/constants/errors.d.ts.map +1 -0
  80. package/dist/shared/src/constants/errors.js +39 -0
  81. package/dist/shared/src/constants/errors.js.map +1 -0
  82. package/dist/shared/src/constants/http.d.ts +26 -0
  83. package/dist/shared/src/constants/http.d.ts.map +1 -0
  84. package/dist/shared/src/constants/http.js +26 -0
  85. package/dist/shared/src/constants/http.js.map +1 -0
  86. package/dist/shared/src/constants/index.d.ts +4 -0
  87. package/dist/shared/src/constants/index.d.ts.map +1 -0
  88. package/dist/shared/src/constants/index.js +5 -0
  89. package/dist/shared/src/constants/index.js.map +1 -0
  90. package/dist/shared/src/constants/limits.d.ts +52 -0
  91. package/dist/shared/src/constants/limits.d.ts.map +1 -0
  92. package/dist/shared/src/constants/limits.js +43 -0
  93. package/dist/shared/src/constants/limits.js.map +1 -0
  94. package/dist/shared/src/index.d.ts +5 -0
  95. package/dist/shared/src/index.d.ts.map +1 -0
  96. package/dist/shared/src/index.js +11 -0
  97. package/dist/shared/src/index.js.map +1 -0
  98. package/dist/shared/src/lib/index.d.ts +2 -0
  99. package/dist/shared/src/lib/index.d.ts.map +1 -0
  100. package/dist/shared/src/lib/index.js +2 -0
  101. package/dist/shared/src/lib/index.js.map +1 -0
  102. package/dist/shared/src/lib/redis.d.ts +14 -0
  103. package/dist/shared/src/lib/redis.d.ts.map +1 -0
  104. package/dist/shared/src/lib/redis.js +60 -0
  105. package/dist/shared/src/lib/redis.js.map +1 -0
  106. package/dist/shared/src/types/api-key.types.d.ts +94 -0
  107. package/dist/shared/src/types/api-key.types.d.ts.map +1 -0
  108. package/dist/shared/src/types/api-key.types.js +30 -0
  109. package/dist/shared/src/types/api-key.types.js.map +1 -0
  110. package/dist/shared/src/types/api.types.d.ts +38 -0
  111. package/dist/shared/src/types/api.types.d.ts.map +1 -0
  112. package/dist/shared/src/types/api.types.js +2 -0
  113. package/dist/shared/src/types/api.types.js.map +1 -0
  114. package/dist/shared/src/types/client.types.d.ts +73 -0
  115. package/dist/shared/src/types/client.types.d.ts.map +1 -0
  116. package/dist/shared/src/types/client.types.js +9 -0
  117. package/dist/shared/src/types/client.types.js.map +1 -0
  118. package/dist/shared/src/types/crawl.types.d.ts +65 -0
  119. package/dist/shared/src/types/crawl.types.d.ts.map +1 -0
  120. package/dist/shared/src/types/crawl.types.js +2 -0
  121. package/dist/shared/src/types/crawl.types.js.map +1 -0
  122. package/dist/shared/src/types/deal.types.d.ts +210 -0
  123. package/dist/shared/src/types/deal.types.d.ts.map +1 -0
  124. package/dist/shared/src/types/deal.types.js +6 -0
  125. package/dist/shared/src/types/deal.types.js.map +1 -0
  126. package/dist/shared/src/types/dork.types.d.ts +29 -0
  127. package/dist/shared/src/types/dork.types.d.ts.map +1 -0
  128. package/dist/shared/src/types/dork.types.js +2 -0
  129. package/dist/shared/src/types/dork.types.js.map +1 -0
  130. package/dist/shared/src/types/index.d.ts +8 -0
  131. package/dist/shared/src/types/index.d.ts.map +1 -0
  132. package/dist/shared/src/types/index.js +9 -0
  133. package/dist/shared/src/types/index.js.map +1 -0
  134. package/dist/shared/src/types/scrape.types.d.ts +151 -0
  135. package/dist/shared/src/types/scrape.types.d.ts.map +1 -0
  136. package/dist/shared/src/types/scrape.types.js +2 -0
  137. package/dist/shared/src/types/scrape.types.js.map +1 -0
  138. package/dist/shared/src/utils/date.d.ts +7 -0
  139. package/dist/shared/src/utils/date.d.ts.map +1 -0
  140. package/dist/shared/src/utils/date.js +25 -0
  141. package/dist/shared/src/utils/date.js.map +1 -0
  142. package/dist/shared/src/utils/hash.d.ts +4 -0
  143. package/dist/shared/src/utils/hash.d.ts.map +1 -0
  144. package/dist/shared/src/utils/hash.js +21 -0
  145. package/dist/shared/src/utils/hash.js.map +1 -0
  146. package/dist/shared/src/utils/index.d.ts +7 -0
  147. package/dist/shared/src/utils/index.d.ts.map +1 -0
  148. package/dist/shared/src/utils/index.js +8 -0
  149. package/dist/shared/src/utils/index.js.map +1 -0
  150. package/dist/shared/src/utils/logger.d.ts +66 -0
  151. package/dist/shared/src/utils/logger.d.ts.map +1 -0
  152. package/dist/shared/src/utils/logger.js +268 -0
  153. package/dist/shared/src/utils/logger.js.map +1 -0
  154. package/dist/shared/src/utils/retry.d.ts +11 -0
  155. package/dist/shared/src/utils/retry.d.ts.map +1 -0
  156. package/dist/shared/src/utils/retry.js +36 -0
  157. package/dist/shared/src/utils/retry.js.map +1 -0
  158. package/dist/shared/src/utils/url-validator.d.ts +37 -0
  159. package/dist/shared/src/utils/url-validator.d.ts.map +1 -0
  160. package/dist/shared/src/utils/url-validator.js +179 -0
  161. package/dist/shared/src/utils/url-validator.js.map +1 -0
  162. package/dist/shared/src/utils/url.d.ts +6 -0
  163. package/dist/shared/src/utils/url.d.ts.map +1 -0
  164. package/dist/shared/src/utils/url.js +56 -0
  165. package/dist/shared/src/utils/url.js.map +1 -0
  166. package/package.json +49 -0
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Dork Resource
3
+ * Handles Google Dork search operations
4
+ */
5
+ import type { RequestContext } from "../types/config";
6
+ import type { DorkOptions } from "../types/options";
7
+ import type { DorkJobResponse } from "../types/responses";
8
+ /**
9
+ * Dork resource class
10
+ * Provides methods for Google Dork searches
11
+ */
12
+ export declare class DorkResource {
13
+ private ctx;
14
+ constructor(ctx: RequestContext);
15
+ /**
16
+ * Create a new dork search job
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const job = await client.dork.create({
21
+ * query: "discount coupon",
22
+ * site: "amazon.com",
23
+ * maxResults: 20
24
+ * });
25
+ * console.log(job.jobId);
26
+ * ```
27
+ */
28
+ create(options: DorkOptions): Promise<DorkJobResponse>;
29
+ /**
30
+ * Search for deals on a specific site
31
+ * Convenience method for finding discount pages
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const job = await client.dork.findDeals("amazon.com", {
36
+ * maxResults: 50
37
+ * });
38
+ * ```
39
+ */
40
+ findDeals(site: string, options?: Omit<DorkOptions, "query" | "site">): Promise<DorkJobResponse>;
41
+ /**
42
+ * Search for product pages on a site
43
+ * Looks for common product URL patterns
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const job = await client.dork.findProducts("shop.example.com", {
48
+ * maxResults: 100
49
+ * });
50
+ * ```
51
+ */
52
+ findProducts(site: string, options?: Omit<DorkOptions, "query" | "site" | "inUrl">): Promise<DorkJobResponse>;
53
+ /**
54
+ * Search for PDFs on a site
55
+ * Useful for finding manuals, guides, datasheets
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const job = await client.dork.findPDFs("docs.example.com", "user guide");
60
+ * ```
61
+ */
62
+ findPDFs(site: string, query?: string, options?: Omit<DorkOptions, "query" | "site" | "fileType">): Promise<DorkJobResponse>;
63
+ /**
64
+ * Search with custom title filter
65
+ * Find pages with specific terms in title
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const job = await client.dork.inTitle("Black Friday", {
70
+ * site: "bestbuy.com",
71
+ * maxResults: 30
72
+ * });
73
+ * ```
74
+ */
75
+ inTitle(titleQuery: string, options?: Omit<DorkOptions, "inTitle">): Promise<DorkJobResponse>;
76
+ /**
77
+ * Search with custom URL filter
78
+ * Find pages with specific terms in URL
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * const job = await client.dork.inUrl("clearance", {
83
+ * site: "walmart.com"
84
+ * });
85
+ * ```
86
+ */
87
+ inUrl(urlQuery: string, options?: Omit<DorkOptions, "inUrl">): Promise<DorkJobResponse>;
88
+ /**
89
+ * Build a raw Google dork query string
90
+ * Useful for preview or debugging
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const query = client.dork.buildQuery({
95
+ * query: "laptop deals",
96
+ * site: "amazon.com",
97
+ * inTitle: "discount"
98
+ * });
99
+ * // Returns: "laptop deals site:amazon.com intitle:discount"
100
+ * ```
101
+ */
102
+ buildQuery(options: DorkOptions): string;
103
+ }
104
+ //# sourceMappingURL=dork.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dork.d.ts","sourceRoot":"","sources":["../../../../src/resources/dork.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D;;;GAGG;AACH,qBAAa,YAAY;IACX,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,cAAc;IAEvC;;;;;;;;;;;;OAYG;IACG,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAe5D;;;;;;;;;;OAUG;IACG,SAAS,CACb,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC,GAC5C,OAAO,CAAC,eAAe,CAAC;IAQ3B;;;;;;;;;;OAUG;IACG,YAAY,CAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,GACtD,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;;;OAQG;IACG,QAAQ,CACZ,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC,GACzD,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;;;;;;OAWG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GACrC,OAAO,CAAC,eAAe,CAAC;IAQ3B;;;;;;;;;;OAUG;IACG,KAAK,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,eAAe,CAAC;IAQ3B;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM;CAkBzC"}
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Dork Resource
3
+ * Handles Google Dork search operations
4
+ */
5
+ import { post } from "../utils/request";
6
+ /**
7
+ * Dork resource class
8
+ * Provides methods for Google Dork searches
9
+ */
10
+ export class DorkResource {
11
+ ctx;
12
+ constructor(ctx) {
13
+ this.ctx = ctx;
14
+ }
15
+ /**
16
+ * Create a new dork search job
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const job = await client.dork.create({
21
+ * query: "discount coupon",
22
+ * site: "amazon.com",
23
+ * maxResults: 20
24
+ * });
25
+ * console.log(job.jobId);
26
+ * ```
27
+ */
28
+ async create(options) {
29
+ const body = {
30
+ query: options.query,
31
+ site: options.site,
32
+ fileType: options.fileType,
33
+ inUrl: options.inUrl,
34
+ inTitle: options.inTitle,
35
+ maxResults: options.maxResults,
36
+ region: options.region,
37
+ };
38
+ const result = await post(this.ctx, "/v1/dork", body);
39
+ return result.data;
40
+ }
41
+ /**
42
+ * Search for deals on a specific site
43
+ * Convenience method for finding discount pages
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const job = await client.dork.findDeals("amazon.com", {
48
+ * maxResults: 50
49
+ * });
50
+ * ```
51
+ */
52
+ async findDeals(site, options) {
53
+ return this.create({
54
+ query: "discount OR coupon OR sale OR promo OR deal",
55
+ site,
56
+ ...options,
57
+ });
58
+ }
59
+ /**
60
+ * Search for product pages on a site
61
+ * Looks for common product URL patterns
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const job = await client.dork.findProducts("shop.example.com", {
66
+ * maxResults: 100
67
+ * });
68
+ * ```
69
+ */
70
+ async findProducts(site, options) {
71
+ return this.create({
72
+ query: "product OR item OR buy",
73
+ site,
74
+ inUrl: "product",
75
+ ...options,
76
+ });
77
+ }
78
+ /**
79
+ * Search for PDFs on a site
80
+ * Useful for finding manuals, guides, datasheets
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const job = await client.dork.findPDFs("docs.example.com", "user guide");
85
+ * ```
86
+ */
87
+ async findPDFs(site, query, options) {
88
+ return this.create({
89
+ query: query || "*",
90
+ site,
91
+ fileType: "pdf",
92
+ ...options,
93
+ });
94
+ }
95
+ /**
96
+ * Search with custom title filter
97
+ * Find pages with specific terms in title
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const job = await client.dork.inTitle("Black Friday", {
102
+ * site: "bestbuy.com",
103
+ * maxResults: 30
104
+ * });
105
+ * ```
106
+ */
107
+ async inTitle(titleQuery, options) {
108
+ return this.create({
109
+ query: options?.query || titleQuery,
110
+ inTitle: titleQuery,
111
+ ...options,
112
+ });
113
+ }
114
+ /**
115
+ * Search with custom URL filter
116
+ * Find pages with specific terms in URL
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * const job = await client.dork.inUrl("clearance", {
121
+ * site: "walmart.com"
122
+ * });
123
+ * ```
124
+ */
125
+ async inUrl(urlQuery, options) {
126
+ return this.create({
127
+ query: options?.query || urlQuery,
128
+ inUrl: urlQuery,
129
+ ...options,
130
+ });
131
+ }
132
+ /**
133
+ * Build a raw Google dork query string
134
+ * Useful for preview or debugging
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * const query = client.dork.buildQuery({
139
+ * query: "laptop deals",
140
+ * site: "amazon.com",
141
+ * inTitle: "discount"
142
+ * });
143
+ * // Returns: "laptop deals site:amazon.com intitle:discount"
144
+ * ```
145
+ */
146
+ buildQuery(options) {
147
+ const parts = [options.query];
148
+ if (options.site) {
149
+ parts.push(`site:${options.site}`);
150
+ }
151
+ if (options.fileType) {
152
+ parts.push(`filetype:${options.fileType}`);
153
+ }
154
+ if (options.inUrl) {
155
+ parts.push(`inurl:${options.inUrl}`);
156
+ }
157
+ if (options.inTitle) {
158
+ parts.push(`intitle:${options.inTitle}`);
159
+ }
160
+ return parts.join(" ");
161
+ }
162
+ }
163
+ //# sourceMappingURL=dork.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dork.js","sourceRoot":"","sources":["../../../../src/resources/dork.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC;;;GAGG;AACH,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,GAAmB;QAAnB,QAAG,GAAH,GAAG,CAAgB;IAAG,CAAC;IAE3C;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CAAC,OAAoB;QAC/B,MAAM,IAAI,GAAG;YACX,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAkB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QACvE,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,SAAS,CACb,IAAY,EACZ,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC;YACjB,KAAK,EAAE,6CAA6C;YACpD,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KA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7C,CAAC;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,KAAK,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,KAAK,CAAC,IAAI,CAAC,WAAW,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Extract Resource
3
+ * Handles LLM-based structured data extraction
4
+ */
5
+ import type { RequestContext } from "../types/config";
6
+ import type { ExtractOptions } from "../types/options";
7
+ import type { ExtractJobResponse } from "../types/responses";
8
+ /**
9
+ * Extract resource class
10
+ * Provides methods for structured data extraction using LLMs
11
+ */
12
+ export declare class ExtractResource {
13
+ private ctx;
14
+ constructor(ctx: RequestContext);
15
+ /**
16
+ * Create a new extraction job
17
+ * Either schema or prompt must be provided
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * // Schema-based extraction
22
+ * const job = await client.extract.create({
23
+ * url: "https://example.com/product",
24
+ * schema: {
25
+ * type: "object",
26
+ * properties: {
27
+ * name: { type: "string" },
28
+ * price: { type: "number" },
29
+ * features: { type: "array", items: { type: "string" } }
30
+ * }
31
+ * }
32
+ * });
33
+ *
34
+ * // Prompt-based extraction
35
+ * const job = await client.extract.create({
36
+ * url: "https://example.com/article",
37
+ * prompt: "Extract the main points and author name"
38
+ * });
39
+ * ```
40
+ */
41
+ create(options: ExtractOptions): Promise<ExtractJobResponse>;
42
+ /**
43
+ * Extract data using a JSON Schema
44
+ * Convenience method for schema-based extraction
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const job = await client.extract.withSchema(
49
+ * "https://example.com/product",
50
+ * {
51
+ * type: "object",
52
+ * properties: {
53
+ * name: { type: "string" },
54
+ * price: { type: "number" }
55
+ * }
56
+ * }
57
+ * );
58
+ * ```
59
+ */
60
+ withSchema(url: string, schema: Record<string, unknown>, options?: Omit<ExtractOptions, "url" | "schema" | "prompt">): Promise<ExtractJobResponse>;
61
+ /**
62
+ * Extract data using a natural language prompt
63
+ * Convenience method for prompt-based extraction
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const job = await client.extract.withPrompt(
68
+ * "https://example.com/article",
69
+ * "Extract the article title, author, publication date, and a brief summary"
70
+ * );
71
+ * ```
72
+ */
73
+ withPrompt(url: string, prompt: string, options?: Omit<ExtractOptions, "url" | "schema" | "prompt">): Promise<ExtractJobResponse>;
74
+ /**
75
+ * Extract product information from a page
76
+ * Pre-built schema for common e-commerce use case
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const job = await client.extract.product("https://shop.example.com/item");
81
+ * ```
82
+ */
83
+ product(url: string, options?: Omit<ExtractOptions, "url" | "schema" | "prompt">): Promise<ExtractJobResponse>;
84
+ /**
85
+ * Extract article/blog post information
86
+ * Pre-built schema for content extraction
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const job = await client.extract.article("https://blog.example.com/post");
91
+ * ```
92
+ */
93
+ article(url: string, options?: Omit<ExtractOptions, "url" | "schema" | "prompt">): Promise<ExtractJobResponse>;
94
+ /**
95
+ * Extract contact information from a page
96
+ * Pre-built schema for contact page scraping
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * const job = await client.extract.contact("https://example.com/contact");
101
+ * ```
102
+ */
103
+ contact(url: string, options?: Omit<ExtractOptions, "url" | "schema" | "prompt">): Promise<ExtractJobResponse>;
104
+ }
105
+ //# sourceMappingURL=extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../../src/resources/extract.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,kBAAkB,CAAC;AACrE,OA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,0 +1,246 @@
1
+ /**
2
+ * Extract Resource
3
+ * Handles LLM-based structured data extraction
4
+ */
5
+ import { post } from "../utils/request";
6
+ /**
7
+ * Extract resource class
8
+ * Provides methods for structured data extraction using LLMs
9
+ */
10
+ export class ExtractResource {
11
+ ctx;
12
+ constructor(ctx) {
13
+ this.ctx = ctx;
14
+ }
15
+ /**
16
+ * Create a new extraction job
17
+ * Either schema or prompt must be provided
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * // Schema-based extraction
22
+ * const job = await client.extract.create({
23
+ * url: "https://example.com/product",
24
+ * schema: {
25
+ * type: "object",
26
+ * properties: {
27
+ * name: { type: "string" },
28
+ * price: { type: "number" },
29
+ * features: { type: "array", items: { type: "string" } }
30
+ * }
31
+ * }
32
+ * });
33
+ *
34
+ * // Prompt-based extraction
35
+ * const job = await client.extract.create({
36
+ * url: "https://example.com/article",
37
+ * prompt: "Extract the main points and author name"
38
+ * });
39
+ * ```
40
+ */
41
+ async create(options) {
42
+ if (!options.schema && !options.prompt) {
43
+ throw new Error("Either 'schema' or 'prompt' must be provided");
44
+ }
45
+ const body = {
46
+ url: options.url,
47
+ schema: options.schema,
48
+ prompt: options.prompt,
49
+ onlyMainContent: options.onlyMainContent,
50
+ excludeTags: options.excludeTags,
51
+ excludeSelectors: options.excludeSelectors,
52
+ model: options.model,
53
+ temperature: options.temperature,
54
+ webhook: options.webhook,
55
+ headers: options.headers,
56
+ timeout: options.timeout,
57
+ };
58
+ const result = await post(this.ctx, "/v1/extract", body);
59
+ return result.data;
60
+ }
61
+ /**
62
+ * Extract data using a JSON Schema
63
+ * Convenience method for schema-based extraction
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const job = await client.extract.withSchema(
68
+ * "https://example.com/product",
69
+ * {
70
+ * type: "object",
71
+ * properties: {
72
+ * name: { type: "string" },
73
+ * price: { type: "number" }
74
+ * }
75
+ * }
76
+ * );
77
+ * ```
78
+ */
79
+ async withSchema(url, schema, options) {
80
+ return this.create({
81
+ url,
82
+ schema,
83
+ ...options,
84
+ });
85
+ }
86
+ /**
87
+ * Extract data using a natural language prompt
88
+ * Convenience method for prompt-based extraction
89
+ *
90
+ * @example
91
+ * ```ts
92
+ * const job = await client.extract.withPrompt(
93
+ * "https://example.com/article",
94
+ * "Extract the article title, author, publication date, and a brief summary"
95
+ * );
96
+ * ```
97
+ */
98
+ async withPrompt(url, prompt, options) {
99
+ return this.create({
100
+ url,
101
+ prompt,
102
+ ...options,
103
+ });
104
+ }
105
+ /**
106
+ * Extract product information from a page
107
+ * Pre-built schema for common e-commerce use case
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * const job = await client.extract.product("https://shop.example.com/item");
112
+ * ```
113
+ */
114
+ async product(url, options) {
115
+ const productSchema = {
116
+ type: "object",
117
+ properties: {
118
+ name: { type: "string", description: "Product name" },
119
+ brand: { type: "string", description: "Brand name" },
120
+ price: { type: "number", description: "Current price" },
121
+ originalPrice: {
122
+ type: "number",
123
+ description: "Original price before discount",
124
+ },
125
+ currency: {
126
+ type: "string",
127
+ description: "Currency code (USD, EUR, etc.)",
128
+ },
129
+ description: { type: "string", description: "Product description" },
130
+ features: {
131
+ type: "array",
132
+ items: { type: "string" },
133
+ description: "List of product features",
134
+ },
135
+ images: {
136
+ type: "array",
137
+ items: { type: "string" },
138
+ description: "Product image URLs",
139
+ },
140
+ availability: {
141
+ type: "string",
142
+ description: "In stock, out of stock, etc.",
143
+ },
144
+ rating: { type: "number", description: "Average rating" },
145
+ reviewCount: { type: "number", description: "Number of reviews" },
146
+ },
147
+ required: ["name", "price"],
148
+ };
149
+ return this.create({
150
+ url,
151
+ schema: productSchema,
152
+ model: "gpt-4o-mini",
153
+ ...options,
154
+ });
155
+ }
156
+ /**
157
+ * Extract article/blog post information
158
+ * Pre-built schema for content extraction
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const job = await client.extract.article("https://blog.example.com/post");
163
+ * ```
164
+ */
165
+ async article(url, options) {
166
+ const articleSchema = {
167
+ type: "object",
168
+ properties: {
169
+ title: { type: "string", description: "Article title" },
170
+ author: { type: "string", description: "Author name" },
171
+ publishedAt: { type: "string", description: "Publication date" },
172
+ summary: {
173
+ type: "string",
174
+ description: "Brief summary of the article",
175
+ },
176
+ content: { type: "string", description: "Main article content" },
177
+ tags: {
178
+ type: "array",
179
+ items: { type: "string" },
180
+ description: "Article tags or categories",
181
+ },
182
+ readingTime: {
183
+ type: "number",
184
+ description: "Estimated reading time in minutes",
185
+ },
186
+ },
187
+ required: ["title", "content"],
188
+ };
189
+ return this.create({
190
+ url,
191
+ schema: articleSchema,
192
+ onlyMainContent: true,
193
+ ...options,
194
+ });
195
+ }
196
+ /**
197
+ * Extract contact information from a page
198
+ * Pre-built schema for contact page scraping
199
+ *
200
+ * @example
201
+ * ```ts
202
+ * const job = await client.extract.contact("https://example.com/contact");
203
+ * ```
204
+ */
205
+ async contact(url, options) {
206
+ const contactSchema = {
207
+ type: "object",
208
+ properties: {
209
+ companyName: {
210
+ type: "string",
211
+ description: "Company or organization name",
212
+ },
213
+ email: { type: "string", description: "Contact email address" },
214
+ phone: { type: "string", description: "Phone number" },
215
+ address: {
216
+ type: "object",
217
+ properties: {
218
+ street: { type: "string" },
219
+ city: { type: "string" },
220
+ state: { type: "string" },
221
+ postalCode: { type: "string" },
222
+ country: { type: "string" },
223
+ },
224
+ description: "Physical address",
225
+ },
226
+ socialMedia: {
227
+ type: "object",
228
+ properties: {
229
+ twitter: { type: "string" },
230
+ linkedin: { type: "string" },
231
+ facebook: { type: "string" },
232
+ instagram: { type: "string" },
233
+ },
234
+ description: "Social media links",
235
+ },
236
+ },
237
+ };
238
+ return this.create({
239
+ url,
240
+ schema: contactSchema,
241
+ onlyMainContent: false, // Contact info might be in footer
242
+ ...options,
243
+ });
244
+ }
245
+ }
246
+ //# sourceMappingURL=extract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../src/resources/extract.ts"],"names":[],"mappings":"AAAA;;;GAGG;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oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8BAA8B;iBAC5C;gBACD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE;gBAC/D,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;gBACtD,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACzB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC9B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC5B;oBACD,WAAW,EAAE,kBAAkB;iBAChC;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC5B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC9B;oBACD,WAAW,EAAE,oBAAoB;iBAClC;aACF;SACF,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACjB,GAAG;YACH,MAAM,EAAE,aAAa;YACrB,eAAe,EAAE,KAAK,EAAE,kCAAkC;YAC1D,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Resources barrel export
3
+ * Re-exports all resource classes
4
+ */
5
+ export { ScrapeResource } from "./scrape";
6
+ export { CrawlResource } from "./crawl";
7
+ export { ExtractResource } from "./extract";
8
+ export { DorkResource } from "./dork";
9
+ export { StatusResource } from "./status";
10
+ export { DataResource } from "./data";
11
+ export { WebhooksResource } from "./webhooks";
12
+ export { KeysResource } from "./keys";
13
+ export { AccountResource } from "./account";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Resources barrel export
3
+ * Re-exports all resource classes
4
+ */
5
+ export { ScrapeResource } from "./scrape";
6
+ export { CrawlResource } from "./crawl";
7
+ export { ExtractResource } from "./extract";
8
+ export { DorkResource } from "./dork";
9
+ export { StatusResource } from "./status";
10
+ export { DataResource } from "./data";
11
+ export { WebhooksResource } from "./webhooks";
12
+ export { KeysResource } from "./keys";
13
+ export { AccountResource } from "./account";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}