@oobe-protocol-labs/synapse-sap-sdk 0.15.0 → 0.16.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.
Files changed (153) hide show
  1. package/dist/cjs/client.js +1 -1
  2. package/dist/cjs/client.js.map +1 -1
  3. package/dist/cjs/idl/synapse_agent_sap.json +2475 -898
  4. package/dist/esm/client.js +1 -1
  5. package/dist/esm/client.js.map +1 -1
  6. package/dist/esm/idl/synapse_agent_sap.json +2475 -898
  7. package/package.json +1 -1
  8. package/dist/esm/instructions/memory.d.ts +0 -8
  9. package/dist/esm/instructions/memory.d.ts.map +0 -1
  10. package/dist/esm/instructions/memory.js +0 -234
  11. package/dist/esm/instructions/memory.js.map +0 -1
  12. package/dist/types/constants/addresses.d.ts +0 -117
  13. package/dist/types/constants/addresses.d.ts.map +0 -1
  14. package/dist/types/constants/index.d.ts +0 -31
  15. package/dist/types/constants/index.d.ts.map +0 -1
  16. package/dist/types/constants/limits.d.ts +0 -149
  17. package/dist/types/constants/limits.d.ts.map +0 -1
  18. package/dist/types/constants/network.d.ts +0 -81
  19. package/dist/types/constants/network.d.ts.map +0 -1
  20. package/dist/types/constants/payments.d.ts +0 -121
  21. package/dist/types/constants/payments.d.ts.map +0 -1
  22. package/dist/types/constants/programs.d.ts +0 -69
  23. package/dist/types/constants/programs.d.ts.map +0 -1
  24. package/dist/types/constants/seeds.d.ts +0 -82
  25. package/dist/types/constants/seeds.d.ts.map +0 -1
  26. package/dist/types/core/client.d.ts +0 -467
  27. package/dist/types/core/client.d.ts.map +0 -1
  28. package/dist/types/core/connection.d.ts +0 -305
  29. package/dist/types/core/connection.d.ts.map +0 -1
  30. package/dist/types/core/index.d.ts +0 -20
  31. package/dist/types/core/index.d.ts.map +0 -1
  32. package/dist/types/errors/index.d.ts +0 -335
  33. package/dist/types/errors/index.d.ts.map +0 -1
  34. package/dist/types/events/geyser.d.ts +0 -150
  35. package/dist/types/events/geyser.d.ts.map +0 -1
  36. package/dist/types/events/index.d.ts +0 -248
  37. package/dist/types/events/index.d.ts.map +0 -1
  38. package/dist/types/idl/index.d.ts +0 -70
  39. package/dist/types/idl/index.d.ts.map +0 -1
  40. package/dist/types/index.d.ts +0 -86
  41. package/dist/types/index.d.ts.map +0 -1
  42. package/dist/types/modules/agent.d.ts +0 -156
  43. package/dist/types/modules/agent.d.ts.map +0 -1
  44. package/dist/types/modules/attestation.d.ts +0 -96
  45. package/dist/types/modules/attestation.d.ts.map +0 -1
  46. package/dist/types/modules/base.d.ts +0 -215
  47. package/dist/types/modules/base.d.ts.map +0 -1
  48. package/dist/types/modules/escrow-v2.d.ts +0 -285
  49. package/dist/types/modules/escrow-v2.d.ts.map +0 -1
  50. package/dist/types/modules/feedback.d.ts +0 -105
  51. package/dist/types/modules/feedback.d.ts.map +0 -1
  52. package/dist/types/modules/index.d.ts +0 -27
  53. package/dist/types/modules/index.d.ts.map +0 -1
  54. package/dist/types/modules/indexing.d.ts +0 -200
  55. package/dist/types/modules/indexing.d.ts.map +0 -1
  56. package/dist/types/modules/ledger.d.ts +0 -150
  57. package/dist/types/modules/ledger.d.ts.map +0 -1
  58. package/dist/types/modules/receipt.d.ts +0 -91
  59. package/dist/types/modules/receipt.d.ts.map +0 -1
  60. package/dist/types/modules/staking.d.ts +0 -51
  61. package/dist/types/modules/staking.d.ts.map +0 -1
  62. package/dist/types/modules/subscription.d.ts +0 -33
  63. package/dist/types/modules/subscription.d.ts.map +0 -1
  64. package/dist/types/modules/tools.d.ts +0 -172
  65. package/dist/types/modules/tools.d.ts.map +0 -1
  66. package/dist/types/modules/vault.d.ts +0 -240
  67. package/dist/types/modules/vault.d.ts.map +0 -1
  68. package/dist/types/parser/client.d.ts +0 -123
  69. package/dist/types/parser/client.d.ts.map +0 -1
  70. package/dist/types/parser/complete.d.ts +0 -90
  71. package/dist/types/parser/complete.d.ts.map +0 -1
  72. package/dist/types/parser/index.d.ts +0 -40
  73. package/dist/types/parser/index.d.ts.map +0 -1
  74. package/dist/types/parser/inner.d.ts +0 -114
  75. package/dist/types/parser/inner.d.ts.map +0 -1
  76. package/dist/types/parser/instructions.d.ts +0 -76
  77. package/dist/types/parser/instructions.d.ts.map +0 -1
  78. package/dist/types/parser/transaction.d.ts +0 -77
  79. package/dist/types/parser/transaction.d.ts.map +0 -1
  80. package/dist/types/parser/types.d.ts +0 -154
  81. package/dist/types/parser/types.d.ts.map +0 -1
  82. package/dist/types/pda/index.d.ts +0 -527
  83. package/dist/types/pda/index.d.ts.map +0 -1
  84. package/dist/types/plugin/index.d.ts +0 -171
  85. package/dist/types/plugin/index.d.ts.map +0 -1
  86. package/dist/types/plugin/protocols.d.ts +0 -152
  87. package/dist/types/plugin/protocols.d.ts.map +0 -1
  88. package/dist/types/plugin/schemas.d.ts +0 -829
  89. package/dist/types/plugin/schemas.d.ts.map +0 -1
  90. package/dist/types/postgres/adapter.d.ts +0 -355
  91. package/dist/types/postgres/adapter.d.ts.map +0 -1
  92. package/dist/types/postgres/index.d.ts +0 -24
  93. package/dist/types/postgres/index.d.ts.map +0 -1
  94. package/dist/types/postgres/serializers.d.ts +0 -30
  95. package/dist/types/postgres/serializers.d.ts.map +0 -1
  96. package/dist/types/postgres/sync.d.ts +0 -156
  97. package/dist/types/postgres/sync.d.ts.map +0 -1
  98. package/dist/types/postgres/types.d.ts +0 -167
  99. package/dist/types/postgres/types.d.ts.map +0 -1
  100. package/dist/types/registries/builder.d.ts +0 -333
  101. package/dist/types/registries/builder.d.ts.map +0 -1
  102. package/dist/types/registries/discovery.d.ts +0 -333
  103. package/dist/types/registries/discovery.d.ts.map +0 -1
  104. package/dist/types/registries/fairscale.d.ts +0 -680
  105. package/dist/types/registries/fairscale.d.ts.map +0 -1
  106. package/dist/types/registries/index.d.ts +0 -52
  107. package/dist/types/registries/index.d.ts.map +0 -1
  108. package/dist/types/registries/metaplex-bridge.d.ts +0 -488
  109. package/dist/types/registries/metaplex-bridge.d.ts.map +0 -1
  110. package/dist/types/registries/session.d.ts +0 -317
  111. package/dist/types/registries/session.d.ts.map +0 -1
  112. package/dist/types/registries/x402.d.ts +0 -523
  113. package/dist/types/registries/x402.d.ts.map +0 -1
  114. package/dist/types/types/accounts.d.ts +0 -817
  115. package/dist/types/types/accounts.d.ts.map +0 -1
  116. package/dist/types/types/common.d.ts +0 -166
  117. package/dist/types/types/common.d.ts.map +0 -1
  118. package/dist/types/types/endpoint.d.ts +0 -161
  119. package/dist/types/types/endpoint.d.ts.map +0 -1
  120. package/dist/types/types/enums.d.ts +0 -353
  121. package/dist/types/types/enums.d.ts.map +0 -1
  122. package/dist/types/types/index.d.ts +0 -29
  123. package/dist/types/types/index.d.ts.map +0 -1
  124. package/dist/types/types/instructions.d.ts +0 -400
  125. package/dist/types/types/instructions.d.ts.map +0 -1
  126. package/dist/types/utils/anchor-errors.d.ts +0 -61
  127. package/dist/types/utils/anchor-errors.d.ts.map +0 -1
  128. package/dist/types/utils/endpoint-validator.d.ts +0 -110
  129. package/dist/types/utils/endpoint-validator.d.ts.map +0 -1
  130. package/dist/types/utils/escrow-validation.d.ts +0 -145
  131. package/dist/types/utils/escrow-validation.d.ts.map +0 -1
  132. package/dist/types/utils/hash.d.ts +0 -75
  133. package/dist/types/utils/hash.d.ts.map +0 -1
  134. package/dist/types/utils/index.d.ts +0 -36
  135. package/dist/types/utils/index.d.ts.map +0 -1
  136. package/dist/types/utils/merchant-validator.d.ts +0 -176
  137. package/dist/types/utils/merchant-validator.d.ts.map +0 -1
  138. package/dist/types/utils/network-normalizer.d.ts +0 -120
  139. package/dist/types/utils/network-normalizer.d.ts.map +0 -1
  140. package/dist/types/utils/priority-fee.d.ts +0 -205
  141. package/dist/types/utils/priority-fee.d.ts.map +0 -1
  142. package/dist/types/utils/rpc-strategy.d.ts +0 -179
  143. package/dist/types/utils/rpc-strategy.d.ts.map +0 -1
  144. package/dist/types/utils/schemas.d.ts +0 -351
  145. package/dist/types/utils/schemas.d.ts.map +0 -1
  146. package/dist/types/utils/serialization.d.ts +0 -69
  147. package/dist/types/utils/serialization.d.ts.map +0 -1
  148. package/dist/types/utils/validation.d.ts +0 -29
  149. package/dist/types/utils/validation.d.ts.map +0 -1
  150. package/dist/types/utils/volume-curve.d.ts +0 -60
  151. package/dist/types/utils/volume-curve.d.ts.map +0 -1
  152. package/dist/types/utils/x402-direct.d.ts +0 -114
  153. package/dist/types/utils/x402-direct.d.ts.map +0 -1
