@oobe-protocol-labs/synapse-client-sdk 1.2.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +176 -0
- package/README.md +230 -17
- package/dist/cjs/ai/actions/blinks.d.ts +158 -0
- package/dist/cjs/ai/actions/blinks.d.ts.map +1 -0
- package/dist/cjs/ai/actions/blinks.js +232 -0
- package/dist/cjs/ai/actions/blinks.js.map +1 -0
- package/dist/cjs/ai/actions/index.d.ts +51 -0
- package/dist/cjs/ai/actions/index.d.ts.map +1 -0
- package/dist/cjs/ai/actions/index.js +61 -0
- package/dist/cjs/ai/actions/index.js.map +1 -0
- package/dist/cjs/ai/actions/server.d.ts +188 -0
- package/dist/cjs/ai/actions/server.d.ts.map +1 -0
- package/dist/cjs/ai/actions/server.js +404 -0
- package/dist/cjs/ai/actions/server.js.map +1 -0
- package/dist/cjs/ai/actions/types.d.ts +251 -0
- package/dist/cjs/ai/actions/types.d.ts.map +1 -0
- package/dist/cjs/ai/actions/types.js +16 -0
- package/dist/cjs/ai/actions/types.js.map +1 -0
- package/dist/cjs/ai/gateway/index.d.ts +1 -0
- package/dist/cjs/ai/gateway/index.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/index.js +6 -1
- package/dist/cjs/ai/gateway/index.js.map +1 -1
- package/dist/cjs/ai/gateway/monetize.d.ts +222 -0
- package/dist/cjs/ai/gateway/monetize.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/monetize.js +316 -0
- package/dist/cjs/ai/gateway/monetize.js.map +1 -0
- package/dist/cjs/ai/index.d.ts +7 -2
- package/dist/cjs/ai/index.d.ts.map +1 -1
- package/dist/cjs/ai/index.js +78 -2
- package/dist/cjs/ai/index.js.map +1 -1
- package/dist/cjs/ai/intents/executor.d.ts +102 -0
- package/dist/cjs/ai/intents/executor.d.ts.map +1 -0
- package/dist/cjs/ai/intents/executor.js +335 -0
- package/dist/cjs/ai/intents/executor.js.map +1 -0
- package/dist/cjs/ai/intents/index.d.ts +52 -0
- package/dist/cjs/ai/intents/index.d.ts.map +1 -0
- package/dist/cjs/ai/intents/index.js +60 -0
- package/dist/cjs/ai/intents/index.js.map +1 -0
- package/dist/cjs/ai/intents/parser.d.ts +106 -0
- package/dist/cjs/ai/intents/parser.d.ts.map +1 -0
- package/dist/cjs/ai/intents/parser.js +189 -0
- package/dist/cjs/ai/intents/parser.js.map +1 -0
- package/dist/cjs/ai/intents/planner.d.ts +96 -0
- package/dist/cjs/ai/intents/planner.d.ts.map +1 -0
- package/dist/cjs/ai/intents/planner.js +270 -0
- package/dist/cjs/ai/intents/planner.js.map +1 -0
- package/dist/cjs/ai/intents/types.d.ts +281 -0
- package/dist/cjs/ai/intents/types.d.ts.map +1 -0
- package/dist/cjs/ai/intents/types.js +70 -0
- package/dist/cjs/ai/intents/types.js.map +1 -0
- package/dist/cjs/ai/mcp/client.d.ts +71 -0
- package/dist/cjs/ai/mcp/client.d.ts.map +1 -0
- package/dist/cjs/ai/mcp/client.js +675 -0
- package/dist/cjs/ai/mcp/client.js.map +1 -0
- package/dist/cjs/ai/mcp/index.d.ts +16 -0
- package/dist/cjs/ai/mcp/index.d.ts.map +1 -0
- package/dist/cjs/ai/mcp/index.js +27 -0
- package/dist/cjs/ai/mcp/index.js.map +1 -0
- package/dist/cjs/ai/mcp/server.d.ts +115 -0
- package/dist/cjs/ai/mcp/server.d.ts.map +1 -0
- package/dist/cjs/ai/mcp/server.js +624 -0
- package/dist/cjs/ai/mcp/server.js.map +1 -0
- package/dist/cjs/ai/mcp/types.d.ts +215 -0
- package/dist/cjs/ai/mcp/types.d.ts.map +1 -0
- package/dist/cjs/ai/mcp/types.js +17 -0
- package/dist/cjs/ai/mcp/types.js.map +1 -0
- package/dist/cjs/ai/plugins/blinks/index.d.ts +22 -0
- package/dist/cjs/ai/plugins/blinks/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/blinks/index.js +202 -0
- package/dist/cjs/ai/plugins/blinks/index.js.map +1 -0
- package/dist/cjs/ai/plugins/blinks/schemas.d.ts +4 -0
- package/dist/cjs/ai/plugins/blinks/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/blinks/schemas.js +103 -0
- package/dist/cjs/ai/plugins/blinks/schemas.js.map +1 -0
- package/dist/cjs/ai/plugins/defi/index.d.ts +44 -0
- package/dist/cjs/ai/plugins/defi/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/defi/index.js +490 -0
- package/dist/cjs/ai/plugins/defi/index.js.map +1 -0
- package/dist/cjs/ai/plugins/defi/schemas.d.ts +13 -0
- package/dist/cjs/ai/plugins/defi/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/defi/schemas.js +573 -0
- package/dist/cjs/ai/plugins/defi/schemas.js.map +1 -0
- package/dist/cjs/ai/plugins/index.d.ts +30 -0
- package/dist/cjs/ai/plugins/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/index.js +40 -0
- package/dist/cjs/ai/plugins/index.js.map +1 -0
- package/dist/cjs/ai/plugins/misc/index.d.ts +28 -0
- package/dist/cjs/ai/plugins/misc/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/misc/index.js +445 -0
- package/dist/cjs/ai/plugins/misc/index.js.map +1 -0
- package/dist/cjs/ai/plugins/misc/schemas.d.ts +9 -0
- package/dist/cjs/ai/plugins/misc/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/misc/schemas.js +318 -0
- package/dist/cjs/ai/plugins/misc/schemas.js.map +1 -0
- package/dist/cjs/ai/plugins/nft/index.d.ts +24 -0
- package/dist/cjs/ai/plugins/nft/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/nft/index.js +70 -0
- package/dist/cjs/ai/plugins/nft/index.js.map +1 -0
- package/dist/cjs/ai/plugins/nft/schemas.d.ts +6 -0
- package/dist/cjs/ai/plugins/nft/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/nft/schemas.js +272 -0
- package/dist/cjs/ai/plugins/nft/schemas.js.map +1 -0
- package/dist/cjs/ai/plugins/registry.d.ts +157 -0
- package/dist/cjs/ai/plugins/registry.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/registry.js +369 -0
- package/dist/cjs/ai/plugins/registry.js.map +1 -0
- package/dist/cjs/ai/plugins/token/index.d.ts +35 -0
- package/dist/cjs/ai/plugins/token/index.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/token/index.js +187 -0
- package/dist/cjs/ai/plugins/token/index.js.map +1 -0
- package/dist/cjs/ai/plugins/token/schemas.d.ts +5 -0
- package/dist/cjs/ai/plugins/token/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/token/schemas.js +268 -0
- package/dist/cjs/ai/plugins/token/schemas.js.map +1 -0
- package/dist/cjs/ai/plugins/types.d.ts +176 -0
- package/dist/cjs/ai/plugins/types.d.ts.map +1 -0
- package/dist/cjs/ai/plugins/types.js +3 -0
- package/dist/cjs/ai/plugins/types.js.map +1 -0
- package/dist/cjs/ai/sap/adapter.d.ts +140 -0
- package/dist/cjs/ai/sap/adapter.d.ts.map +1 -0
- package/dist/cjs/ai/sap/adapter.js +181 -0
- package/dist/cjs/ai/sap/adapter.js.map +1 -0
- package/dist/cjs/ai/sap/discovery.d.ts +165 -0
- package/dist/cjs/ai/sap/discovery.d.ts.map +1 -0
- package/dist/cjs/ai/sap/discovery.js +316 -0
- package/dist/cjs/ai/sap/discovery.js.map +1 -0
- package/dist/cjs/ai/sap/index.d.ts +61 -0
- package/dist/cjs/ai/sap/index.d.ts.map +1 -0
- package/dist/cjs/ai/sap/index.js +89 -0
- package/dist/cjs/ai/sap/index.js.map +1 -0
- package/dist/cjs/ai/sap/pda.d.ts +205 -0
- package/dist/cjs/ai/sap/pda.d.ts.map +1 -0
- package/dist/cjs/ai/sap/pda.js +547 -0
- package/dist/cjs/ai/sap/pda.js.map +1 -0
- package/dist/cjs/ai/sap/program.d.ts +153 -0
- package/dist/cjs/ai/sap/program.d.ts.map +1 -0
- package/dist/cjs/ai/sap/program.js +227 -0
- package/dist/cjs/ai/sap/program.js.map +1 -0
- package/dist/cjs/ai/sap/registry.d.ts +218 -0
- package/dist/cjs/ai/sap/registry.d.ts.map +1 -0
- package/dist/cjs/ai/sap/registry.js +519 -0
- package/dist/cjs/ai/sap/registry.js.map +1 -0
- package/dist/cjs/ai/sap/scoring.d.ts +138 -0
- package/dist/cjs/ai/sap/scoring.d.ts.map +1 -0
- package/dist/cjs/ai/sap/scoring.js +266 -0
- package/dist/cjs/ai/sap/scoring.js.map +1 -0
- package/dist/cjs/ai/sap/subnetwork.d.ts +201 -0
- package/dist/cjs/ai/sap/subnetwork.d.ts.map +1 -0
- package/dist/cjs/ai/sap/subnetwork.js +365 -0
- package/dist/cjs/ai/sap/subnetwork.js.map +1 -0
- package/dist/cjs/ai/sap/types.d.ts +418 -0
- package/dist/cjs/ai/sap/types.d.ts.map +1 -0
- package/dist/cjs/ai/sap/types.js +217 -0
- package/dist/cjs/ai/sap/types.js.map +1 -0
- package/dist/cjs/ai/sap/validator.d.ts +160 -0
- package/dist/cjs/ai/sap/validator.d.ts.map +1 -0
- package/dist/cjs/ai/sap/validator.js +619 -0
- package/dist/cjs/ai/sap/validator.js.map +1 -0
- package/dist/docs/assets/highlight.css +13 -6
- package/dist/docs/classes/AccountReader.html +18 -18
- package/dist/docs/classes/AccountsClient.html +10 -10
- package/dist/docs/classes/AsyncProviderError.html +4 -4
- package/dist/docs/classes/CircularDependencyError.html +4 -4
- package/dist/docs/classes/DasClient.html +13 -13
- package/dist/docs/classes/GeyserParser.html +17 -17
- package/dist/docs/classes/GrpcTransport.html +6 -6
- package/dist/docs/classes/HttpTransport.html +4 -4
- package/dist/docs/classes/InstructionWriter.html +11 -11
- package/dist/docs/classes/MemoryGuard.html +9 -9
- package/dist/docs/classes/NetworkError.html +5 -5
- package/dist/docs/classes/RefRegistry.html +11 -11
- package/dist/docs/classes/RefReleasedError.html +4 -4
- package/dist/docs/classes/RpcMethodNotFoundError.html +4 -4
- package/dist/docs/classes/ServiceNotFoundError.html +4 -4
- package/dist/docs/classes/ServiceRef.html +13 -13
- package/dist/docs/classes/SolanaRpc.html +55 -55
- package/dist/docs/classes/SynapseClient.html +16 -16
- package/dist/docs/classes/SynapseContext.html +27 -27
- package/dist/docs/classes/SynapseError.html +4 -4
- package/dist/docs/classes/TimeoutError.html +4 -4
- package/dist/docs/classes/UpstreamError.html +6 -6
- package/dist/docs/classes/WeakServiceRef.html +4 -4
- package/dist/docs/classes/WsClient.html +10 -10
- package/dist/docs/enums/SynapseNetwork.html +2 -2
- package/dist/docs/enums/SynapseRegion.html +2 -2
- package/dist/docs/enums/TokenExtensionType.html +2 -2
- package/dist/docs/functions/Epoch-1.html +1 -1
- package/dist/docs/functions/Lamports-2.html +1 -1
- package/dist/docs/functions/Pubkey-1.html +1 -1
- package/dist/docs/functions/Sig.html +1 -1
- package/dist/docs/functions/Slot-1.html +1 -1
- package/dist/docs/functions/UnixTs.html +1 -1
- package/dist/docs/functions/autoSelectRegion.html +1 -1
- package/dist/docs/functions/autoWire.html +1 -1
- package/dist/docs/functions/base58Encode.html +1 -1
- package/dist/docs/functions/base64ToBytes.html +1 -1
- package/dist/docs/functions/bigIntReplacer.html +1 -1
- package/dist/docs/functions/chunk.html +1 -1
- package/dist/docs/functions/computeBalanceChanges.html +1 -1
- package/dist/docs/functions/computeTokenBalanceChanges.html +1 -1
- package/dist/docs/functions/createBareContext.html +1 -1
- package/dist/docs/functions/createBinding.html +1 -1
- package/dist/docs/functions/createBoundHook.html +1 -1
- package/dist/docs/functions/createReactAdapter.html +1 -1
- package/dist/docs/functions/createRefHook.html +1 -1
- package/dist/docs/functions/createServerMiddleware.html +1 -1
- package/dist/docs/functions/createServiceHook.html +1 -1
- package/dist/docs/functions/createSingleton.html +1 -1
- package/dist/docs/functions/createSynapse.html +1 -1
- package/dist/docs/functions/createSynapseContext.html +1 -1
- package/dist/docs/functions/createToken.html +1 -1
- package/dist/docs/functions/decodeBase58.html +1 -1
- package/dist/docs/functions/decodeLookupTable.html +1 -1
- package/dist/docs/functions/decodeMint.html +1 -1
- package/dist/docs/functions/decodeMultisig.html +1 -1
- package/dist/docs/functions/decodeNonceAccount.html +1 -1
- package/dist/docs/functions/decodeStakeAccount.html +1 -1
- package/dist/docs/functions/decodeToken2022Account.html +1 -1
- package/dist/docs/functions/decodeToken2022Mint.html +1 -1
- package/dist/docs/functions/decodeTokenAccount.html +1 -1
- package/dist/docs/functions/encodeBase58.html +1 -1
- package/dist/docs/functions/fetchLookupTable.html +2 -2
- package/dist/docs/functions/fetchMint.html +2 -2
- package/dist/docs/functions/fetchNonceAccount.html +2 -2
- package/dist/docs/functions/fetchStakeAccount.html +2 -2
- package/dist/docs/functions/fetchTokenAccount.html +2 -2
- package/dist/docs/functions/fetchTokenAccountsByOwner.html +2 -2
- package/dist/docs/functions/fromKitAddress.html +1 -1
- package/dist/docs/functions/getAccountInfo.html +2 -2
- package/dist/docs/functions/getAsset.html +1 -1
- package/dist/docs/functions/getAssetBatch.html +1 -1
- package/dist/docs/functions/getAssetProof.html +1 -1
- package/dist/docs/functions/getAssetProofBatch.html +1 -1
- package/dist/docs/functions/getAssetsByAuthority.html +1 -1
- package/dist/docs/functions/getAssetsByCreator.html +1 -1
- package/dist/docs/functions/getAssetsByGroup.html +1 -1
- package/dist/docs/functions/getAssetsByOwner.html +1 -1
- package/dist/docs/functions/getBalance.html +1 -1
- package/dist/docs/functions/getBlock.html +2 -2
- package/dist/docs/functions/getBlockCommitment.html +1 -1
- package/dist/docs/functions/getBlockHeight.html +1 -1
- package/dist/docs/functions/getBlockProduction.html +1 -1
- package/dist/docs/functions/getBlockTime.html +1 -1
- package/dist/docs/functions/getBlocks.html +1 -1
- package/dist/docs/functions/getBlocksWithLimit.html +2 -2
- package/dist/docs/functions/getClusterNodes.html +2 -2
- package/dist/docs/functions/getContext.html +1 -1
- package/dist/docs/functions/getDecodedAccount.html +2 -2
- package/dist/docs/functions/getDecodedAccounts.html +1 -1
- package/dist/docs/functions/getEnvironment.html +1 -1
- package/dist/docs/functions/getEpochInfo.html +2 -2
- package/dist/docs/functions/getEpochSchedule.html +2 -2
- package/dist/docs/functions/getFeeForMessage.html +1 -1
- package/dist/docs/functions/getFirstAvailableBlock.html +1 -1
- package/dist/docs/functions/getGenesisHash.html +1 -1
- package/dist/docs/functions/getHealth.html +1 -1
- package/dist/docs/functions/getHighestSnapshotSlot.html +1 -1
- package/dist/docs/functions/getIdentity.html +1 -1
- package/dist/docs/functions/getInflationGovernor.html +2 -2
- package/dist/docs/functions/getInflationRate.html +2 -2
- package/dist/docs/functions/getInflationReward.html +2 -2
- package/dist/docs/functions/getLargestAccounts.html +2 -2
- package/dist/docs/functions/getLatestBlockhash.html +2 -2
- package/dist/docs/functions/getLeaderSchedule.html +1 -1
- package/dist/docs/functions/getMaxRetransmitSlot.html +1 -1
- package/dist/docs/functions/getMaxShredInsertSlot.html +1 -1
- package/dist/docs/functions/getMinimumBalanceForRentExemption.html +1 -1
- package/dist/docs/functions/getMultipleAccounts.html +1 -1
- package/dist/docs/functions/getProgramAccounts.html +1 -1
- package/dist/docs/functions/getProgramCategory.html +1 -1
- package/dist/docs/functions/getRecentPerformanceSamples.html +1 -1
- package/dist/docs/functions/getRecentPrioritizationFees.html +1 -1
- package/dist/docs/functions/getSignatureStatuses.html +1 -1
- package/dist/docs/functions/getSignaturesForAddress.html +1 -1
- package/dist/docs/functions/getSignaturesForAsset.html +1 -1
- package/dist/docs/functions/getSlot.html +1 -1
- package/dist/docs/functions/getSlotLeader.html +1 -1
- package/dist/docs/functions/getSlotLeaders.html +1 -1
- package/dist/docs/functions/getStakeActivation.html +1 -1
- package/dist/docs/functions/getStakeMinimumDelegation.html +1 -1
- package/dist/docs/functions/getSupply.html +1 -1
- package/dist/docs/functions/getTokenAccountBalance.html +1 -1
- package/dist/docs/functions/getTokenAccounts.html +1 -1
- package/dist/docs/functions/getTokenAccountsByDelegate.html +1 -1
- package/dist/docs/functions/getTokenAccountsByOwner.html +1 -1
- package/dist/docs/functions/getTokenLargestAccounts.html +1 -1
- package/dist/docs/functions/getTokenSupply.html +1 -1
- package/dist/docs/functions/getTransaction.html +1 -1
- package/dist/docs/functions/getTransactionCount.html +1 -1
- package/dist/docs/functions/getVersion.html +1 -1
- package/dist/docs/functions/getVoteAccounts.html +1 -1
- package/dist/docs/functions/isBlockhashValid.html +1 -1
- package/dist/docs/functions/isBrowser.html +1 -1
- package/dist/docs/functions/isDisposable.html +1 -1
- package/dist/docs/functions/isProgramInCategory.html +1 -1
- package/dist/docs/functions/isServer.html +1 -1
- package/dist/docs/functions/isValidPubkey.html +1 -1
- package/dist/docs/functions/isValidSignature.html +1 -1
- package/dist/docs/functions/lamportsToSol.html +1 -1
- package/dist/docs/functions/listEndpoints.html +1 -1
- package/dist/docs/functions/listNetworks.html +1 -1
- package/dist/docs/functions/listRegions.html +1 -1
- package/dist/docs/functions/minimumLedgerSlot.html +1 -1
- package/dist/docs/functions/parseAccountUpdate.html +1 -1
- package/dist/docs/functions/parseBlockMeta.html +1 -1
- package/dist/docs/functions/parseEntry.html +1 -1
- package/dist/docs/functions/parseGeyserUpdate.html +1 -1
- package/dist/docs/functions/parseSlotUpdate.html +1 -1
- package/dist/docs/functions/parseTimestamp.html +1 -1
- package/dist/docs/functions/parseTransaction.html +1 -1
- package/dist/docs/functions/probeLatency.html +1 -1
- package/dist/docs/functions/rawBufferToBase58.html +1 -1
- package/dist/docs/functions/rawBufferToBase64.html +1 -1
- package/dist/docs/functions/rawBufferToBytes.html +1 -1
- package/dist/docs/functions/rawBufferToHex.html +1 -1
- package/dist/docs/functions/readonly.html +1 -1
- package/dist/docs/functions/readonlySigner.html +1 -1
- package/dist/docs/functions/requestAirdrop.html +1 -1
- package/dist/docs/functions/resolveEndpoint.html +1 -1
- package/dist/docs/functions/resolveProgram.html +1 -1
- package/dist/docs/functions/resolveProgramBatch.html +1 -1
- package/dist/docs/functions/retry.html +1 -1
- package/dist/docs/functions/searchAssets.html +1 -1
- package/dist/docs/functions/sendAndConfirmDurableNonceTransactionFactory.html +1 -1
- package/dist/docs/functions/sendTransaction.html +1 -1
- package/dist/docs/functions/setGlobalContext.html +1 -1
- package/dist/docs/functions/simulateTransaction.html +1 -1
- package/dist/docs/functions/sleep.html +1 -1
- package/dist/docs/functions/solToLamports.html +1 -1
- package/dist/docs/functions/toClientConfig.html +1 -1
- package/dist/docs/functions/toJsonSafe.html +1 -1
- package/dist/docs/functions/toKitAddress.html +1 -1
- package/dist/docs/functions/toKitInstruction.html +1 -1
- package/dist/docs/functions/toKitLamports.html +1 -1
- package/dist/docs/functions/toKitSignatureString.html +1 -1
- package/dist/docs/functions/tryGetContext.html +1 -1
- package/dist/docs/functions/tryUseService.html +1 -1
- package/dist/docs/functions/useBoundServices.html +1 -1
- package/dist/docs/functions/useService.html +1 -1
- package/dist/docs/functions/useSharedRef.html +1 -1
- package/dist/docs/functions/withRef.html +1 -1
- package/dist/docs/functions/withRefAsync.html +1 -1
- package/dist/docs/functions/writable.html +1 -1
- package/dist/docs/functions/writableSigner.html +1 -1
- package/dist/docs/index.html +174 -8
- package/dist/docs/interfaces/AccountInfo.html +7 -7
- package/dist/docs/interfaces/AccountMeta.html +4 -4
- package/dist/docs/interfaces/AccountNotification.html +2 -2
- package/dist/docs/interfaces/AccountSubParams.html +2 -2
- package/dist/docs/interfaces/AddMemoParams.html +5 -5
- package/dist/docs/interfaces/AdvanceNonceParams.html +3 -3
- package/dist/docs/interfaces/AliasProvider.html +2 -2
- package/dist/docs/interfaces/AllocateParams.html +3 -3
- package/dist/docs/interfaces/ApproveCheckedParams.html +9 -9
- package/dist/docs/interfaces/ApproveParams.html +7 -7
- package/dist/docs/interfaces/AssetSignatureInfo.html +2 -2
- package/dist/docs/interfaces/AssetSignaturesPage.html +2 -2
- package/dist/docs/interfaces/AssignParams.html +3 -3
- package/dist/docs/interfaces/AsyncFactoryProvider.html +2 -2
- package/dist/docs/interfaces/AuthorizeNonceParams.html +4 -4
- package/dist/docs/interfaces/BalanceChange.html +6 -6
- package/dist/docs/interfaces/BlockProduction.html +3 -3
- package/dist/docs/interfaces/BlockResult.html +2 -2
- package/dist/docs/interfaces/BlockReward.html +2 -2
- package/dist/docs/interfaces/BlockhashResult.html +2 -2
- package/dist/docs/interfaces/BurnCheckedParams.html +8 -8
- package/dist/docs/interfaces/BurnParams.html +7 -7
- package/dist/docs/interfaces/CallOptions.html +6 -6
- package/dist/docs/interfaces/ClassProvider.html +2 -2
- package/dist/docs/interfaces/CloseAccountParams.html +6 -6
- package/dist/docs/interfaces/ConfirmedTransaction.html +6 -6
- package/dist/docs/interfaces/ContactInfo.html +2 -2
- package/dist/docs/interfaces/ContextAdapter.html +5 -5
- package/dist/docs/interfaces/ContextEvents.html +6 -6
- package/dist/docs/interfaces/ContextModule.html +3 -3
- package/dist/docs/interfaces/CreateATAParams.html +6 -6
- package/dist/docs/interfaces/CreateAccountParams.html +6 -6
- package/dist/docs/interfaces/CreateAccountWithSeedParams.html +8 -8
- package/dist/docs/interfaces/CreateSynapseContextOpts.html +4 -4
- package/dist/docs/interfaces/DasAsset.html +2 -2
- package/dist/docs/interfaces/DasAssetProof.html +2 -2
- package/dist/docs/interfaces/DasAuthority.html +2 -2
- package/dist/docs/interfaces/DasCompression.html +2 -2
- package/dist/docs/interfaces/DasContent.html +2 -2
- package/dist/docs/interfaces/DasCreator.html +2 -2
- package/dist/docs/interfaces/DasFile.html +2 -2
- package/dist/docs/interfaces/DasGrouping.html +2 -2
- package/dist/docs/interfaces/DasOpts.html +2 -2
- package/dist/docs/interfaces/DasOwnership.html +2 -2
- package/dist/docs/interfaces/DasPage.html +2 -2
- package/dist/docs/interfaces/DasRoyalty.html +2 -2
- package/dist/docs/interfaces/DasSearchParams.html +2 -2
- package/dist/docs/interfaces/DasSupply.html +2 -2
- package/dist/docs/interfaces/DataSlice.html +3 -3
- package/dist/docs/interfaces/DecodedAccountResult.html +4 -4
- package/dist/docs/interfaces/DecodedLookupTable.html +9 -9
- package/dist/docs/interfaces/DecodedMint.html +7 -7
- package/dist/docs/interfaces/DecodedMultisig.html +6 -6
- package/dist/docs/interfaces/DecodedNonceAccount.html +7 -7
- package/dist/docs/interfaces/DecodedStakeAccount.html +2 -2
- package/dist/docs/interfaces/DecodedToken2022Account.html +9 -9
- package/dist/docs/interfaces/DecodedToken2022Mint.html +6 -6
- package/dist/docs/interfaces/DecodedTokenAccount.html +10 -10
- package/dist/docs/interfaces/DefaultAccountStateExt.html +2 -2
- package/dist/docs/interfaces/Disposable.html +2 -2
- package/dist/docs/interfaces/EndpointConnectConfig.html +5 -5
- package/dist/docs/interfaces/EpochInfo.html +7 -7
- package/dist/docs/interfaces/EpochSchedule.html +2 -2
- package/dist/docs/interfaces/FactoryProvider.html +2 -2
- package/dist/docs/interfaces/FetchedMint.html +6 -6
- package/dist/docs/interfaces/FetchedTokenAccount.html +6 -6
- package/dist/docs/interfaces/FreezeThawParams.html +6 -6
- package/dist/docs/interfaces/GetAccountInfoOpts.html +6 -6
- package/dist/docs/interfaces/GetAssetsByAuthorityParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByCreatorParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByGroupParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByOwnerParams.html +2 -2
- package/dist/docs/interfaces/GetBlockOpts.html +6 -6
- package/dist/docs/interfaces/GetBlockProductionOpts.html +6 -6
- package/dist/docs/interfaces/GetMultipleAccountsOpts.html +6 -6
- package/dist/docs/interfaces/GetProgramAccountsOpts.html +6 -6
- package/dist/docs/interfaces/GetSignatureStatusesOpts.html +6 -6
- package/dist/docs/interfaces/GetSignaturesOpts.html +7 -7
- package/dist/docs/interfaces/GetTokenAccountsParams.html +2 -2
- package/dist/docs/interfaces/GetTransactionOpts.html +6 -6
- package/dist/docs/interfaces/GeyserParserConfig.html +6 -6
- package/dist/docs/interfaces/GeyserParserEvents.html +9 -9
- package/dist/docs/interfaces/GeyserParserStats.html +2 -2
- package/dist/docs/interfaces/GrpcCallOptions.html +2 -2
- package/dist/docs/interfaces/GrpcTransportConfig.html +6 -6
- package/dist/docs/interfaces/ImmutableOwnerExt.html +2 -2
- package/dist/docs/interfaces/InflationGovernor.html +2 -2
- package/dist/docs/interfaces/InflationRate.html +2 -2
- package/dist/docs/interfaces/InflationReward.html +2 -2
- package/dist/docs/interfaces/InitializeAccountParams.html +5 -5
- package/dist/docs/interfaces/InitializeMintParams.html +6 -6
- package/dist/docs/interfaces/InitializeNonceParams.html +3 -3
- package/dist/docs/interfaces/InterestBearingConfigExt.html +2 -2
- package/dist/docs/interfaces/LatencyProbeResult.html +2 -2
- package/dist/docs/interfaces/LeakReport.html +5 -5
- package/dist/docs/interfaces/LogsNotification.html +2 -2
- package/dist/docs/interfaces/LogsSubParams.html +2 -2
- package/dist/docs/interfaces/MemoTransferExt.html +2 -2
- package/dist/docs/interfaces/MemoryGuardConfig.html +4 -4
- package/dist/docs/interfaces/MetadataPointerExt.html +2 -2
- package/dist/docs/interfaces/MintCloseAuthorityExt.html +2 -2
- package/dist/docs/interfaces/MintToCheckedParams.html +8 -8
- package/dist/docs/interfaces/MintToParams.html +7 -7
- package/dist/docs/interfaces/NonTransferableExt.html +2 -2
- package/dist/docs/interfaces/PaginationOpts.html +2 -2
- package/dist/docs/interfaces/ParsedAccountUpdate.html +16 -16
- package/dist/docs/interfaces/ParsedBlockMeta.html +2 -2
- package/dist/docs/interfaces/ParsedEntry.html +2 -2
- package/dist/docs/interfaces/ParsedInstruction.html +9 -9
- package/dist/docs/interfaces/ParsedSlotUpdate.html +3 -3
- package/dist/docs/interfaces/ParsedTransaction.html +19 -19
- package/dist/docs/interfaces/PerfSample.html +2 -2
- package/dist/docs/interfaces/PermanentDelegateExt.html +2 -2
- package/dist/docs/interfaces/ProgramAccount.html +2 -2
- package/dist/docs/interfaces/ProgramNotification.html +2 -2
- package/dist/docs/interfaces/ProgramSubParams.html +2 -2
- package/dist/docs/interfaces/ProgramsBundle.html +33 -33
- package/dist/docs/interfaces/RawAccountInfo.html +2 -2
- package/dist/docs/interfaces/RawBlockMeta.html +2 -2
- package/dist/docs/interfaces/RawBuffer.html +2 -2
- package/dist/docs/interfaces/RawCompiledInstruction.html +2 -2
- package/dist/docs/interfaces/RawEntry.html +2 -2
- package/dist/docs/interfaces/RawGeyserUpdate.html +2 -2
- package/dist/docs/interfaces/RawInnerInstruction.html +2 -2
- package/dist/docs/interfaces/RawSlotInfo.html +2 -2
- package/dist/docs/interfaces/RawTimestamp.html +2 -2
- package/dist/docs/interfaces/RawTokenBalance.html +2 -2
- package/dist/docs/interfaces/RawTransactionInfo.html +2 -2
- package/dist/docs/interfaces/ReactAdapterConfig.html +2 -2
- package/dist/docs/interfaces/RecoverNestedParams.html +7 -7
- package/dist/docs/interfaces/RefRegistryConfig.html +2 -2
- package/dist/docs/interfaces/RefStats.html +7 -7
- package/dist/docs/interfaces/RequestHeapFrameParams.html +2 -2
- package/dist/docs/interfaces/ResolveMiddleware.html +1 -1
- package/dist/docs/interfaces/RevokeParams.html +5 -5
- package/dist/docs/interfaces/RootNotification.html +2 -2
- package/dist/docs/interfaces/RootSubParams.html +1 -1
- package/dist/docs/interfaces/RpcContext.html +2 -2
- package/dist/docs/interfaces/RpcError.html +4 -4
- package/dist/docs/interfaces/RpcRequest.html +3 -3
- package/dist/docs/interfaces/RpcResponse.html +2 -2
- package/dist/docs/interfaces/SendTransactionOpts.html +6 -6
- package/dist/docs/interfaces/ServerAdapterConfig.html +3 -3
- package/dist/docs/interfaces/ServiceBinding.html +6 -6
- package/dist/docs/interfaces/ServiceRegistration.html +3 -3
- package/dist/docs/interfaces/ServiceResolver.html +6 -6
- package/dist/docs/interfaces/ServiceToken.html +4 -4
- package/dist/docs/interfaces/SetComputeUnitLimitParams.html +2 -2
- package/dist/docs/interfaces/SetComputeUnitPriceParams.html +2 -2
- package/dist/docs/interfaces/SetLoadedAccountsDataSizeLimitParams.html +2 -2
- package/dist/docs/interfaces/SignatureInfo.html +7 -7
- package/dist/docs/interfaces/SignatureNotification.html +2 -2
- package/dist/docs/interfaces/SignatureStatus.html +5 -5
- package/dist/docs/interfaces/SignatureSubParams.html +2 -2
- package/dist/docs/interfaces/SignaturesForAssetParams.html +2 -2
- package/dist/docs/interfaces/SimulateResult.html +2 -2
- package/dist/docs/interfaces/SimulateTransactionOpts.html +7 -7
- package/dist/docs/interfaces/SingletonOptions.html +2 -2
- package/dist/docs/interfaces/SlotNotification.html +2 -2
- package/dist/docs/interfaces/SlotSubParams.html +1 -1
- package/dist/docs/interfaces/SortOpts.html +2 -2
- package/dist/docs/interfaces/StakeAuthorized.html +2 -2
- package/dist/docs/interfaces/StakeDelegation.html +3 -3
- package/dist/docs/interfaces/StakeLockup.html +4 -4
- package/dist/docs/interfaces/StakeMeta.html +2 -2
- package/dist/docs/interfaces/Supply.html +5 -5
- package/dist/docs/interfaces/SynapseClientConfig.html +9 -9
- package/dist/docs/interfaces/SynapseClientLike.html +2 -2
- package/dist/docs/interfaces/SynapseEndpoint.html +7 -7
- package/dist/docs/interfaces/SyncNativeParams.html +3 -3
- package/dist/docs/interfaces/SystemTransferParams.html +4 -4
- package/dist/docs/interfaces/TokenAccount.html +3 -3
- package/dist/docs/interfaces/TokenAccountsByOwnerResult.html +2 -2
- package/dist/docs/interfaces/TokenAmount.html +5 -5
- package/dist/docs/interfaces/TokenBalanceChange.html +2 -2
- package/dist/docs/interfaces/TokenTransferParams.html +7 -7
- package/dist/docs/interfaces/TransactionInstruction.html +4 -4
- package/dist/docs/interfaces/TransactionMeta.html +11 -11
- package/dist/docs/interfaces/TransferCheckedParams.html +9 -9
- package/dist/docs/interfaces/TransferFeeAmount.html +2 -2
- package/dist/docs/interfaces/TransferFeeConfig.html +2 -2
- package/dist/docs/interfaces/TransportConfig.html +7 -7
- package/dist/docs/interfaces/UnknownExtension.html +2 -2
- package/dist/docs/interfaces/ValueProvider.html +2 -2
- package/dist/docs/interfaces/VoteAccount.html +9 -9
- package/dist/docs/interfaces/VoteAccountsResult.html +3 -3
- package/dist/docs/interfaces/WithdrawNonceParams.html +5 -5
- package/dist/docs/interfaces/WsConfig.html +6 -6
- package/dist/docs/media/10_PLUGINS.md +454 -0
- package/dist/docs/media/11_MCP.md +459 -0
- package/dist/docs/media/CHANGELOG.md +176 -0
- package/dist/docs/types/AccountFetchOpts.html +1 -1
- package/dist/docs/types/AccountFilter.html +1 -1
- package/dist/docs/types/Base58.html +1 -1
- package/dist/docs/types/Brand.html +1 -1
- package/dist/docs/types/Commitment.html +1 -1
- package/dist/docs/types/DasSortBy.html +1 -1
- package/dist/docs/types/DasSortDirection.html +1 -1
- package/dist/docs/types/DataSizeFilter.html +1 -1
- package/dist/docs/types/DecodedExtension.html +1 -1
- package/dist/docs/types/Encoding.html +1 -1
- package/dist/docs/types/Epoch.html +1 -1
- package/dist/docs/types/Lamports.html +1 -1
- package/dist/docs/types/LogsFilter.html +1 -1
- package/dist/docs/types/MemcmpFilter.html +1 -1
- package/dist/docs/types/NonceState.html +1 -1
- package/dist/docs/types/ParsedGeyserUpdate.html +1 -1
- package/dist/docs/types/Pubkey.html +1 -1
- package/dist/docs/types/RuntimeEnv.html +1 -1
- package/dist/docs/types/ServiceLifecycle.html +1 -1
- package/dist/docs/types/ServiceProvider.html +1 -1
- package/dist/docs/types/Signature.html +1 -1
- package/dist/docs/types/Slot.html +1 -1
- package/dist/docs/types/StakeAccountType.html +1 -1
- package/dist/docs/types/SubscriptionId.html +1 -1
- package/dist/docs/types/TokenAccountState.html +1 -1
- package/dist/docs/types/TransactionDetail.html +1 -1
- package/dist/docs/types/UnaryMethod.html +1 -1
- package/dist/docs/types/UnixTimestamp.html +1 -1
- package/dist/docs/types/WsNotification.html +1 -1
- package/dist/docs/variables/ASSOCIATED_TOKEN_PROGRAM.html +1 -1
- package/dist/docs/variables/AssociatedToken.html +4 -4
- package/dist/docs/variables/COMPUTE_BUDGET_PROGRAM.html +1 -1
- package/dist/docs/variables/ComputeBudget.html +5 -5
- package/dist/docs/variables/JUPITER_PROGRAMS.html +1 -1
- package/dist/docs/variables/KNOWN_PROGRAMS.html +1 -1
- package/dist/docs/variables/KNOWN_PROGRAMS_COUNT.html +1 -1
- package/dist/docs/variables/LOOKUP_TABLE_HEADER_SIZE.html +1 -1
- package/dist/docs/variables/LOOKUP_TABLE_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/MARINADE_PROGRAMS.html +1 -1
- package/dist/docs/variables/MAX_MULTISIG_SIGNERS.html +1 -1
- package/dist/docs/variables/MEMO_PROGRAM_V1.html +1 -1
- package/dist/docs/variables/MEMO_PROGRAM_V2.html +1 -1
- package/dist/docs/variables/METAPLEX_PROGRAMS.html +1 -1
- package/dist/docs/variables/METEORA_PROGRAMS.html +1 -1
- package/dist/docs/variables/MINT_SIZE.html +1 -1
- package/dist/docs/variables/MULTISIG_SIZE.html +1 -1
- package/dist/docs/variables/Memo.html +2 -2
- package/dist/docs/variables/NONCE_ACCOUNT_SIZE.html +1 -1
- package/dist/docs/variables/ORCA_PROGRAMS.html +1 -1
- package/dist/docs/variables/OTHER_PROGRAMS.html +1 -1
- package/dist/docs/variables/RAYDIUM_PROGRAMS.html +1 -1
- package/dist/docs/variables/SDK_USER_AGENT.html +1 -1
- package/dist/docs/variables/SPL_PROGRAMS.html +1 -1
- package/dist/docs/variables/STAKE_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/SYNAPSE_DEVNET_EU.html +1 -1
- package/dist/docs/variables/SYNAPSE_DEVNET_US.html +1 -1
- package/dist/docs/variables/SYNAPSE_ENDPOINTS.html +1 -1
- package/dist/docs/variables/SYNAPSE_MAINNET_EU.html +1 -1
- package/dist/docs/variables/SYNAPSE_MAINNET_US.html +1 -1
- package/dist/docs/variables/SYSTEM_PROGRAM.html +1 -1
- package/dist/docs/variables/SYSTEM_PROGRAMS.html +1 -1
- package/dist/docs/variables/SYSTEM_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/SplToken.html +16 -16
- package/dist/docs/variables/SystemProgram.html +10 -10
- package/dist/docs/variables/TOKEN_2022_PROGRAM.html +1 -1
- package/dist/docs/variables/TOKEN_2022_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/TOKEN_ACCOUNT_SIZE.html +1 -1
- package/dist/docs/variables/TOKEN_PROGRAM.html +1 -1
- package/dist/docs/variables/TOKEN_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/Tokens.html +1 -1
- package/dist/esm/ai/actions/blinks.d.ts +158 -0
- package/dist/esm/ai/actions/blinks.d.ts.map +1 -0
- package/dist/esm/ai/actions/blinks.js +227 -0
- package/dist/esm/ai/actions/blinks.js.map +1 -0
- package/dist/esm/ai/actions/index.d.ts +51 -0
- package/dist/esm/ai/actions/index.d.ts.map +1 -0
- package/dist/esm/ai/actions/index.js +52 -0
- package/dist/esm/ai/actions/index.js.map +1 -0
- package/dist/esm/ai/actions/server.d.ts +188 -0
- package/dist/esm/ai/actions/server.d.ts.map +1 -0
- package/dist/esm/ai/actions/server.js +399 -0
- package/dist/esm/ai/actions/server.js.map +1 -0
- package/dist/esm/ai/actions/types.d.ts +251 -0
- package/dist/esm/ai/actions/types.d.ts.map +1 -0
- package/dist/esm/ai/actions/types.js +15 -0
- package/dist/esm/ai/actions/types.js.map +1 -0
- package/dist/esm/ai/gateway/index.d.ts +1 -0
- package/dist/esm/ai/gateway/index.d.ts.map +1 -1
- package/dist/esm/ai/gateway/index.js +2 -0
- package/dist/esm/ai/gateway/index.js.map +1 -1
- package/dist/esm/ai/gateway/monetize.d.ts +222 -0
- package/dist/esm/ai/gateway/monetize.d.ts.map +1 -0
- package/dist/esm/ai/gateway/monetize.js +277 -0
- package/dist/esm/ai/gateway/monetize.js.map +1 -0
- package/dist/esm/ai/index.d.ts +7 -2
- package/dist/esm/ai/index.d.ts.map +1 -1
- package/dist/esm/ai/index.js +41 -1
- package/dist/esm/ai/index.js.map +1 -1
- package/dist/esm/ai/intents/executor.d.ts +102 -0
- package/dist/esm/ai/intents/executor.d.ts.map +1 -0
- package/dist/esm/ai/intents/executor.js +331 -0
- package/dist/esm/ai/intents/executor.js.map +1 -0
- package/dist/esm/ai/intents/index.d.ts +52 -0
- package/dist/esm/ai/intents/index.d.ts.map +1 -0
- package/dist/esm/ai/intents/index.js +50 -0
- package/dist/esm/ai/intents/index.js.map +1 -0
- package/dist/esm/ai/intents/parser.d.ts +106 -0
- package/dist/esm/ai/intents/parser.d.ts.map +1 -0
- package/dist/esm/ai/intents/parser.js +185 -0
- package/dist/esm/ai/intents/parser.js.map +1 -0
- package/dist/esm/ai/intents/planner.d.ts +96 -0
- package/dist/esm/ai/intents/planner.d.ts.map +1 -0
- package/dist/esm/ai/intents/planner.js +266 -0
- package/dist/esm/ai/intents/planner.js.map +1 -0
- package/dist/esm/ai/intents/types.d.ts +281 -0
- package/dist/esm/ai/intents/types.d.ts.map +1 -0
- package/dist/esm/ai/intents/types.js +63 -0
- package/dist/esm/ai/intents/types.js.map +1 -0
- package/dist/esm/ai/mcp/client.d.ts +71 -0
- package/dist/esm/ai/mcp/client.d.ts.map +1 -0
- package/dist/esm/ai/mcp/client.js +638 -0
- package/dist/esm/ai/mcp/client.js.map +1 -0
- package/dist/esm/ai/mcp/index.d.ts +16 -0
- package/dist/esm/ai/mcp/index.d.ts.map +1 -0
- package/dist/esm/ai/mcp/index.js +19 -0
- package/dist/esm/ai/mcp/index.js.map +1 -0
- package/dist/esm/ai/mcp/server.d.ts +115 -0
- package/dist/esm/ai/mcp/server.d.ts.map +1 -0
- package/dist/esm/ai/mcp/server.js +586 -0
- package/dist/esm/ai/mcp/server.js.map +1 -0
- package/dist/esm/ai/mcp/types.d.ts +215 -0
- package/dist/esm/ai/mcp/types.d.ts.map +1 -0
- package/dist/esm/ai/mcp/types.js +14 -0
- package/dist/esm/ai/mcp/types.js.map +1 -0
- package/dist/esm/ai/plugins/blinks/index.d.ts +22 -0
- package/dist/esm/ai/plugins/blinks/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/blinks/index.js +197 -0
- package/dist/esm/ai/plugins/blinks/index.js.map +1 -0
- package/dist/esm/ai/plugins/blinks/schemas.d.ts +4 -0
- package/dist/esm/ai/plugins/blinks/schemas.d.ts.map +1 -0
- package/dist/esm/ai/plugins/blinks/schemas.js +103 -0
- package/dist/esm/ai/plugins/blinks/schemas.js.map +1 -0
- package/dist/esm/ai/plugins/defi/index.d.ts +44 -0
- package/dist/esm/ai/plugins/defi/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/defi/index.js +476 -0
- package/dist/esm/ai/plugins/defi/index.js.map +1 -0
- package/dist/esm/ai/plugins/defi/schemas.d.ts +13 -0
- package/dist/esm/ai/plugins/defi/schemas.d.ts.map +1 -0
- package/dist/esm/ai/plugins/defi/schemas.js +564 -0
- package/dist/esm/ai/plugins/defi/schemas.js.map +1 -0
- package/dist/esm/ai/plugins/index.d.ts +30 -0
- package/dist/esm/ai/plugins/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/index.js +31 -0
- package/dist/esm/ai/plugins/index.js.map +1 -0
- package/dist/esm/ai/plugins/misc/index.d.ts +28 -0
- package/dist/esm/ai/plugins/misc/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/misc/index.js +435 -0
- package/dist/esm/ai/plugins/misc/index.js.map +1 -0
- package/dist/esm/ai/plugins/misc/schemas.d.ts +9 -0
- package/dist/esm/ai/plugins/misc/schemas.d.ts.map +1 -0
- package/dist/esm/ai/plugins/misc/schemas.js +313 -0
- package/dist/esm/ai/plugins/misc/schemas.js.map +1 -0
- package/dist/esm/ai/plugins/nft/index.d.ts +24 -0
- package/dist/esm/ai/plugins/nft/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/nft/index.js +63 -0
- package/dist/esm/ai/plugins/nft/index.js.map +1 -0
- package/dist/esm/ai/plugins/nft/schemas.d.ts +6 -0
- package/dist/esm/ai/plugins/nft/schemas.d.ts.map +1 -0
- package/dist/esm/ai/plugins/nft/schemas.js +270 -0
- package/dist/esm/ai/plugins/nft/schemas.js.map +1 -0
- package/dist/esm/ai/plugins/registry.d.ts +157 -0
- package/dist/esm/ai/plugins/registry.d.ts.map +1 -0
- package/dist/esm/ai/plugins/registry.js +365 -0
- package/dist/esm/ai/plugins/registry.js.map +1 -0
- package/dist/esm/ai/plugins/token/index.d.ts +35 -0
- package/dist/esm/ai/plugins/token/index.d.ts.map +1 -0
- package/dist/esm/ai/plugins/token/index.js +180 -0
- package/dist/esm/ai/plugins/token/index.js.map +1 -0
- package/dist/esm/ai/plugins/token/schemas.d.ts +5 -0
- package/dist/esm/ai/plugins/token/schemas.d.ts.map +1 -0
- package/dist/esm/ai/plugins/token/schemas.js +265 -0
- package/dist/esm/ai/plugins/token/schemas.js.map +1 -0
- package/dist/esm/ai/plugins/types.d.ts +176 -0
- package/dist/esm/ai/plugins/types.d.ts.map +1 -0
- package/dist/esm/ai/plugins/types.js +2 -0
- package/dist/esm/ai/plugins/types.js.map +1 -0
- package/dist/esm/ai/sap/adapter.d.ts +140 -0
- package/dist/esm/ai/sap/adapter.d.ts.map +1 -0
- package/dist/esm/ai/sap/adapter.js +177 -0
- package/dist/esm/ai/sap/adapter.js.map +1 -0
- package/dist/esm/ai/sap/discovery.d.ts +165 -0
- package/dist/esm/ai/sap/discovery.d.ts.map +1 -0
- package/dist/esm/ai/sap/discovery.js +311 -0
- package/dist/esm/ai/sap/discovery.js.map +1 -0
- package/dist/esm/ai/sap/index.d.ts +61 -0
- package/dist/esm/ai/sap/index.d.ts.map +1 -0
- package/dist/esm/ai/sap/index.js +58 -0
- package/dist/esm/ai/sap/index.js.map +1 -0
- package/dist/esm/ai/sap/pda.d.ts +205 -0
- package/dist/esm/ai/sap/pda.d.ts.map +1 -0
- package/dist/esm/ai/sap/pda.js +535 -0
- package/dist/esm/ai/sap/pda.js.map +1 -0
- package/dist/esm/ai/sap/program.d.ts +153 -0
- package/dist/esm/ai/sap/program.d.ts.map +1 -0
- package/dist/esm/ai/sap/program.js +222 -0
- package/dist/esm/ai/sap/program.js.map +1 -0
- package/dist/esm/ai/sap/registry.d.ts +218 -0
- package/dist/esm/ai/sap/registry.d.ts.map +1 -0
- package/dist/esm/ai/sap/registry.js +515 -0
- package/dist/esm/ai/sap/registry.js.map +1 -0
- package/dist/esm/ai/sap/scoring.d.ts +138 -0
- package/dist/esm/ai/sap/scoring.d.ts.map +1 -0
- package/dist/esm/ai/sap/scoring.js +262 -0
- package/dist/esm/ai/sap/scoring.js.map +1 -0
- package/dist/esm/ai/sap/subnetwork.d.ts +201 -0
- package/dist/esm/ai/sap/subnetwork.d.ts.map +1 -0
- package/dist/esm/ai/sap/subnetwork.js +361 -0
- package/dist/esm/ai/sap/subnetwork.js.map +1 -0
- package/dist/esm/ai/sap/types.d.ts +418 -0
- package/dist/esm/ai/sap/types.d.ts.map +1 -0
- package/dist/esm/ai/sap/types.js +210 -0
- package/dist/esm/ai/sap/types.js.map +1 -0
- package/dist/esm/ai/sap/validator.d.ts +160 -0
- package/dist/esm/ai/sap/validator.d.ts.map +1 -0
- package/dist/esm/ai/sap/validator.js +614 -0
- package/dist/esm/ai/sap/validator.js.map +1 -0
- package/package.json +67 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ai/sap/program
|
|
3
|
+
* @description SAP — Instruction builder for the Solana Agent Protocol program.
|
|
4
|
+
*
|
|
5
|
+
* Creates `TransactionInstruction`-compatible objects for every SAP method:
|
|
6
|
+
* - `register` — create a new agent PDA
|
|
7
|
+
* - `update` — update agent capabilities, pricing, endpoint
|
|
8
|
+
* - `deactivate` — mark agent as inactive
|
|
9
|
+
* - `updateReputation` — post new reputation metrics
|
|
10
|
+
*
|
|
11
|
+
* The user signs and sends the transaction via their wallet/signer.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { SAPInstructionBuilder } from '@oobe-protocol-labs/synapse-client-sdk/ai';
|
|
16
|
+
*
|
|
17
|
+
* const builder = new SAPInstructionBuilder({ programId: 'SAPAgnt1...' });
|
|
18
|
+
* const ix = builder.register({
|
|
19
|
+
* walletPubkey: wallet.publicKey.toBase58(),
|
|
20
|
+
* name: 'DeFi Oracle Agent',
|
|
21
|
+
* description: 'Jupiter + Raydium tools',
|
|
22
|
+
* capabilities: [{ id: 'jupiter:swap' }, { id: 'raydium:pool_info' }],
|
|
23
|
+
* pricing: [{ tierId: 'standard', pricePerCall: 1000n, rateLimit: 10, maxCallsPerSession: 100, tokenType: 'USDC' }],
|
|
24
|
+
* });
|
|
25
|
+
* // ix is a TransactionInstruction — add to a transaction and sign
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @since 1.3.0
|
|
29
|
+
*/
|
|
30
|
+
import type { SAPConfig, SAPInstruction, RegisterAgentParams, UpdateAgentParams, UpdateReputationParams } from './types';
|
|
31
|
+
import { type SAPValidatorConfig, type ValidationReport } from './validator';
|
|
32
|
+
/**
|
|
33
|
+
* @description Error class for SAP instruction building failures.
|
|
34
|
+
* @since 1.3.0
|
|
35
|
+
*/
|
|
36
|
+
export declare class SAPProgramError extends Error {
|
|
37
|
+
readonly code: string;
|
|
38
|
+
constructor(message: string, code: string);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description Builds Solana transaction instructions for the SAP program.
|
|
42
|
+
*
|
|
43
|
+
* Each method returns an {@link SAPInstruction} object that can be added to a
|
|
44
|
+
* `Transaction` and signed with the agent's wallet.
|
|
45
|
+
*
|
|
46
|
+
* @since 1.3.0
|
|
47
|
+
*/
|
|
48
|
+
export declare class SAPInstructionBuilder {
|
|
49
|
+
private readonly programId;
|
|
50
|
+
private readonly validator;
|
|
51
|
+
private lastValidationReport;
|
|
52
|
+
/**
|
|
53
|
+
* @param {Partial<SAPConfig> & { validation?: SAPValidatorConfig }} [config] - Configuration with optional program ID and validation settings
|
|
54
|
+
*/
|
|
55
|
+
constructor(config?: Partial<SAPConfig> & {
|
|
56
|
+
validation?: SAPValidatorConfig;
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @description Get the validation report from the last `register()` or `update()` call.
|
|
60
|
+
* Returns `null` if no call has been made yet.
|
|
61
|
+
* @returns {ValidationReport | null}
|
|
62
|
+
* @since 1.4.0
|
|
63
|
+
*/
|
|
64
|
+
getLastValidationReport(): ValidationReport | null;
|
|
65
|
+
/**
|
|
66
|
+
* @description Get the configured program ID.
|
|
67
|
+
* @returns {string} Program ID (base58)
|
|
68
|
+
*/
|
|
69
|
+
getProgramId(): string;
|
|
70
|
+
/**
|
|
71
|
+
* @description Build a `register` instruction to create a new agent PDA.
|
|
72
|
+
*
|
|
73
|
+
* Account layout:
|
|
74
|
+
* 0. `[signer, writable]` Wallet (payer + authority)
|
|
75
|
+
* 1. `[writable]` Agent PDA
|
|
76
|
+
* 2. `[]` System Program
|
|
77
|
+
*
|
|
78
|
+
* @param {RegisterAgentParams} params - Agent registration data
|
|
79
|
+
* @returns {SAPInstruction} Transaction instruction ready to sign
|
|
80
|
+
* @throws {SAPProgramError} If name or description exceeds size limits
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const ix = builder.register({
|
|
85
|
+
* walletPubkey: 'ABcD...1234',
|
|
86
|
+
* name: 'My Agent',
|
|
87
|
+
* description: 'Provides DeFi tools',
|
|
88
|
+
* capabilities: [{ id: 'jupiter:swap' }],
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @since 1.3.0
|
|
93
|
+
*/
|
|
94
|
+
register(params: RegisterAgentParams): SAPInstruction;
|
|
95
|
+
/**
|
|
96
|
+
* @description Build an `update` instruction to modify an existing agent PDA.
|
|
97
|
+
*
|
|
98
|
+
* Only provided fields are updated; omitted fields remain unchanged on-chain.
|
|
99
|
+
*
|
|
100
|
+
* Account layout:
|
|
101
|
+
* 0. `[signer]` Wallet (authority)
|
|
102
|
+
* 1. `[writable]` Agent PDA
|
|
103
|
+
*
|
|
104
|
+
* @param {UpdateAgentParams} params - Fields to update
|
|
105
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const ix = builder.update({
|
|
110
|
+
* walletPubkey: 'ABcD...1234',
|
|
111
|
+
* capabilities: [
|
|
112
|
+
* { id: 'jupiter:swap' },
|
|
113
|
+
* { id: 'raydium:pool_info' },
|
|
114
|
+
* { id: 'metaplex:mint' },
|
|
115
|
+
* ],
|
|
116
|
+
* x402Endpoint: 'https://myagent.xyz/.well-known/x402',
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @since 1.3.0
|
|
121
|
+
*/
|
|
122
|
+
update(params: UpdateAgentParams): SAPInstruction;
|
|
123
|
+
/**
|
|
124
|
+
* @description Build a `deactivate` instruction to mark an agent as inactive.
|
|
125
|
+
*
|
|
126
|
+
* Account layout:
|
|
127
|
+
* 0. `[signer]` Wallet (authority)
|
|
128
|
+
* 1. `[writable]` Agent PDA
|
|
129
|
+
*
|
|
130
|
+
* @param {string} walletPubkey - Agent's wallet public key (base58)
|
|
131
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
132
|
+
*
|
|
133
|
+
* @since 1.3.0
|
|
134
|
+
*/
|
|
135
|
+
deactivate(walletPubkey: string): SAPInstruction;
|
|
136
|
+
/**
|
|
137
|
+
* @description Build an `updateReputation` instruction.
|
|
138
|
+
*
|
|
139
|
+
* Typically called by the agent itself to self-report metrics, or by a
|
|
140
|
+
* trusted facilitator/oracle with delegated authority.
|
|
141
|
+
*
|
|
142
|
+
* Account layout:
|
|
143
|
+
* 0. `[signer]` Wallet or authorized updater
|
|
144
|
+
* 1. `[writable]` Agent PDA
|
|
145
|
+
*
|
|
146
|
+
* @param {UpdateReputationParams} params - Reputation data to update
|
|
147
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
148
|
+
*
|
|
149
|
+
* @since 1.3.0
|
|
150
|
+
*/
|
|
151
|
+
updateReputation(params: UpdateReputationParams): SAPInstruction;
|
|
152
|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|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ai/sap/program
|
|
3
|
+
* @description SAP — Instruction builder for the Solana Agent Protocol program.
|
|
4
|
+
*
|
|
5
|
+
* Creates `TransactionInstruction`-compatible objects for every SAP method:
|
|
6
|
+
* - `register` — create a new agent PDA
|
|
7
|
+
* - `update` — update agent capabilities, pricing, endpoint
|
|
8
|
+
* - `deactivate` — mark agent as inactive
|
|
9
|
+
* - `updateReputation` — post new reputation metrics
|
|
10
|
+
*
|
|
11
|
+
* The user signs and sends the transaction via their wallet/signer.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { SAPInstructionBuilder } from '@oobe-protocol-labs/synapse-client-sdk/ai';
|
|
16
|
+
*
|
|
17
|
+
* const builder = new SAPInstructionBuilder({ programId: 'SAPAgnt1...' });
|
|
18
|
+
* const ix = builder.register({
|
|
19
|
+
* walletPubkey: wallet.publicKey.toBase58(),
|
|
20
|
+
* name: 'DeFi Oracle Agent',
|
|
21
|
+
* description: 'Jupiter + Raydium tools',
|
|
22
|
+
* capabilities: [{ id: 'jupiter:swap' }, { id: 'raydium:pool_info' }],
|
|
23
|
+
* pricing: [{ tierId: 'standard', pricePerCall: 1000n, rateLimit: 10, maxCallsPerSession: 100, tokenType: 'USDC' }],
|
|
24
|
+
* });
|
|
25
|
+
* // ix is a TransactionInstruction — add to a transaction and sign
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @since 1.3.0
|
|
29
|
+
*/
|
|
30
|
+
import { SAP_DEFAULT_PROGRAM_ID, SAP_INSTRUCTION_DISCRIMINATORS } from './types.js';
|
|
31
|
+
import { deriveAgentPDA, BorshWriter, serializeRegisterData, serializeUpdateData } from './pda.js';
|
|
32
|
+
import { SAPValidator } from './validator.js';
|
|
33
|
+
/**
|
|
34
|
+
* @description Solana system program ID.
|
|
35
|
+
* @since 1.3.0
|
|
36
|
+
*/
|
|
37
|
+
const SYSTEM_PROGRAM_ID = '11111111111111111111111111111111';
|
|
38
|
+
/**
|
|
39
|
+
* @description Error class for SAP instruction building failures.
|
|
40
|
+
* @since 1.3.0
|
|
41
|
+
*/
|
|
42
|
+
export class SAPProgramError extends Error {
|
|
43
|
+
code;
|
|
44
|
+
constructor(message, code) {
|
|
45
|
+
super(message);
|
|
46
|
+
this.code = code;
|
|
47
|
+
this.name = 'SAPProgramError';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @description Builds Solana transaction instructions for the SAP program.
|
|
52
|
+
*
|
|
53
|
+
* Each method returns an {@link SAPInstruction} object that can be added to a
|
|
54
|
+
* `Transaction` and signed with the agent's wallet.
|
|
55
|
+
*
|
|
56
|
+
* @since 1.3.0
|
|
57
|
+
*/
|
|
58
|
+
export class SAPInstructionBuilder {
|
|
59
|
+
programId;
|
|
60
|
+
validator;
|
|
61
|
+
lastValidationReport = null;
|
|
62
|
+
/**
|
|
63
|
+
* @param {Partial<SAPConfig> & { validation?: SAPValidatorConfig }} [config] - Configuration with optional program ID and validation settings
|
|
64
|
+
*/
|
|
65
|
+
constructor(config) {
|
|
66
|
+
this.programId = config?.programId ?? SAP_DEFAULT_PROGRAM_ID;
|
|
67
|
+
this.validator = new SAPValidator(config?.validation);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @description Get the validation report from the last `register()` or `update()` call.
|
|
71
|
+
* Returns `null` if no call has been made yet.
|
|
72
|
+
* @returns {ValidationReport | null}
|
|
73
|
+
* @since 1.4.0
|
|
74
|
+
*/
|
|
75
|
+
getLastValidationReport() {
|
|
76
|
+
return this.lastValidationReport;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description Get the configured program ID.
|
|
80
|
+
* @returns {string} Program ID (base58)
|
|
81
|
+
*/
|
|
82
|
+
getProgramId() {
|
|
83
|
+
return this.programId;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @description Build a `register` instruction to create a new agent PDA.
|
|
87
|
+
*
|
|
88
|
+
* Account layout:
|
|
89
|
+
* 0. `[signer, writable]` Wallet (payer + authority)
|
|
90
|
+
* 1. `[writable]` Agent PDA
|
|
91
|
+
* 2. `[]` System Program
|
|
92
|
+
*
|
|
93
|
+
* @param {RegisterAgentParams} params - Agent registration data
|
|
94
|
+
* @returns {SAPInstruction} Transaction instruction ready to sign
|
|
95
|
+
* @throws {SAPProgramError} If name or description exceeds size limits
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const ix = builder.register({
|
|
100
|
+
* walletPubkey: 'ABcD...1234',
|
|
101
|
+
* name: 'My Agent',
|
|
102
|
+
* description: 'Provides DeFi tools',
|
|
103
|
+
* capabilities: [{ id: 'jupiter:swap' }],
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @since 1.3.0
|
|
108
|
+
*/
|
|
109
|
+
register(params) {
|
|
110
|
+
// Deep validation (replaces basic name/desc checks)
|
|
111
|
+
this.lastValidationReport = this.validator.validateRegistration(params);
|
|
112
|
+
const pda = deriveAgentPDA(params.walletPubkey, this.programId);
|
|
113
|
+
const instructionData = serializeRegisterData(params);
|
|
114
|
+
// Prepend discriminator + bump
|
|
115
|
+
const data = new Uint8Array(SAP_INSTRUCTION_DISCRIMINATORS.register.length + 1 + instructionData.length);
|
|
116
|
+
data.set(SAP_INSTRUCTION_DISCRIMINATORS.register, 0);
|
|
117
|
+
data[8] = pda.bump;
|
|
118
|
+
data.set(instructionData, 9);
|
|
119
|
+
const keys = [
|
|
120
|
+
{ pubkey: params.walletPubkey, isSigner: true, isWritable: true },
|
|
121
|
+
{ pubkey: pda.address, isSigner: false, isWritable: true },
|
|
122
|
+
{ pubkey: SYSTEM_PROGRAM_ID, isSigner: false, isWritable: false },
|
|
123
|
+
];
|
|
124
|
+
return { programId: this.programId, keys, data };
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @description Build an `update` instruction to modify an existing agent PDA.
|
|
128
|
+
*
|
|
129
|
+
* Only provided fields are updated; omitted fields remain unchanged on-chain.
|
|
130
|
+
*
|
|
131
|
+
* Account layout:
|
|
132
|
+
* 0. `[signer]` Wallet (authority)
|
|
133
|
+
* 1. `[writable]` Agent PDA
|
|
134
|
+
*
|
|
135
|
+
* @param {UpdateAgentParams} params - Fields to update
|
|
136
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* const ix = builder.update({
|
|
141
|
+
* walletPubkey: 'ABcD...1234',
|
|
142
|
+
* capabilities: [
|
|
143
|
+
* { id: 'jupiter:swap' },
|
|
144
|
+
* { id: 'raydium:pool_info' },
|
|
145
|
+
* { id: 'metaplex:mint' },
|
|
146
|
+
* ],
|
|
147
|
+
* x402Endpoint: 'https://myagent.xyz/.well-known/x402',
|
|
148
|
+
* });
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @since 1.3.0
|
|
152
|
+
*/
|
|
153
|
+
update(params) {
|
|
154
|
+
// Deep validation
|
|
155
|
+
this.lastValidationReport = this.validator.validateUpdate(params);
|
|
156
|
+
const pda = deriveAgentPDA(params.walletPubkey, this.programId);
|
|
157
|
+
const instructionData = serializeUpdateData(params);
|
|
158
|
+
const data = new Uint8Array(SAP_INSTRUCTION_DISCRIMINATORS.update.length + instructionData.length);
|
|
159
|
+
data.set(SAP_INSTRUCTION_DISCRIMINATORS.update, 0);
|
|
160
|
+
data.set(instructionData, 8);
|
|
161
|
+
const keys = [
|
|
162
|
+
{ pubkey: params.walletPubkey, isSigner: true, isWritable: false },
|
|
163
|
+
{ pubkey: pda.address, isSigner: false, isWritable: true },
|
|
164
|
+
];
|
|
165
|
+
return { programId: this.programId, keys, data };
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @description Build a `deactivate` instruction to mark an agent as inactive.
|
|
169
|
+
*
|
|
170
|
+
* Account layout:
|
|
171
|
+
* 0. `[signer]` Wallet (authority)
|
|
172
|
+
* 1. `[writable]` Agent PDA
|
|
173
|
+
*
|
|
174
|
+
* @param {string} walletPubkey - Agent's wallet public key (base58)
|
|
175
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
176
|
+
*
|
|
177
|
+
* @since 1.3.0
|
|
178
|
+
*/
|
|
179
|
+
deactivate(walletPubkey) {
|
|
180
|
+
const pda = deriveAgentPDA(walletPubkey, this.programId);
|
|
181
|
+
const data = new Uint8Array(SAP_INSTRUCTION_DISCRIMINATORS.deactivate.length);
|
|
182
|
+
data.set(SAP_INSTRUCTION_DISCRIMINATORS.deactivate, 0);
|
|
183
|
+
const keys = [
|
|
184
|
+
{ pubkey: walletPubkey, isSigner: true, isWritable: false },
|
|
185
|
+
{ pubkey: pda.address, isSigner: false, isWritable: true },
|
|
186
|
+
];
|
|
187
|
+
return { programId: this.programId, keys, data };
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @description Build an `updateReputation` instruction.
|
|
191
|
+
*
|
|
192
|
+
* Typically called by the agent itself to self-report metrics, or by a
|
|
193
|
+
* trusted facilitator/oracle with delegated authority.
|
|
194
|
+
*
|
|
195
|
+
* Account layout:
|
|
196
|
+
* 0. `[signer]` Wallet or authorized updater
|
|
197
|
+
* 1. `[writable]` Agent PDA
|
|
198
|
+
*
|
|
199
|
+
* @param {UpdateReputationParams} params - Reputation data to update
|
|
200
|
+
* @returns {SAPInstruction} Transaction instruction
|
|
201
|
+
*
|
|
202
|
+
* @since 1.3.0
|
|
203
|
+
*/
|
|
204
|
+
updateReputation(params) {
|
|
205
|
+
const pda = deriveAgentPDA(params.walletPubkey, this.programId);
|
|
206
|
+
const w = new BorshWriter();
|
|
207
|
+
w.writeOption(params.totalCallsServed, (v) => w.writeU64(v));
|
|
208
|
+
w.writeOption(params.avgLatencyMs, (v) => w.writeU32(v));
|
|
209
|
+
w.writeOption(params.uptimePercent, (v) => w.writeU8(v));
|
|
210
|
+
w.writeOption(params.score, (v) => w.writeU32(v));
|
|
211
|
+
const instructionData = w.toBytes();
|
|
212
|
+
const data = new Uint8Array(SAP_INSTRUCTION_DISCRIMINATORS.updateReputation.length + instructionData.length);
|
|
213
|
+
data.set(SAP_INSTRUCTION_DISCRIMINATORS.updateReputation, 0);
|
|
214
|
+
data.set(instructionData, 8);
|
|
215
|
+
const keys = [
|
|
216
|
+
{ pubkey: params.walletPubkey, isSigner: true, isWritable: false },
|
|
217
|
+
{ pubkey: pda.address, isSigner: false, isWritable: true },
|
|
218
|
+
];
|
|
219
|
+
return { programId: this.programId, keys, data };
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=program.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../../src/ai/sap/program.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAUH,OAAO,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,cAAc,EAAgB,WAAW,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC9G,OAAO,EAAE,YAAY,EAAkD,MAAM,aAAa,CAAC;AAE3F;;;GAGG;AACH,MAAM,iBAAiB,GAAG,kCAAkC,CAAC;AAE7D;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACK;IAA7C,YAAY,OAAe,EAAkB,IAAY;QACvD,KAAK,CAAC,OAAO,CAAC,CAAC;QAD4B,SAAI,GAAJ,IAAI,CAAQ;QAEvD,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,qBAAqB;IACf,SAAS,CAAS;IAClB,SAAS,CAAe;IACjC,oBAAoB,GAA4B,IAAI,CAAC;IAE7D;;OAEG;IACH,YAAY,MAAiE;QAC3E,IAA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AU,CAAC,8BAA8B,CAAC,gBAAgB,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAC7G,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;QAE7B,MAAM,IAAI,GAAqB;YAC7B,EAAE,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;YAClE,EAAE,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE;SAC3D,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACnD,CAAC;CAEF"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ai/sap/registry
|
|
3
|
+
* @description SAP — Canonical capability registry for the agent sub-network.
|
|
4
|
+
*
|
|
5
|
+
* Defines the **standard capability catalog** — every protocol/method pair
|
|
6
|
+
* that SAP-registered agents can advertise. This gives the network a shared
|
|
7
|
+
* vocabulary so discovery queries are reliable and unambiguous.
|
|
8
|
+
*
|
|
9
|
+
* Capabilities follow the `protocol:method` convention (e.g. `jupiter:swap`).
|
|
10
|
+
* Each entry carries metadata: human description, category, expected I/O
|
|
11
|
+
* schema hints, and minimum version.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { SAPCapabilityRegistry } from '@oobe-protocol-labs/synapse-client-sdk/ai/sap';
|
|
16
|
+
*
|
|
17
|
+
* const reg = SAPCapabilityRegistry.default();
|
|
18
|
+
*
|
|
19
|
+
* // List everything Jupiter supports
|
|
20
|
+
* const jupiterCaps = reg.byProtocol('jupiter');
|
|
21
|
+
*
|
|
22
|
+
* // Check if a capability ID is known
|
|
23
|
+
* const valid = reg.has('jupiter:swap'); // true
|
|
24
|
+
* const unknown = reg.has('made_up:blah'); // false
|
|
25
|
+
*
|
|
26
|
+
* // All capabilities in the 'defi' category
|
|
27
|
+
* const defi = reg.byCategory('defi');
|
|
28
|
+
*
|
|
29
|
+
* // Full catalog
|
|
30
|
+
* const all = reg.list();
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @since 1.4.0
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* @description Category of a registered capability.
|
|
37
|
+
* @since 1.4.0
|
|
38
|
+
*/
|
|
39
|
+
export type CapabilityCategory = 'defi' | 'nft' | 'data' | 'ai' | 'governance' | 'payments' | 'identity' | 'infrastructure' | 'oracle' | 'social' | 'custom';
|
|
40
|
+
/**
|
|
41
|
+
* @description Schema hint describing expected input/output for a capability.
|
|
42
|
+
* Not a full JSON-Schema — just enough for agents to negotiate compatibility.
|
|
43
|
+
* @since 1.4.0
|
|
44
|
+
*/
|
|
45
|
+
export interface CapabilityIOSchema {
|
|
46
|
+
/** Short key-type pairs, e.g. `{ inputMint: 'string', amount: 'bigint' }` */
|
|
47
|
+
fields: Record<string, 'string' | 'number' | 'bigint' | 'boolean' | 'bytes' | 'object'>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @description Full metadata for a registered capability.
|
|
51
|
+
* @since 1.4.0
|
|
52
|
+
*/
|
|
53
|
+
export interface CapabilityDefinition {
|
|
54
|
+
/** Canonical ID (`protocol:method`). */
|
|
55
|
+
id: string;
|
|
56
|
+
/** Protocol namespace (e.g. `jupiter`). */
|
|
57
|
+
protocol: string;
|
|
58
|
+
/** Human-readable description. */
|
|
59
|
+
description: string;
|
|
60
|
+
/** Functional category. */
|
|
61
|
+
category: CapabilityCategory;
|
|
62
|
+
/** Minimum version that supports this capability. */
|
|
63
|
+
minVersion?: string;
|
|
64
|
+
/** Expected input schema. */
|
|
65
|
+
input?: CapabilityIOSchema;
|
|
66
|
+
/** Expected output schema. */
|
|
67
|
+
output?: CapabilityIOSchema;
|
|
68
|
+
/** Related capability IDs (often used together). */
|
|
69
|
+
relatedCapabilities?: string[];
|
|
70
|
+
/** Whether this is a critical/core capability. */
|
|
71
|
+
isCritical?: boolean;
|
|
72
|
+
/** Deprecation notice (if any). */
|
|
73
|
+
deprecated?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @description Canonical catalog of capabilities for the SAP agent network.
|
|
77
|
+
*
|
|
78
|
+
* Provides lookup / filtering by ID, protocol, category, and supports
|
|
79
|
+
* custom registrations so third-party protocols can extend the catalog
|
|
80
|
+
* at runtime.
|
|
81
|
+
*
|
|
82
|
+
* @since 1.4.0
|
|
83
|
+
*/
|
|
84
|
+
export declare class SAPCapabilityRegistry {
|
|
85
|
+
private readonly capabilities;
|
|
86
|
+
/**
|
|
87
|
+
* @param {CapabilityDefinition[]} [initial] - Seed capabilities
|
|
88
|
+
*/
|
|
89
|
+
constructor(initial?: CapabilityDefinition[]);
|
|
90
|
+
/**
|
|
91
|
+
* @description Create a registry pre-loaded with all default (known) capabilities.
|
|
92
|
+
* @returns {SAPCapabilityRegistry}
|
|
93
|
+
* @since 1.4.0
|
|
94
|
+
*/
|
|
95
|
+
static default(): SAPCapabilityRegistry;
|
|
96
|
+
/**
|
|
97
|
+
* @description Create an empty registry (for testing or fully custom setups).
|
|
98
|
+
* @returns {SAPCapabilityRegistry}
|
|
99
|
+
* @since 1.4.0
|
|
100
|
+
*/
|
|
101
|
+
static empty(): SAPCapabilityRegistry;
|
|
102
|
+
/**
|
|
103
|
+
* @description Register a new capability (or overwrite an existing one).
|
|
104
|
+
* @param {CapabilityDefinition} def - Capability definition
|
|
105
|
+
* @since 1.4.0
|
|
106
|
+
*/
|
|
107
|
+
register(def: CapabilityDefinition): void;
|
|
108
|
+
/**
|
|
109
|
+
* @description Register multiple capabilities at once.
|
|
110
|
+
* @param {CapabilityDefinition[]} defs - Capability definitions
|
|
111
|
+
* @since 1.4.0
|
|
112
|
+
*/
|
|
113
|
+
registerMany(defs: CapabilityDefinition[]): void;
|
|
114
|
+
/**
|
|
115
|
+
* @description Remove a capability from the registry.
|
|
116
|
+
* @param {string} id - Capability ID
|
|
117
|
+
* @returns {boolean} `true` if the capability was found and removed
|
|
118
|
+
* @since 1.4.0
|
|
119
|
+
*/
|
|
120
|
+
remove(id: string): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* @description Check if a capability ID is registered.
|
|
123
|
+
* @param {string} id - Capability ID (e.g. `"jupiter:swap"`)
|
|
124
|
+
* @returns {boolean}
|
|
125
|
+
* @since 1.4.0
|
|
126
|
+
*/
|
|
127
|
+
has(id: string): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* @description Get a single capability by ID.
|
|
130
|
+
* @param {string} id - Capability ID
|
|
131
|
+
* @returns {CapabilityDefinition | undefined}
|
|
132
|
+
* @since 1.4.0
|
|
133
|
+
*/
|
|
134
|
+
get(id: string): CapabilityDefinition | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* @description List all registered capabilities.
|
|
137
|
+
* @returns {CapabilityDefinition[]}
|
|
138
|
+
* @since 1.4.0
|
|
139
|
+
*/
|
|
140
|
+
list(): CapabilityDefinition[];
|
|
141
|
+
/**
|
|
142
|
+
* @description Get all registered capability IDs.
|
|
143
|
+
* @returns {string[]}
|
|
144
|
+
* @since 1.4.0
|
|
145
|
+
*/
|
|
146
|
+
ids(): string[];
|
|
147
|
+
/**
|
|
148
|
+
* @description Total number of registered capabilities.
|
|
149
|
+
* @returns {number}
|
|
150
|
+
* @since 1.4.0
|
|
151
|
+
*/
|
|
152
|
+
get size(): number;
|
|
153
|
+
/**
|
|
154
|
+
* @description Get all capabilities for a given protocol.
|
|
155
|
+
* @param {string} protocol - Protocol name (e.g. `"jupiter"`)
|
|
156
|
+
* @returns {CapabilityDefinition[]}
|
|
157
|
+
* @since 1.4.0
|
|
158
|
+
*/
|
|
159
|
+
byProtocol(protocol: string): CapabilityDefinition[];
|
|
160
|
+
/**
|
|
161
|
+
* @description Get all capabilities in a given category.
|
|
162
|
+
* @param {CapabilityCategory} category
|
|
163
|
+
* @returns {CapabilityDefinition[]}
|
|
164
|
+
* @since 1.4.0
|
|
165
|
+
*/
|
|
166
|
+
byCategory(category: CapabilityCategory): CapabilityDefinition[];
|
|
167
|
+
/**
|
|
168
|
+
* @description Get all unique protocol names.
|
|
169
|
+
* @returns {string[]}
|
|
170
|
+
* @since 1.4.0
|
|
171
|
+
*/
|
|
172
|
+
protocols(): string[];
|
|
173
|
+
/**
|
|
174
|
+
* @description Get all unique categories in use.
|
|
175
|
+
* @returns {CapabilityCategory[]}
|
|
176
|
+
* @since 1.4.0
|
|
177
|
+
*/
|
|
178
|
+
categories(): CapabilityCategory[];
|
|
179
|
+
/**
|
|
180
|
+
* @description Search capabilities by free-text query (matches id, description, protocol).
|
|
181
|
+
* @param {string} query - Search text (case-insensitive)
|
|
182
|
+
* @returns {CapabilityDefinition[]}
|
|
183
|
+
* @since 1.4.0
|
|
184
|
+
*/
|
|
185
|
+
search(query: string): CapabilityDefinition[];
|
|
186
|
+
/**
|
|
187
|
+
* @description Get all critical (core) capabilities.
|
|
188
|
+
* @returns {CapabilityDefinition[]}
|
|
189
|
+
* @since 1.4.0
|
|
190
|
+
*/
|
|
191
|
+
critical(): CapabilityDefinition[];
|
|
192
|
+
/**
|
|
193
|
+
* @description Get deprecated capabilities.
|
|
194
|
+
* @returns {CapabilityDefinition[]}
|
|
195
|
+
* @since 1.4.0
|
|
196
|
+
*/
|
|
197
|
+
deprecated(): CapabilityDefinition[];
|
|
198
|
+
/**
|
|
199
|
+
* @description Validate a list of capability IDs against the registry.
|
|
200
|
+
* Returns unknown IDs (not registered) — useful during agent registration.
|
|
201
|
+
* @param {string[]} ids - Capability IDs to check
|
|
202
|
+
* @returns {{ known: string[]; unknown: string[]; deprecated: string[] }}
|
|
203
|
+
* @since 1.4.0
|
|
204
|
+
*/
|
|
205
|
+
validate(ids: string[]): {
|
|
206
|
+
known: string[];
|
|
207
|
+
unknown: string[];
|
|
208
|
+
deprecated: string[];
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* @description Get the dependency graph: which capabilities are frequently used together.
|
|
212
|
+
* @param {string} id - Root capability ID
|
|
213
|
+
* @returns {string[]} Related capability IDs (transitive, max 2 levels)
|
|
214
|
+
* @since 1.4.0
|
|
215
|
+
*/
|
|
216
|
+
relatedGraph(id: string): string[];
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/ai/sap/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAMH;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,KAAK,GACL,MAAM,GACN,IAAI,GACJ,YAAY,GACZ,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;AAEb;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;CACzF;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,k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