@oobe-protocol-labs/synapse-sap-sdk 0.15.0 → 0.15.1

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.
Files changed (151) hide show
  1. package/dist/cjs/client.js +1 -1
  2. package/dist/cjs/client.js.map +1 -1
  3. package/dist/esm/client.js +1 -1
  4. package/dist/esm/client.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/esm/instructions/memory.d.ts +0 -8
  7. package/dist/esm/instructions/memory.d.ts.map +0 -1
  8. package/dist/esm/instructions/memory.js +0 -234
  9. package/dist/esm/instructions/memory.js.map +0 -1
  10. package/dist/types/constants/addresses.d.ts +0 -117
  11. package/dist/types/constants/addresses.d.ts.map +0 -1
  12. package/dist/types/constants/index.d.ts +0 -31
  13. package/dist/types/constants/index.d.ts.map +0 -1
  14. package/dist/types/constants/limits.d.ts +0 -149
  15. package/dist/types/constants/limits.d.ts.map +0 -1
  16. package/dist/types/constants/network.d.ts +0 -81
  17. package/dist/types/constants/network.d.ts.map +0 -1
  18. package/dist/types/constants/payments.d.ts +0 -121
  19. package/dist/types/constants/payments.d.ts.map +0 -1
  20. package/dist/types/constants/programs.d.ts +0 -69
  21. package/dist/types/constants/programs.d.ts.map +0 -1
  22. package/dist/types/constants/seeds.d.ts +0 -82
  23. package/dist/types/constants/seeds.d.ts.map +0 -1
  24. package/dist/types/core/client.d.ts +0 -467
  25. package/dist/types/core/client.d.ts.map +0 -1
  26. package/dist/types/core/connection.d.ts +0 -305
  27. package/dist/types/core/connection.d.ts.map +0 -1
  28. package/dist/types/core/index.d.ts +0 -20
  29. package/dist/types/core/index.d.ts.map +0 -1
  30. package/dist/types/errors/index.d.ts +0 -335
  31. package/dist/types/errors/index.d.ts.map +0 -1
  32. package/dist/types/events/geyser.d.ts +0 -150
  33. package/dist/types/events/geyser.d.ts.map +0 -1
  34. package/dist/types/events/index.d.ts +0 -248
  35. package/dist/types/events/index.d.ts.map +0 -1
  36. package/dist/types/idl/index.d.ts +0 -70
  37. package/dist/types/idl/index.d.ts.map +0 -1
  38. package/dist/types/index.d.ts +0 -86
  39. package/dist/types/index.d.ts.map +0 -1
  40. package/dist/types/modules/agent.d.ts +0 -156
  41. package/dist/types/modules/agent.d.ts.map +0 -1
  42. package/dist/types/modules/attestation.d.ts +0 -96
  43. package/dist/types/modules/attestation.d.ts.map +0 -1
  44. package/dist/types/modules/base.d.ts +0 -215
  45. package/dist/types/modules/base.d.ts.map +0 -1
  46. package/dist/types/modules/escrow-v2.d.ts +0 -285
  47. package/dist/types/modules/escrow-v2.d.ts.map +0 -1
  48. package/dist/types/modules/feedback.d.ts +0 -105
  49. package/dist/types/modules/feedback.d.ts.map +0 -1
  50. package/dist/types/modules/index.d.ts +0 -27
  51. package/dist/types/modules/index.d.ts.map +0 -1
  52. package/dist/types/modules/indexing.d.ts +0 -200
  53. package/dist/types/modules/indexing.d.ts.map +0 -1
  54. package/dist/types/modules/ledger.d.ts +0 -150
  55. package/dist/types/modules/ledger.d.ts.map +0 -1
  56. package/dist/types/modules/receipt.d.ts +0 -91
  57. package/dist/types/modules/receipt.d.ts.map +0 -1
  58. package/dist/types/modules/staking.d.ts +0 -51
  59. package/dist/types/modules/staking.d.ts.map +0 -1
  60. package/dist/types/modules/subscription.d.ts +0 -33
  61. package/dist/types/modules/subscription.d.ts.map +0 -1
  62. package/dist/types/modules/tools.d.ts +0 -172
  63. package/dist/types/modules/tools.d.ts.map +0 -1
  64. package/dist/types/modules/vault.d.ts +0 -240
  65. package/dist/types/modules/vault.d.ts.map +0 -1
  66. package/dist/types/parser/client.d.ts +0 -123
  67. package/dist/types/parser/client.d.ts.map +0 -1
  68. package/dist/types/parser/complete.d.ts +0 -90
  69. package/dist/types/parser/complete.d.ts.map +0 -1
  70. package/dist/types/parser/index.d.ts +0 -40
  71. package/dist/types/parser/index.d.ts.map +0 -1
  72. package/dist/types/parser/inner.d.ts +0 -114
  73. package/dist/types/parser/inner.d.ts.map +0 -1
  74. package/dist/types/parser/instructions.d.ts +0 -76
  75. package/dist/types/parser/instructions.d.ts.map +0 -1
  76. package/dist/types/parser/transaction.d.ts +0 -77
  77. package/dist/types/parser/transaction.d.ts.map +0 -1
  78. package/dist/types/parser/types.d.ts +0 -154
  79. package/dist/types/parser/types.d.ts.map +0 -1
  80. package/dist/types/pda/index.d.ts +0 -527
  81. package/dist/types/pda/index.d.ts.map +0 -1
  82. package/dist/types/plugin/index.d.ts +0 -171
  83. package/dist/types/plugin/index.d.ts.map +0 -1
  84. package/dist/types/plugin/protocols.d.ts +0 -152
  85. package/dist/types/plugin/protocols.d.ts.map +0 -1
  86. package/dist/types/plugin/schemas.d.ts +0 -829
  87. package/dist/types/plugin/schemas.d.ts.map +0 -1
  88. package/dist/types/postgres/adapter.d.ts +0 -355
  89. package/dist/types/postgres/adapter.d.ts.map +0 -1
  90. package/dist/types/postgres/index.d.ts +0 -24
  91. package/dist/types/postgres/index.d.ts.map +0 -1
  92. package/dist/types/postgres/serializers.d.ts +0 -30
  93. package/dist/types/postgres/serializers.d.ts.map +0 -1
  94. package/dist/types/postgres/sync.d.ts +0 -156
  95. package/dist/types/postgres/sync.d.ts.map +0 -1
  96. package/dist/types/postgres/types.d.ts +0 -167
  97. package/dist/types/postgres/types.d.ts.map +0 -1
  98. package/dist/types/registries/builder.d.ts +0 -333
  99. package/dist/types/registries/builder.d.ts.map +0 -1
  100. package/dist/types/registries/discovery.d.ts +0 -333
  101. package/dist/types/registries/discovery.d.ts.map +0 -1
  102. package/dist/types/registries/fairscale.d.ts +0 -680
  103. package/dist/types/registries/fairscale.d.ts.map +0 -1
  104. package/dist/types/registries/index.d.ts +0 -52
  105. package/dist/types/registries/index.d.ts.map +0 -1
  106. package/dist/types/registries/metaplex-bridge.d.ts +0 -488
  107. package/dist/types/registries/metaplex-bridge.d.ts.map +0 -1
  108. package/dist/types/registries/session.d.ts +0 -317
  109. package/dist/types/registries/session.d.ts.map +0 -1
  110. package/dist/types/registries/x402.d.ts +0 -523
  111. package/dist/types/registries/x402.d.ts.map +0 -1
  112. package/dist/types/types/accounts.d.ts +0 -817
  113. package/dist/types/types/accounts.d.ts.map +0 -1
  114. package/dist/types/types/common.d.ts +0 -166
  115. package/dist/types/types/common.d.ts.map +0 -1
  116. package/dist/types/types/endpoint.d.ts +0 -161
  117. package/dist/types/types/endpoint.d.ts.map +0 -1
  118. package/dist/types/types/enums.d.ts +0 -353
  119. package/dist/types/types/enums.d.ts.map +0 -1
  120. package/dist/types/types/index.d.ts +0 -29
  121. package/dist/types/types/index.d.ts.map +0 -1
  122. package/dist/types/types/instructions.d.ts +0 -400
  123. package/dist/types/types/instructions.d.ts.map +0 -1
  124. package/dist/types/utils/anchor-errors.d.ts +0 -61
  125. package/dist/types/utils/anchor-errors.d.ts.map +0 -1
  126. package/dist/types/utils/endpoint-validator.d.ts +0 -110
  127. package/dist/types/utils/endpoint-validator.d.ts.map +0 -1
  128. package/dist/types/utils/escrow-validation.d.ts +0 -145
  129. package/dist/types/utils/escrow-validation.d.ts.map +0 -1
  130. package/dist/types/utils/hash.d.ts +0 -75
  131. package/dist/types/utils/hash.d.ts.map +0 -1
  132. package/dist/types/utils/index.d.ts +0 -36
  133. package/dist/types/utils/index.d.ts.map +0 -1
  134. package/dist/types/utils/merchant-validator.d.ts +0 -176
  135. package/dist/types/utils/merchant-validator.d.ts.map +0 -1
  136. package/dist/types/utils/network-normalizer.d.ts +0 -120
  137. package/dist/types/utils/network-normalizer.d.ts.map +0 -1
  138. package/dist/types/utils/priority-fee.d.ts +0 -205
  139. package/dist/types/utils/priority-fee.d.ts.map +0 -1
  140. package/dist/types/utils/rpc-strategy.d.ts +0 -179
  141. package/dist/types/utils/rpc-strategy.d.ts.map +0 -1
  142. package/dist/types/utils/schemas.d.ts +0 -351
  143. package/dist/types/utils/schemas.d.ts.map +0 -1
  144. package/dist/types/utils/serialization.d.ts +0 -69
  145. package/dist/types/utils/serialization.d.ts.map +0 -1
  146. package/dist/types/utils/validation.d.ts +0 -29
  147. package/dist/types/utils/validation.d.ts.map +0 -1
  148. package/dist/types/utils/volume-curve.d.ts +0 -60
  149. package/dist/types/utils/volume-curve.d.ts.map +0 -1
  150. package/dist/types/utils/x402-direct.d.ts +0 -114
  151. package/dist/types/utils/x402-direct.d.ts.map +0 -1
