@oobe-protocol-labs/synapse-sap-sdk 0.1.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/LICENSE +21 -0
- package/README.md +882 -0
- package/dist/cjs/constants/index.js +43 -0
- package/dist/cjs/constants/index.js.map +1 -0
- package/dist/cjs/constants/limits.js +161 -0
- package/dist/cjs/constants/limits.js.map +1 -0
- package/dist/cjs/constants/programs.js +78 -0
- package/dist/cjs/constants/programs.js.map +1 -0
- package/dist/cjs/constants/seeds.js +57 -0
- package/dist/cjs/constants/seeds.js.map +1 -0
- package/dist/cjs/core/client.js +391 -0
- package/dist/cjs/core/client.js.map +1 -0
- package/dist/cjs/core/connection.js +319 -0
- package/dist/cjs/core/connection.js.map +1 -0
- package/dist/cjs/core/index.js +24 -0
- package/dist/cjs/core/index.js.map +1 -0
- package/dist/cjs/errors/index.js +334 -0
- package/dist/cjs/errors/index.js.map +1 -0
- package/dist/cjs/events/index.js +136 -0
- package/dist/cjs/events/index.js.map +1 -0
- package/dist/cjs/idl/index.js +63 -0
- package/dist/cjs/idl/index.js.map +1 -0
- package/dist/cjs/idl/synapse_agent_sap.json +9710 -0
- package/dist/cjs/index.js +147 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/modules/agent.js +272 -0
- package/dist/cjs/modules/agent.js.map +1 -0
- package/dist/cjs/modules/attestation.js +147 -0
- package/dist/cjs/modules/attestation.js.map +1 -0
- package/dist/cjs/modules/base.js +128 -0
- package/dist/cjs/modules/base.js.map +1 -0
- package/dist/cjs/modules/escrow.js +246 -0
- package/dist/cjs/modules/escrow.js.map +1 -0
- package/dist/cjs/modules/feedback.js +166 -0
- package/dist/cjs/modules/feedback.js.map +1 -0
- package/dist/cjs/modules/index.js +35 -0
- package/dist/cjs/modules/index.js.map +1 -0
- package/dist/cjs/modules/indexing.js +375 -0
- package/dist/cjs/modules/indexing.js.map +1 -0
- package/dist/cjs/modules/ledger.js +234 -0
- package/dist/cjs/modules/ledger.js.map +1 -0
- package/dist/cjs/modules/tools.js +319 -0
- package/dist/cjs/modules/tools.js.map +1 -0
- package/dist/cjs/modules/vault.js +410 -0
- package/dist/cjs/modules/vault.js.map +1 -0
- package/dist/cjs/pda/index.js +377 -0
- package/dist/cjs/pda/index.js.map +1 -0
- package/dist/cjs/plugin/index.js +934 -0
- package/dist/cjs/plugin/index.js.map +1 -0
- package/dist/cjs/plugin/protocols.js +282 -0
- package/dist/cjs/plugin/protocols.js.map +1 -0
- package/dist/cjs/plugin/schemas.js +831 -0
- package/dist/cjs/plugin/schemas.js.map +1 -0
- package/dist/cjs/postgres/adapter.js +715 -0
- package/dist/cjs/postgres/adapter.js.map +1 -0
- package/dist/cjs/postgres/index.js +50 -0
- package/dist/cjs/postgres/index.js.map +1 -0
- package/dist/cjs/postgres/serializers.js +381 -0
- package/dist/cjs/postgres/serializers.js.map +1 -0
- package/dist/cjs/postgres/sync.js +221 -0
- package/dist/cjs/postgres/sync.js.map +1 -0
- package/dist/cjs/postgres/types.js +44 -0
- package/dist/cjs/postgres/types.js.map +1 -0
- package/dist/cjs/registries/builder.js +414 -0
- package/dist/cjs/registries/builder.js.map +1 -0
- package/dist/cjs/registries/discovery.js +362 -0
- package/dist/cjs/registries/discovery.js.map +1 -0
- package/dist/cjs/registries/index.js +51 -0
- package/dist/cjs/registries/index.js.map +1 -0
- package/dist/cjs/registries/session.js +433 -0
- package/dist/cjs/registries/session.js.map +1 -0
- package/dist/cjs/registries/x402.js +577 -0
- package/dist/cjs/registries/x402.js.map +1 -0
- package/dist/cjs/types/accounts.js +13 -0
- package/dist/cjs/types/accounts.js.map +1 -0
- package/dist/cjs/types/common.js +13 -0
- package/dist/cjs/types/common.js.map +1 -0
- package/dist/cjs/types/enums.js +174 -0
- package/dist/cjs/types/enums.js.map +1 -0
- package/dist/cjs/types/index.js +36 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/instructions.js +92 -0
- package/dist/cjs/types/instructions.js.map +1 -0
- package/dist/cjs/utils/hash.js +58 -0
- package/dist/cjs/utils/hash.js.map +1 -0
- package/dist/cjs/utils/index.js +27 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/serialization.js +105 -0
- package/dist/cjs/utils/serialization.js.map +1 -0
- package/dist/cjs/utils/validation.js +36 -0
- package/dist/cjs/utils/validation.js.map +1 -0
- package/dist/esm/constants/index.js +29 -0
- package/dist/esm/constants/index.js.map +1 -0
- package/dist/esm/constants/limits.js +158 -0
- package/dist/esm/constants/limits.js.map +1 -0
- package/dist/esm/constants/programs.js +75 -0
- package/dist/esm/constants/programs.js.map +1 -0
- package/dist/esm/constants/seeds.js +54 -0
- package/dist/esm/constants/seeds.js.map +1 -0
- package/dist/esm/core/client.js +384 -0
- package/dist/esm/core/client.js.map +1 -0
- package/dist/esm/core/connection.js +315 -0
- package/dist/esm/core/connection.js.map +1 -0
- package/dist/esm/core/index.js +19 -0
- package/dist/esm/core/index.js.map +1 -0
- package/dist/esm/errors/index.js +325 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/events/index.js +132 -0
- package/dist/esm/events/index.js.map +1 -0
- package/dist/esm/idl/index.js +57 -0
- package/dist/esm/idl/index.js.map +1 -0
- package/dist/esm/idl/synapse_agent_sap.json +9710 -0
- package/dist/esm/index.js +70 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/modules/agent.js +268 -0
- package/dist/esm/modules/agent.js.map +1 -0
- package/dist/esm/modules/attestation.js +143 -0
- package/dist/esm/modules/attestation.js.map +1 -0
- package/dist/esm/modules/base.js +124 -0
- package/dist/esm/modules/base.js.map +1 -0
- package/dist/esm/modules/escrow.js +242 -0
- package/dist/esm/modules/escrow.js.map +1 -0
- package/dist/esm/modules/feedback.js +162 -0
- package/dist/esm/modules/feedback.js.map +1 -0
- package/dist/esm/modules/index.js +23 -0
- package/dist/esm/modules/index.js.map +1 -0
- package/dist/esm/modules/indexing.js +371 -0
- package/dist/esm/modules/indexing.js.map +1 -0
- package/dist/esm/modules/ledger.js +230 -0
- package/dist/esm/modules/ledger.js.map +1 -0
- package/dist/esm/modules/tools.js +315 -0
- package/dist/esm/modules/tools.js.map +1 -0
- package/dist/esm/modules/vault.js +406 -0
- package/dist/esm/modules/vault.js.map +1 -0
- package/dist/esm/pda/index.js +357 -0
- package/dist/esm/pda/index.js.map +1 -0
- package/dist/esm/plugin/index.js +927 -0
- package/dist/esm/plugin/index.js.map +1 -0
- package/dist/esm/plugin/protocols.js +279 -0
- package/dist/esm/plugin/protocols.js.map +1 -0
- package/dist/esm/plugin/schemas.js +828 -0
- package/dist/esm/plugin/schemas.js.map +1 -0
- package/dist/esm/postgres/adapter.js +678 -0
- package/dist/esm/postgres/adapter.js.map +1 -0
- package/dist/esm/postgres/index.js +27 -0
- package/dist/esm/postgres/index.js.map +1 -0
- package/dist/esm/postgres/serializers.js +362 -0
- package/dist/esm/postgres/serializers.js.map +1 -0
- package/dist/esm/postgres/sync.js +217 -0
- package/dist/esm/postgres/sync.js.map +1 -0
- package/dist/esm/postgres/types.js +41 -0
- package/dist/esm/postgres/types.js.map +1 -0
- package/dist/esm/registries/builder.js +410 -0
- package/dist/esm/registries/builder.js.map +1 -0
- package/dist/esm/registries/discovery.js +358 -0
- package/dist/esm/registries/discovery.js.map +1 -0
- package/dist/esm/registries/index.js +44 -0
- package/dist/esm/registries/index.js.map +1 -0
- package/dist/esm/registries/session.js +429 -0
- package/dist/esm/registries/session.js.map +1 -0
- package/dist/esm/registries/x402.js +573 -0
- package/dist/esm/registries/x402.js.map +1 -0
- package/dist/esm/types/accounts.js +12 -0
- package/dist/esm/types/accounts.js.map +1 -0
- package/dist/esm/types/common.js +12 -0
- package/dist/esm/types/common.js.map +1 -0
- package/dist/esm/types/enums.js +171 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/index.js +25 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/instructions.js +89 -0
- package/dist/esm/types/instructions.js.map +1 -0
- package/dist/esm/utils/hash.js +53 -0
- package/dist/esm/utils/hash.js.map +1 -0
- package/dist/esm/utils/index.js +19 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/serialization.js +98 -0
- package/dist/esm/utils/serialization.js.map +1 -0
- package/dist/esm/utils/validation.js +33 -0
- package/dist/esm/utils/validation.js.map +1 -0
- package/dist/types/constants/index.d.ts +27 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/constants/limits.d.ts +149 -0
- package/dist/types/constants/limits.d.ts.map +1 -0
- package/dist/types/constants/programs.d.ts +69 -0
- package/dist/types/constants/programs.d.ts.map +1 -0
- package/dist/types/constants/seeds.d.ts +61 -0
- package/dist/types/constants/seeds.d.ts.map +1 -0
- package/dist/types/core/client.d.ts +323 -0
- package/dist/types/core/client.d.ts.map +1 -0
- package/dist/types/core/connection.d.ts +279 -0
- package/dist/types/core/connection.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +20 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/errors/index.d.ts +276 -0
- package/dist/types/errors/index.d.ts.map +1 -0
- package/dist/types/events/index.d.ts +248 -0
- package/dist/types/events/index.d.ts.map +1 -0
- package/dist/types/idl/index.d.ts +70 -0
- package/dist/types/idl/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +68 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/modules/agent.d.ts +166 -0
- package/dist/types/modules/agent.d.ts.map +1 -0
- package/dist/types/modules/attestation.d.ts +96 -0
- package/dist/types/modules/attestation.d.ts.map +1 -0
- package/dist/types/modules/base.d.ts +126 -0
- package/dist/types/modules/base.d.ts.map +1 -0
- package/dist/types/modules/escrow.d.ts +151 -0
- package/dist/types/modules/escrow.d.ts.map +1 -0
- package/dist/types/modules/feedback.d.ts +105 -0
- package/dist/types/modules/feedback.d.ts.map +1 -0
- package/dist/types/modules/index.d.ts +24 -0
- package/dist/types/modules/index.d.ts.map +1 -0
- package/dist/types/modules/indexing.d.ts +200 -0
- package/dist/types/modules/indexing.d.ts.map +1 -0
- package/dist/types/modules/ledger.d.ts +150 -0
- package/dist/types/modules/ledger.d.ts.map +1 -0
- package/dist/types/modules/tools.d.ts +182 -0
- package/dist/types/modules/tools.d.ts.map +1 -0
- package/dist/types/modules/vault.d.ts +240 -0
- package/dist/types/modules/vault.d.ts.map +1 -0
- package/dist/types/pda/index.d.ts +296 -0
- package/dist/types/pda/index.d.ts.map +1 -0
- package/dist/types/plugin/index.d.ts +171 -0
- package/dist/types/plugin/index.d.ts.map +1 -0
- package/dist/types/plugin/protocols.d.ts +152 -0
- package/dist/types/plugin/protocols.d.ts.map +1 -0
- package/dist/types/plugin/schemas.d.ts +823 -0
- package/dist/types/plugin/schemas.d.ts.map +1 -0
- package/dist/types/postgres/adapter.d.ts +355 -0
- package/dist/types/postgres/adapter.d.ts.map +1 -0
- package/dist/types/postgres/index.d.ts +24 -0
- package/dist/types/postgres/index.d.ts.map +1 -0
- package/dist/types/postgres/serializers.d.ts +30 -0
- package/dist/types/postgres/serializers.d.ts.map +1 -0
- package/dist/types/postgres/sync.d.ts +132 -0
- package/dist/types/postgres/sync.d.ts.map +1 -0
- package/dist/types/postgres/types.d.ts +167 -0
- package/dist/types/postgres/types.d.ts.map +1 -0
- package/dist/types/registries/builder.d.ts +340 -0
- package/dist/types/registries/builder.d.ts.map +1 -0
- package/dist/types/registries/discovery.d.ts +333 -0
- package/dist/types/registries/discovery.d.ts.map +1 -0
- package/dist/types/registries/index.d.ts +48 -0
- package/dist/types/registries/index.d.ts.map +1 -0
- package/dist/types/registries/session.d.ts +323 -0
- package/dist/types/registries/session.d.ts.map +1 -0
- package/dist/types/registries/x402.d.ts +463 -0
- package/dist/types/registries/x402.d.ts.map +1 -0
- package/dist/types/types/accounts.d.ts +565 -0
- package/dist/types/types/accounts.d.ts.map +1 -0
- package/dist/types/types/common.d.ts +166 -0
- package/dist/types/types/common.d.ts.map +1 -0
- package/dist/types/types/enums.d.ts +238 -0
- package/dist/types/types/enums.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +28 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/instructions.d.ts +366 -0
- package/dist/types/types/instructions.d.ts.map +1 -0
- package/dist/types/utils/hash.d.ts +48 -0
- package/dist/types/utils/hash.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +19 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/serialization.d.ts +69 -0
- package/dist/types/utils/serialization.d.ts.map +1 -0
- package/dist/types/utils/validation.d.ts +29 -0
- package/dist/types/utils/validation.d.ts.map +1 -0
- package/package.json +178 -0
- package/src/constants/index.ts +44 -0
- package/src/constants/limits.ts +165 -0
- package/src/constants/programs.ts +83 -0
- package/src/constants/seeds.ts +66 -0
- package/src/core/client.ts +416 -0
- package/src/core/connection.ts +409 -0
- package/src/core/index.ts +20 -0
- package/src/errors/index.ts +346 -0
- package/src/events/index.ts +335 -0
- package/src/idl/index.ts +76 -0
- package/src/idl/synapse_agent_sap.json +9710 -0
- package/src/index.ts +253 -0
- package/src/modules/agent.ts +319 -0
- package/src/modules/attestation.ts +168 -0
- package/src/modules/base.ts +158 -0
- package/src/modules/escrow.ts +308 -0
- package/src/modules/feedback.ts +186 -0
- package/src/modules/index.ts +24 -0
- package/src/modules/indexing.ts +444 -0
- package/src/modules/ledger.ts +262 -0
- package/src/modules/tools.ts +411 -0
- package/src/modules/vault.ts +533 -0
- package/src/pda/index.ts +512 -0
- package/src/plugin/index.ts +1202 -0
- package/src/plugin/protocols.ts +404 -0
- package/src/plugin/schemas.ts +909 -0
- package/src/postgres/adapter.ts +904 -0
- package/src/postgres/index.ts +59 -0
- package/src/postgres/schema.sql +683 -0
- package/src/postgres/serializers.ts +485 -0
- package/src/postgres/sync.ts +254 -0
- package/src/postgres/types.ts +245 -0
- package/src/registries/builder.ts +607 -0
- package/src/registries/discovery.ts +572 -0
- package/src/registries/index.ts +77 -0
- package/src/registries/session.ts +613 -0
- package/src/registries/x402.ts +906 -0
- package/src/types/accounts.ts +618 -0
- package/src/types/common.ts +187 -0
- package/src/types/enums.ts +214 -0
- package/src/types/index.ts +92 -0
- package/src/types/instructions.ts +413 -0
- package/src/utils/hash.ts +57 -0
- package/src/utils/index.ts +19 -0
- package/src/utils/serialization.ts +98 -0
- package/src/utils/validation.ts +36 -0
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module plugin/schemas
|
|
3
|
+
* @description Zod schemas for every SAP v2 plugin tool.
|
|
4
|
+
*
|
|
5
|
+
* Each schema is an `{ input, output }` pair that drives:
|
|
6
|
+
* 1. Runtime validation (LLM → tool call)
|
|
7
|
+
* 2. LangChain StructuredTool generation
|
|
8
|
+
* 3. MCP/Vercel AI tool descriptors
|
|
9
|
+
*
|
|
10
|
+
* Conventions:
|
|
11
|
+
* - Solana public keys → `z.string().describe('Base58 public key …')`
|
|
12
|
+
* - BN/bigint amounts → `z.string().describe('Amount in lamports …')`
|
|
13
|
+
* - Hashes ([u8;32]) → `z.array(z.number()).length(32)`
|
|
14
|
+
* - Tool outputs always include `txSignature` for write ops
|
|
15
|
+
*
|
|
16
|
+
* @category Plugin
|
|
17
|
+
* @since v0.1.0
|
|
18
|
+
*/
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
/**
|
|
21
|
+
* Zod input/output schemas for the **sap-agent** protocol (8 tools).
|
|
22
|
+
*
|
|
23
|
+
* @name agentSchemas
|
|
24
|
+
* @description Covers agent registration, updates, activation lifecycle,
|
|
25
|
+
* call reporting, reputation metrics, and on-chain data fetching.
|
|
26
|
+
* @category Plugin
|
|
27
|
+
* @since v0.1.0
|
|
28
|
+
*/
|
|
29
|
+
export declare const agentSchemas: {
|
|
30
|
+
readonly registerAgent: {
|
|
31
|
+
readonly input: z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
description: z.ZodString;
|
|
34
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
protocolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
pricing: z.ZodArray<z.ZodObject<{
|
|
41
|
+
tierId: z.ZodString;
|
|
42
|
+
pricePerCall: z.ZodString;
|
|
43
|
+
minPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
maxPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
rateLimit: z.ZodNumber;
|
|
46
|
+
maxCallsPerSession: z.ZodNumber;
|
|
47
|
+
burstLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
+
tokenType: z.ZodEnum<{
|
|
49
|
+
sol: "sol";
|
|
50
|
+
usdc: "usdc";
|
|
51
|
+
spl: "spl";
|
|
52
|
+
}>;
|
|
53
|
+
tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
tokenDecimals: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
settlementMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
56
|
+
instant: "instant";
|
|
57
|
+
escrow: "escrow";
|
|
58
|
+
batched: "batched";
|
|
59
|
+
x402: "x402";
|
|
60
|
+
}>>>;
|
|
61
|
+
minEscrowDeposit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
batchIntervalSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
volumeCurve: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
64
|
+
afterCalls: z.ZodNumber;
|
|
65
|
+
pricePerCall: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
protocols: z.ZodArray<z.ZodString>;
|
|
69
|
+
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
agentUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
x402Endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
readonly output: z.ZodObject<{
|
|
74
|
+
txSignature: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
};
|
|
77
|
+
readonly updateAgent: {
|
|
78
|
+
readonly input: z.ZodObject<{
|
|
79
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
capabilities: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
protocolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>>>>;
|
|
87
|
+
pricing: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
88
|
+
tierId: z.ZodString;
|
|
89
|
+
pricePerCall: z.ZodString;
|
|
90
|
+
minPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
maxPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
rateLimit: z.ZodNumber;
|
|
93
|
+
maxCallsPerSession: z.ZodNumber;
|
|
94
|
+
burstLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
tokenType: z.ZodEnum<{
|
|
96
|
+
sol: "sol";
|
|
97
|
+
usdc: "usdc";
|
|
98
|
+
spl: "spl";
|
|
99
|
+
}>;
|
|
100
|
+
tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
tokenDecimals: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
settlementMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
103
|
+
instant: "instant";
|
|
104
|
+
escrow: "escrow";
|
|
105
|
+
batched: "batched";
|
|
106
|
+
x402: "x402";
|
|
107
|
+
}>>>;
|
|
108
|
+
minEscrowDeposit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
batchIntervalSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
110
|
+
volumeCurve: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
111
|
+
afterCalls: z.ZodNumber;
|
|
112
|
+
pricePerCall: z.ZodString;
|
|
113
|
+
}, z.core.$strip>>>>;
|
|
114
|
+
}, z.core.$strip>>>>;
|
|
115
|
+
protocols: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
116
|
+
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
agentUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
x402Endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
readonly output: z.ZodObject<{
|
|
121
|
+
txSignature: z.ZodString;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
};
|
|
124
|
+
readonly deactivateAgent: {
|
|
125
|
+
readonly input: z.ZodObject<{}, z.core.$strip>;
|
|
126
|
+
readonly output: z.ZodObject<{
|
|
127
|
+
txSignature: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
};
|
|
130
|
+
readonly reactivateAgent: {
|
|
131
|
+
readonly input: z.ZodObject<{}, z.core.$strip>;
|
|
132
|
+
readonly output: z.ZodObject<{
|
|
133
|
+
txSignature: z.ZodString;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
};
|
|
136
|
+
readonly reportCalls: {
|
|
137
|
+
readonly input: z.ZodObject<{
|
|
138
|
+
callsServed: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
readonly output: z.ZodObject<{
|
|
141
|
+
txSignature: z.ZodString;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
};
|
|
144
|
+
readonly updateReputation: {
|
|
145
|
+
readonly input: z.ZodObject<{
|
|
146
|
+
avgLatencyMs: z.ZodNumber;
|
|
147
|
+
uptimePercent: z.ZodNumber;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
readonly output: z.ZodObject<{
|
|
150
|
+
txSignature: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
};
|
|
153
|
+
readonly fetchAgent: {
|
|
154
|
+
readonly input: z.ZodObject<{
|
|
155
|
+
wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
readonly output: z.ZodObject<{
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
description: z.ZodString;
|
|
160
|
+
isActive: z.ZodBoolean;
|
|
161
|
+
reputationScore: z.ZodNumber;
|
|
162
|
+
totalCallsServed: z.ZodString;
|
|
163
|
+
totalFeedbacks: z.ZodNumber;
|
|
164
|
+
avgLatencyMs: z.ZodNumber;
|
|
165
|
+
uptimePercent: z.ZodNumber;
|
|
166
|
+
wallet: z.ZodString;
|
|
167
|
+
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
x402Endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
+
protocolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
pricing: z.ZodArray<z.ZodObject<{
|
|
176
|
+
tierId: z.ZodString;
|
|
177
|
+
pricePerCall: z.ZodString;
|
|
178
|
+
minPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
maxPricePerCall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
rateLimit: z.ZodNumber;
|
|
181
|
+
maxCallsPerSession: z.ZodNumber;
|
|
182
|
+
burstLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
+
tokenType: z.ZodEnum<{
|
|
184
|
+
sol: "sol";
|
|
185
|
+
usdc: "usdc";
|
|
186
|
+
spl: "spl";
|
|
187
|
+
}>;
|
|
188
|
+
tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
tokenDecimals: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
190
|
+
settlementMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
191
|
+
instant: "instant";
|
|
192
|
+
escrow: "escrow";
|
|
193
|
+
batched: "batched";
|
|
194
|
+
x402: "x402";
|
|
195
|
+
}>>>;
|
|
196
|
+
minEscrowDeposit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
batchIntervalSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
198
|
+
volumeCurve: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
199
|
+
afterCalls: z.ZodNumber;
|
|
200
|
+
pricePerCall: z.ZodString;
|
|
201
|
+
}, z.core.$strip>>>>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
protocols: z.ZodArray<z.ZodString>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
};
|
|
206
|
+
readonly fetchGlobalRegistry: {
|
|
207
|
+
readonly input: z.ZodObject<{}, z.core.$strip>;
|
|
208
|
+
readonly output: z.ZodObject<{
|
|
209
|
+
totalAgents: z.ZodString;
|
|
210
|
+
activeAgents: z.ZodString;
|
|
211
|
+
totalFeedbacks: z.ZodString;
|
|
212
|
+
totalCapabilities: z.ZodNumber;
|
|
213
|
+
totalProtocols: z.ZodNumber;
|
|
214
|
+
totalTools: z.ZodNumber;
|
|
215
|
+
totalVaults: z.ZodNumber;
|
|
216
|
+
totalEscrows: z.ZodNumber;
|
|
217
|
+
totalAttestations: z.ZodNumber;
|
|
218
|
+
authority: z.ZodString;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Zod input/output schemas for the **sap-feedback** protocol (4 tools).
|
|
224
|
+
*
|
|
225
|
+
* @name feedbackSchemas
|
|
226
|
+
* @description Covers giving, updating, revoking, and fetching on-chain
|
|
227
|
+
* feedback entries tied to agent identity PDAs.
|
|
228
|
+
* @category Plugin
|
|
229
|
+
* @since v0.1.0
|
|
230
|
+
*/
|
|
231
|
+
export declare const feedbackSchemas: {
|
|
232
|
+
readonly giveFeedback: {
|
|
233
|
+
readonly input: z.ZodObject<{
|
|
234
|
+
agentWallet: z.ZodString;
|
|
235
|
+
score: z.ZodNumber;
|
|
236
|
+
tag: z.ZodString;
|
|
237
|
+
commentHash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
readonly output: z.ZodObject<{
|
|
240
|
+
txSignature: z.ZodString;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
};
|
|
243
|
+
readonly updateFeedback: {
|
|
244
|
+
readonly input: z.ZodObject<{
|
|
245
|
+
agentWallet: z.ZodString;
|
|
246
|
+
newScore: z.ZodNumber;
|
|
247
|
+
newTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
|
+
commentHash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
readonly output: z.ZodObject<{
|
|
251
|
+
txSignature: z.ZodString;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
};
|
|
254
|
+
readonly revokeFeedback: {
|
|
255
|
+
readonly input: z.ZodObject<{
|
|
256
|
+
agentWallet: z.ZodString;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
readonly output: z.ZodObject<{
|
|
259
|
+
txSignature: z.ZodString;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
};
|
|
262
|
+
readonly fetchFeedback: {
|
|
263
|
+
readonly input: z.ZodObject<{
|
|
264
|
+
agentWallet: z.ZodString;
|
|
265
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
readonly output: z.ZodObject<{
|
|
268
|
+
agent: z.ZodString;
|
|
269
|
+
reviewer: z.ZodString;
|
|
270
|
+
score: z.ZodNumber;
|
|
271
|
+
tag: z.ZodString;
|
|
272
|
+
isRevoked: z.ZodBoolean;
|
|
273
|
+
createdAt: z.ZodString;
|
|
274
|
+
updatedAt: z.ZodString;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Zod input/output schemas for the **sap-attestation** protocol (3 tools).
|
|
280
|
+
*
|
|
281
|
+
* @name attestationSchemas
|
|
282
|
+
* @description Covers creating, revoking, and fetching on-chain attestations
|
|
283
|
+
* between agents in the SAP Web of Trust.
|
|
284
|
+
* @category Plugin
|
|
285
|
+
* @since v0.1.0
|
|
286
|
+
*/
|
|
287
|
+
export declare const attestationSchemas: {
|
|
288
|
+
readonly createAttestation: {
|
|
289
|
+
readonly input: z.ZodObject<{
|
|
290
|
+
agentWallet: z.ZodString;
|
|
291
|
+
attestationType: z.ZodString;
|
|
292
|
+
metadataHash: z.ZodArray<z.ZodNumber>;
|
|
293
|
+
expiresAt: z.ZodString;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
readonly output: z.ZodObject<{
|
|
296
|
+
txSignature: z.ZodString;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
};
|
|
299
|
+
readonly revokeAttestation: {
|
|
300
|
+
readonly input: z.ZodObject<{
|
|
301
|
+
agentWallet: z.ZodString;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
readonly output: z.ZodObject<{
|
|
304
|
+
txSignature: z.ZodString;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
};
|
|
307
|
+
readonly fetchAttestation: {
|
|
308
|
+
readonly input: z.ZodObject<{
|
|
309
|
+
agentWallet: z.ZodString;
|
|
310
|
+
attester: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
readonly output: z.ZodObject<{
|
|
313
|
+
agent: z.ZodString;
|
|
314
|
+
attester: z.ZodString;
|
|
315
|
+
attestationType: z.ZodString;
|
|
316
|
+
isActive: z.ZodBoolean;
|
|
317
|
+
expiresAt: z.ZodString;
|
|
318
|
+
createdAt: z.ZodString;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Zod input/output schemas for the **sap-escrow** protocol (6 tools).
|
|
324
|
+
*
|
|
325
|
+
* @name escrowSchemas
|
|
326
|
+
* @description Covers escrow creation, deposits, settlement (single and batch),
|
|
327
|
+
* withdrawal, and account data fetching for x402 micropayments.
|
|
328
|
+
* @category Plugin
|
|
329
|
+
* @since v0.1.0
|
|
330
|
+
*/
|
|
331
|
+
export declare const escrowSchemas: {
|
|
332
|
+
readonly createEscrow: {
|
|
333
|
+
readonly input: z.ZodObject<{
|
|
334
|
+
agentWallet: z.ZodString;
|
|
335
|
+
pricePerCall: z.ZodString;
|
|
336
|
+
maxCalls: z.ZodString;
|
|
337
|
+
initialDeposit: z.ZodString;
|
|
338
|
+
expiresAt: z.ZodString;
|
|
339
|
+
volumeCurve: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
340
|
+
afterCalls: z.ZodNumber;
|
|
341
|
+
pricePerCall: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>>;
|
|
343
|
+
tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
tokenDecimals: z.ZodDefault<z.ZodNumber>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
readonly output: z.ZodObject<{
|
|
347
|
+
txSignature: z.ZodString;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
};
|
|
350
|
+
readonly depositEscrow: {
|
|
351
|
+
readonly input: z.ZodObject<{
|
|
352
|
+
agentWallet: z.ZodString;
|
|
353
|
+
amount: z.ZodString;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
readonly output: z.ZodObject<{
|
|
356
|
+
txSignature: z.ZodString;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
};
|
|
359
|
+
readonly settleEscrow: {
|
|
360
|
+
readonly input: z.ZodObject<{
|
|
361
|
+
depositorWallet: z.ZodString;
|
|
362
|
+
callsToSettle: z.ZodString;
|
|
363
|
+
serviceHash: z.ZodArray<z.ZodNumber>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
readonly output: z.ZodObject<{
|
|
366
|
+
txSignature: z.ZodString;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
};
|
|
369
|
+
readonly withdrawEscrow: {
|
|
370
|
+
readonly input: z.ZodObject<{
|
|
371
|
+
agentWallet: z.ZodString;
|
|
372
|
+
amount: z.ZodString;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
readonly output: z.ZodObject<{
|
|
375
|
+
txSignature: z.ZodString;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
};
|
|
378
|
+
readonly batchSettle: {
|
|
379
|
+
readonly input: z.ZodObject<{
|
|
380
|
+
depositorWallet: z.ZodString;
|
|
381
|
+
settlements: z.ZodArray<z.ZodObject<{
|
|
382
|
+
callsToSettle: z.ZodString;
|
|
383
|
+
serviceHash: z.ZodArray<z.ZodNumber>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
readonly output: z.ZodObject<{
|
|
387
|
+
txSignature: z.ZodString;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
};
|
|
390
|
+
readonly fetchEscrow: {
|
|
391
|
+
readonly input: z.ZodObject<{
|
|
392
|
+
agentWallet: z.ZodString;
|
|
393
|
+
depositor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
readonly output: z.ZodObject<{
|
|
396
|
+
agent: z.ZodString;
|
|
397
|
+
depositor: z.ZodString;
|
|
398
|
+
agentWallet: z.ZodString;
|
|
399
|
+
balance: z.ZodString;
|
|
400
|
+
totalDeposited: z.ZodString;
|
|
401
|
+
totalSettled: z.ZodString;
|
|
402
|
+
totalCallsSettled: z.ZodString;
|
|
403
|
+
pricePerCall: z.ZodString;
|
|
404
|
+
maxCalls: z.ZodString;
|
|
405
|
+
expiresAt: z.ZodString;
|
|
406
|
+
tokenDecimals: z.ZodNumber;
|
|
407
|
+
tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Zod input/output schemas for the **sap-tools** protocol (7 tools).
|
|
413
|
+
*
|
|
414
|
+
* @name toolsSchemas
|
|
415
|
+
* @description Covers tool publishing, schema inscription, updates,
|
|
416
|
+
* activation lifecycle, invocation reporting, and descriptor fetching.
|
|
417
|
+
* @category Plugin
|
|
418
|
+
* @since v0.1.0
|
|
419
|
+
*/
|
|
420
|
+
export declare const toolsSchemas: {
|
|
421
|
+
readonly publishToolByName: {
|
|
422
|
+
readonly input: z.ZodObject<{
|
|
423
|
+
toolName: z.ZodString;
|
|
424
|
+
protocolId: z.ZodString;
|
|
425
|
+
description: z.ZodString;
|
|
426
|
+
inputSchema: z.ZodString;
|
|
427
|
+
outputSchema: z.ZodString;
|
|
428
|
+
httpMethod: z.ZodEnum<{
|
|
429
|
+
get: "get";
|
|
430
|
+
post: "post";
|
|
431
|
+
put: "put";
|
|
432
|
+
delete: "delete";
|
|
433
|
+
compound: "compound";
|
|
434
|
+
}>;
|
|
435
|
+
category: z.ZodEnum<{
|
|
436
|
+
data: "data";
|
|
437
|
+
custom: "custom";
|
|
438
|
+
swap: "swap";
|
|
439
|
+
lend: "lend";
|
|
440
|
+
stake: "stake";
|
|
441
|
+
nft: "nft";
|
|
442
|
+
payment: "payment";
|
|
443
|
+
governance: "governance";
|
|
444
|
+
bridge: "bridge";
|
|
445
|
+
analytics: "analytics";
|
|
446
|
+
}>;
|
|
447
|
+
paramsCount: z.ZodNumber;
|
|
448
|
+
requiredParams: z.ZodNumber;
|
|
449
|
+
isCompound: z.ZodDefault<z.ZodBoolean>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
readonly output: z.ZodObject<{
|
|
452
|
+
txSignature: z.ZodString;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
};
|
|
455
|
+
readonly inscribeToolSchema: {
|
|
456
|
+
readonly input: z.ZodObject<{
|
|
457
|
+
toolName: z.ZodString;
|
|
458
|
+
schemaType: z.ZodEnum<{
|
|
459
|
+
description: "description";
|
|
460
|
+
output: "output";
|
|
461
|
+
input: "input";
|
|
462
|
+
}>;
|
|
463
|
+
schemaData: z.ZodString;
|
|
464
|
+
compression: z.ZodDefault<z.ZodEnum<{
|
|
465
|
+
none: "none";
|
|
466
|
+
deflate: "deflate";
|
|
467
|
+
gzip: "gzip";
|
|
468
|
+
brotli: "brotli";
|
|
469
|
+
}>>;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
readonly output: z.ZodObject<{
|
|
472
|
+
txSignature: z.ZodString;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
};
|
|
475
|
+
readonly updateTool: {
|
|
476
|
+
readonly input: z.ZodObject<{
|
|
477
|
+
toolName: z.ZodString;
|
|
478
|
+
httpMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
479
|
+
get: "get";
|
|
480
|
+
post: "post";
|
|
481
|
+
put: "put";
|
|
482
|
+
delete: "delete";
|
|
483
|
+
compound: "compound";
|
|
484
|
+
}>>>;
|
|
485
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
486
|
+
data: "data";
|
|
487
|
+
custom: "custom";
|
|
488
|
+
swap: "swap";
|
|
489
|
+
lend: "lend";
|
|
490
|
+
stake: "stake";
|
|
491
|
+
nft: "nft";
|
|
492
|
+
payment: "payment";
|
|
493
|
+
governance: "governance";
|
|
494
|
+
bridge: "bridge";
|
|
495
|
+
analytics: "analytics";
|
|
496
|
+
}>>>;
|
|
497
|
+
paramsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
498
|
+
requiredParams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
readonly output: z.ZodObject<{
|
|
501
|
+
txSignature: z.ZodString;
|
|
502
|
+
}, z.core.$strip>;
|
|
503
|
+
};
|
|
504
|
+
readonly deactivateTool: {
|
|
505
|
+
readonly input: z.ZodObject<{
|
|
506
|
+
toolName: z.ZodString;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
|
+
readonly output: z.ZodObject<{
|
|
509
|
+
txSignature: z.ZodString;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
};
|
|
512
|
+
readonly reactivateTool: {
|
|
513
|
+
readonly input: z.ZodObject<{
|
|
514
|
+
toolName: z.ZodString;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
readonly output: z.ZodObject<{
|
|
517
|
+
txSignature: z.ZodString;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
};
|
|
520
|
+
readonly reportInvocations: {
|
|
521
|
+
readonly input: z.ZodObject<{
|
|
522
|
+
toolName: z.ZodString;
|
|
523
|
+
invocations: z.ZodNumber;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
readonly output: z.ZodObject<{
|
|
526
|
+
txSignature: z.ZodString;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
};
|
|
529
|
+
readonly fetchTool: {
|
|
530
|
+
readonly input: z.ZodObject<{
|
|
531
|
+
agentWallet: z.ZodString;
|
|
532
|
+
toolName: z.ZodString;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
readonly output: z.ZodObject<{
|
|
535
|
+
toolName: z.ZodString;
|
|
536
|
+
version: z.ZodNumber;
|
|
537
|
+
isActive: z.ZodBoolean;
|
|
538
|
+
totalInvocations: z.ZodString;
|
|
539
|
+
paramsCount: z.ZodNumber;
|
|
540
|
+
requiredParams: z.ZodNumber;
|
|
541
|
+
isCompound: z.ZodBoolean;
|
|
542
|
+
agent: z.ZodString;
|
|
543
|
+
createdAt: z.ZodString;
|
|
544
|
+
updatedAt: z.ZodString;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Zod input/output schemas for the **sap-vault** protocol (10 tools).
|
|
550
|
+
*
|
|
551
|
+
* @name vaultSchemas
|
|
552
|
+
* @description Covers vault initialization, session management, encrypted
|
|
553
|
+
* memory inscription, nonce rotation, delegate authorization, and
|
|
554
|
+
* vault/session data fetching.
|
|
555
|
+
* @category Plugin
|
|
556
|
+
* @since v0.1.0
|
|
557
|
+
*/
|
|
558
|
+
export declare const vaultSchemas: {
|
|
559
|
+
readonly initVault: {
|
|
560
|
+
readonly input: z.ZodObject<{
|
|
561
|
+
vaultNonce: z.ZodArray<z.ZodNumber>;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
readonly output: z.ZodObject<{
|
|
564
|
+
txSignature: z.ZodString;
|
|
565
|
+
}, z.core.$strip>;
|
|
566
|
+
};
|
|
567
|
+
readonly openSession: {
|
|
568
|
+
readonly input: z.ZodObject<{
|
|
569
|
+
sessionHash: z.ZodArray<z.ZodNumber>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
readonly output: z.ZodObject<{
|
|
572
|
+
txSignature: z.ZodString;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
};
|
|
575
|
+
readonly inscribeMemory: {
|
|
576
|
+
readonly input: z.ZodObject<{
|
|
577
|
+
sessionHash: z.ZodString;
|
|
578
|
+
sequence: z.ZodNumber;
|
|
579
|
+
encryptedData: z.ZodString;
|
|
580
|
+
nonce: z.ZodArray<z.ZodNumber>;
|
|
581
|
+
contentHash: z.ZodArray<z.ZodNumber>;
|
|
582
|
+
totalFragments: z.ZodDefault<z.ZodNumber>;
|
|
583
|
+
fragmentIndex: z.ZodDefault<z.ZodNumber>;
|
|
584
|
+
compression: z.ZodDefault<z.ZodNumber>;
|
|
585
|
+
epochIndex: z.ZodDefault<z.ZodNumber>;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
readonly output: z.ZodObject<{
|
|
588
|
+
txSignature: z.ZodString;
|
|
589
|
+
}, z.core.$strip>;
|
|
590
|
+
};
|
|
591
|
+
readonly closeSession: {
|
|
592
|
+
readonly input: z.ZodObject<{
|
|
593
|
+
sessionHash: z.ZodString;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
readonly output: z.ZodObject<{
|
|
596
|
+
txSignature: z.ZodString;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
};
|
|
599
|
+
readonly closeVault: {
|
|
600
|
+
readonly input: z.ZodObject<{}, z.core.$strip>;
|
|
601
|
+
readonly output: z.ZodObject<{
|
|
602
|
+
txSignature: z.ZodString;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
};
|
|
605
|
+
readonly rotateNonce: {
|
|
606
|
+
readonly input: z.ZodObject<{
|
|
607
|
+
newNonce: z.ZodArray<z.ZodNumber>;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
readonly output: z.ZodObject<{
|
|
610
|
+
txSignature: z.ZodString;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
};
|
|
613
|
+
readonly addDelegate: {
|
|
614
|
+
readonly input: z.ZodObject<{
|
|
615
|
+
delegatePubkey: z.ZodString;
|
|
616
|
+
permissions: z.ZodNumber;
|
|
617
|
+
expiresAt: z.ZodString;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
readonly output: z.ZodObject<{
|
|
620
|
+
txSignature: z.ZodString;
|
|
621
|
+
}, z.core.$strip>;
|
|
622
|
+
};
|
|
623
|
+
readonly revokeDelegate: {
|
|
624
|
+
readonly input: z.ZodObject<{
|
|
625
|
+
delegatePubkey: z.ZodString;
|
|
626
|
+
}, z.core.$strip>;
|
|
627
|
+
readonly output: z.ZodObject<{
|
|
628
|
+
txSignature: z.ZodString;
|
|
629
|
+
}, z.core.$strip>;
|
|
630
|
+
};
|
|
631
|
+
readonly fetchVault: {
|
|
632
|
+
readonly input: z.ZodObject<{
|
|
633
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
readonly output: z.ZodObject<{
|
|
636
|
+
agent: z.ZodString;
|
|
637
|
+
wallet: z.ZodString;
|
|
638
|
+
totalSessions: z.ZodNumber;
|
|
639
|
+
totalInscriptions: z.ZodString;
|
|
640
|
+
totalBytesInscribed: z.ZodString;
|
|
641
|
+
protocolVersion: z.ZodNumber;
|
|
642
|
+
nonceVersion: z.ZodNumber;
|
|
643
|
+
createdAt: z.ZodString;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
};
|
|
646
|
+
readonly fetchSession: {
|
|
647
|
+
readonly input: z.ZodObject<{
|
|
648
|
+
agentWallet: z.ZodString;
|
|
649
|
+
sessionHash: z.ZodString;
|
|
650
|
+
}, z.core.$strip>;
|
|
651
|
+
readonly output: z.ZodObject<{
|
|
652
|
+
vault: z.ZodString;
|
|
653
|
+
sequenceCounter: z.ZodNumber;
|
|
654
|
+
totalBytes: z.ZodString;
|
|
655
|
+
currentEpoch: z.ZodNumber;
|
|
656
|
+
totalEpochs: z.ZodNumber;
|
|
657
|
+
isClosed: z.ZodBoolean;
|
|
658
|
+
createdAt: z.ZodString;
|
|
659
|
+
lastInscribedAt: z.ZodString;
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Zod input/output schemas for the **sap-indexing** protocol (8 tools).
|
|
665
|
+
*
|
|
666
|
+
* @name indexingSchemas
|
|
667
|
+
* @description Covers capability and protocol index creation, agent
|
|
668
|
+
* registration/removal within indexes, and index data fetching.
|
|
669
|
+
* @category Plugin
|
|
670
|
+
* @since v0.1.0
|
|
671
|
+
*/
|
|
672
|
+
export declare const indexingSchemas: {
|
|
673
|
+
readonly initCapabilityIndex: {
|
|
674
|
+
readonly input: z.ZodObject<{
|
|
675
|
+
capabilityId: z.ZodString;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
readonly output: z.ZodObject<{
|
|
678
|
+
txSignature: z.ZodString;
|
|
679
|
+
}, z.core.$strip>;
|
|
680
|
+
};
|
|
681
|
+
readonly addToCapabilityIndex: {
|
|
682
|
+
readonly input: z.ZodObject<{
|
|
683
|
+
capabilityId: z.ZodString;
|
|
684
|
+
}, z.core.$strip>;
|
|
685
|
+
readonly output: z.ZodObject<{
|
|
686
|
+
txSignature: z.ZodString;
|
|
687
|
+
}, z.core.$strip>;
|
|
688
|
+
};
|
|
689
|
+
readonly removeFromCapabilityIndex: {
|
|
690
|
+
readonly input: z.ZodObject<{
|
|
691
|
+
capabilityId: z.ZodString;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
readonly output: z.ZodObject<{
|
|
694
|
+
txSignature: z.ZodString;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
};
|
|
697
|
+
readonly initProtocolIndex: {
|
|
698
|
+
readonly input: z.ZodObject<{
|
|
699
|
+
protocolId: z.ZodString;
|
|
700
|
+
}, z.core.$strip>;
|
|
701
|
+
readonly output: z.ZodObject<{
|
|
702
|
+
txSignature: z.ZodString;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
};
|
|
705
|
+
readonly addToProtocolIndex: {
|
|
706
|
+
readonly input: z.ZodObject<{
|
|
707
|
+
protocolId: z.ZodString;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
readonly output: z.ZodObject<{
|
|
710
|
+
txSignature: z.ZodString;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
};
|
|
713
|
+
readonly removeFromProtocolIndex: {
|
|
714
|
+
readonly input: z.ZodObject<{
|
|
715
|
+
protocolId: z.ZodString;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
readonly output: z.ZodObject<{
|
|
718
|
+
txSignature: z.ZodString;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
};
|
|
721
|
+
readonly fetchCapabilityIndex: {
|
|
722
|
+
readonly input: z.ZodObject<{
|
|
723
|
+
capabilityId: z.ZodString;
|
|
724
|
+
}, z.core.$strip>;
|
|
725
|
+
readonly output: z.ZodObject<{
|
|
726
|
+
capabilityId: z.ZodString;
|
|
727
|
+
agents: z.ZodArray<z.ZodString>;
|
|
728
|
+
totalPages: z.ZodNumber;
|
|
729
|
+
lastUpdated: z.ZodString;
|
|
730
|
+
}, z.core.$strip>;
|
|
731
|
+
};
|
|
732
|
+
readonly fetchProtocolIndex: {
|
|
733
|
+
readonly input: z.ZodObject<{
|
|
734
|
+
protocolId: z.ZodString;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
readonly output: z.ZodObject<{
|
|
737
|
+
protocolId: z.ZodString;
|
|
738
|
+
agents: z.ZodArray<z.ZodString>;
|
|
739
|
+
totalPages: z.ZodNumber;
|
|
740
|
+
lastUpdated: z.ZodString;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* Zod input/output schemas for the **sap-ledger** protocol (6 tools).
|
|
746
|
+
*
|
|
747
|
+
* @name ledgerSchemas
|
|
748
|
+
* @description Covers ledger initialization, ring-buffer writes, sealing
|
|
749
|
+
* to permanent pages, ledger closure, and metadata/page fetching.
|
|
750
|
+
* @category Plugin
|
|
751
|
+
* @since v0.1.0
|
|
752
|
+
*/
|
|
753
|
+
export declare const ledgerSchemas: {
|
|
754
|
+
readonly initLedger: {
|
|
755
|
+
readonly input: z.ZodObject<{
|
|
756
|
+
sessionHash: z.ZodString;
|
|
757
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
readonly output: z.ZodObject<{
|
|
760
|
+
txSignature: z.ZodString;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
};
|
|
763
|
+
readonly writeLedger: {
|
|
764
|
+
readonly input: z.ZodObject<{
|
|
765
|
+
sessionHash: z.ZodString;
|
|
766
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
767
|
+
data: z.ZodString;
|
|
768
|
+
contentHash: z.ZodArray<z.ZodNumber>;
|
|
769
|
+
}, z.core.$strip>;
|
|
770
|
+
readonly output: z.ZodObject<{
|
|
771
|
+
txSignature: z.ZodString;
|
|
772
|
+
}, z.core.$strip>;
|
|
773
|
+
};
|
|
774
|
+
readonly sealLedger: {
|
|
775
|
+
readonly input: z.ZodObject<{
|
|
776
|
+
sessionHash: z.ZodString;
|
|
777
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
778
|
+
}, z.core.$strip>;
|
|
779
|
+
readonly output: z.ZodObject<{
|
|
780
|
+
txSignature: z.ZodString;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
};
|
|
783
|
+
readonly closeLedger: {
|
|
784
|
+
readonly input: z.ZodObject<{
|
|
785
|
+
sessionHash: z.ZodString;
|
|
786
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
readonly output: z.ZodObject<{
|
|
789
|
+
txSignature: z.ZodString;
|
|
790
|
+
}, z.core.$strip>;
|
|
791
|
+
};
|
|
792
|
+
readonly fetchLedger: {
|
|
793
|
+
readonly input: z.ZodObject<{
|
|
794
|
+
sessionHash: z.ZodString;
|
|
795
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
|
+
}, z.core.$strip>;
|
|
797
|
+
readonly output: z.ZodObject<{
|
|
798
|
+
session: z.ZodString;
|
|
799
|
+
authority: z.ZodString;
|
|
800
|
+
numEntries: z.ZodNumber;
|
|
801
|
+
totalDataSize: z.ZodString;
|
|
802
|
+
numPages: z.ZodNumber;
|
|
803
|
+
createdAt: z.ZodString;
|
|
804
|
+
updatedAt: z.ZodString;
|
|
805
|
+
}, z.core.$strip>;
|
|
806
|
+
};
|
|
807
|
+
readonly fetchLedgerPage: {
|
|
808
|
+
readonly input: z.ZodObject<{
|
|
809
|
+
sessionHash: z.ZodString;
|
|
810
|
+
agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
pageIndex: z.ZodNumber;
|
|
812
|
+
}, z.core.$strip>;
|
|
813
|
+
readonly output: z.ZodObject<{
|
|
814
|
+
ledger: z.ZodString;
|
|
815
|
+
pageIndex: z.ZodNumber;
|
|
816
|
+
sealedAt: z.ZodString;
|
|
817
|
+
entriesInPage: z.ZodNumber;
|
|
818
|
+
dataSize: z.ZodNumber;
|
|
819
|
+
data: z.ZodArray<z.ZodNumber>;
|
|
820
|
+
}, z.core.$strip>;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
//# sourceMappingURL=schemas.d.ts.map
|