@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 +1 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
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.
|
|
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.
|
|
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