@@ -1,829 +0,0 @@
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
- x402: "x402";
57
- instant: "instant";
58
- escrow: "escrow";
59
- batched: "batched";
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
- x402: "x402";
104
- instant: "instant";
105
- escrow: "escrow";
106
- batched: "batched";
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
- x402: "x402";
192
- instant: "instant";
193
- escrow: "escrow";
194
- batched: "batched";
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
- priorityFeeMicroLamports: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
365
- computeUnits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
- skipPreflight: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
367
- }, z.core.$strip>;
368
- readonly output: z.ZodObject<{
369
- txSignature: z.ZodString;
370
- }, z.core.$strip>;
371
- };
372
- readonly withdrawEscrow: {
373
- readonly input: z.ZodObject<{
374
- agentWallet: z.ZodString;
375
- amount: z.ZodString;
376
- }, z.core.$strip>;
377
- readonly output: z.ZodObject<{
378
- txSignature: z.ZodString;
379
- }, z.core.$strip>;
380
- };
381
- readonly batchSettle: {
382
- readonly input: z.ZodObject<{
383
- depositorWallet: z.ZodString;
384
- settlements: z.ZodArray<z.ZodObject<{
385
- callsToSettle: z.ZodString;
386
- serviceHash: z.ZodArray<z.ZodNumber>;
387
- }, z.core.$strip>>;
388
- priorityFeeMicroLamports: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
389
- computeUnits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
390
- skipPreflight: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
391
- }, z.core.$strip>;
392
- readonly output: z.ZodObject<{
393
- txSignature: z.ZodString;
394
- }, z.core.$strip>;
395
- };
396
- readonly fetchEscrow: {
397
- readonly input: z.ZodObject<{
398
- agentWallet: z.ZodString;
399
- depositor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
- }, z.core.$strip>;
401
- readonly output: z.ZodObject<{
402
- agent: z.ZodString;
403
- depositor: z.ZodString;
404
- agentWallet: z.ZodString;
405
- balance: z.ZodString;
406
- totalDeposited: z.ZodString;
407
- totalSettled: z.ZodString;
408
- totalCallsSettled: z.ZodString;
409
- pricePerCall: z.ZodString;
410
- maxCalls: z.ZodString;
411
- expiresAt: z.ZodString;
412
- tokenDecimals: z.ZodNumber;
413
- tokenMint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
- }, z.core.$strip>;
415
- };
416
- };
417
- /**
418
- * Zod input/output schemas for the **sap-tools** protocol (7 tools).
419
- *
420
- * @name toolsSchemas
421
- * @description Covers tool publishing, schema inscription, updates,
422
- * activation lifecycle, invocation reporting, and descriptor fetching.
423
- * @category Plugin
424
- * @since v0.1.0
425
- */
426
- export declare const toolsSchemas: {
427
- readonly publishToolByName: {
428
- readonly input: z.ZodObject<{
429
- toolName: z.ZodString;
430
- protocolId: z.ZodString;
431
- description: z.ZodString;
432
- inputSchema: z.ZodString;
433
- outputSchema: z.ZodString;
434
- httpMethod: z.ZodEnum<{
435
- get: "get";
436
- post: "post";
437
- put: "put";
438
- delete: "delete";
439
- compound: "compound";
440
- }>;
441
- category: z.ZodEnum<{
442
- custom: "custom";
443
- stake: "stake";
444
- data: "data";
445
- swap: "swap";
446
- lend: "lend";
447
- nft: "nft";
448
- payment: "payment";
449
- governance: "governance";
450
- bridge: "bridge";
451
- analytics: "analytics";
452
- }>;
453
- paramsCount: z.ZodNumber;
454
- requiredParams: z.ZodNumber;
455
- isCompound: z.ZodDefault<z.ZodBoolean>;
456
- }, z.core.$strip>;
457
- readonly output: z.ZodObject<{
458
- txSignature: z.ZodString;
459
- }, z.core.$strip>;
460
- };
461
- readonly inscribeToolSchema: {
462
- readonly input: z.ZodObject<{
463
- toolName: z.ZodString;
464
- schemaType: z.ZodEnum<{
465
- output: "output";
466
- input: "input";
467
- description: "description";
468
- }>;
469
- schemaData: z.ZodString;
470
- compression: z.ZodDefault<z.ZodEnum<{
471
- none: "none";
472
- deflate: "deflate";
473
- gzip: "gzip";
474
- brotli: "brotli";
475
- }>>;
476
- }, z.core.$strip>;
477
- readonly output: z.ZodObject<{
478
- txSignature: z.ZodString;
479
- }, z.core.$strip>;
480
- };
481
- readonly updateTool: {
482
- readonly input: z.ZodObject<{
483
- toolName: z.ZodString;
484
- httpMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
485
- get: "get";
486
- post: "post";
487
- put: "put";
488
- delete: "delete";
489
- compound: "compound";
490
- }>>>;
491
- category: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
492
- custom: "custom";
493
- stake: "stake";
494
- data: "data";
495
- swap: "swap";
496
- lend: "lend";
497
- nft: "nft";
498
- payment: "payment";
499
- governance: "governance";
500
- bridge: "bridge";
501
- analytics: "analytics";
502
- }>>>;
503
- paramsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
504
- requiredParams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
505
- }, z.core.$strip>;
506
- readonly output: z.ZodObject<{
507
- txSignature: z.ZodString;
508
- }, z.core.$strip>;
509
- };
510
- readonly deactivateTool: {
511
- readonly input: z.ZodObject<{
512
- toolName: z.ZodString;
513
- }, z.core.$strip>;
514
- readonly output: z.ZodObject<{
515
- txSignature: z.ZodString;
516
- }, z.core.$strip>;
517
- };
518
- readonly reactivateTool: {
519
- readonly input: z.ZodObject<{
520
- toolName: z.ZodString;
521
- }, z.core.$strip>;
522
- readonly output: z.ZodObject<{
523
- txSignature: z.ZodString;
524
- }, z.core.$strip>;
525
- };
526
- readonly reportInvocations: {
527
- readonly input: z.ZodObject<{
528
- toolName: z.ZodString;
529
- invocations: z.ZodNumber;
530
- }, z.core.$strip>;
531
- readonly output: z.ZodObject<{
532
- txSignature: z.ZodString;
533
- }, z.core.$strip>;
534
- };
535
- readonly fetchTool: {
536
- readonly input: z.ZodObject<{
537
- agentWallet: z.ZodString;
538
- toolName: z.ZodString;
539
- }, z.core.$strip>;
540
- readonly output: z.ZodObject<{
541
- toolName: z.ZodString;
542
- version: z.ZodNumber;
543
- isActive: z.ZodBoolean;
544
- totalInvocations: z.ZodString;
545
- paramsCount: z.ZodNumber;
546
- requiredParams: z.ZodNumber;
547
- isCompound: z.ZodBoolean;
548
- agent: z.ZodString;
549
- createdAt: z.ZodString;
550
- updatedAt: z.ZodString;
551
- }, z.core.$strip>;
552
- };
553
- };
554
- /**
555
- * Zod input/output schemas for the **sap-vault** protocol (10 tools).
556
- *
557
- * @name vaultSchemas
558
- * @description Covers vault initialization, session management, encrypted
559
- * memory inscription, nonce rotation, delegate authorization, and
560
- * vault/session data fetching.
561
- * @category Plugin
562
- * @since v0.1.0
563
- */
564
- export declare const vaultSchemas: {
565
- readonly initVault: {
566
- readonly input: z.ZodObject<{
567
- vaultNonce: z.ZodArray<z.ZodNumber>;
568
- }, z.core.$strip>;
569
- readonly output: z.ZodObject<{
570
- txSignature: z.ZodString;
571
- }, z.core.$strip>;
572
- };
573
- readonly openSession: {
574
- readonly input: z.ZodObject<{
575
- sessionHash: z.ZodArray<z.ZodNumber>;
576
- }, z.core.$strip>;
577
- readonly output: z.ZodObject<{
578
- txSignature: z.ZodString;
579
- }, z.core.$strip>;
580
- };
581
- readonly inscribeMemory: {
582
- readonly input: z.ZodObject<{
583
- sessionHash: z.ZodString;
584
- sequence: z.ZodNumber;
585
- encryptedData: z.ZodString;
586
- nonce: z.ZodArray<z.ZodNumber>;
587
- contentHash: z.ZodArray<z.ZodNumber>;
588
- totalFragments: z.ZodDefault<z.ZodNumber>;
589
- fragmentIndex: z.ZodDefault<z.ZodNumber>;
590
- compression: z.ZodDefault<z.ZodNumber>;
591
- epochIndex: z.ZodDefault<z.ZodNumber>;
592
- }, z.core.$strip>;
593
- readonly output: z.ZodObject<{
594
- txSignature: z.ZodString;
595
- }, z.core.$strip>;
596
- };
597
- readonly closeSession: {
598
- readonly input: z.ZodObject<{
599
- sessionHash: z.ZodString;
600
- }, z.core.$strip>;
601
- readonly output: z.ZodObject<{
602
- txSignature: z.ZodString;
603
- }, z.core.$strip>;
604
- };
605
- readonly closeVault: {
606
- readonly input: z.ZodObject<{}, z.core.$strip>;
607
- readonly output: z.ZodObject<{
608
- txSignature: z.ZodString;
609
- }, z.core.$strip>;
610
- };
611
- readonly rotateNonce: {
612
- readonly input: z.ZodObject<{
613
- newNonce: z.ZodArray<z.ZodNumber>;
614
- }, z.core.$strip>;
615
- readonly output: z.ZodObject<{
616
- txSignature: z.ZodString;
617
- }, z.core.$strip>;
618
- };
619
- readonly addDelegate: {
620
- readonly input: z.ZodObject<{
621
- delegatePubkey: z.ZodString;
622
- permissions: z.ZodNumber;
623
- expiresAt: z.ZodString;
624
- }, z.core.$strip>;
625
- readonly output: z.ZodObject<{
626
- txSignature: z.ZodString;
627
- }, z.core.$strip>;
628
- };
629
- readonly revokeDelegate: {
630
- readonly input: z.ZodObject<{
631
- delegatePubkey: z.ZodString;
632
- }, z.core.$strip>;
633
- readonly output: z.ZodObject<{
634
- txSignature: z.ZodString;
635
- }, z.core.$strip>;
636
- };
637
- readonly fetchVault: {
638
- readonly input: z.ZodObject<{
639
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
- }, z.core.$strip>;
641
- readonly output: z.ZodObject<{
642
- agent: z.ZodString;
643
- wallet: z.ZodString;
644
- totalSessions: z.ZodNumber;
645
- totalInscriptions: z.ZodString;
646
- totalBytesInscribed: z.ZodString;
647
- protocolVersion: z.ZodNumber;
648
- nonceVersion: z.ZodNumber;
649
- createdAt: z.ZodString;
650
- }, z.core.$strip>;
651
- };
652
- readonly fetchSession: {
653
- readonly input: z.ZodObject<{
654
- agentWallet: z.ZodString;
655
- sessionHash: z.ZodString;
656
- }, z.core.$strip>;
657
- readonly output: z.ZodObject<{
658
- vault: z.ZodString;
659
- sequenceCounter: z.ZodNumber;
660
- totalBytes: z.ZodString;
661
- currentEpoch: z.ZodNumber;
662
- totalEpochs: z.ZodNumber;
663
- isClosed: z.ZodBoolean;
664
- createdAt: z.ZodString;
665
- lastInscribedAt: z.ZodString;
666
- }, z.core.$strip>;
667
- };
668
- };
669
- /**
670
- * Zod input/output schemas for the **sap-indexing** protocol (8 tools).
671
- *
672
- * @name indexingSchemas
673
- * @description Covers capability and protocol index creation, agent
674
- * registration/removal within indexes, and index data fetching.
675
- * @category Plugin
676
- * @since v0.1.0
677
- */
678
- export declare const indexingSchemas: {
679
- readonly initCapabilityIndex: {
680
- readonly input: z.ZodObject<{
681
- capabilityId: z.ZodString;
682
- }, z.core.$strip>;
683
- readonly output: z.ZodObject<{
684
- txSignature: z.ZodString;
685
- }, z.core.$strip>;
686
- };
687
- readonly addToCapabilityIndex: {
688
- readonly input: z.ZodObject<{
689
- capabilityId: z.ZodString;
690
- }, z.core.$strip>;
691
- readonly output: z.ZodObject<{
692
- txSignature: z.ZodString;
693
- }, z.core.$strip>;
694
- };
695
- readonly removeFromCapabilityIndex: {
696
- readonly input: z.ZodObject<{
697
- capabilityId: z.ZodString;
698
- }, z.core.$strip>;
699
- readonly output: z.ZodObject<{
700
- txSignature: z.ZodString;
701
- }, z.core.$strip>;
702
- };
703
- readonly initProtocolIndex: {
704
- readonly input: z.ZodObject<{
705
- protocolId: z.ZodString;
706
- }, z.core.$strip>;
707
- readonly output: z.ZodObject<{
708
- txSignature: z.ZodString;
709
- }, z.core.$strip>;
710
- };
711
- readonly addToProtocolIndex: {
712
- readonly input: z.ZodObject<{
713
- protocolId: z.ZodString;
714
- }, z.core.$strip>;
715
- readonly output: z.ZodObject<{
716
- txSignature: z.ZodString;
717
- }, z.core.$strip>;
718
- };
719
- readonly removeFromProtocolIndex: {
720
- readonly input: z.ZodObject<{
721
- protocolId: z.ZodString;
722
- }, z.core.$strip>;
723
- readonly output: z.ZodObject<{
724
- txSignature: z.ZodString;
725
- }, z.core.$strip>;
726
- };
727
- readonly fetchCapabilityIndex: {
728
- readonly input: z.ZodObject<{
729
- capabilityId: z.ZodString;
730
- }, z.core.$strip>;
731
- readonly output: z.ZodObject<{
732
- capabilityId: z.ZodString;
733
- agents: z.ZodArray<z.ZodString>;
734
- totalPages: z.ZodNumber;
735
- lastUpdated: z.ZodString;
736
- }, z.core.$strip>;
737
- };
738
- readonly fetchProtocolIndex: {
739
- readonly input: z.ZodObject<{
740
- protocolId: z.ZodString;
741
- }, z.core.$strip>;
742
- readonly output: z.ZodObject<{
743
- protocolId: z.ZodString;
744
- agents: z.ZodArray<z.ZodString>;
745
- totalPages: z.ZodNumber;
746
- lastUpdated: z.ZodString;
747
- }, z.core.$strip>;
748
- };
749
- };
750
- /**
751
- * Zod input/output schemas for the **sap-ledger** protocol (6 tools).
752
- *
753
- * @name ledgerSchemas
754
- * @description Covers ledger initialization, ring-buffer writes, sealing
755
- * to permanent pages, ledger closure, and metadata/page fetching.
756
- * @category Plugin
757
- * @since v0.1.0
758
- */
759
- export declare const ledgerSchemas: {
760
- readonly initLedger: {
761
- readonly input: z.ZodObject<{
762
- sessionHash: z.ZodString;
763
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
- }, z.core.$strip>;
765
- readonly output: z.ZodObject<{
766
- txSignature: z.ZodString;
767
- }, z.core.$strip>;
768
- };
769
- readonly writeLedger: {
770
- readonly input: z.ZodObject<{
771
- sessionHash: z.ZodString;
772
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
- data: z.ZodString;
774
- contentHash: z.ZodArray<z.ZodNumber>;
775
- }, z.core.$strip>;
776
- readonly output: z.ZodObject<{
777
- txSignature: z.ZodString;
778
- }, z.core.$strip>;
779
- };
780
- readonly sealLedger: {
781
- readonly input: z.ZodObject<{
782
- sessionHash: z.ZodString;
783
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
- }, z.core.$strip>;
785
- readonly output: z.ZodObject<{
786
- txSignature: z.ZodString;
787
- }, z.core.$strip>;
788
- };
789
- readonly closeLedger: {
790
- readonly input: z.ZodObject<{
791
- sessionHash: z.ZodString;
792
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
- }, z.core.$strip>;
794
- readonly output: z.ZodObject<{
795
- txSignature: z.ZodString;
796
- }, z.core.$strip>;
797
- };
798
- readonly fetchLedger: {
799
- readonly input: z.ZodObject<{
800
- sessionHash: z.ZodString;
801
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
- }, z.core.$strip>;
803
- readonly output: z.ZodObject<{
804
- session: z.ZodString;
805
- authority: z.ZodString;
806
- numEntries: z.ZodNumber;
807
- totalDataSize: z.ZodString;
808
- numPages: z.ZodNumber;
809
- createdAt: z.ZodString;
810
- updatedAt: z.ZodString;
811
- }, z.core.$strip>;
812
- };
813
- readonly fetchLedgerPage: {
814
- readonly input: z.ZodObject<{
815
- sessionHash: z.ZodString;
816
- agentWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
- pageIndex: z.ZodNumber;
818
- }, z.core.$strip>;
819
- readonly output: z.ZodObject<{
820
- ledger: z.ZodString;
821
- pageIndex: z.ZodNumber;
822
- sealedAt: z.ZodString;
823
- entriesInPage: z.ZodNumber;
824
- dataSize: z.ZodNumber;
825
- data: z.ZodArray<z.ZodNumber>;
826
- }, z.core.$strip>;
827
- };
828
- };
829
- //# sourceMappingURL=schemas.d.ts.map