@knownagents/sdk 1.8.0 → 1.9.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.
package/README.md CHANGED
@@ -53,7 +53,6 @@ const knownAgents = new KnownAgents("YOUR_ACCESS_TOKEN")
53
53
 
54
54
  app.use((req, res, next) => {
55
55
  const start = Date.now()
56
-
57
56
  res.on('finish', () => {
58
57
  const duration = Date.now() - start
59
58
  knownAgents.trackVisit(req, res, duration)
@@ -98,7 +97,7 @@ The return value is a plain text robots.txt string. Generate a `robotsTxt` perio
98
97
 
99
98
  ## How To Use Agent Verification ([Full Docs](https://knownagents.com/docs/verification))
100
99
 
101
- Use the `verifyAgent` function to [identify](https://knownagents.com/agents) and verify agents from network requests using Web Bot Auth (HTTP message signatures), IP matching, or other available methods.
100
+ Use the `verifyAgent` function to [identify](https://knownagents.com/agents) and verify agents from network requests using Web Bot Auth (HTTP message signatures), IP matching, or other available methods. This can be useful for implementing access policies based on verified agent identity.
102
101
 
103
102
  Call `verifyAgent` with the incoming request.
104
103
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KnownAgents = exports.AgentType = void 0;
4
- const NODE_PACKAGE_VERSION = "1.8.0";
4
+ const NODE_PACKAGE_VERSION = "1.9.0";
5
5
  /**
6
6
  * Agent types that can be controlled with robots.txt rules.
7
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knownagents/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "The official Node.js SDK for Known Agents: AI agent analytics (bot traffic), LLM referral tracking, automatic robots.txt, agent verification",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IncomingMessage, ServerResponse } from "http"
2
2
 
3
- const NODE_PACKAGE_VERSION = "1.8.0"
3
+ const NODE_PACKAGE_VERSION = "1.9.0"
4
4
 
5
5
  export interface Request {
6
6
  /** The URL of the request, including the path and query string (e.g. "/about?foo=bar") */