@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,400 +0,0 @@
1
- /**
2
- * @module types/instructions
3
- * @description Instruction argument DTOs and helper enumerations.
4
- *
5
- * These interfaces map 1:1 to the Anchor instruction argument structs.
6
- * Use them when calling SDK module methods.
7
- *
8
- * @category Types
9
- * @since v0.1.0
10
- */
11
- import type { PublicKey } from "@solana/web3.js";
12
- import type BN from "bn.js";
13
- import type { Capability, PricingTier, VolumeCurveBreakpoint } from "./common";
14
- /**
15
- * @interface RegisterAgentArgs
16
- * @description Arguments for the `registerAgent` instruction.
17
- *
18
- * Creates a new on-chain agent identity with the given profile,
19
- * capabilities, pricing tiers, and protocol support.
20
- *
21
- * @category Types
22
- * @since v0.1.0
23
- *
24
- * @example
25
- * ```ts
26
- * import { TokenType } from "@synapse-sap/sdk";
27
- *
28
- * const args: RegisterAgentArgs = {
29
- * name: "My Agent",
30
- * description: "A helpful Solana agent",
31
- * capabilities: [{ id: "jupiter:swap", description: null, protocolId: "jupiter", version: "1.0" }],
32
- * pricing: [],
33
- * protocols: ["solana-agent-protocol"],
34
- * };
35
- * ```
36
- */
37
- export interface RegisterAgentArgs {
38
- /** Agent display name. */
39
- readonly name: string;
40
- /** Agent description. */
41
- readonly description: string;
42
- /** Capabilities the agent exposes. */
43
- readonly capabilities: Capability[];
44
- /** Pricing tiers for the agent's services. */
45
- readonly pricing: PricingTier[];
46
- /** Supported protocol identifiers. */
47
- readonly protocols: string[];
48
- /** Optional off-chain agent identifier. */
49
- readonly agentId?: string | null;
50
- /** Optional URI to extended metadata. */
51
- readonly agentUri?: string | null;
52
- /** Optional x402 payment endpoint. */
53
- readonly x402Endpoint?: string | null;
54
- }
55
- /**
56
- * @interface UpdateAgentArgs
57
- * @description Arguments for the `updateAgent` instruction.
58
- *
59
- * All fields are optional — pass only the fields you want to change.
60
- * `null` values are ignored on-chain.
61
- *
62
- * @category Types
63
- * @since v0.1.0
64
- */
65
- export interface UpdateAgentArgs {
66
- readonly name?: string | null;
67
- readonly description?: string | null;
68
- readonly capabilities?: Capability[] | null;
69
- readonly pricing?: PricingTier[] | null;
70
- readonly protocols?: string[] | null;
71
- readonly agentId?: string | null;
72
- readonly agentUri?: string | null;
73
- readonly x402Endpoint?: string | null;
74
- }
75
- /**
76
- * @interface GiveFeedbackArgs
77
- * @description Arguments for the `giveFeedback` instruction.
78
- *
79
- * Submits a reputation score and tag for the target agent.
80
- * Each reviewer can only submit one feedback per agent.
81
- *
82
- * @category Types
83
- * @since v0.1.0
84
- */
85
- export interface GiveFeedbackArgs {
86
- /** Reputation score (1–100). */
87
- readonly score: number;
88
- /** Freeform tag / category for the feedback. */
89
- readonly tag: string;
90
- /** Optional SHA-256 hash of an off-chain comment. */
91
- readonly commentHash?: number[] | null;
92
- }
93
- /**
94
- * @interface UpdateFeedbackArgs
95
- * @description Arguments for the `updateFeedback` instruction.
96
- *
97
- * Allows the original reviewer to revise their score and/or tag.
98
- *
99
- * @category Types
100
- * @since v0.1.0
101
- */
102
- export interface UpdateFeedbackArgs {
103
- /** Updated reputation score (1–100). */
104
- readonly newScore: number;
105
- /** Updated tag (optional). */
106
- readonly newTag?: string | null;
107
- /** Updated off-chain comment hash (optional). */
108
- readonly commentHash?: number[] | null;
109
- }
110
- /**
111
- * @interface PublishToolArgs
112
- * @description Arguments for the `publishTool` instruction.
113
- *
114
- * Registers a new tool descriptor on-chain with hashed metadata.
115
- * Hash fields are SHA-256 digests of the corresponding off-chain content.
116
- *
117
- * @category Types
118
- * @since v0.1.0
119
- */
120
- export interface PublishToolArgs {
121
- /** Human-readable tool name. */
122
- readonly toolName: string;
123
- /** SHA-256 hash of the tool name (PDA seed). */
124
- readonly toolNameHash: number[];
125
- /** SHA-256 hash of the protocol identifier. */
126
- readonly protocolHash: number[];
127
- /** SHA-256 hash of the tool description. */
128
- readonly descriptionHash: number[];
129
- /** SHA-256 hash of the input JSON schema. */
130
- readonly inputSchemaHash: number[];
131
- /** SHA-256 hash of the output JSON schema. */
132
- readonly outputSchemaHash: number[];
133
- /** HTTP method discriminant index. */
134
- readonly httpMethod: number;
135
- /** Tool category discriminant index. */
136
- readonly category: number;
137
- /** Total number of parameters. */
138
- readonly paramsCount: number;
139
- /** Number of required parameters. */
140
- readonly requiredParams: number;
141
- /** Whether the tool is a compound (multi-step) operation. */
142
- readonly isCompound: boolean;
143
- }
144
- /**
145
- * @interface UpdateToolArgs
146
- * @description Arguments for the `updateTool` instruction.
147
- *
148
- * All fields are optional — only pass the fields to update.
149
- *
150
- * @category Types
151
- * @since v0.1.0
152
- */
153
- export interface UpdateToolArgs {
154
- readonly descriptionHash?: number[] | null;
155
- readonly inputSchemaHash?: number[] | null;
156
- readonly outputSchemaHash?: number[] | null;
157
- readonly httpMethod?: number | null;
158
- readonly category?: number | null;
159
- readonly paramsCount?: number | null;
160
- readonly requiredParams?: number | null;
161
- }
162
- /**
163
- * @interface InscribeToolSchemaArgs
164
- * @description Arguments for the `inscribeToolSchema` instruction.
165
- *
166
- * Writes a tool’s JSON schema (input, output, or description) on-chain
167
- * as an inscription, with optional compression.
168
- *
169
- * @category Types
170
- * @since v0.1.0
171
- * @see {@link SchemaType} for schema type discriminants.
172
- * @see {@link CompressionType} for compression discriminants.
173
- */
174
- export interface InscribeToolSchemaArgs {
175
- /** Schema type discriminant (input / output / description). */
176
- readonly schemaType: number;
177
- /** Raw (optionally compressed) schema bytes. */
178
- readonly schemaData: Buffer;
179
- /** SHA-256 hash of the uncompressed schema. */
180
- readonly schemaHash: number[];
181
- /** Compression algorithm discriminant. */
182
- readonly compression: number;
183
- }
184
- /**
185
- * @interface InscribeMemoryArgs
186
- * @description Arguments for the `inscribeMemory` instruction.
187
- *
188
- * Writes an encrypted memory fragment into a vault session.
189
- * Supports multi-fragment inscriptions and epoch-based partitioning.
190
- *
191
- * @category Types
192
- * @since v0.1.0
193
- */
194
- export interface InscribeMemoryArgs {
195
- /** Sequence number within the session. */
196
- readonly sequence: number;
197
- /** NaCl-encrypted payload. */
198
- readonly encryptedData: Buffer;
199
- /** Encryption nonce (12 bytes). */
200
- readonly nonce: number[];
201
- /** SHA-256 hash of the plaintext content. */
202
- readonly contentHash: number[];
203
- /** Total fragments in this inscription. */
204
- readonly totalFragments: number;
205
- /** Zero-based index of this fragment. */
206
- readonly fragmentIndex: number;
207
- /** Compression algorithm discriminant. */
208
- readonly compression: number;
209
- /** Target epoch index. */
210
- readonly epochIndex: number;
211
- }
212
- /**
213
- * @interface CompactInscribeArgs
214
- * @description Arguments for the `compactInscribe` instruction.
215
- *
216
- * A simplified inscription variant that omits fragmentation and epoch
217
- * fields — ideal for small, single-fragment payloads.
218
- *
219
- * @category Types
220
- * @since v0.1.0
221
- */
222
- export interface CompactInscribeArgs {
223
- /** Sequence number within the session. */
224
- readonly sequence: number;
225
- /** NaCl-encrypted payload. */
226
- readonly encryptedData: Buffer;
227
- /** Encryption nonce (12 bytes). */
228
- readonly nonce: number[];
229
- /** SHA-256 hash of the plaintext content. */
230
- readonly contentHash: number[];
231
- }
232
- /**
233
- * @interface CreateEscrowArgs
234
- * @description Arguments for the `createEscrow` instruction.
235
- *
236
- * Creates a pre-funded escrow account for micropayments to an agent,
237
- * optionally with volume-based discount breakpoints.
238
- *
239
- * @category Types
240
- * @since v0.1.0
241
- * @deprecated Since v0.7.0 — Use {@link CreateEscrowV2Args} for V2 escrows.
242
- * @see {@link VolumeCurveBreakpoint} for discount curve details.
243
- */
244
- export interface CreateEscrowArgs {
245
- /** Base price per call in token base units. */
246
- readonly pricePerCall: BN;
247
- /** Maximum number of calls the escrow should fund. */
248
- readonly maxCalls: BN;
249
- /** Initial deposit amount. */
250
- readonly initialDeposit: BN;
251
- /** Unix timestamp when the escrow expires. */
252
- readonly expiresAt: BN;
253
- /** Volume discount breakpoints (pass `[]` for none). */
254
- readonly volumeCurve: VolumeCurveBreakpoint[];
255
- /** SPL token mint (pass `null` for native SOL). */
256
- readonly tokenMint: PublicKey | null;
257
- /** Decimal places for the token. */
258
- readonly tokenDecimals: number;
259
- }
260
- /**
261
- * @interface CreateAttestationArgs
262
- * @description Arguments for the `createAttestation` instruction.
263
- *
264
- * Issues a web-of-trust attestation for a target agent.
265
- *
266
- * @category Types
267
- * @since v0.1.0
268
- */
269
- export interface CreateAttestationArgs {
270
- /** Freeform attestation type (e.g. `"kyc"`, `"audit"`). */
271
- readonly attestationType: string;
272
- /** SHA-256 hash of off-chain attestation metadata. */
273
- readonly metadataHash: number[];
274
- /** Unix timestamp when the attestation expires. */
275
- readonly expiresAt: BN;
276
- }
277
- /**
278
- * @name DelegatePermission
279
- * @description Bitmask constants for vault delegate permissions.
280
- *
281
- * Combine with bitwise OR to grant multiple permissions.
282
- *
283
- * | Bit | Value | Permission |
284
- * | --- | ----- | ------------------- |
285
- * | 0 | 1 | Inscribe memories |
286
- * | 1 | 2 | Close sessions |
287
- * | 2 | 4 | Open sessions |
288
- * | — | 7 | All permissions |
289
- *
290
- * @category Types
291
- * @since v0.1.0
292
- *
293
- * @example
294
- * ```ts
295
- * import { DelegatePermission } from "@synapse-sap/sdk";
296
- *
297
- * // Grant inscribe + open session
298
- * const perms = DelegatePermission.Inscribe | DelegatePermission.OpenSession;
299
- * ```
300
- */
301
- export declare const DelegatePermission: {
302
- readonly Inscribe: 1;
303
- readonly CloseSession: 2;
304
- readonly OpenSession: 4;
305
- readonly All: 7;
306
- };
307
- /**
308
- * @name DelegatePermissionBit
309
- * @description Union of valid {@link DelegatePermission} bit values.
310
- */
311
- export type DelegatePermissionBit = (typeof DelegatePermission)[keyof typeof DelegatePermission];
312
- /**
313
- * @name SchemaType
314
- * @description Numeric discriminants for tool schema types.
315
- *
316
- * Used in the `inscribeToolSchema` instruction to specify which schema
317
- * is being written on-chain.
318
- *
319
- * @category Types
320
- * @since v0.1.0
321
- *
322
- * @example
323
- * ```ts
324
- * import { SchemaType } from "@synapse-sap/sdk";
325
- *
326
- * const args = { schemaType: SchemaType.Input, ... };
327
- * ```
328
- */
329
- export declare const SchemaType: {
330
- readonly Input: 0;
331
- readonly Output: 1;
332
- readonly Description: 2;
333
- };
334
- /**
335
- * @name SchemaTypeValue
336
- * @description Union of valid {@link SchemaType} discriminant values.
337
- */
338
- export type SchemaTypeValue = (typeof SchemaType)[keyof typeof SchemaType];
339
- /**
340
- * @name CompressionType
341
- * @description Numeric discriminants for compression algorithms.
342
- *
343
- * Used in inscription instructions to declare the compression format
344
- * of the payload so consumers can decompress correctly.
345
- *
346
- * @category Types
347
- * @since v0.1.0
348
- *
349
- * @example
350
- * ```ts
351
- * import { CompressionType } from "@synapse-sap/sdk";
352
- *
353
- * const args = { compression: CompressionType.Gzip, ... };
354
- * ```
355
- */
356
- export declare const CompressionType: {
357
- readonly None: 0;
358
- readonly Deflate: 1;
359
- readonly Gzip: 2;
360
- readonly Brotli: 3;
361
- };
362
- /**
363
- * @name CompressionTypeValue
364
- * @description Union of valid {@link CompressionType} discriminant values.
365
- */
366
- export type CompressionTypeValue = (typeof CompressionType)[keyof typeof CompressionType];
367
- /**
368
- * @interface CreateEscrowV2Args
369
- * @description Arguments for the `createEscrowV2` instruction.
370
- * @category Types
371
- * @since v0.5.0
372
- */
373
- export interface CreateEscrowV2Args {
374
- readonly escrowNonce: BN;
375
- readonly pricePerCall: BN;
376
- readonly maxCalls: BN;
377
- readonly initialDeposit: BN;
378
- readonly expiresAt: BN;
379
- readonly volumeCurve: VolumeCurveBreakpoint[];
380
- readonly tokenMint: PublicKey | null;
381
- readonly tokenDecimals: number;
382
- /** 0=SelfReport, 1=CoSigned, 2=DisputeWindow */
383
- readonly settlementSecurity: number;
384
- readonly disputeWindowSlots: BN;
385
- readonly coSigner: PublicKey | null;
386
- readonly arbiter: PublicKey | null;
387
- }
388
- /**
389
- * @interface CreateSubscriptionArgs
390
- * @description Arguments for the `createSubscription` instruction.
391
- * @category Types
392
- * @since v0.5.0
393
- */
394
- export interface CreateSubscriptionArgs {
395
- readonly subId: BN;
396
- readonly pricePerInterval: BN;
397
- readonly billingInterval: number;
398
- readonly initialFund: BN;
399
- }
400
- //# sourceMappingURL=instructions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../../src/types/instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAM/E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,iBAAiB;IAChC,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sCAAsC;IACtC,QAAQ,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC;IACpC,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;IAChC,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sCAAsC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC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AI,CAAC;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,gDAAgD;IAChD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,kBAAkB,EAAE,EAAE,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;CACpC;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;IACnB,QAAQ,CAAC,gBAAgB,EAAE,EAAE,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;CAC1B"}
@@ -1,61 +0,0 @@
1
- /**
2
- * @module utils/anchor-errors
3
- * @description Full SAP program error table (147 entries, codes 6000-6146)
4
- * plus decoder utilities. Mirrors `programs/synapse-agent-sap/src/errors.rs`.
5
- *
6
- * Use {@link decodeAnchorError} to extract a structured error from any
7
- * thrown RPC / simulation error. Use {@link SAP_ERRORS} for direct lookups.
8
- *
9
- * @category Utils
10
- * @since v0.13.0
11
- */
12
- export interface SapErrorEntry {
13
- readonly code: number;
14
- readonly name: string;
15
- readonly msg: string;
16
- }
17
- export declare const SAP_ERRORS: Readonly<Record<number, SapErrorEntry>>;
18
- export declare const SAP_ERROR_BY_NAME: Readonly<Record<string, number>>;
19
- /**
20
- * @name DecodedAnchorError
21
- * @description Structured error extracted from a thrown RPC/simulation error.
22
- * @since v0.13.0
23
- */
24
- export interface DecodedAnchorError {
25
- readonly code: number;
26
- readonly name: string;
27
- readonly msg: string;
28
- readonly friendly: string;
29
- readonly logs?: readonly string[];
30
- }
31
- /**
32
- * @name decodeAnchorError
33
- * @description Pull an Anchor / SAP error out of any caught value.
34
- * Handles: AnchorError, raw RPC SimulateError, `0x...` hex codes,
35
- * nested `error.errorCode.number`, and direct `code` numbers.
36
- * @returns Structured {@link DecodedAnchorError} or `null` if not a SAP error.
37
- * @since v0.13.0
38
- */
39
- export declare function decodeAnchorError(err: unknown): DecodedAnchorError | null;
40
- /**
41
- * @name SapPreflightError
42
- * @description Thrown by SDK preflights when an on-chain check is guaranteed
43
- * to fail. Carries the predicted error code/name so callers can branch
44
- * without parsing strings.
45
- * @since v0.13.0
46
- */
47
- export declare class SapPreflightError extends Error {
48
- readonly predictedCode: number;
49
- readonly predictedName: string;
50
- readonly hint?: string | undefined;
51
- readonly preflight: true;
52
- constructor(message: string, predictedCode: number, predictedName: string, hint?: string | undefined);
53
- }
54
- /**
55
- * @name throwPredicted
56
- * @description Helper for SDK preflights. Throws a {@link SapPreflightError}
57
- * carrying the on-chain error name + friendly message.
58
- * @since v0.13.0
59
- */
60
- export declare function throwPredicted(name: keyof typeof SAP_ERROR_BY_NAME, hint?: string): never;
61
- //# sourceMappingURL=anchor-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anchor-errors.d.ts","sourceRoot":"","sources":["../../../src/utils/anchor-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,aAAa;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CAAE;AACtG,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAoJ7D,CAAC;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoJ7D,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAmCD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,GAAG,IAAI,CAwBzE;AAsCD;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAIxC,QAAQ,CAAC,aAAa,EAAE,MAAM;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;IALxB,QAAQ,CAAC,SAAS,EAAG,IAAI,CAAU;gBAEjC,OAAO,EAAE,MAAM,EACN,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,MAAM,YAAA;CAKzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,OAAO,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAMzF"}
@@ -1,110 +0,0 @@
1
- /**
2
- * @module utils/endpoint-validator
3
- * @description Endpoint validation utilities for SAP agent discovery.
4
- *
5
- * Fetches advertised endpoints and verifies they respond with JSON,
6
- * proper CORS headers, and SAP-compatible behavior. Designed to
7
- * fail fast when an endpoint 404s, requires CSRF tokens, or
8
- * serves HTML instead of JSON.
9
- *
10
- * Used by:
11
- * - CLI `discovery validate` command
12
- * - SDK programmatic validation before x402 calls
13
- * - Integration test harnesses
14
- *
15
- * @category Utils
16
- * @since v0.6.0
17
- */
18
- import type { EndpointDescriptor, HealthCheckDescriptor, EndpointValidationResult } from "../types/endpoint";
19
- /**
20
- * @interface ValidateEndpointOptions
21
- * @description Options for endpoint validation.
22
- * @category Utils
23
- * @since v0.6.0
24
- */
25
- export interface ValidateEndpointOptions {
26
- /** Timeout in milliseconds (default: 10000). */
27
- readonly timeoutMs?: number;
28
- /** Number of retries on failure (default: 1). */
29
- readonly retries?: number;
30
- /** HTTP method override (default: uses descriptor or HEAD). */
31
- readonly method?: string;
32
- /** Custom headers to include in the validation request. */
33
- readonly headers?: Record<string, string>;
34
- /** If true, also sends a preflight OPTIONS request. */
35
- readonly checkCors?: boolean;
36
- }
37
- /**
38
- * @name validateEndpoint
39
- * @description Validate a single endpoint URL for SAP compatibility.
40
- *
41
- * Performs the following checks:
42
- * 1. URL is reachable (no 4xx/5xx)
43
- * 2. Response Content-Type is JSON
44
- * 3. CORS headers are present (if checkCors enabled)
45
- * 4. No redirect to HTML login pages
46
- * 5. Measures response latency
47
- *
48
- * @param url - The endpoint URL to validate.
49
- * @param opts - Validation options.
50
- * @returns An {@link EndpointValidationResult} with detailed check results.
51
- *
52
- * @category Utils
53
- * @since v0.6.0
54
- *
55
- * @example
56
- * ```ts
57
- * const result = await validateEndpoint("https://api.example.com/x402");
58
- * if (!result.reachable) console.error(result.error);
59
- * ```
60
- */
61
- export declare function validateEndpoint(url: string, opts?: ValidateEndpointOptions): Promise<EndpointValidationResult>;
62
- /**
63
- * @name validateEndpointDescriptor
64
- * @description Validate an {@link EndpointDescriptor} with context-aware checks.
65
- *
66
- * Uses the descriptor's method, auth requirements, and other metadata to
67
- * perform a more targeted validation than raw URL checking.
68
- *
69
- * @param descriptor - The endpoint descriptor to validate.
70
- * @param opts - Additional options.
71
- * @returns An {@link EndpointValidationResult}.
72
- *
73
- * @category Utils
74
- * @since v0.6.0
75
- */
76
- export declare function validateEndpointDescriptor(descriptor: EndpointDescriptor, opts?: ValidateEndpointOptions): Promise<EndpointValidationResult>;
77
- /**
78
- * @name validateHealthCheck
79
- * @description Validate an agent's health-check endpoint.
80
- *
81
- * @param health - The health-check descriptor.
82
- * @returns An {@link EndpointValidationResult}.
83
- *
84
- * @category Utils
85
- * @since v0.6.0
86
- */
87
- export declare function validateHealthCheck(health: HealthCheckDescriptor): Promise<EndpointValidationResult>;
88
- /**
89
- * @name validateAgentEndpoints
90
- * @description Validate all endpoints for an agent (primary + health + tool overrides).
91
- *
92
- * @param params - Object containing the endpoints to validate.
93
- * @param params.endpoint - Primary endpoint descriptor.
94
- * @param params.healthCheck - Optional health-check descriptor.
95
- * @param params.toolEndpoints - Optional array of tool-specific endpoint overrides.
96
- * @param opts - Validation options.
97
- * @returns A map of `label → EndpointValidationResult`.
98
- *
99
- * @category Utils
100
- * @since v0.6.0
101
- */
102
- export declare function validateAgentEndpoints(params: {
103
- endpoint: EndpointDescriptor;
104
- healthCheck?: HealthCheckDescriptor;
105
- toolEndpoints?: Array<{
106
- name: string;
107
- endpoint: EndpointDescriptor;
108
- }>;
109
- }, opts?: ValidateEndpointOptions): Promise<Map<string, EndpointValidationResult>>;
110
- //# sourceMappingURL=endpoint-validator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoint-validator.d.ts","sourceRoot":"","sources":["../../../src/utils/endpoint-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAM3B;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,uDAAuD;IACvD,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAMD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,uBAA4B,GACjC,OAAO,CAA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