@agentcash/router 1.9.2 → 1.9.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/README.md +1 -3
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
11
|
<strong>The fastest way to ship an API on x402 and MPP.</strong><br/>
|
|
12
|
-
x402 and MPP payments, compatible discovery, and minimal boilerplate. With @agentcash/router, agents on <a href="https://agentcash.dev">AgentCash</a> and across the agentic commerce ecosystem
|
|
12
|
+
x402 and MPP payments, compatible discovery, and minimal boilerplate. With @agentcash/router, agents on <a href="https://agentcash.dev">AgentCash</a> and across the agentic commerce ecosystem can call your endpoints from day one.
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
@@ -27,8 +27,6 @@ pnpm add @agentcash/router
|
|
|
27
27
|
pnpm add next zod # peer dependencies
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`next` and `zod` are peer dependencies — the router shares your app's copy. Everything else (the x402 packages, `mppx`, `viem`, `zod-openapi`) is bundled as a regular dependency and installed automatically.
|
|
31
|
-
|
|
32
30
|
## Environment
|
|
33
31
|
|
|
34
32
|
The recommended entry point reads its config from `process.env`. A copy-paste `.env.example` lives at the repo root.
|
package/dist/index.cjs
CHANGED
|
@@ -4201,6 +4201,8 @@ function buildOperation(routeKey, entry, tag) {
|
|
|
4201
4201
|
operation.security = [{ siwx: [] }];
|
|
4202
4202
|
} else if (requiresApiKeyScheme) {
|
|
4203
4203
|
operation.security = [{ apiKey: [] }];
|
|
4204
|
+
} else if (entry.authMode === "unprotected") {
|
|
4205
|
+
operation.security = [];
|
|
4204
4206
|
}
|
|
4205
4207
|
if (entry.bodySchema) {
|
|
4206
4208
|
operation.requestBody = {
|
package/dist/index.js
CHANGED
|
@@ -4160,6 +4160,8 @@ function buildOperation(routeKey, entry, tag) {
|
|
|
4160
4160
|
operation.security = [{ siwx: [] }];
|
|
4161
4161
|
} else if (requiresApiKeyScheme) {
|
|
4162
4162
|
operation.security = [{ apiKey: [] }];
|
|
4163
|
+
} else if (entry.authMode === "unprotected") {
|
|
4164
|
+
operation.security = [];
|
|
4163
4165
|
}
|
|
4164
4166
|
if (entry.bodySchema) {
|
|
4165
4167
|
operation.requestBody = {
|