@oobe-protocol-labs/synapse-client-sdk 1.2.0 → 1.2.2
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 +117 -0
- package/dist/cjs/ai/gateway/index.d.ts +86 -5
- package/dist/cjs/ai/gateway/index.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/index.js +278 -40
- package/dist/cjs/ai/gateway/index.js.map +1 -1
- package/dist/cjs/ai/gateway/registry.d.ts +223 -0
- package/dist/cjs/ai/gateway/registry.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/registry.js +290 -0
- package/dist/cjs/ai/gateway/registry.js.map +1 -0
- package/dist/cjs/ai/gateway/types.d.ts +107 -1
- package/dist/cjs/ai/gateway/types.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/x402/index.d.ts +2 -4
- package/dist/cjs/ai/gateway/x402/index.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/x402/index.js +2 -1
- package/dist/cjs/ai/gateway/x402/index.js.map +1 -1
- package/dist/cjs/ai/gateway/x402/registry.d.ts +131 -1
- package/dist/cjs/ai/gateway/x402/registry.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/x402/registry.js +229 -1
- package/dist/cjs/ai/gateway/x402/registry.js.map +1 -1
- package/dist/cjs/ai/index.d.ts +2 -1
- package/dist/cjs/ai/index.d.ts.map +1 -1
- package/dist/cjs/ai/index.js +21 -2
- package/dist/cjs/ai/index.js.map +1 -1
- package/dist/cjs/ai/persistence/helpers.d.ts +83 -0
- package/dist/cjs/ai/persistence/helpers.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/helpers.js +193 -0
- package/dist/cjs/ai/persistence/helpers.js.map +1 -0
- package/dist/cjs/ai/persistence/index.d.ts +91 -0
- package/dist/cjs/ai/persistence/index.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/index.js +109 -0
- package/dist/cjs/ai/persistence/index.js.map +1 -0
- package/dist/cjs/ai/persistence/memory.d.ts +71 -0
- package/dist/cjs/ai/persistence/memory.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/memory.js +192 -0
- package/dist/cjs/ai/persistence/memory.js.map +1 -0
- package/dist/cjs/ai/persistence/postgresql.d.ts +119 -0
- package/dist/cjs/ai/persistence/postgresql.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/postgresql.js +310 -0
- package/dist/cjs/ai/persistence/postgresql.js.map +1 -0
- package/dist/cjs/ai/persistence/redis.d.ts +84 -0
- package/dist/cjs/ai/persistence/redis.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/redis.js +241 -0
- package/dist/cjs/ai/persistence/redis.js.map +1 -0
- package/dist/cjs/ai/persistence/types.d.ts +267 -0
- package/dist/cjs/ai/persistence/types.d.ts.map +1 -0
- package/dist/cjs/ai/persistence/types.js +40 -0
- package/dist/cjs/ai/persistence/types.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/tools.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js +13 -19
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js.map +1 -1
- package/dist/cjs/core/client.d.ts +16 -0
- package/dist/cjs/core/client.d.ts.map +1 -1
- package/dist/cjs/core/client.js +18 -0
- package/dist/cjs/core/client.js.map +1 -1
- package/dist/cjs/core/transport.d.ts +1 -1
- package/dist/cjs/core/transport.d.ts.map +1 -1
- package/dist/cjs/core/transport.js.map +1 -1
- package/dist/cjs/core/types.d.ts +5 -1
- package/dist/cjs/core/types.d.ts.map +1 -1
- package/dist/cjs/das/methods/get-asset-batch.js +1 -1
- package/dist/cjs/das/methods/get-asset-batch.js.map +1 -1
- package/dist/cjs/das/methods/get-asset-proof-batch.js +1 -1
- package/dist/cjs/das/methods/get-asset-proof-batch.js.map +1 -1
- package/dist/cjs/das/methods/get-asset-proof.js +1 -1
- package/dist/cjs/das/methods/get-asset-proof.js.map +1 -1
- package/dist/cjs/das/methods/get-asset.js +1 -1
- package/dist/cjs/das/methods/get-asset.js.map +1 -1
- package/dist/cjs/das/methods/get-assets-by-authority.js +1 -1
- package/dist/cjs/das/methods/get-assets-by-authority.js.map +1 -1
- package/dist/cjs/das/methods/get-assets-by-creator.js +1 -1
- package/dist/cjs/das/methods/get-assets-by-creator.js.map +1 -1
- package/dist/cjs/das/methods/get-assets-by-group.js +1 -1
- package/dist/cjs/das/methods/get-assets-by-group.js.map +1 -1
- package/dist/cjs/das/methods/get-assets-by-owner.js +1 -1
- package/dist/cjs/das/methods/get-assets-by-owner.js.map +1 -1
- package/dist/cjs/das/methods/get-signatures-for-asset.js +1 -1
- package/dist/cjs/das/methods/get-signatures-for-asset.js.map +1 -1
- package/dist/cjs/das/methods/get-token-accounts.js +1 -1
- package/dist/cjs/das/methods/get-token-accounts.js.map +1 -1
- package/dist/cjs/das/methods/search-assets.js +1 -1
- package/dist/cjs/das/methods/search-assets.js.map +1 -1
- package/dist/cjs/next/index.d.ts +141 -0
- package/dist/cjs/next/index.d.ts.map +1 -0
- package/dist/cjs/next/index.js +177 -0
- package/dist/cjs/next/index.js.map +1 -0
- package/dist/cjs/utils/helpers.d.ts +79 -1
- package/dist/cjs/utils/helpers.d.ts.map +1 -1
- package/dist/cjs/utils/helpers.js +109 -0
- package/dist/cjs/utils/helpers.js.map +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- 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 +5 -5
- 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 +25 -15
- 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 +6 -0
- 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 +15 -0
- 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 +1 -1
- package/dist/docs/functions/fetchMint.html +1 -1
- package/dist/docs/functions/fetchNonceAccount.html +1 -1
- package/dist/docs/functions/fetchStakeAccount.html +1 -1
- package/dist/docs/functions/fetchTokenAccount.html +1 -1
- package/dist/docs/functions/fetchTokenAccountsByOwner.html +1 -1
- package/dist/docs/functions/fromKitAddress.html +1 -1
- package/dist/docs/functions/getAccountInfo.html +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/docs/functions/getClusterNodes.html +1 -1
- package/dist/docs/functions/getContext.html +1 -1
- package/dist/docs/functions/getDecodedAccount.html +1 -1
- package/dist/docs/functions/getDecodedAccounts.html +1 -1
- package/dist/docs/functions/getEnvironment.html +1 -1
- package/dist/docs/functions/getEpochInfo.html +1 -1
- package/dist/docs/functions/getEpochSchedule.html +1 -1
- 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 +1 -1
- package/dist/docs/functions/getInflationRate.html +1 -1
- package/dist/docs/functions/getInflationReward.html +1 -1
- package/dist/docs/functions/getLargestAccounts.html +1 -1
- package/dist/docs/functions/getLatestBlockhash.html +1 -1
- 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/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 +13 -0
- 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/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 +8 -8
- package/dist/docs/interfaces/DecodedMint.html +6 -6
- package/dist/docs/interfaces/DecodedMultisig.html +5 -5
- package/dist/docs/interfaces/DecodedNonceAccount.html +6 -6
- 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 +9 -9
- 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 +4 -2
- 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 +7 -0
- 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/CHANGELOG.md +117 -0
- package/dist/docs/modules.html +4 -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/gateway/index.d.ts +86 -5
- package/dist/esm/ai/gateway/index.d.ts.map +1 -1
- package/dist/esm/ai/gateway/index.js +275 -39
- package/dist/esm/ai/gateway/index.js.map +1 -1
- package/dist/esm/ai/gateway/registry.d.ts +223 -0
- package/dist/esm/ai/gateway/registry.d.ts.map +1 -0
- package/dist/esm/ai/gateway/registry.js +285 -0
- package/dist/esm/ai/gateway/registry.js.map +1 -0
- package/dist/esm/ai/gateway/types.d.ts +107 -1
- package/dist/esm/ai/gateway/types.d.ts.map +1 -1
- package/dist/esm/ai/gateway/x402/index.d.ts +2 -4
- package/dist/esm/ai/gateway/x402/index.d.ts.map +1 -1
- package/dist/esm/ai/gateway/x402/index.js +2 -3
- package/dist/esm/ai/gateway/x402/index.js.map +1 -1
- package/dist/esm/ai/gateway/x402/registry.d.ts +131 -1
- package/dist/esm/ai/gateway/x402/registry.d.ts.map +1 -1
- package/dist/esm/ai/gateway/x402/registry.js +227 -0
- package/dist/esm/ai/gateway/x402/registry.js.map +1 -1
- package/dist/esm/ai/index.d.ts +2 -1
- package/dist/esm/ai/index.d.ts.map +1 -1
- package/dist/esm/ai/index.js +13 -1
- package/dist/esm/ai/index.js.map +1 -1
- package/dist/esm/ai/persistence/helpers.d.ts +83 -0
- package/dist/esm/ai/persistence/helpers.d.ts.map +1 -0
- package/dist/esm/ai/persistence/helpers.js +183 -0
- package/dist/esm/ai/persistence/helpers.js.map +1 -0
- package/dist/esm/ai/persistence/index.d.ts +91 -0
- package/dist/esm/ai/persistence/index.d.ts.map +1 -0
- package/dist/esm/ai/persistence/index.js +94 -0
- package/dist/esm/ai/persistence/index.js.map +1 -0
- package/dist/esm/ai/persistence/memory.d.ts +71 -0
- package/dist/esm/ai/persistence/memory.d.ts.map +1 -0
- package/dist/esm/ai/persistence/memory.js +188 -0
- package/dist/esm/ai/persistence/memory.js.map +1 -0
- package/dist/esm/ai/persistence/postgresql.d.ts +119 -0
- package/dist/esm/ai/persistence/postgresql.d.ts.map +1 -0
- package/dist/esm/ai/persistence/postgresql.js +306 -0
- package/dist/esm/ai/persistence/postgresql.js.map +1 -0
- package/dist/esm/ai/persistence/redis.d.ts +84 -0
- package/dist/esm/ai/persistence/redis.d.ts.map +1 -0
- package/dist/esm/ai/persistence/redis.js +237 -0
- package/dist/esm/ai/persistence/redis.js.map +1 -0
- package/dist/esm/ai/persistence/types.d.ts +267 -0
- package/dist/esm/ai/persistence/types.d.ts.map +1 -0
- package/dist/esm/ai/persistence/types.js +36 -0
- package/dist/esm/ai/persistence/types.js.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/tools.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/metaplex/tools.js +13 -19
- package/dist/esm/ai/tools/protocols/metaplex/tools.js.map +1 -1
- package/dist/esm/core/client.d.ts +16 -0
- package/dist/esm/core/client.d.ts.map +1 -1
- package/dist/esm/core/client.js +18 -0
- package/dist/esm/core/client.js.map +1 -1
- package/dist/esm/core/transport.d.ts +1 -1
- package/dist/esm/core/transport.d.ts.map +1 -1
- package/dist/esm/core/transport.js.map +1 -1
- package/dist/esm/core/types.d.ts +5 -1
- package/dist/esm/core/types.d.ts.map +1 -1
- package/dist/esm/das/methods/get-asset-batch.js +1 -1
- package/dist/esm/das/methods/get-asset-batch.js.map +1 -1
- package/dist/esm/das/methods/get-asset-proof-batch.js +1 -1
- package/dist/esm/das/methods/get-asset-proof-batch.js.map +1 -1
- package/dist/esm/das/methods/get-asset-proof.js +1 -1
- package/dist/esm/das/methods/get-asset-proof.js.map +1 -1
- package/dist/esm/das/methods/get-asset.js +1 -1
- package/dist/esm/das/methods/get-asset.js.map +1 -1
- package/dist/esm/das/methods/get-assets-by-authority.js +1 -1
- package/dist/esm/das/methods/get-assets-by-authority.js.map +1 -1
- package/dist/esm/das/methods/get-assets-by-creator.js +1 -1
- package/dist/esm/das/methods/get-assets-by-creator.js.map +1 -1
- package/dist/esm/das/methods/get-assets-by-group.js +1 -1
- package/dist/esm/das/methods/get-assets-by-group.js.map +1 -1
- package/dist/esm/das/methods/get-assets-by-owner.js +1 -1
- package/dist/esm/das/methods/get-assets-by-owner.js.map +1 -1
- package/dist/esm/das/methods/get-signatures-for-asset.js +1 -1
- package/dist/esm/das/methods/get-signatures-for-asset.js.map +1 -1
- package/dist/esm/das/methods/get-token-accounts.js +1 -1
- package/dist/esm/das/methods/get-token-accounts.js.map +1 -1
- package/dist/esm/das/methods/search-assets.js +1 -1
- package/dist/esm/das/methods/search-assets.js.map +1 -1
- package/dist/esm/next/index.d.ts +141 -0
- package/dist/esm/next/index.d.ts.map +1 -0
- package/dist/esm/next/index.js +171 -0
- package/dist/esm/next/index.js.map +1 -0
- package/dist/esm/utils/helpers.d.ts +79 -1
- package/dist/esm/utils/helpers.d.ts.map +1 -1
- package/dist/esm/utils/helpers.js +106 -0
- package/dist/esm/utils/helpers.js.map +1 -1
- package/package.json +20 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module next
|
|
4
|
+
* @description Synapse Client SDK — Next.js integration helpers.
|
|
5
|
+
*
|
|
6
|
+
* Drop-in utilities for using the Synapse SDK in Next.js 13+ (App Router)
|
|
7
|
+
* with zero boilerplate for the most common patterns:
|
|
8
|
+
*
|
|
9
|
+
* - **`synapseResponse()`** — wraps `NextResponse.json()` with BigInt serialization
|
|
10
|
+
* - **`withSynapseError()`** — API Route error boundary / handler wrapper
|
|
11
|
+
* - **`createSynapseProvider()`** — HMR-safe SynapseClient singleton factory
|
|
12
|
+
* - **`createGatewayProvider()`** — HMR-safe AgentGateway singleton factory
|
|
13
|
+
*
|
|
14
|
+
* All exports are framework-independent at the type level: they work with
|
|
15
|
+
* any object that has `json()` and `status` — so they can be tested outside
|
|
16
|
+
* of a Next.js environment.
|
|
17
|
+
*
|
|
18
|
+
* @example API Route (App Router)
|
|
19
|
+
* ```ts
|
|
20
|
+
* // app/api/balance/route.ts
|
|
21
|
+
* import { synapseResponse, withSynapseError, createSynapseProvider } from '@oobe-protocol-labs/synapse-client-sdk/next';
|
|
22
|
+
* import { Pubkey } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
23
|
+
*
|
|
24
|
+
* const getClient = createSynapseProvider({ endpoint: process.env.SYNAPSE_RPC! });
|
|
25
|
+
*
|
|
26
|
+
* export const GET = withSynapseError(async (req) => {
|
|
27
|
+
* const address = new URL(req.url).searchParams.get('address')!;
|
|
28
|
+
* const balance = await getClient().rpc.getBalance(Pubkey(address));
|
|
29
|
+
* return synapseResponse({ balance });
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @since 1.2.2
|
|
34
|
+
*/
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.synapseResponse = synapseResponse;
|
|
37
|
+
exports.withSynapseError = withSynapseError;
|
|
38
|
+
exports.createSynapseProvider = createSynapseProvider;
|
|
39
|
+
exports.createGatewayProvider = createGatewayProvider;
|
|
40
|
+
const helpers_1 = require("../utils/helpers");
|
|
41
|
+
const helpers_2 = require("../utils/helpers");
|
|
42
|
+
const client_1 = require("../core/client");
|
|
43
|
+
/**
|
|
44
|
+
* @description Create a JSON `Response` with automatic BigInt serialization.
|
|
45
|
+
*
|
|
46
|
+
* Works with Next.js App Router, edge functions, or any Web-standard
|
|
47
|
+
* `Response` environment.
|
|
48
|
+
*
|
|
49
|
+
* @param data - Any value (may contain `BigInt`).
|
|
50
|
+
* @param init - Optional status code and headers.
|
|
51
|
+
* @returns A `Response` with `Content-Type: application/json`.
|
|
52
|
+
* @since 1.2.2
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* return synapseResponse({ budget: 100_000n, status: 'ok' });
|
|
57
|
+
* // → Response { body: '{"budget":"100000","status":"ok"}', status: 200 }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function synapseResponse(data, init = {}) {
|
|
61
|
+
const safe = (0, helpers_1.toJsonSafe)(data);
|
|
62
|
+
const body = JSON.stringify(safe);
|
|
63
|
+
return new Response(body, {
|
|
64
|
+
status: init.status ?? 200,
|
|
65
|
+
headers: {
|
|
66
|
+
'Content-Type': 'application/json',
|
|
67
|
+
...init.headers,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
72
|
+
* withSynapseError — API Route error boundary
|
|
73
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
74
|
+
/**
|
|
75
|
+
* @description Wrap a Next.js API Route handler with error handling.
|
|
76
|
+
*
|
|
77
|
+
* Catches thrown errors and returns a structured JSON error response
|
|
78
|
+
* with the appropriate status code. SDK errors include the error code.
|
|
79
|
+
*
|
|
80
|
+
* @param handler - Async handler function `(req) => Response`
|
|
81
|
+
* @returns Wrapped handler with the same signature
|
|
82
|
+
* @since 1.2.2
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* export const GET = withSynapseError(async (req) => {
|
|
87
|
+
* // If this throws, caller gets { error: '...', code: '...' } with 500
|
|
88
|
+
* const data = await client.rpc.getBalance(Pubkey('...'));
|
|
89
|
+
* return synapseResponse({ data });
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
function withSynapseError(handler) {
|
|
94
|
+
return async (req, ...args) => {
|
|
95
|
+
try {
|
|
96
|
+
return await handler(req, ...args);
|
|
97
|
+
}
|
|
98
|
+
catch (err) {
|
|
99
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
100
|
+
const code = err.code ?? 'INTERNAL_ERROR';
|
|
101
|
+
const status = err.status ?? 500;
|
|
102
|
+
return synapseResponse({ error: message, code, timestamp: Date.now() }, { status });
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
107
|
+
* createSynapseProvider — HMR-safe client singleton
|
|
108
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
109
|
+
/**
|
|
110
|
+
* @description Create an HMR-safe SynapseClient singleton for Next.js.
|
|
111
|
+
*
|
|
112
|
+
* Uses {@link createSingleton} under the hood to store the instance
|
|
113
|
+
* on `globalThis`, surviving hot-module reloads in development.
|
|
114
|
+
*
|
|
115
|
+
* @param config - SynapseClient configuration
|
|
116
|
+
* @param opts - Optional singleton options (version for cache busting)
|
|
117
|
+
* @returns A zero-arg getter that returns the singleton client
|
|
118
|
+
* @since 1.2.2
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* // lib/synapse.ts
|
|
123
|
+
* import { createSynapseProvider } from '@oobe-protocol-labs/synapse-client-sdk/next';
|
|
124
|
+
*
|
|
125
|
+
* export const getSynapseClient = createSynapseProvider({
|
|
126
|
+
* endpoint: process.env.SYNAPSE_RPC!,
|
|
127
|
+
* apiKey: process.env.SYNAPSE_API_KEY,
|
|
128
|
+
* });
|
|
129
|
+
*
|
|
130
|
+
* // Then in any route/server component:
|
|
131
|
+
* const client = getSynapseClient();
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
function createSynapseProvider(config, opts) {
|
|
135
|
+
return (0, helpers_2.createSingleton)('__synapse_client__', () => new client_1.SynapseClient(config), opts);
|
|
136
|
+
}
|
|
137
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
138
|
+
* createGatewayProvider — HMR-safe gateway singleton
|
|
139
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
140
|
+
/**
|
|
141
|
+
* @description Create an HMR-safe AgentGateway singleton for Next.js.
|
|
142
|
+
*
|
|
143
|
+
* Lazily imports `AgentGateway` to avoid pulling the full AI module
|
|
144
|
+
* into routes that don't need it.
|
|
145
|
+
*
|
|
146
|
+
* @param clientProvider - A getter that returns the SynapseClient (from {@link createSynapseProvider})
|
|
147
|
+
* @param configFactory - Function returning the GatewayConfig (evaluated once)
|
|
148
|
+
* @param opts - Optional singleton options
|
|
149
|
+
* @returns A zero-arg getter that returns the singleton gateway
|
|
150
|
+
* @since 1.2.2
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```ts
|
|
154
|
+
* import { createSynapseProvider, createGatewayProvider } from '@oobe-protocol-labs/synapse-client-sdk/next';
|
|
155
|
+
* import { AgentId, DEFAULT_TIERS } from '@oobe-protocol-labs/synapse-client-sdk/ai';
|
|
156
|
+
*
|
|
157
|
+
* const getClient = createSynapseProvider({ endpoint: process.env.SYNAPSE_RPC! });
|
|
158
|
+
*
|
|
159
|
+
* export const getGateway = createGatewayProvider(getClient, () => ({
|
|
160
|
+
* identity: {
|
|
161
|
+
* id: AgentId('did:synapse:agent:my-agent'),
|
|
162
|
+
* name: 'My Agent',
|
|
163
|
+
* walletPubkey: process.env.AGENT_WALLET!,
|
|
164
|
+
* createdAt: Date.now(),
|
|
165
|
+
* },
|
|
166
|
+
* defaultTiers: DEFAULT_TIERS,
|
|
167
|
+
* }));
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
function createGatewayProvider(clientProvider, configFactory, opts) {
|
|
171
|
+
return (0, helpers_2.createSingleton)('__synapse_gateway__', () => {
|
|
172
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
173
|
+
const { AgentGateway } = require('../ai/gateway/index');
|
|
174
|
+
return new AgentGateway(clientProvider(), configFactory());
|
|
175
|
+
}, opts);
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/next/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;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;AACJ,CAAC;AAED;;qEAEqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,qBAAqB,CACnC,MAA2B,EAC3B,IAAuB;IAEvB,OAAO,IAAA,yBAAe,EACpB,oBAAoB,EACpB,GAAG,EAAE,CAAC,IAAI,sBAAa,CAAC,MAAM,CAAC,EAC/B,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;qEAEqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,qBAAqB,CACnC,cAAmC,EACnC,aAAgE,EAChE,IAAuB;IAEvB,OAAO,IAAA,yBAAe,EACpB,qBAAqB,EACrB,GAAG,EAAE;QACH,iEAAiE;QACjE,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAyC,CAAC;QAChG,OAAO,IAAI,YAAY,CAAC,cAAc,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;IAC7D,CAAC,EACD,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SDK utility helpers — minimal, zero-dependency.
|
|
3
3
|
*
|
|
4
4
|
* Pure functions for common Solana value conversions, validation,
|
|
5
|
-
*
|
|
5
|
+
* async control flow, BigInt serialization, and HMR-safe singletons.
|
|
6
6
|
*
|
|
7
7
|
* @module utils/helpers
|
|
8
8
|
* @since 1.0.0
|
|
@@ -94,4 +94,82 @@ export declare function chunk<T>(arr: readonly T[], size: number): T[][];
|
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
96
|
export declare function retry<T>(fn: () => Promise<T>, maxAttempts?: number, baseDelayMs?: number): Promise<T>;
|
|
97
|
+
/**
|
|
98
|
+
* Recursively convert `BigInt` values to `string` so the result is
|
|
99
|
+
* safe for `JSON.stringify()`.
|
|
100
|
+
*
|
|
101
|
+
* Useful in Next.js API Routes, Express handlers, or anywhere you
|
|
102
|
+
* need to serialize gateway / x402 objects that contain `BigInt`
|
|
103
|
+
* fields like `pricePerCall`, `maxBudget`, or `amountCharged`.
|
|
104
|
+
*
|
|
105
|
+
* @param obj - Any value (object, array, primitive, BigInt).
|
|
106
|
+
* @returns A deep clone with every `BigInt` replaced by its string
|
|
107
|
+
* representation.
|
|
108
|
+
* @since 1.2.2
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* import { toJsonSafe } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
113
|
+
*
|
|
114
|
+
* return NextResponse.json(toJsonSafe({ budget: 100_000n, data }));
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export declare function toJsonSafe(obj: unknown): unknown;
|
|
118
|
+
/**
|
|
119
|
+
* `JSON.stringify` replacer that converts `BigInt` → `string`.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```ts
|
|
123
|
+
* import { bigIntReplacer } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
124
|
+
*
|
|
125
|
+
* const json = JSON.stringify(data, bigIntReplacer);
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* @since 1.2.2
|
|
129
|
+
*/
|
|
130
|
+
export declare function bigIntReplacer(_key: string, value: unknown): unknown;
|
|
131
|
+
/**
|
|
132
|
+
* Options for {@link createSingleton}.
|
|
133
|
+
* @since 1.2.2
|
|
134
|
+
*/
|
|
135
|
+
export interface SingletonOptions {
|
|
136
|
+
/**
|
|
137
|
+
* Bump this number to invalidate a cached instance (e.g. after
|
|
138
|
+
* changing the factory config). The old instance is replaced on
|
|
139
|
+
* the next call.
|
|
140
|
+
*/
|
|
141
|
+
version?: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Create an HMR-safe singleton accessor.
|
|
145
|
+
*
|
|
146
|
+
* In Next.js (and other HMR-enabled environments) module scope is
|
|
147
|
+
* re-evaluated on every hot reload, destroying any `let` / `const`
|
|
148
|
+
* singleton. This helper stores the instance on `globalThis` so it
|
|
149
|
+
* survives reloads.
|
|
150
|
+
*
|
|
151
|
+
* @typeParam T - Type of the singleton instance.
|
|
152
|
+
* @param key - Unique global key (e.g. `'synapseClient'`).
|
|
153
|
+
* @param factory - Function that creates the instance.
|
|
154
|
+
* @param options - Optional version for cache invalidation.
|
|
155
|
+
* @returns A zero-arg getter that returns the singleton.
|
|
156
|
+
* @since 1.2.2
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* import { createSingleton } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
161
|
+
* import { SynapseClient } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
162
|
+
*
|
|
163
|
+
* export const getSynapseClient = createSingleton('synapseClient', () =>
|
|
164
|
+
* SynapseClient.fromEndpoint({ network: 'mainnet', region: 'US', apiKey: process.env.SYNAPSE_API_KEY! }),
|
|
165
|
+
* );
|
|
166
|
+
*
|
|
167
|
+
* // With version invalidation — bump to recreate:
|
|
168
|
+
* export const getGateway = createSingleton('agentGateway', () =>
|
|
169
|
+
* createAgentGateway(getSynapseClient(), config),
|
|
170
|
+
* { version: 4 },
|
|
171
|
+
* );
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export declare function createSingleton<T>(key: string, factory: () => T, options?: SingletonOptions): () => T;
|
|
97
175
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGtD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,QAAQ,GAAG,MAAM,KAAG,MACpC,CAAC;AAEzB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,QACT,CAAC;AAEpC;;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;;;GAeG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAC3B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,WAAW,SAAI,EACf,WAAW,SAAM,GAChB,OAAO,CAAC,CAAC,CAAC,CAWZ;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAiBhD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAEpE;AAMD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,CAAC,EAChB,OAAO,CAAC,EAAE,gBAAgB,GACzB,MAAM,CAAC,CAaT"}
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sleep = exports.isValidSignature = exports.isValidPubkey = exports.solToLamports = exports.lamportsToSol = void 0;
|
|
4
4
|
exports.chunk = chunk;
|
|
5
5
|
exports.retry = retry;
|
|
6
|
+
exports.toJsonSafe = toJsonSafe;
|
|
7
|
+
exports.bigIntReplacer = bigIntReplacer;
|
|
8
|
+
exports.createSingleton = createSingleton;
|
|
6
9
|
const types_1 = require("../core/types");
|
|
7
10
|
/**
|
|
8
11
|
* Convert lamports to SOL (9 decimal places).
|
|
@@ -114,4 +117,110 @@ async function retry(fn, maxAttempts = 3, baseDelayMs = 500) {
|
|
|
114
117
|
}
|
|
115
118
|
throw lastErr;
|
|
116
119
|
}
|
|
120
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
121
|
+
* BigInt-safe JSON serialization
|
|
122
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
123
|
+
/**
|
|
124
|
+
* Recursively convert `BigInt` values to `string` so the result is
|
|
125
|
+
* safe for `JSON.stringify()`.
|
|
126
|
+
*
|
|
127
|
+
* Useful in Next.js API Routes, Express handlers, or anywhere you
|
|
128
|
+
* need to serialize gateway / x402 objects that contain `BigInt`
|
|
129
|
+
* fields like `pricePerCall`, `maxBudget`, or `amountCharged`.
|
|
130
|
+
*
|
|
131
|
+
* @param obj - Any value (object, array, primitive, BigInt).
|
|
132
|
+
* @returns A deep clone with every `BigInt` replaced by its string
|
|
133
|
+
* representation.
|
|
134
|
+
* @since 1.2.2
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* import { toJsonSafe } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
139
|
+
*
|
|
140
|
+
* return NextResponse.json(toJsonSafe({ budget: 100_000n, data }));
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
function toJsonSafe(obj) {
|
|
144
|
+
if (typeof obj === 'bigint')
|
|
145
|
+
return obj.toString();
|
|
146
|
+
if (obj === null || obj === undefined)
|
|
147
|
+
return obj;
|
|
148
|
+
if (Array.isArray(obj))
|
|
149
|
+
return obj.map(toJsonSafe);
|
|
150
|
+
if (obj instanceof Map) {
|
|
151
|
+
const out = {};
|
|
152
|
+
for (const [k, v] of obj)
|
|
153
|
+
out[String(k)] = toJsonSafe(v);
|
|
154
|
+
return out;
|
|
155
|
+
}
|
|
156
|
+
if (typeof obj === 'object') {
|
|
157
|
+
const out = {};
|
|
158
|
+
for (const [k, v] of Object.entries(obj)) {
|
|
159
|
+
out[k] = toJsonSafe(v);
|
|
160
|
+
}
|
|
161
|
+
return out;
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* `JSON.stringify` replacer that converts `BigInt` → `string`.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```ts
|
|
170
|
+
* import { bigIntReplacer } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
171
|
+
*
|
|
172
|
+
* const json = JSON.stringify(data, bigIntReplacer);
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* @since 1.2.2
|
|
176
|
+
*/
|
|
177
|
+
function bigIntReplacer(_key, value) {
|
|
178
|
+
return typeof value === 'bigint' ? value.toString() : value;
|
|
179
|
+
}
|
|
180
|
+
// Shared registry on globalThis — survives HMR reloads.
|
|
181
|
+
const _singletonRegistry = globalThis.__synapse_singletons ??= {};
|
|
182
|
+
/**
|
|
183
|
+
* Create an HMR-safe singleton accessor.
|
|
184
|
+
*
|
|
185
|
+
* In Next.js (and other HMR-enabled environments) module scope is
|
|
186
|
+
* re-evaluated on every hot reload, destroying any `let` / `const`
|
|
187
|
+
* singleton. This helper stores the instance on `globalThis` so it
|
|
188
|
+
* survives reloads.
|
|
189
|
+
*
|
|
190
|
+
* @typeParam T - Type of the singleton instance.
|
|
191
|
+
* @param key - Unique global key (e.g. `'synapseClient'`).
|
|
192
|
+
* @param factory - Function that creates the instance.
|
|
193
|
+
* @param options - Optional version for cache invalidation.
|
|
194
|
+
* @returns A zero-arg getter that returns the singleton.
|
|
195
|
+
* @since 1.2.2
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* ```ts
|
|
199
|
+
* import { createSingleton } from '@oobe-protocol-labs/synapse-client-sdk/utils';
|
|
200
|
+
* import { SynapseClient } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
201
|
+
*
|
|
202
|
+
* export const getSynapseClient = createSingleton('synapseClient', () =>
|
|
203
|
+
* SynapseClient.fromEndpoint({ network: 'mainnet', region: 'US', apiKey: process.env.SYNAPSE_API_KEY! }),
|
|
204
|
+
* );
|
|
205
|
+
*
|
|
206
|
+
* // With version invalidation — bump to recreate:
|
|
207
|
+
* export const getGateway = createSingleton('agentGateway', () =>
|
|
208
|
+
* createAgentGateway(getSynapseClient(), config),
|
|
209
|
+
* { version: 4 },
|
|
210
|
+
* );
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
function createSingleton(key, factory, options) {
|
|
214
|
+
const versionKey = `${key}__v`;
|
|
215
|
+
return () => {
|
|
216
|
+
const versionMismatch = options?.version != null && _singletonRegistry[versionKey] !== options.version;
|
|
217
|
+
if (!_singletonRegistry[key] || versionMismatch) {
|
|
218
|
+
_singletonRegistry[key] = factory();
|
|
219
|
+
if (options?.version != null) {
|
|
220
|
+
_singletonRegistry[versionKey] = options.version;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return _singletonRegistry[key];
|
|
224
|
+
};
|
|
225
|
+
}
|
|
117
226
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":";;;AA0FA,sBAMC;AAkBD,sBAeC;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":";;;AA0FA,sBAMC;AAkBD,sBAeC;AA0BD,gCAiBC;AAcD,wCAEC;AAsDD,0CAiBC;AAzPD,yCAA2E;AAE3E;;;;;;;;;;;GAWG;AACI,MAAM,aAAa,GAAG,CAAC,QAA2B,EAAU,EAAE,CACnE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AADZ,QAAA,aAAa,iBACD;AAEzB;;;;;;;;;;;GAWG;AACI,MAAM,aAAa,GAAG,CAAC,GAAW,EAAY,EAAE,CACrD,IAAA,gBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AADvB,QAAA,aA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,CAAC,CAAC,CAAC,KAAK,CAAC;AAC9D,CAAC;AAmBD,wDAAwD;AACxD,MAAM,kBAAkB,GACpB,UAAsC,CAAC,oBAAgD,KAAK,EAAE,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,eAAe,CAC7B,GAAW,EACX,OAAgB,EAChB,OAA0B;IAE1B,MAAM,UAAU,GAAG,GAAG,GAAG,KAAK,CAAC;IAC/B,OAAO,GAAG,EAAE;QACV,MAAM,eAAe,GACnB,OAAO,EAAE,OAAO,IAAI,IAAI,IAAI,kBAAkB,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC;QACjF,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,eAAe,EAAE,CAAC;YAChD,kBAAkB,CAAC,GAAG,CAAC,GAAG,OAAO,EAAE,CAAC;YACpC,IAAI,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,CAAC;gBAC7B,kBAAkB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;YACnD,CAAC;QACH,CAAC;QACD,OAAO,kBAAkB,CAAC,GAAG,CAAM,CAAC;IACtC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.navigationData = "data:application/octet-stream;base64,
|
|
1
|
+
window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WdW3PjOHbHv4vzupPd6e3p7M6bbMtubduySpKnd5NKudAkLKNMEQwIuVuTyndP8Sbici6Q5Hnl+eN3QBAEQOAQ+K//vbDyh7349SKXz2JX2Is/XVTCvlz8erHV+a6Q9b+/2G3xb6P1VZX5xa8ff/77x7/+5eP//emQfpJlelfapS7kyJDlblv/2TG1tAPlb3+6yApR1xe/Xtg6/0nVP8kfVppSFBcOebUvRVXLubTftXkN4b414MeUpdwoXSKQzogz1vpVltMfVpa10uV6X0W3Gitw2lAsUuTSjKC2RORYaq3Zp/z8AeDUV4WSp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