@disconnectme/lightbox-sdk 0.1.2 → 0.1.3
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/dist/index.cjs +42 -0
- package/dist/index.d.cts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +42 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -216,6 +216,48 @@ var LightboxClient = class {
|
|
|
216
216
|
params
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* JavaScript API symbol tracking methods
|
|
222
|
+
*/
|
|
223
|
+
javascript: {
|
|
224
|
+
/**
|
|
225
|
+
* Get the catalog of all JavaScript symbols available for querying.
|
|
226
|
+
* This is a static list of browser APIs monitored during web crawls.
|
|
227
|
+
*/
|
|
228
|
+
catalog: (params) => {
|
|
229
|
+
return this.request(
|
|
230
|
+
"/v1/web/javascript/symbols",
|
|
231
|
+
params
|
|
232
|
+
);
|
|
233
|
+
},
|
|
234
|
+
/**
|
|
235
|
+
* Get all scripts that access a specific JavaScript API symbol.
|
|
236
|
+
*/
|
|
237
|
+
symbols: (symbol, params) => {
|
|
238
|
+
return this.request(
|
|
239
|
+
`/v1/web/javascript/symbols/${encodeURIComponent(symbol)}`,
|
|
240
|
+
params
|
|
241
|
+
);
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Get JavaScript API accesses by scripts from a specific domain.
|
|
245
|
+
*/
|
|
246
|
+
scripts: (domain, params) => {
|
|
247
|
+
return this.request(
|
|
248
|
+
`/v1/web/javascript/scripts/${encodeURIComponent(domain)}`,
|
|
249
|
+
params
|
|
250
|
+
);
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
* Get JavaScript API accesses observed when visiting a specific site.
|
|
254
|
+
*/
|
|
255
|
+
sites: (site, params) => {
|
|
256
|
+
return this.request(
|
|
257
|
+
`/v1/web/javascript/sites/${encodeURIComponent(site)}`,
|
|
258
|
+
params
|
|
259
|
+
);
|
|
260
|
+
}
|
|
219
261
|
}
|
|
220
262
|
};
|
|
221
263
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -281,6 +281,53 @@ interface MetadataSearchParams extends PaginationParams {
|
|
|
281
281
|
search?: string;
|
|
282
282
|
sort?: "popularity" | "name";
|
|
283
283
|
}
|
|
284
|
+
type JavaScriptSymbolCategory = "canvas" | "audio" | "webrtc" | "navigator" | "screen" | "storage" | "cookie" | "referrer";
|
|
285
|
+
interface JavaScriptSymbolCatalogItem {
|
|
286
|
+
symbol: string;
|
|
287
|
+
category: JavaScriptSymbolCategory;
|
|
288
|
+
description: string;
|
|
289
|
+
}
|
|
290
|
+
interface JavaScriptSymbolCatalogData {
|
|
291
|
+
type: "javascript_symbol_catalog";
|
|
292
|
+
total_symbols: number;
|
|
293
|
+
categories: string[];
|
|
294
|
+
note: string;
|
|
295
|
+
symbols: JavaScriptSymbolCatalogItem[];
|
|
296
|
+
}
|
|
297
|
+
interface JavaScriptSymbolObservation {
|
|
298
|
+
id: string;
|
|
299
|
+
script_etld1: string;
|
|
300
|
+
site_etld1: string;
|
|
301
|
+
script_url: string;
|
|
302
|
+
symbol: string;
|
|
303
|
+
symbol_category: string;
|
|
304
|
+
operation: string | null;
|
|
305
|
+
arguments: string | null;
|
|
306
|
+
value: string | null;
|
|
307
|
+
timestamp: string;
|
|
308
|
+
}
|
|
309
|
+
interface JavaScriptSymbolCollectionData {
|
|
310
|
+
type: "javascript_symbol_collection";
|
|
311
|
+
summary: {
|
|
312
|
+
returned: number;
|
|
313
|
+
};
|
|
314
|
+
symbols: JavaScriptSymbolObservation[];
|
|
315
|
+
}
|
|
316
|
+
interface JavaScriptCatalogParams {
|
|
317
|
+
category?: JavaScriptSymbolCategory;
|
|
318
|
+
}
|
|
319
|
+
interface JavaScriptSymbolParams extends PaginationParams {
|
|
320
|
+
}
|
|
321
|
+
interface JavaScriptScriptsParams extends PaginationParams {
|
|
322
|
+
symbol?: string;
|
|
323
|
+
category?: JavaScriptSymbolCategory;
|
|
324
|
+
}
|
|
325
|
+
interface JavaScriptSitesParams extends PaginationParams {
|
|
326
|
+
symbol?: string;
|
|
327
|
+
category?: JavaScriptSymbolCategory;
|
|
328
|
+
}
|
|
329
|
+
type JavaScriptCatalogResponse = APIResponse<JavaScriptSymbolCatalogData>;
|
|
330
|
+
type JavaScriptSymbolCollectionResponse = APIResponse<JavaScriptSymbolCollectionData>;
|
|
284
331
|
type FileSearchResponse = APIResponse<FileSearchData>;
|
|
285
332
|
type FileHashResponse = APIResponse<FileHashData>;
|
|
286
333
|
type AppSearchResponse = APIResponse<AppSearchData>;
|
|
@@ -401,7 +448,29 @@ declare class LightboxClient {
|
|
|
401
448
|
*/
|
|
402
449
|
cookies: (domain: string, params?: WebDomainCookiesParams) => Promise<WebCookieCollectionResponse>;
|
|
403
450
|
};
|
|
451
|
+
/**
|
|
452
|
+
* JavaScript API symbol tracking methods
|
|
453
|
+
*/
|
|
454
|
+
javascript: {
|
|
455
|
+
/**
|
|
456
|
+
* Get the catalog of all JavaScript symbols available for querying.
|
|
457
|
+
* This is a static list of browser APIs monitored during web crawls.
|
|
458
|
+
*/
|
|
459
|
+
catalog: (params?: JavaScriptCatalogParams) => Promise<JavaScriptCatalogResponse>;
|
|
460
|
+
/**
|
|
461
|
+
* Get all scripts that access a specific JavaScript API symbol.
|
|
462
|
+
*/
|
|
463
|
+
symbols: (symbol: string, params?: JavaScriptSymbolParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
464
|
+
/**
|
|
465
|
+
* Get JavaScript API accesses by scripts from a specific domain.
|
|
466
|
+
*/
|
|
467
|
+
scripts: (domain: string, params?: JavaScriptScriptsParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
468
|
+
/**
|
|
469
|
+
* Get JavaScript API accesses observed when visiting a specific site.
|
|
470
|
+
*/
|
|
471
|
+
sites: (site: string, params?: JavaScriptSitesParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
472
|
+
};
|
|
404
473
|
};
|
|
405
474
|
}
|
|
406
475
|
|
|
407
|
-
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type ScopeMode, type WebCookie, type WebCookieCollectionData, type WebCookieCollectionResponse, type WebDomainCookiesParams, type WebDomainRequestsParams, type WebRequest, type WebRequestCollectionData, type WebRequestCollectionResponse, type WebSiteCookiesParams, type WebSiteRequestsParams };
|
|
476
|
+
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, type JavaScriptCatalogParams, type JavaScriptCatalogResponse, type JavaScriptScriptsParams, type JavaScriptSitesParams, type JavaScriptSymbolCatalogData, type JavaScriptSymbolCatalogItem, type JavaScriptSymbolCategory, type JavaScriptSymbolCollectionData, type JavaScriptSymbolCollectionResponse, type JavaScriptSymbolObservation, type JavaScriptSymbolParams, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type ScopeMode, type WebCookie, type WebCookieCollectionData, type WebCookieCollectionResponse, type WebDomainCookiesParams, type WebDomainRequestsParams, type WebRequest, type WebRequestCollectionData, type WebRequestCollectionResponse, type WebSiteCookiesParams, type WebSiteRequestsParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -281,6 +281,53 @@ interface MetadataSearchParams extends PaginationParams {
|
|
|
281
281
|
search?: string;
|
|
282
282
|
sort?: "popularity" | "name";
|
|
283
283
|
}
|
|
284
|
+
type JavaScriptSymbolCategory = "canvas" | "audio" | "webrtc" | "navigator" | "screen" | "storage" | "cookie" | "referrer";
|
|
285
|
+
interface JavaScriptSymbolCatalogItem {
|
|
286
|
+
symbol: string;
|
|
287
|
+
category: JavaScriptSymbolCategory;
|
|
288
|
+
description: string;
|
|
289
|
+
}
|
|
290
|
+
interface JavaScriptSymbolCatalogData {
|
|
291
|
+
type: "javascript_symbol_catalog";
|
|
292
|
+
total_symbols: number;
|
|
293
|
+
categories: string[];
|
|
294
|
+
note: string;
|
|
295
|
+
symbols: JavaScriptSymbolCatalogItem[];
|
|
296
|
+
}
|
|
297
|
+
interface JavaScriptSymbolObservation {
|
|
298
|
+
id: string;
|
|
299
|
+
script_etld1: string;
|
|
300
|
+
site_etld1: string;
|
|
301
|
+
script_url: string;
|
|
302
|
+
symbol: string;
|
|
303
|
+
symbol_category: string;
|
|
304
|
+
operation: string | null;
|
|
305
|
+
arguments: string | null;
|
|
306
|
+
value: string | null;
|
|
307
|
+
timestamp: string;
|
|
308
|
+
}
|
|
309
|
+
interface JavaScriptSymbolCollectionData {
|
|
310
|
+
type: "javascript_symbol_collection";
|
|
311
|
+
summary: {
|
|
312
|
+
returned: number;
|
|
313
|
+
};
|
|
314
|
+
symbols: JavaScriptSymbolObservation[];
|
|
315
|
+
}
|
|
316
|
+
interface JavaScriptCatalogParams {
|
|
317
|
+
category?: JavaScriptSymbolCategory;
|
|
318
|
+
}
|
|
319
|
+
interface JavaScriptSymbolParams extends PaginationParams {
|
|
320
|
+
}
|
|
321
|
+
interface JavaScriptScriptsParams extends PaginationParams {
|
|
322
|
+
symbol?: string;
|
|
323
|
+
category?: JavaScriptSymbolCategory;
|
|
324
|
+
}
|
|
325
|
+
interface JavaScriptSitesParams extends PaginationParams {
|
|
326
|
+
symbol?: string;
|
|
327
|
+
category?: JavaScriptSymbolCategory;
|
|
328
|
+
}
|
|
329
|
+
type JavaScriptCatalogResponse = APIResponse<JavaScriptSymbolCatalogData>;
|
|
330
|
+
type JavaScriptSymbolCollectionResponse = APIResponse<JavaScriptSymbolCollectionData>;
|
|
284
331
|
type FileSearchResponse = APIResponse<FileSearchData>;
|
|
285
332
|
type FileHashResponse = APIResponse<FileHashData>;
|
|
286
333
|
type AppSearchResponse = APIResponse<AppSearchData>;
|
|
@@ -401,7 +448,29 @@ declare class LightboxClient {
|
|
|
401
448
|
*/
|
|
402
449
|
cookies: (domain: string, params?: WebDomainCookiesParams) => Promise<WebCookieCollectionResponse>;
|
|
403
450
|
};
|
|
451
|
+
/**
|
|
452
|
+
* JavaScript API symbol tracking methods
|
|
453
|
+
*/
|
|
454
|
+
javascript: {
|
|
455
|
+
/**
|
|
456
|
+
* Get the catalog of all JavaScript symbols available for querying.
|
|
457
|
+
* This is a static list of browser APIs monitored during web crawls.
|
|
458
|
+
*/
|
|
459
|
+
catalog: (params?: JavaScriptCatalogParams) => Promise<JavaScriptCatalogResponse>;
|
|
460
|
+
/**
|
|
461
|
+
* Get all scripts that access a specific JavaScript API symbol.
|
|
462
|
+
*/
|
|
463
|
+
symbols: (symbol: string, params?: JavaScriptSymbolParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
464
|
+
/**
|
|
465
|
+
* Get JavaScript API accesses by scripts from a specific domain.
|
|
466
|
+
*/
|
|
467
|
+
scripts: (domain: string, params?: JavaScriptScriptsParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
468
|
+
/**
|
|
469
|
+
* Get JavaScript API accesses observed when visiting a specific site.
|
|
470
|
+
*/
|
|
471
|
+
sites: (site: string, params?: JavaScriptSitesParams) => Promise<JavaScriptSymbolCollectionResponse>;
|
|
472
|
+
};
|
|
404
473
|
};
|
|
405
474
|
}
|
|
406
475
|
|
|
407
|
-
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type ScopeMode, type WebCookie, type WebCookieCollectionData, type WebCookieCollectionResponse, type WebDomainCookiesParams, type WebDomainRequestsParams, type WebRequest, type WebRequestCollectionData, type WebRequestCollectionResponse, type WebSiteCookiesParams, type WebSiteRequestsParams };
|
|
476
|
+
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, type JavaScriptCatalogParams, type JavaScriptCatalogResponse, type JavaScriptScriptsParams, type JavaScriptSitesParams, type JavaScriptSymbolCatalogData, type JavaScriptSymbolCatalogItem, type JavaScriptSymbolCategory, type JavaScriptSymbolCollectionData, type JavaScriptSymbolCollectionResponse, type JavaScriptSymbolObservation, type JavaScriptSymbolParams, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type ScopeMode, type WebCookie, type WebCookieCollectionData, type WebCookieCollectionResponse, type WebDomainCookiesParams, type WebDomainRequestsParams, type WebRequest, type WebRequestCollectionData, type WebRequestCollectionResponse, type WebSiteCookiesParams, type WebSiteRequestsParams };
|
package/dist/index.js
CHANGED
|
@@ -189,6 +189,48 @@ var LightboxClient = class {
|
|
|
189
189
|
params
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* JavaScript API symbol tracking methods
|
|
195
|
+
*/
|
|
196
|
+
javascript: {
|
|
197
|
+
/**
|
|
198
|
+
* Get the catalog of all JavaScript symbols available for querying.
|
|
199
|
+
* This is a static list of browser APIs monitored during web crawls.
|
|
200
|
+
*/
|
|
201
|
+
catalog: (params) => {
|
|
202
|
+
return this.request(
|
|
203
|
+
"/v1/web/javascript/symbols",
|
|
204
|
+
params
|
|
205
|
+
);
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Get all scripts that access a specific JavaScript API symbol.
|
|
209
|
+
*/
|
|
210
|
+
symbols: (symbol, params) => {
|
|
211
|
+
return this.request(
|
|
212
|
+
`/v1/web/javascript/symbols/${encodeURIComponent(symbol)}`,
|
|
213
|
+
params
|
|
214
|
+
);
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* Get JavaScript API accesses by scripts from a specific domain.
|
|
218
|
+
*/
|
|
219
|
+
scripts: (domain, params) => {
|
|
220
|
+
return this.request(
|
|
221
|
+
`/v1/web/javascript/scripts/${encodeURIComponent(domain)}`,
|
|
222
|
+
params
|
|
223
|
+
);
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
* Get JavaScript API accesses observed when visiting a specific site.
|
|
227
|
+
*/
|
|
228
|
+
sites: (site, params) => {
|
|
229
|
+
return this.request(
|
|
230
|
+
`/v1/web/javascript/sites/${encodeURIComponent(site)}`,
|
|
231
|
+
params
|
|
232
|
+
);
|
|
233
|
+
}
|
|
192
234
|
}
|
|
193
235
|
};
|
|
194
236
|
};
|