@@ -1,150 +0,0 @@
1
- /**
2
- * @module events/geyser
3
- * @description Yellowstone gRPC (Geyser) event stream for SAP v2.
4
- *
5
- * Drop-in alternative to the WebSocket `connection.onLogs()` pipeline.
6
- * Uses Triton / Helius / any Yellowstone-compatible gRPC endpoint to
7
- * receive program transaction updates with sub-second latency and
8
- * automatic reconnection.
9
- *
10
- * @category Events
11
- * @since v0.6.3
12
- *
13
- * @example
14
- * ```ts
15
- * import { GeyserEventStream } from "@oobe-protocol-labs/synapse-sap-sdk";
16
- * import { EventParser } from "@oobe-protocol-labs/synapse-sap-sdk";
17
- *
18
- * const stream = new GeyserEventStream({
19
- * endpoint: "https://grpc.triton.one",
20
- * token: process.env.GEYSER_TOKEN!,
21
- * programId: "SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ",
22
- * });
23
- *
24
- * const parser = new EventParser(program);
25
- *
26
- * stream.on("logs", (logs, signature, slot) => {
27
- * const events = parser.parseLogs(logs);
28
- * for (const event of events) {
29
- * console.log(event.name, event.data);
30
- * }
31
- * });
32
- *
33
- * stream.on("error", (err) => console.error("gRPC error:", err));
34
- *
35
- * await stream.connect();
36
- * // ... later
37
- * await stream.disconnect();
38
- * ```
39
- */
40
- import { EventEmitter } from "events";
41
- /**
42
- * Configuration for the Yellowstone gRPC event stream.
43
- *
44
- * @interface GeyserConfig
45
- * @since v0.6.3
46
- */
47
- export interface GeyserConfig {
48
- /** Yellowstone gRPC endpoint URL (e.g. "https://grpc.triton.one") */
49
- endpoint: string;
50
- /** Authentication token for the gRPC endpoint */
51
- token: string;
52
- /** SAP program ID to filter. Defaults to SAP v2 program. */
53
- programId?: string;
54
- /**
55
- * Commitment level for the subscription.
56
- * @default "confirmed"
57
- */
58
- commitment?: "processed" | "confirmed" | "finalized";
59
- /**
60
- * Automatically reconnect on disconnect.
61
- * @default true
62
- */
63
- autoReconnect?: boolean;
64
- /**
65
- * Delay between reconnection attempts in ms.
66
- * @default 3000
67
- */
68
- reconnectDelayMs?: number;
69
- /**
70
- * Maximum number of reconnection attempts. 0 = unlimited.
71
- * @default 0
72
- */
73
- maxReconnectAttempts?: number;
74
- /**
75
- * Include failed transactions in the stream.
76
- * @default false
77
- */
78
- includeFailedTxs?: boolean;
79
- }
80
- /**
81
- * Events emitted by {@link GeyserEventStream}.
82
- *
83
- * @interface GeyserStreamEvents
84
- * @since v0.6.3
85
- */
86
- export interface GeyserStreamEvents {
87
- /**
88
- * Emitted for each transaction's log messages.
89
- * Same shape as `connection.onLogs()` callback — plug into `EventParser.parseLogs()`.
90
- */
91
- logs: (logs: string[], signature: string, slot: number) => void;
92
- /** Emitted when the gRPC stream connects or reconnects. */
93
- connected: () => void;
94
- /** Emitted when the stream disconnects. */
95
- disconnected: (reason: string) => void;
96
- /** Emitted on transport or parsing errors. */
97
- error: (err: Error) => void;
98
- /** Emitted on reconnection attempt. */
99
- reconnecting: (attempt: number) => void;
100
- }
101
- /**
102
- * Yellowstone gRPC event stream for SAP v2 programs.
103
- *
104
- * Wraps `@triton-one/yellowstone-grpc` and emits parsed log lines
105
- * compatible with the existing {@link EventParser}.
106
- *
107
- * @name GeyserEventStream
108
- * @category Events
109
- * @since v0.6.3
110
- *
111
- * @example
112
- * ```ts
113
- * const stream = new GeyserEventStream({
114
- * endpoint: "https://grpc.triton.one",
115
- * token: process.env.GEYSER_TOKEN!,
116
- * });
117
- *
118
- * stream.on("logs", (logs, sig, slot) => {
119
- * const events = parser.parseLogs(logs);
120
- * events.forEach(e => db.insertEvent(e));
121
- * });
122
- *
123
- * await stream.connect();
124
- * ```
125
- */
126
- export declare class GeyserEventStream extends EventEmitter {
127
- private readonly config;
128
- private client;
129
- private stream;
130
- private reconnectAttempts;
131
- private _connected;
132
- private _stopped;
133
- constructor(config: GeyserConfig);
134
- /** Whether the gRPC stream is currently connected. */
135
- get connected(): boolean;
136
- /**
137
- * Connect to the Yellowstone gRPC endpoint and start streaming.
138
- *
139
- * @throws If `@triton-one/yellowstone-grpc` is not installed.
140
- */
141
- connect(): Promise<void>;
142
- /**
143
- * Disconnect from the gRPC stream and stop reconnection.
144
- */
145
- disconnect(): Promise<void>;
146
- private subscribe;
147
- private handleMessage;
148
- private maybeReconnect;
149
- }
150
- //# sourceMappingURL=geyser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geyser.d.ts","sourceRoot":"","sources":["../../../src/events/geyser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IAEjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IAEd,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;IAErD;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEhE,2DAA2D;IAC3D,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,2CAA2C;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,8CAA8C;IAC9C,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAE5B,uCAAuC;IACvC,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAkBD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD,OAAO,CAAC,MAAM,CAAa;IAE3B,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAS;gBAEb,MAAM,EAAE,YAAY;IAchC,sDAAsD;IACtD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B9B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;YAkBnB,SAAS;IA8EvB,OAAO,CAAC,aAAa;YA2BP,cAAc;CAqB7B"}
@@ -1,248 +0,0 @@
1
- /**
2
- * @module events
3
- * @description Decode SAP v2 events from transaction logs.
4
- *
5
- * Uses Anchor's event parser under the hood. Provides a
6
- * strongly-typed, filterable event stream.
7
- *
8
- * @category Events
9
- * @since v0.1.0
10
- *
11
- * @example
12
- * ```ts
13
- * import { EventParser } from "@synapse-sap/sdk/events";
14
- *
15
- * const events = client.events.parseLogs(txLogs);
16
- * for (const event of events) {
17
- * if (event.name === "PaymentSettledEvent") {
18
- * console.log(event.data);
19
- * }
20
- * }
21
- * ```
22
- */
23
- import { type Program, BN } from "@coral-xyz/anchor";
24
- import type { PublicKey } from "@solana/web3.js";
25
- /**
26
- * Decoded payload for the `RegisteredEvent` emitted when a new agent is registered.
27
- *
28
- * @interface RegisteredEventData
29
- * @name RegisteredEventData
30
- * @description Contains the agent PDA, owner wallet, display name, capabilities list, and timestamp.
31
- * @category Events
32
- * @since v0.1.0
33
- * @see {@link SapEvent}
34
- */
35
- export interface RegisteredEventData {
36
- readonly name: "RegisteredEvent";
37
- readonly data: {
38
- agent: PublicKey;
39
- wallet: PublicKey;
40
- name: string;
41
- capabilities: string[];
42
- timestamp: BN;
43
- };
44
- }
45
- /**
46
- * Decoded payload for the `UpdatedEvent` emitted when an agent’s profile is modified.
47
- *
48
- * @interface UpdatedEventData
49
- * @name UpdatedEventData
50
- * @description Contains the agent PDA, owner wallet, a list of changed field names, and timestamp.
51
- * @category Events
52
- * @since v0.1.0
53
- * @see {@link SapEvent}
54
- */
55
- export interface UpdatedEventData {
56
- readonly name: "UpdatedEvent";
57
- readonly data: {
58
- agent: PublicKey;
59
- wallet: PublicKey;
60
- updatedFields: string[];
61
- timestamp: BN;
62
- };
63
- }
64
- /**
65
- * Decoded payload for the `FeedbackEvent` emitted when a reviewer submits feedback.
66
- *
67
- * @interface FeedbackEventData
68
- * @name FeedbackEventData
69
- * @description Contains the agent PDA, reviewer wallet, numeric score, tag, and timestamp.
70
- * @category Events
71
- * @since v0.1.0
72
- * @see {@link SapEvent}
73
- */
74
- export interface FeedbackEventData {
75
- readonly name: "FeedbackEvent";
76
- readonly data: {
77
- agent: PublicKey;
78
- reviewer: PublicKey;
79
- score: number;
80
- tag: string;
81
- timestamp: BN;
82
- };
83
- }
84
- /**
85
- * Decoded payload for the `MemoryInscribedEvent` emitted when data is written to a vault.
86
- *
87
- * @interface MemoryInscribedEventData
88
- * @name MemoryInscribedEventData
89
- * @description Contains vault/session PDAs, sequence info, encrypted data, nonce, content hash,
90
- * fragment metadata, compression flag, and timestamp.
91
- * @category Events
92
- * @since v0.1.0
93
- * @see {@link SapEvent}
94
- */
95
- export interface MemoryInscribedEventData {
96
- readonly name: "MemoryInscribedEvent";
97
- readonly data: {
98
- vault: PublicKey;
99
- session: PublicKey;
100
- sequence: number;
101
- epochIndex: number;
102
- encryptedData: number[];
103
- nonce: number[];
104
- contentHash: number[];
105
- totalFragments: number;
106
- fragmentIndex: number;
107
- compression: number;
108
- dataLen: number;
109
- nonceVersion: number;
110
- timestamp: BN;
111
- };
112
- }
113
- /**
114
- * Decoded payload for the `PaymentSettledEvent` emitted when an escrow settlement occurs.
115
- *
116
- * @interface PaymentSettledEventData
117
- * @name PaymentSettledEventData
118
- * @description Contains escrow/agent/depositor PDAs, settlement counts, amounts, service hash,
119
- * and remaining balance.
120
- * @category Events
121
- * @since v0.1.0
122
- * @see {@link SapEvent}
123
- */
124
- export interface PaymentSettledEventData {
125
- readonly name: "PaymentSettledEvent";
126
- readonly data: {
127
- escrow: PublicKey;
128
- agent: PublicKey;
129
- depositor: PublicKey;
130
- callsSettled: BN;
131
- amount: BN;
132
- serviceHash: number[];
133
- totalCallsSettled: BN;
134
- remainingBalance: BN;
135
- timestamp: BN;
136
- };
137
- }
138
- /**
139
- * Decoded payload for the `LedgerEntryEvent` emitted when data is appended to a ledger.
140
- *
141
- * @interface LedgerEntryEventData
142
- * @name LedgerEntryEventData
143
- * @description Contains session/ledger PDAs, entry index, raw data, content hash,
144
- * Merkle root, and timestamp.
145
- * @category Events
146
- * @since v0.1.0
147
- * @see {@link SapEvent}
148
- */
149
- export interface LedgerEntryEventData {
150
- readonly name: "LedgerEntryEvent";
151
- readonly data: {
152
- session: PublicKey;
153
- ledger: PublicKey;
154
- entryIndex: number;
155
- data: number[];
156
- contentHash: number[];
157
- dataLen: number;
158
- merkleRoot: number[];
159
- timestamp: BN;
160
- };
161
- }
162
- /**
163
- * Discriminated union of all known SAP v2 event types.
164
- *
165
- * @name SapEvent
166
- * @description Use the `name` discriminant to narrow to a specific event payload.
167
- * @category Events
168
- * @since v0.1.0
169
- */
170
- export type SapEvent = RegisteredEventData | UpdatedEventData | FeedbackEventData | MemoryInscribedEventData | PaymentSettledEventData | LedgerEntryEventData;
171
- /**
172
- * Exhaustive list of all SAP v2 event name strings.
173
- *
174
- * @name SAP_EVENT_NAMES
175
- * @description Frozen array of every event discriminant emitted by the program.
176
- * Useful for log filtering and exhaustive switch checks.
177
- * @category Events
178
- * @since v0.1.0
179
- * @see {@link SapEventName}
180
- */
181
- export declare const SAP_EVENT_NAMES: readonly ["RegisteredEvent", "UpdatedEvent", "DeactivatedEvent", "ReactivatedEvent", "ClosedEvent", "FeedbackEvent", "FeedbackUpdatedEvent", "FeedbackRevokedEvent", "ReputationUpdatedEvent", "CallsReportedEvent", "VaultInitializedEvent", "SessionOpenedEvent", "MemoryInscribedEvent", "EpochOpenedEvent", "SessionClosedEvent", "VaultClosedEvent", "SessionPdaClosedEvent", "EpochPageClosedEvent", "VaultNonceRotatedEvent", "DelegateAddedEvent", "DelegateRevokedEvent", "ToolPublishedEvent", "ToolSchemaInscribedEvent", "ToolUpdatedEvent", "ToolDeactivatedEvent", "ToolReactivatedEvent", "ToolClosedEvent", "ToolInvocationReportedEvent", "CheckpointCreatedEvent", "EscrowCreatedEvent", "EscrowDepositedEvent", "PaymentSettledEvent", "EscrowWithdrawnEvent", "BatchSettledEvent", "AttestationCreatedEvent", "AttestationRevokedEvent", "LedgerEntryEvent", "LedgerSealedEvent"];
182
- /**
183
- * String literal union of all SAP v2 event names.
184
- *
185
- * @name SapEventName
186
- * @description Derived from {@link SAP_EVENT_NAMES} for compile-time exhaustiveness.
187
- * @category Events
188
- * @since v0.1.0
189
- */
190
- export type SapEventName = (typeof SAP_EVENT_NAMES)[number];
191
- /**
192
- * A single parsed event extracted from transaction logs.
193
- *
194
- * @interface ParsedEvent
195
- * @name ParsedEvent
196
- * @description Lightweight container with a `name` discriminant and untyped `data` record.
197
- * Narrow via {@link SapEventName} for type-safe access.
198
- * @category Events
199
- * @since v0.1.0
200
- */
201
- export interface ParsedEvent {
202
- readonly name: string;
203
- readonly data: Record<string, any>;
204
- }
205
- /**
206
- * Typed wrapper around Anchor’s `EventParser` for SAP v2 programs.
207
- *
208
- * Extracts strongly-typed {@link ParsedEvent} objects from raw
209
- * transaction log lines.
210
- *
211
- * @name EventParser
212
- * @description Instantiate with an Anchor `Program` and call {@link EventParser.parseLogs}
213
- * to decode events, or {@link EventParser.filterByName} to narrow results.
214
- * @category Events
215
- * @since v0.1.0
216
- *
217
- * @example
218
- * ```ts
219
- * const parser = new EventParser(program);
220
- * const events = parser.parseLogs(txLogs);
221
- * const settled = parser.filterByName(events, "PaymentSettledEvent");
222
- * ```
223
- */
224
- export declare class EventParser {
225
- private readonly parser;
226
- /**
227
- * Create a new `EventParser`.
228
- *
229
- * @param program - An Anchor `Program` instance whose IDL defines the events to decode.
230
- */
231
- constructor(program: Program<any>);
232
- /**
233
- * Parse raw transaction log lines into typed events.
234
- *
235
- * @param logs - Array of log strings from a confirmed transaction.
236
- * @returns {ParsedEvent[]} Decoded events found in the logs.
237
- */
238
- parseLogs(logs: string[]): ParsedEvent[];
239
- /**
240
- * Filter a list of parsed events by event name.
241
- *
242
- * @param events - The full array of {@link ParsedEvent} objects to filter.
243
- * @param name - The {@link SapEventName} to match against.
244
- * @returns {ParsedEvent[]} Only events whose `name` matches.
245
- */
246
- filterByName<N extends SapEventName>(events: ParsedEvent[], name: N): ParsedEvent[];
247
- }
248
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,EAAE,EAAoC,MAAM,mBAAmB,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,IA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CAAC;IAEtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;;OAIG;gBAES,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IAIjC;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE;IASxC;;;;;;OAMG;IACH,YAAY,CAAC,CAAC,SAAS,YAAY,EACjC,MAAM,EAAE,WAAW,EAAE,EACrB,IAAI,EAAE,CAAC,GACN,WAAW,EAAE;CAGjB"}
@@ -1,70 +0,0 @@
1
- /**
2
- * @module idl
3
- * @description Embedded IDL for the SAP v2 program.
4
- *
5
- * The JSON artifact is bundled with the SDK so it works as a
6
- * standalone package without needing the program workspace.
7
- *
8
- * ### Updating the IDL
9
- *
10
- * After rebuilding the Anchor program, run:
11
- * ```sh
12
- * yarn sync-idl # copies from ../target/idl/
13
- * ```
14
- * or manually copy the file into `src/idl/synapse_agent_sap.json`.
15
- *
16
- * @example
17
- * ```ts
18
- * import { SAP_IDL, type SynapseAgentSapIDL } from "@synapse-sap/sdk/idl";
19
- * ```
20
- *
21
- * @category IDL
22
- * @since v0.1.0
23
- */
24
- /**
25
- * TypeScript type representing the Anchor IDL for the `synapse_agent_sap` program.
26
- *
27
- * @name SynapseAgentSapIDL
28
- * @description Anchor IDL type derived from the bundled JSON artifact.
29
- * Automatically stays in sync with the program — no manual maintenance needed.
30
- * @category IDL
31
- * @since v0.1.0
32
- */
33
- export type SynapseAgentSapIDL = any;
34
- /**
35
- * The complete Anchor IDL object for the `synapse_agent_sap` program.
36
- *
37
- * @name SAP_IDL
38
- * @description Pre-loaded IDL JSON artifact bundled with the SDK.
39
- * Can be passed directly to `new anchor.Program()` or used for
40
- * instruction introspection.
41
- * @category IDL
42
- * @since v0.1.0
43
- */
44
- export declare const SAP_IDL: any;
45
- /**
46
- * Program address embedded in the IDL metadata.
47
- *
48
- * @name IDL_PROGRAM_ADDRESS
49
- * @description The deployed program address as declared in the Anchor IDL.
50
- * @category IDL
51
- * @since v0.1.0
52
- */
53
- export declare const IDL_PROGRAM_ADDRESS: string;
54
- /**
55
- * IDL metadata block (name, version, spec, description).
56
- *
57
- * @name IDL_METADATA
58
- * @description Anchor IDL metadata containing program name, version string,
59
- * spec version, and human-readable description.
60
- * @category IDL
61
- * @since v0.1.0
62
- */
63
- export declare const IDL_METADATA: {
64
- name: string;
65
- version: string;
66
- spec: string;
67
- description: string;
68
- };
69
- export default SAP_IDL;
70
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/idl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH;;;;;;;;GAQG;AAEH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAErC;;;;;;;;;GASG;AAEH,eAAO,MAAM,OAAO,EAAc,GAAG,CAAC;AAEtC;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAwB,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;;CAAmB,CAAC;AAE7C,eAAe,OAAO,CAAC"}
@@ -1,86 +0,0 @@
1
- /**
2
- * @synapse-sap/sdk — TypeScript SDK for SAP v2 (Synapse Agent Protocol)
3
- *
4
- * Modular architecture:
5
- *
6
- * | Path | Description |
7
- * |-------------------|-----------------------------------------------|
8
- * | `core/` | SapClient, SapConnection (RPC factory) |
9
- * | `types/` | On-chain enums, account data, instruction DTOs|
10
- * | `constants/` | Program IDs, PDA seeds, size limits |
11
- * | `pda/` | Deterministic PDA derivation helpers |
12
- * | `events/` | Transaction-log event parser |
13
- * | `errors/` | Typed SDK error classes |
14
- * | `utils/` | Hashing, validation, serialization |
15
- * | `modules/` | Low-level per-domain instruction wrappers |
16
- * | `registries/` | High-level abstractions (discovery, x402, …) |
17
- * | `plugin/` | SynapseAgentKit adapter (52 tools) |
18
- * | `parser/` | Transaction decode, instruction + event parse |
19
- * | `idl/` | Embedded Anchor IDL |
20
- *
21
- * @example
22
- * ```ts
23
- * import { SapClient, SapConnection } from "@synapse-sap/sdk";
24
- *
25
- * // Quick start — from Anchor provider
26
- * const client = SapClient.from(provider);
27
- *
28
- * // Or from RPC URL (synapse-client-sdk compatible)
29
- * const conn = SapConnection.devnet();
30
- * const client2 = conn.fromKeypair(keypair);
31
- *
32
- * // Use domain modules:
33
- * await client.agent.register({ ... });
34
- * await client.escrow.create(agentWallet, { ... });
35
- * await client.ledger.write(sessionPda, data, contentHash);
36
- *
37
- * // Use registries (high-level):
38
- * const agents = await client.discovery.findAgentsByProtocol("jupiter");
39
- * const ctx = await client.session.start("conv-123");
40
- * ```
41
- *
42
- * @packageDocumentation
43
- * @category SDK
44
- * @since v0.1.0
45
- */
46
- export { SapClient, SapConnection, KeypairWallet } from "./core";
47
- export type { SapCluster, SapConnectionConfig, SapWallet } from "./core";
48
- export type { TokenTypeKind, PluginTypeKind, SettlementModeKind, ToolHttpMethodKind, ToolCategoryKind, DelegatePermissionBit, SchemaTypeValue, CompressionTypeValue, SettlementSecurityKind, DisputeOutcomeKind, BillingIntervalKind, DisputeTypeValue, ResolutionLayerKind, Capability, VolumeCurveBreakpoint, PricingTier, PluginRef, Settlement, AgentAccountData, FeedbackAccountData, CapabilityIndexData, ProtocolIndexData, GlobalRegistryData, MemoryVaultData, SessionLedgerData, EpochPageData, VaultDelegateData, ToolDescriptorData, SessionCheckpointData, EscrowAccountData, AgentStatsData, ToolCategoryIndexData, AgentAttestationData, MemoryLedgerData, LedgerPageData, EscrowAccountV2Data, PendingSettlementData, DisputeRecordData, ReceiptBatchData, AgentStakeData, SubscriptionData, CounterShardData, IndexPageData, RegisterAgentArgs, UpdateAgentArgs, GiveFeedbackArgs, UpdateFeedbackArgs, PublishToolArgs, UpdateToolArgs, InscribeMemoryArgs, CompactInscribeArgs, CreateEscrowArgs, CreateAttestationArgs, InscribeToolSchemaArgs, CreateEscrowV2Args, CreateSubscriptionArgs, EndpointDescriptor, HealthCheckDescriptor, ToolManifestEntry, AgentManifest, EndpointValidationResult, } from "./types";
49
- export { TokenType, PluginType, SettlementMode, ToolHttpMethod, ToolCategory, DelegatePermission, SchemaType, CompressionType, SettlementSecurity, DisputeOutcome, BillingInterval, DisputeType, ResolutionLayer, } from "./types";
50
- export { SAP_PROGRAM_ADDRESS, SAP_PROGRAM_ID, MAINNET_SAP_PROGRAM_ID, DEVNET_SAP_PROGRAM_ID, LOCALNET_SAP_PROGRAM_ID, SEEDS, LIMITS, AGENT_VERSION, VAULT_PROTOCOL_VERSION, TOOL_CATEGORY_VALUES, HTTP_METHOD_VALUES, SapNetwork, } from "./constants";
51
- export type { SapNetworkId } from "./constants";
52
- export { SAP_IDL, IDL_PROGRAM_ADDRESS, IDL_METADATA } from "./idl/index";
53
- export type { SynapseAgentSapIDL } from "./idl/index";
54
- export { deriveGlobalRegistry, deriveAgent, deriveAgentStats, deriveFeedback, deriveCapabilityIndex, deriveProtocolIndex, deriveToolCategoryIndex, deriveVault, deriveSession, deriveEpochPage, deriveVaultDelegate, deriveCheckpoint, deriveTool, deriveEscrow, deriveEscrowV2, derivePendingSettlement, deriveDispute, deriveStake, deriveSubscription, deriveShard, deriveIndexPage, deriveAttestation, deriveLedger, deriveLedgerPage, deriveReceiptBatch, deriveSettlementReceipt, } from "./pda";
55
- export { sha256, hashToArray, assert, computeBatchRoot } from "./utils";
56
- export { serializeAccount, serializeValue } from "./utils";
57
- export { USDC_MINT_MAINNET, USDC_MINT_DEVNET, MIN_AGENT_STAKE_LAMPORTS, MAX_DELEGATE_DURATION_SECS, isAcceptedUsdcMint, isAcceptedPaymentToken, } from "./constants";
58
- export { normalizeNetworkId, isNetworkEquivalent, getNetworkGenesisHash, getNetworkClusterName, isKnownNetwork, } from "./utils";
59
- export { validateEndpoint, validateEndpointDescriptor, validateHealthCheck, validateAgentEndpoints, } from "./utils";
60
- export type { ValidateEndpointOptions } from "./utils";
61
- export { getRpcUrl, getFallbackRpcUrl, createDualConnection, findATA, classifyAnchorError, extractAnchorErrorCode, } from "./utils";
62
- export type { RpcConfig, DualConnection, AtaResult } from "./utils";
63
- export { createEnvSchema, createEndpointDescriptorSchema, createHealthCheckSchema, createToolManifestEntrySchema, createAgentManifestSchema, createPreparePaymentSchema, createRegisterAgentSchema, createCallArgsSchema, validateOrThrow, } from "./utils";
64
- export { buildPriorityFeeIxs, buildRpcOptions, FAST_SETTLE_OPTIONS, FAST_BATCH_SETTLE_OPTIONS, DEFAULT_SETTLE_PRIORITY_FEE, DEFAULT_SETTLE_COMPUTE_UNITS, DEFAULT_BATCH_SETTLE_COMPUTE_UNITS, computeBatchSettleCu, } from "./utils";
65
- export type { PriorityFeeConfig, } from "./utils";
66
- export { validateEscrowState, attachSplAccounts, toAccountMetas, MissingEscrowAtaError, SapMerchantValidator, parseX402Headers, getX402DirectPayments, } from "./utils";
67
- export type { SplAccountMeta, EscrowValidationResult, ParsedX402Headers, MerchantValidationResult, X402DirectPayment, SettlementPayload, GetX402DirectOptions, } from "./utils";
68
- export { SapError, SapValidationError, SapRpcError, SapAccountNotFoundError, SapTimeoutError, SapPermissionError, SapTransientError, SapAlreadyExistsError, SapIdempotencyError, isTransientRpcError, } from "./errors";
69
- export { EventParser, SAP_EVENT_NAMES } from "./events";
70
- export type { SapEvent, SapEventName, ParsedEvent, RegisteredEventData, UpdatedEventData, FeedbackEventData, MemoryInscribedEventData, PaymentSettledEventData, LedgerEntryEventData, } from "./events";
71
- export { GeyserEventStream } from "./events/geyser";
72
- export type { GeyserConfig, GeyserStreamEvents } from "./events/geyser";
73
- export { AgentModule, FeedbackModule, IndexingModule, ToolsModule, VaultModule, EscrowV2Module, ReceiptModule, StakingModule, SubscriptionModule, AttestationModule, LedgerModule, BaseModule, } from "./modules/index";
74
- export { AlreadySettledError, FatalSettleError } from "./modules/escrow-v2";
75
- export type { SapProgram, SapTransactionResult } from "./modules/base";
76
- export { createSAPPlugin, SAPPlugin } from "./plugin/index";
77
- export type { SAPPluginConfig, SynapsePlugin, PluginMeta, PluginContext, PluginInstallResult, } from "./plugin/index";
78
- export type { ProtocolMethod, PluginProtocol, } from "./plugin/protocols";
79
- export { SAP_PROTOCOLS } from "./plugin/protocols";
80
- export { SapPostgres, SapSyncEngine, SAP_TABLE_MAP } from "./postgres";
81
- export type { PgClient, SyncAllResult, SapAccountType, SyncMeta, AgentRow, EscrowRow, ToolRow, LedgerRow, EventRow, SyncCursorRow, SyncOptions, } from "./postgres";
82
- export { parseSapInstructionsFromTransaction, parseSapInstructionNamesFromTransaction, parseSapInstructionsFromList, parseSapInstructionNamesFromList, containsSapInstruction, parseSapTransactionComplete, parseSapTransactionBatch, decodeInnerInstructions, filterSapInnerInstructions, extractAccountKeys, TransactionParser, } from "./parser";
83
- export type { DecodedSapInstruction, DecodedInnerInstruction, ParsedSapTransaction, ParseFilterOptions, SapInstructionCoder, CompiledInner, InnerInstructionGroup, } from "./parser";
84
- export { DiscoveryRegistry, X402Registry, SessionManager, AgentBuilder, MetaplexBridge, } from "./registries/index";
85
- export type { DiscoveredAgent, AgentProfile, DiscoveredTool, NetworkOverview, ToolCategoryName, CostEstimate, PaymentContext, PreparePaymentOptions, X402Headers, EscrowBalance, SettlementResult, BatchSettlementResult, SettleOptions, SessionContext, WriteResult, SealResult, RingBufferEntry, SessionStatus, CapabilityInput, PricingTierInput, ToolInput, RegisterResult, RegisterWithToolsResult, UnifiedProfile, AgentIdentifierResolution, MplAgentSnapshot, Eip8004Registration, Eip8004Service, AttachAgentIdentityOpts, UpdateAgentIdentityUriOpts, } from "./registries/index";
86
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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