@agentcash/router 1.9.1 → 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 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 are compatible and call your endpoints from day one.
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">
@@ -24,8 +24,7 @@
24
24
 
25
25
  ```bash
26
26
  pnpm add @agentcash/router
27
- pnpm add next zod @x402/core @x402/evm @x402/extensions @x402/svm @coinbase/x402 zod-openapi # peer dependencies
28
- pnpm add mppx # optional, for MPP support
27
+ pnpm add next zod # peer dependencies
29
28
  ```
30
29
 
31
30
  ## Environment
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentcash/router",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Unified route builder for Next.js App Router APIs with x402, MPP, SIWX, and API key auth",
5
5
  "type": "module",
6
6
  "exports": {