@adwait12345/telemetry-core 0.1.0 → 0.1.2
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.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +855 -56
- package/dist/index.mjs +843 -56
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -108,7 +108,7 @@ declare function extractAutomationHeaders(headers: Record<string, string | strin
|
|
|
108
108
|
* Known bot definitions with categories and detection metadata.
|
|
109
109
|
* Order matters — more specific patterns are listed first.
|
|
110
110
|
*/
|
|
111
|
-
type BotCategory = "ai-crawler" | "search" | "
|
|
111
|
+
type BotCategory = "ai-crawler" | "ai-assistant" | "search" | "seo" | "advertising" | "monitor" | "preview" | "webhook" | "feed" | "ecommerce" | "verification" | "analytics" | "social" | "accessibility" | "scraper" | "unknown";
|
|
112
112
|
interface BotDefinition {
|
|
113
113
|
/** Human-readable name shown in the dashboard */
|
|
114
114
|
name: string;
|
|
@@ -123,9 +123,21 @@ interface BotDefinition {
|
|
|
123
123
|
verifiable: boolean;
|
|
124
124
|
}
|
|
125
125
|
declare const AI_BOTS: BotDefinition[];
|
|
126
|
+
declare const AI_ASSISTANT_BOTS: BotDefinition[];
|
|
126
127
|
declare const SEARCH_BOTS: BotDefinition[];
|
|
128
|
+
declare const SEO_BOTS: BotDefinition[];
|
|
129
|
+
declare const ADVERTISING_BOTS: BotDefinition[];
|
|
130
|
+
declare const MONITOR_BOTS: BotDefinition[];
|
|
131
|
+
declare const PREVIEW_BOTS: BotDefinition[];
|
|
132
|
+
declare const WEBHOOK_BOTS: BotDefinition[];
|
|
133
|
+
declare const FEED_BOTS: BotDefinition[];
|
|
134
|
+
declare const ECOMMERCE_BOTS: BotDefinition[];
|
|
135
|
+
declare const VERIFICATION_BOTS: BotDefinition[];
|
|
136
|
+
declare const ANALYTICS_BOTS: BotDefinition[];
|
|
137
|
+
declare const SOCIAL_BOTS: BotDefinition[];
|
|
138
|
+
declare const ACCESSIBILITY_BOTS: BotDefinition[];
|
|
127
139
|
declare const GENERIC_BOTS: BotDefinition[];
|
|
128
|
-
/** All known bots —
|
|
140
|
+
/** All known bots — ordered from most specific to most generic */
|
|
129
141
|
declare const ALL_BOTS: BotDefinition[];
|
|
130
142
|
|
|
131
143
|
/**
|
|
@@ -137,4 +149,4 @@ declare const ALL_BOTS: BotDefinition[];
|
|
|
137
149
|
*/
|
|
138
150
|
declare function sendToTelemetry(payload: ServerTrackPayload, config: TelemetryConfig): Promise<void>;
|
|
139
151
|
|
|
140
|
-
export { AI_BOTS, ALL_BOTS, type BotCategory, type BotDefinition, type BotDetectionResult, type DetectionConfidence, type DetectionMethod, GENERIC_BOTS, type NormalizedRequest, SEARCH_BOTS, type ServerTrackPayload, type TelemetryConfig, detectBot, extractAutomationHeaders, sendToTelemetry };
|
|
152
|
+
export { ACCESSIBILITY_BOTS, ADVERTISING_BOTS, AI_ASSISTANT_BOTS, AI_BOTS, ALL_BOTS, ANALYTICS_BOTS, type BotCategory, type BotDefinition, type BotDetectionResult, type DetectionConfidence, type DetectionMethod, ECOMMERCE_BOTS, FEED_BOTS, GENERIC_BOTS, MONITOR_BOTS, type NormalizedRequest, PREVIEW_BOTS, SEARCH_BOTS, SEO_BOTS, SOCIAL_BOTS, type ServerTrackPayload, type TelemetryConfig, VERIFICATION_BOTS, WEBHOOK_BOTS, detectBot, extractAutomationHeaders, sendToTelemetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare function extractAutomationHeaders(headers: Record<string, string | strin
|
|
|
108
108
|
* Known bot definitions with categories and detection metadata.
|
|
109
109
|
* Order matters — more specific patterns are listed first.
|
|
110
110
|
*/
|
|
111
|
-
type BotCategory = "ai-crawler" | "search" | "
|
|
111
|
+
type BotCategory = "ai-crawler" | "ai-assistant" | "search" | "seo" | "advertising" | "monitor" | "preview" | "webhook" | "feed" | "ecommerce" | "verification" | "analytics" | "social" | "accessibility" | "scraper" | "unknown";
|
|
112
112
|
interface BotDefinition {
|
|
113
113
|
/** Human-readable name shown in the dashboard */
|
|
114
114
|
name: string;
|
|
@@ -123,9 +123,21 @@ interface BotDefinition {
|
|
|
123
123
|
verifiable: boolean;
|
|
124
124
|
}
|
|
125
125
|
declare const AI_BOTS: BotDefinition[];
|
|
126
|
+
declare const AI_ASSISTANT_BOTS: BotDefinition[];
|
|
126
127
|
declare const SEARCH_BOTS: BotDefinition[];
|
|
128
|
+
declare const SEO_BOTS: BotDefinition[];
|
|
129
|
+
declare const ADVERTISING_BOTS: BotDefinition[];
|
|
130
|
+
declare const MONITOR_BOTS: BotDefinition[];
|
|
131
|
+
declare const PREVIEW_BOTS: BotDefinition[];
|
|
132
|
+
declare const WEBHOOK_BOTS: BotDefinition[];
|
|
133
|
+
declare const FEED_BOTS: BotDefinition[];
|
|
134
|
+
declare const ECOMMERCE_BOTS: BotDefinition[];
|
|
135
|
+
declare const VERIFICATION_BOTS: BotDefinition[];
|
|
136
|
+
declare const ANALYTICS_BOTS: BotDefinition[];
|
|
137
|
+
declare const SOCIAL_BOTS: BotDefinition[];
|
|
138
|
+
declare const ACCESSIBILITY_BOTS: BotDefinition[];
|
|
127
139
|
declare const GENERIC_BOTS: BotDefinition[];
|
|
128
|
-
/** All known bots —
|
|
140
|
+
/** All known bots — ordered from most specific to most generic */
|
|
129
141
|
declare const ALL_BOTS: BotDefinition[];
|
|
130
142
|
|
|
131
143
|
/**
|
|
@@ -137,4 +149,4 @@ declare const ALL_BOTS: BotDefinition[];
|
|
|
137
149
|
*/
|
|
138
150
|
declare function sendToTelemetry(payload: ServerTrackPayload, config: TelemetryConfig): Promise<void>;
|
|
139
151
|
|
|
140
|
-
export { AI_BOTS, ALL_BOTS, type BotCategory, type BotDefinition, type BotDetectionResult, type DetectionConfidence, type DetectionMethod, GENERIC_BOTS, type NormalizedRequest, SEARCH_BOTS, type ServerTrackPayload, type TelemetryConfig, detectBot, extractAutomationHeaders, sendToTelemetry };
|
|
152
|
+
export { ACCESSIBILITY_BOTS, ADVERTISING_BOTS, AI_ASSISTANT_BOTS, AI_BOTS, ALL_BOTS, ANALYTICS_BOTS, type BotCategory, type BotDefinition, type BotDetectionResult, type DetectionConfidence, type DetectionMethod, ECOMMERCE_BOTS, FEED_BOTS, GENERIC_BOTS, MONITOR_BOTS, type NormalizedRequest, PREVIEW_BOTS, SEARCH_BOTS, SEO_BOTS, SOCIAL_BOTS, type ServerTrackPayload, type TelemetryConfig, VERIFICATION_BOTS, WEBHOOK_BOTS, detectBot, extractAutomationHeaders, sendToTelemetry };
|