@ghostspeak/sdk 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/GhostSpeakClient-CyeZ6Tyb.d.ts +2061 -0
- package/dist/client.d.ts +4 -3
- package/dist/crypto.d.ts +2 -2
- package/dist/{feature-flags-CEaxXgQQ.d.ts → feature-flags-3POmoO_Z.d.ts} +833 -1190
- package/dist/index.d.ts +206 -4543
- package/dist/ipfs-types-KJcvy9Qk.d.ts +553 -0
- package/dist/minimal/core-minimal.d.ts +2037 -82
- package/dist/utils.d.ts +4 -4
- package/package.json +5 -29
- package/dist/EscrowInstructions-4P3H6ETO.js +0 -2
- package/dist/EscrowInstructions-4P3H6ETO.js.map +0 -1
- package/dist/GhostSpeakClient-4SROinEf.d.ts +0 -503
- package/dist/accounts-IUZMPYVE.js +0 -2
- package/dist/accounts-IUZMPYVE.js.map +0 -1
- package/dist/agent-GZ2OES75.js +0 -2
- package/dist/agent-GZ2OES75.js.map +0 -1
- package/dist/auctionMarketplace-W4YM7HKU.js +0 -2
- package/dist/auctionMarketplace-W4YM7HKU.js.map +0 -1
- package/dist/chunk-2KOOI5BX.js +0 -2
- package/dist/chunk-2KOOI5BX.js.map +0 -1
- package/dist/chunk-32GWTXRJ.js +0 -3
- package/dist/chunk-32GWTXRJ.js.map +0 -1
- package/dist/chunk-B4WUFVLE.js +0 -2
- package/dist/chunk-B4WUFVLE.js.map +0 -1
- package/dist/chunk-C2OTQ5YS.js +0 -2
- package/dist/chunk-C2OTQ5YS.js.map +0 -1
- package/dist/chunk-CTC4ZJ26.js +0 -5
- package/dist/chunk-CTC4ZJ26.js.map +0 -1
- package/dist/chunk-DF7LLAMH.js +0 -2
- package/dist/chunk-DF7LLAMH.js.map +0 -1
- package/dist/chunk-DJ356OUX.js +0 -2
- package/dist/chunk-DJ356OUX.js.map +0 -1
- package/dist/chunk-DK5YDBXR.js +0 -2
- package/dist/chunk-DK5YDBXR.js.map +0 -1
- package/dist/chunk-DOTF5ECA.js +0 -4
- package/dist/chunk-DOTF5ECA.js.map +0 -1
- package/dist/chunk-FKEUXXZS.js +0 -30
- package/dist/chunk-FKEUXXZS.js.map +0 -1
- package/dist/chunk-GSHXEKBW.js +0 -2
- package/dist/chunk-GSHXEKBW.js.map +0 -1
- package/dist/chunk-IZDAEOLH.js +0 -2
- package/dist/chunk-IZDAEOLH.js.map +0 -1
- package/dist/chunk-JY554RGE.js +0 -3
- package/dist/chunk-JY554RGE.js.map +0 -1
- package/dist/chunk-KK3HV2RD.js +0 -3
- package/dist/chunk-KK3HV2RD.js.map +0 -1
- package/dist/chunk-PPOCDM6G.js +0 -2
- package/dist/chunk-PPOCDM6G.js.map +0 -1
- package/dist/chunk-PUI35LBF.js +0 -2
- package/dist/chunk-PUI35LBF.js.map +0 -1
- package/dist/chunk-Q34J6YDA.js +0 -11
- package/dist/chunk-Q34J6YDA.js.map +0 -1
- package/dist/chunk-QATBFZMM.js +0 -3
- package/dist/chunk-QATBFZMM.js.map +0 -1
- package/dist/chunk-QTKN3VZV.js +0 -2
- package/dist/chunk-QTKN3VZV.js.map +0 -1
- package/dist/chunk-RFBYMTTN.js +0 -2
- package/dist/chunk-RFBYMTTN.js.map +0 -1
- package/dist/chunk-RJJPOLCK.js +0 -22
- package/dist/chunk-RJJPOLCK.js.map +0 -1
- package/dist/chunk-RTWJTEND.js +0 -2
- package/dist/chunk-RTWJTEND.js.map +0 -1
- package/dist/chunk-SR3ZJCME.js +0 -2
- package/dist/chunk-SR3ZJCME.js.map +0 -1
- package/dist/chunk-TAWXH7KX.js +0 -2
- package/dist/chunk-TAWXH7KX.js.map +0 -1
- package/dist/client.js +0 -2
- package/dist/client.js.map +0 -1
- package/dist/confidential-transfer-manager-CGS3T5DG.js +0 -2
- package/dist/confidential-transfer-manager-CGS3T5DG.js.map +0 -1
- package/dist/crypto.js +0 -2
- package/dist/crypto.js.map +0 -1
- package/dist/elgamal-3ABOJSHC.js +0 -2
- package/dist/elgamal-3ABOJSHC.js.map +0 -1
- package/dist/enhanced-client-errors-W22U3LNH.js +0 -2
- package/dist/enhanced-client-errors-W22U3LNH.js.map +0 -1
- package/dist/errors.js +0 -2
- package/dist/errors.js.map +0 -1
- package/dist/generated-U3L4KUE4.js +0 -2
- package/dist/generated-U3L4KUE4.js.map +0 -1
- package/dist/ghostspeak_wasm-3KPNJTSS.js +0 -2
- package/dist/ghostspeak_wasm-3KPNJTSS.js.map +0 -1
- package/dist/index.js +0 -97
- package/dist/index.js.map +0 -1
- package/dist/ipfs-types-BlxtJ3q2.d.ts +0 -194
- package/dist/metafile-esm.json +0 -1
- package/dist/minimal/core-minimal.js +0 -12
- package/dist/minimal/core-minimal.js.map +0 -1
- package/dist/pda-2GUWRQ5G.js +0 -2
- package/dist/pda-2GUWRQ5G.js.map +0 -1
- package/dist/registerAgentCompressed-L6ACXD2Z.js +0 -2
- package/dist/registerAgentCompressed-L6ACXD2Z.js.map +0 -1
- package/dist/token-2022-rpc-SRHRFN5Y.js +0 -2
- package/dist/token-2022-rpc-SRHRFN5Y.js.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils.js +0 -2
- package/dist/utils.js.map +0 -1
- package/dist/zk-proof-builder-GXZ42QZA.js +0 -2
- package/dist/zk-proof-builder-GXZ42QZA.js.map +0 -1
package/dist/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { E as ErrorContext, G as GhostSpeakSDKError, T as TokenProgram, n as accounts, m as confidential, j as createErrorContext, d as deriveAgentPda, b as deriveAssociatedTokenAddress, a as deriveListingPda, c as detectTokenProgram, h as enhanceTransactionError, q as features, f as findProgramDerivedAddress, e as formatTokenAmount, g as getTokenProgramType, o as governance, k as ipfs, i as isToken2022Mint, p as parseTokenAmount, l as privacy, t as token2022, w as withEnhancedErrors } from './feature-flags-
|
|
2
|
-
import '@solana/addresses';
|
|
1
|
+
export { E as ErrorContext, G as GhostSpeakSDKError, T as TokenProgram, n as accounts, m as confidential, j as createErrorContext, d as deriveAgentPda, b as deriveAssociatedTokenAddress, a as deriveListingPda, c as detectTokenProgram, h as enhanceTransactionError, q as features, f as findProgramDerivedAddress, e as formatTokenAmount, g as getTokenProgramType, o as governance, k as ipfs, i as isToken2022Mint, p as parseTokenAmount, l as privacy, t as token2022, w as withEnhancedErrors } from './feature-flags-3POmoO_Z.js';
|
|
3
2
|
import '@solana/kit';
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
3
|
+
import '@solana/addresses';
|
|
4
|
+
import './ipfs-types-KJcvy9Qk.js';
|
|
5
|
+
import '@solana/rpc';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Common utility functions for GhostSpeak SDK
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostspeak/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TypeScript SDK for GhostSpeak AI Agent Commerce Protocol - Production Ready Beta",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"build": "bun run build:wasm && tsup",
|
|
44
44
|
"build:wasm": "bun run wasm:build",
|
|
45
45
|
"build:dev": "tsup --watch",
|
|
46
|
-
"build:analyze": "NODE_ENV=production tsup && tsx scripts/analyze-bundle.ts",
|
|
47
46
|
"dev": "tsup --watch",
|
|
48
47
|
"type-check": "tsc --noEmit",
|
|
49
48
|
"test": "vitest",
|
|
@@ -51,41 +50,17 @@
|
|
|
51
50
|
"test:unit": "vitest run tests/unit",
|
|
52
51
|
"test:integration": "vitest run tests/integration",
|
|
53
52
|
"test:e2e": "vitest run tests/e2e",
|
|
54
|
-
"test:benchmarks": "vitest run tests/benchmarks",
|
|
55
53
|
"test:watch": "vitest watch",
|
|
56
|
-
"test:coverage": "
|
|
57
|
-
"test:
|
|
58
|
-
"test:ui": "vitest --ui",
|
|
59
|
-
"test:quick": "QUICK_TEST=true vitest run",
|
|
60
|
-
"test:quick:watch": "QUICK_TEST=true vitest watch",
|
|
61
|
-
"test:full": "FULL_TEST_RUN=1 vitest run --reporter=verbose",
|
|
62
|
-
"test:full:coverage": "FULL_TEST_RUN=1 COVERAGE=true vitest run --coverage",
|
|
63
|
-
"test:shard": "vitest run --shard",
|
|
64
|
-
"test:crypto": "vitest run tests/**/crypto/**/*.test.ts tests/**/elgamal-complete.test.ts tests/**/bulletproofs.test.ts",
|
|
65
|
-
"test:utils": "vitest run tests/unit/utils --exclude='**/wasm-crypto-bridge.test.ts'",
|
|
66
|
-
"test:smart": "bun scripts/test-runner.ts",
|
|
67
|
-
"test:smart:quick": "bun scripts/test-runner.ts --quick",
|
|
68
|
-
"test:smart:all": "bun scripts/test-runner.ts --all",
|
|
69
|
-
"test:smart:coverage": "bun scripts/test-runner.ts --coverage",
|
|
70
|
-
"test:real": "RUN_REAL_TESTS=1 vitest run tests/integration/*-real-integration.test.ts",
|
|
54
|
+
"test:coverage": "vitest run --coverage",
|
|
55
|
+
"test:real": "RUN_REAL_TESTS=1 vitest run tests/integration/*real-integration.test.ts",
|
|
71
56
|
"test:real:token": "RUN_REAL_TESTS=1 vitest run tests/integration/token-2022-real-integration.test.ts",
|
|
72
57
|
"test:real:confidential": "RUN_REAL_TESTS=1 vitest run tests/integration/confidential-transfer-real-integration.test.ts",
|
|
73
|
-
"benchmark": "bun run test:benchmarks",
|
|
74
|
-
"benchmark:crypto": "vitest run tests/benchmarks/crypto-performance.test.ts",
|
|
75
58
|
"wasm:build": "cd src/wasm/crypto-wasm && wasm-pack build --target web --out-dir ../../../dist/wasm --scope ghostspeak",
|
|
76
|
-
"wasm:build:dev": "cd src/wasm/crypto-wasm && wasm-pack build --dev --target web --out-dir ../../../dist/wasm --scope ghostspeak",
|
|
77
59
|
"wasm:clean": "rm -rf dist/wasm src/wasm/crypto-wasm/pkg",
|
|
78
60
|
"wasm:install": "cargo install wasm-pack",
|
|
79
61
|
"lint": "eslint src --no-error-on-unmatched-pattern --ignore-pattern 'src/generated/**' && eslint src/generated --no-error-on-unmatched-pattern --config .eslintrc.generated.js",
|
|
80
62
|
"lint:fix": "eslint src --fix --ignore-pattern 'src/generated/**' && eslint src/generated --fix --config .eslintrc.generated.js",
|
|
81
|
-
"
|
|
82
|
-
"clean": "rm -rf dist coverage && bun run wasm:clean",
|
|
83
|
-
"fix-imports": "tsx scripts/fix-imports.ts",
|
|
84
|
-
"fix-coded-errors": "tsx scripts/fix-coded-errors.ts",
|
|
85
|
-
"fix-instruction-types": "tsx scripts/fix-instruction-types.ts",
|
|
86
|
-
"fix-generated-types": "tsx scripts/fix-generated-types.ts",
|
|
87
|
-
"fix-all-types": "tsx scripts/fix-all-types.ts",
|
|
88
|
-
"fix-final-types": "tsx scripts/fix-final-types.ts"
|
|
63
|
+
"clean": "rm -rf dist coverage && bun run wasm:clean"
|
|
89
64
|
},
|
|
90
65
|
"keywords": [
|
|
91
66
|
"solana",
|
|
@@ -136,6 +111,7 @@
|
|
|
136
111
|
"@solana/rpc-transport": "^2.0.0-experimental.9741939",
|
|
137
112
|
"@solana/rpc-types": "^2.3.0",
|
|
138
113
|
"@solana/signers": "^2.3.0",
|
|
114
|
+
"@solana/spl-account-compression": "^0.4.1",
|
|
139
115
|
"@solana/spl-token": "^0.4.13",
|
|
140
116
|
"@solana/sysvars": "^2.3.0",
|
|
141
117
|
"@solana/transactions": "^2.3.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{b as EscrowInstructions}from'./chunk-QATBFZMM.js';import'./chunk-DOTF5ECA.js';import'./chunk-32GWTXRJ.js';import'./chunk-C2OTQ5YS.js';import'./chunk-QTKN3VZV.js';import'./chunk-DF7LLAMH.js';import'./chunk-FKEUXXZS.js';import'./chunk-TAWXH7KX.js';import'./chunk-2KOOI5BX.js';import'./chunk-GSHXEKBW.js';import'./chunk-PUI35LBF.js';import'./chunk-B4WUFVLE.js';import'./chunk-DJ356OUX.js';//# sourceMappingURL=EscrowInstructions-4P3H6ETO.js.map
|
|
2
|
-
//# sourceMappingURL=EscrowInstructions-4P3H6ETO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"EscrowInstructions-4P3H6ETO.js"}
|
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { Address as Address$1 } from '@solana/addresses';
|
|
2
|
-
import { ReadonlyUint8Array, Address, Option, Decoder, Rpc, GetLatestBlockhashApi, SendTransactionApi, GetAccountInfoApi, SimulateTransactionApi, GetFeeForMessageApi, GetProgramAccountsApi, GetEpochInfoApi, GetSignatureStatusesApi, GetMultipleAccountsApi, RpcSubscriptions, SignatureNotificationsApi, SlotNotificationsApi } from '@solana/kit';
|
|
3
|
-
import { I as IPFSConfig } from './ipfs-types-BlxtJ3q2.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* This code was AUTOGENERATED using the codama library.
|
|
7
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
8
|
-
* to add features, then rerun codama to update it.
|
|
9
|
-
*
|
|
10
|
-
* @see https://github.com/codama-idl/codama
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
declare enum PricingModel$1 {
|
|
14
|
-
Fixed = 0,
|
|
15
|
-
Hourly = 1,
|
|
16
|
-
PerTask = 2,
|
|
17
|
-
Subscription = 3,
|
|
18
|
-
Auction = 4,
|
|
19
|
-
Dynamic = 5,
|
|
20
|
-
RevenueShare = 6,
|
|
21
|
-
Tiered = 7
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* This code was AUTOGENERATED using the codama library.
|
|
26
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
27
|
-
* to add features, then rerun codama to update it.
|
|
28
|
-
*
|
|
29
|
-
* @see https://github.com/codama-idl/codama
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
type Agent = {
|
|
33
|
-
discriminator: ReadonlyUint8Array;
|
|
34
|
-
owner: Address;
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
capabilities: Array<string>;
|
|
38
|
-
pricingModel: PricingModel$1;
|
|
39
|
-
reputationScore: number;
|
|
40
|
-
totalJobsCompleted: number;
|
|
41
|
-
totalEarnings: bigint;
|
|
42
|
-
isActive: boolean;
|
|
43
|
-
createdAt: bigint;
|
|
44
|
-
updatedAt: bigint;
|
|
45
|
-
originalPrice: bigint;
|
|
46
|
-
genomeHash: string;
|
|
47
|
-
isReplicable: boolean;
|
|
48
|
-
replicationFee: bigint;
|
|
49
|
-
serviceEndpoint: string;
|
|
50
|
-
isVerified: boolean;
|
|
51
|
-
verificationTimestamp: bigint;
|
|
52
|
-
metadataUri: string;
|
|
53
|
-
frameworkOrigin: string;
|
|
54
|
-
supportedTokens: Array<Address>;
|
|
55
|
-
cnftMint: Option<Address>;
|
|
56
|
-
merkleTree: Option<Address>;
|
|
57
|
-
supportsA2a: boolean;
|
|
58
|
-
transferHook: Option<Address>;
|
|
59
|
-
parentAgent: Option<Address>;
|
|
60
|
-
generation: number;
|
|
61
|
-
bump: number;
|
|
62
|
-
};
|
|
63
|
-
declare function getAgentDecoder(): Decoder<Agent>;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* This code was AUTOGENERATED using the codama library.
|
|
67
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
68
|
-
* to add features, then rerun codama to update it.
|
|
69
|
-
*
|
|
70
|
-
* @see https://github.com/codama-idl/codama
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
type ServiceListing = {
|
|
74
|
-
discriminator: ReadonlyUint8Array;
|
|
75
|
-
agent: Address;
|
|
76
|
-
owner: Address;
|
|
77
|
-
title: string;
|
|
78
|
-
description: string;
|
|
79
|
-
price: bigint;
|
|
80
|
-
tokenMint: Address;
|
|
81
|
-
serviceType: string;
|
|
82
|
-
paymentToken: Address;
|
|
83
|
-
estimatedDelivery: bigint;
|
|
84
|
-
tags: Array<string>;
|
|
85
|
-
isActive: boolean;
|
|
86
|
-
totalOrders: number;
|
|
87
|
-
rating: number;
|
|
88
|
-
createdAt: bigint;
|
|
89
|
-
updatedAt: bigint;
|
|
90
|
-
transferHook: Option<Address>;
|
|
91
|
-
bump: number;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
type RpcApi = Rpc<GetLatestBlockhashApi & SendTransactionApi & GetAccountInfoApi & SimulateTransactionApi & GetFeeForMessageApi & GetProgramAccountsApi>;
|
|
95
|
-
type ExtendedRpcApi = RpcApi & Rpc<GetEpochInfoApi & GetSignatureStatusesApi & GetMultipleAccountsApi>;
|
|
96
|
-
type RpcSubscriptionApi = RpcSubscriptions<SignatureNotificationsApi & SlotNotificationsApi>;
|
|
97
|
-
type Commitment = 'processed' | 'confirmed' | 'finalized';
|
|
98
|
-
|
|
99
|
-
interface GhostSpeakConfig {
|
|
100
|
-
programId?: Address$1;
|
|
101
|
-
rpc: ExtendedRpcApi;
|
|
102
|
-
rpcSubscriptions?: RpcSubscriptionApi;
|
|
103
|
-
commitment?: Commitment;
|
|
104
|
-
transactionTimeout?: number;
|
|
105
|
-
defaultFeePayer?: Address$1;
|
|
106
|
-
retryConfig?: RetryConfig;
|
|
107
|
-
cluster?: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
|
|
108
|
-
rpcEndpoint?: string;
|
|
109
|
-
wsEndpoint?: string;
|
|
110
|
-
/** Token 2022 configuration options */
|
|
111
|
-
token2022?: Token2022Config;
|
|
112
|
-
/** IPFS configuration for large content storage */
|
|
113
|
-
ipfsConfig?: IPFSConfig;
|
|
114
|
-
}
|
|
115
|
-
interface Token2022Config {
|
|
116
|
-
/** Enable Token 2022 features by default */
|
|
117
|
-
enabled?: boolean;
|
|
118
|
-
/** Default behavior for transfer fees */
|
|
119
|
-
defaultExpectTransferFees?: boolean;
|
|
120
|
-
/** Maximum transfer fee slippage (basis points) */
|
|
121
|
-
maxFeeSlippageBasisPoints?: number;
|
|
122
|
-
/** Enable confidential transfers by default */
|
|
123
|
-
enableConfidentialTransfers?: boolean;
|
|
124
|
-
/** Default Token 2022 program address (for custom deployments) */
|
|
125
|
-
programAddress?: Address$1;
|
|
126
|
-
/** Cache token program detection results for this many seconds */
|
|
127
|
-
tokenProgramCacheTtl?: number;
|
|
128
|
-
}
|
|
129
|
-
interface RetryConfig {
|
|
130
|
-
maxRetries?: number;
|
|
131
|
-
baseDelay?: number;
|
|
132
|
-
maxDelay?: number;
|
|
133
|
-
backoffMultiplier?: number;
|
|
134
|
-
retryableErrors?: string[];
|
|
135
|
-
}
|
|
136
|
-
interface AgentWithAddress {
|
|
137
|
-
address: Address$1;
|
|
138
|
-
data: Agent;
|
|
139
|
-
}
|
|
140
|
-
interface ServiceListingWithAddress {
|
|
141
|
-
address: Address$1;
|
|
142
|
-
data: ServiceListing;
|
|
143
|
-
}
|
|
144
|
-
interface AgentRegistrationData {
|
|
145
|
-
name: string;
|
|
146
|
-
description: string;
|
|
147
|
-
capabilities: string[];
|
|
148
|
-
metadataUri: string;
|
|
149
|
-
serviceEndpoint: string;
|
|
150
|
-
}
|
|
151
|
-
interface AgentAccount {
|
|
152
|
-
owner: Address$1;
|
|
153
|
-
name: string;
|
|
154
|
-
description: string;
|
|
155
|
-
capabilities: string[];
|
|
156
|
-
metadataUri: string;
|
|
157
|
-
serviceEndpoint: string;
|
|
158
|
-
isActive: boolean;
|
|
159
|
-
registeredAt: bigint;
|
|
160
|
-
reputation: number;
|
|
161
|
-
totalEarnings: bigint;
|
|
162
|
-
totalJobs: number;
|
|
163
|
-
successRate: number;
|
|
164
|
-
bump: number;
|
|
165
|
-
}
|
|
166
|
-
interface ServiceListingData {
|
|
167
|
-
id: string;
|
|
168
|
-
agent: Address$1;
|
|
169
|
-
title: string;
|
|
170
|
-
description: string;
|
|
171
|
-
price: bigint;
|
|
172
|
-
currency: Address$1;
|
|
173
|
-
category: string;
|
|
174
|
-
isActive: boolean;
|
|
175
|
-
createdAt: bigint;
|
|
176
|
-
}
|
|
177
|
-
interface JobPosting {
|
|
178
|
-
id: string;
|
|
179
|
-
poster: Address$1;
|
|
180
|
-
title: string;
|
|
181
|
-
description: string;
|
|
182
|
-
budget: bigint;
|
|
183
|
-
currency: Address$1;
|
|
184
|
-
deadline: bigint;
|
|
185
|
-
requirements: string[];
|
|
186
|
-
isActive: boolean;
|
|
187
|
-
createdAt: bigint;
|
|
188
|
-
}
|
|
189
|
-
interface EscrowAccount {
|
|
190
|
-
buyer: Address$1;
|
|
191
|
-
seller: Address$1;
|
|
192
|
-
agent: Address$1;
|
|
193
|
-
amount: bigint;
|
|
194
|
-
currency: Address$1;
|
|
195
|
-
status: EscrowStatus;
|
|
196
|
-
createdAt: bigint;
|
|
197
|
-
completedAt?: bigint;
|
|
198
|
-
}
|
|
199
|
-
declare enum EscrowStatus {
|
|
200
|
-
Active = "Active",
|
|
201
|
-
Completed = "Completed",
|
|
202
|
-
Disputed = "Disputed",
|
|
203
|
-
Cancelled = "Cancelled"
|
|
204
|
-
}
|
|
205
|
-
interface A2ASession {
|
|
206
|
-
sessionId: bigint;
|
|
207
|
-
initiator: Address$1;
|
|
208
|
-
responder: Address$1;
|
|
209
|
-
sessionType: string;
|
|
210
|
-
metadata: string;
|
|
211
|
-
isActive: boolean;
|
|
212
|
-
createdAt: bigint;
|
|
213
|
-
expiresAt: bigint;
|
|
214
|
-
}
|
|
215
|
-
interface A2AMessage {
|
|
216
|
-
messageId: bigint;
|
|
217
|
-
session: Address$1;
|
|
218
|
-
sender: Address$1;
|
|
219
|
-
content: string;
|
|
220
|
-
messageType: string;
|
|
221
|
-
sentAt: bigint;
|
|
222
|
-
}
|
|
223
|
-
declare enum PricingModel {
|
|
224
|
-
Fixed = "Fixed",
|
|
225
|
-
Hourly = "Hourly",
|
|
226
|
-
PerTask = "PerTask",
|
|
227
|
-
Subscription = "Subscription",
|
|
228
|
-
Auction = "Auction"
|
|
229
|
-
}
|
|
230
|
-
declare class GhostSpeakError extends Error {
|
|
231
|
-
code?: string | undefined;
|
|
232
|
-
constructor(message: string, code?: string | undefined);
|
|
233
|
-
}
|
|
234
|
-
interface RegisterAgentParams {
|
|
235
|
-
agentData: AgentRegistrationData;
|
|
236
|
-
}
|
|
237
|
-
interface CreateServiceListingParams {
|
|
238
|
-
title: string;
|
|
239
|
-
description: string;
|
|
240
|
-
price: bigint;
|
|
241
|
-
currency: Address$1;
|
|
242
|
-
category: string;
|
|
243
|
-
}
|
|
244
|
-
interface CreateJobPostingParams {
|
|
245
|
-
title: string;
|
|
246
|
-
description: string;
|
|
247
|
-
budget: bigint;
|
|
248
|
-
currency: Address$1;
|
|
249
|
-
deadline: bigint;
|
|
250
|
-
requirements: string[];
|
|
251
|
-
}
|
|
252
|
-
interface CreateEscrowParams {
|
|
253
|
-
seller: Address$1;
|
|
254
|
-
agent: Address$1;
|
|
255
|
-
amount: bigint;
|
|
256
|
-
currency: Address$1;
|
|
257
|
-
}
|
|
258
|
-
interface CreateA2ASessionParams {
|
|
259
|
-
responder: Address$1;
|
|
260
|
-
sessionType: string;
|
|
261
|
-
metadata: string;
|
|
262
|
-
expiresAt: bigint;
|
|
263
|
-
}
|
|
264
|
-
interface SendA2AMessageParams {
|
|
265
|
-
session: Address$1;
|
|
266
|
-
content: string;
|
|
267
|
-
messageType: string;
|
|
268
|
-
}
|
|
269
|
-
interface RpcResponse<T> {
|
|
270
|
-
value: T | null;
|
|
271
|
-
}
|
|
272
|
-
interface RpcAccountInfo {
|
|
273
|
-
executable: boolean;
|
|
274
|
-
lamports: bigint;
|
|
275
|
-
owner: Address$1;
|
|
276
|
-
rentEpoch: bigint;
|
|
277
|
-
space: bigint;
|
|
278
|
-
data: string | Uint8Array;
|
|
279
|
-
}
|
|
280
|
-
interface RpcProgramAccount {
|
|
281
|
-
pubkey: Address$1;
|
|
282
|
-
account: RpcAccountInfo;
|
|
283
|
-
}
|
|
284
|
-
interface RpcProgramAccountsResponse {
|
|
285
|
-
value: RpcProgramAccount[] | null;
|
|
286
|
-
}
|
|
287
|
-
interface RpcAccountInfoResponse {
|
|
288
|
-
value: RpcAccountInfo | null;
|
|
289
|
-
}
|
|
290
|
-
interface RpcMultipleAccountsResponse {
|
|
291
|
-
value: (RpcAccountInfo | null)[];
|
|
292
|
-
}
|
|
293
|
-
interface TransactionResponse {
|
|
294
|
-
signature: string;
|
|
295
|
-
confirmationStatus?: Commitment;
|
|
296
|
-
err?: unknown | null;
|
|
297
|
-
}
|
|
298
|
-
interface SimulatedTransactionResponse {
|
|
299
|
-
value: {
|
|
300
|
-
err?: unknown | null;
|
|
301
|
-
logs?: string[];
|
|
302
|
-
unitsConsumed?: number;
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
interface SolanaRpcClient {
|
|
306
|
-
getAccountInfo(address: Address$1, options?: {
|
|
307
|
-
commitment?: Commitment;
|
|
308
|
-
encoding?: string;
|
|
309
|
-
}): Promise<RpcAccountInfoResponse>;
|
|
310
|
-
getMultipleAccounts(addresses: Address$1[], options?: {
|
|
311
|
-
commitment?: Commitment;
|
|
312
|
-
encoding?: string;
|
|
313
|
-
}): Promise<RpcMultipleAccountsResponse>;
|
|
314
|
-
getProgramAccounts(programId: Address$1, options?: {
|
|
315
|
-
commitment?: Commitment;
|
|
316
|
-
encoding?: string;
|
|
317
|
-
filters?: unknown[];
|
|
318
|
-
}): Promise<RpcProgramAccountsResponse>;
|
|
319
|
-
sendTransaction(transaction: unknown, options?: {
|
|
320
|
-
commitment?: Commitment;
|
|
321
|
-
}): Promise<TransactionResponse>;
|
|
322
|
-
simulateTransaction(transaction: unknown, options?: {
|
|
323
|
-
commitment?: Commitment;
|
|
324
|
-
}): Promise<SimulatedTransactionResponse>;
|
|
325
|
-
}
|
|
326
|
-
interface EmergencyConfig {
|
|
327
|
-
emergencyDelay?: bigint;
|
|
328
|
-
emergencyThreshold?: number;
|
|
329
|
-
emergencySigners?: Address$1[];
|
|
330
|
-
canEmergencyPause?: boolean;
|
|
331
|
-
emergencyContact?: string;
|
|
332
|
-
}
|
|
333
|
-
interface MessageMetadata {
|
|
334
|
-
ipfsHash: string;
|
|
335
|
-
originalSize: number;
|
|
336
|
-
contentPreview: string;
|
|
337
|
-
uploadedAt: number;
|
|
338
|
-
}
|
|
339
|
-
interface ResolvedMessageContent {
|
|
340
|
-
resolvedContent: string;
|
|
341
|
-
isIPFS: boolean;
|
|
342
|
-
metadata?: MessageMetadata;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Main GhostSpeak client with fluent API design
|
|
347
|
-
*
|
|
348
|
-
* Example usage:
|
|
349
|
-
* ```typescript
|
|
350
|
-
* const ghostspeak = new GhostSpeak()
|
|
351
|
-
*
|
|
352
|
-
* // Create an agent
|
|
353
|
-
* const agent = await ghostspeak
|
|
354
|
-
* .agent()
|
|
355
|
-
* .create({ name: "My Agent", capabilities: ["coding"] })
|
|
356
|
-
* .compressed()
|
|
357
|
-
* .execute()
|
|
358
|
-
*
|
|
359
|
-
* // Create an escrow
|
|
360
|
-
* const escrow = await ghostspeak
|
|
361
|
-
* .escrow()
|
|
362
|
-
* .between(buyer, seller)
|
|
363
|
-
* .amount(sol(10))
|
|
364
|
-
* .withMilestones([...])
|
|
365
|
-
* .execute()
|
|
366
|
-
* ```
|
|
367
|
-
*/
|
|
368
|
-
declare class GhostSpeak {
|
|
369
|
-
private config;
|
|
370
|
-
constructor(config?: Partial<GhostSpeakConfig>);
|
|
371
|
-
/**
|
|
372
|
-
* Agent operations
|
|
373
|
-
*/
|
|
374
|
-
agent(): AgentBuilder;
|
|
375
|
-
/**
|
|
376
|
-
* Escrow operations
|
|
377
|
-
*/
|
|
378
|
-
escrow(): EscrowBuilder;
|
|
379
|
-
/**
|
|
380
|
-
* Channel operations
|
|
381
|
-
*/
|
|
382
|
-
channel(): ChannelBuilder;
|
|
383
|
-
/**
|
|
384
|
-
* Marketplace operations
|
|
385
|
-
*/
|
|
386
|
-
marketplace(): MarketplaceBuilder;
|
|
387
|
-
/**
|
|
388
|
-
* Governance operations
|
|
389
|
-
*/
|
|
390
|
-
governance(): GovernanceBuilder;
|
|
391
|
-
/**
|
|
392
|
-
* Token-2022 operations
|
|
393
|
-
*/
|
|
394
|
-
token2022(): Token2022Builder;
|
|
395
|
-
/**
|
|
396
|
-
* Enable development mode features
|
|
397
|
-
*/
|
|
398
|
-
enableDevMode(): this;
|
|
399
|
-
/**
|
|
400
|
-
* Configure network
|
|
401
|
-
*/
|
|
402
|
-
useNetwork(cluster: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet'): this;
|
|
403
|
-
/**
|
|
404
|
-
* Configure custom RPC
|
|
405
|
-
*/
|
|
406
|
-
useRpc(endpoint: string, wsEndpoint?: string): this;
|
|
407
|
-
/**
|
|
408
|
-
* Get default RPC endpoint for cluster
|
|
409
|
-
*/
|
|
410
|
-
private getDefaultRpcEndpoint;
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Agent builder for fluent API
|
|
414
|
-
*/
|
|
415
|
-
declare class AgentBuilder {
|
|
416
|
-
private module;
|
|
417
|
-
private params;
|
|
418
|
-
constructor(config: GhostSpeakConfig);
|
|
419
|
-
create(params: {
|
|
420
|
-
name: string;
|
|
421
|
-
capabilities: string[];
|
|
422
|
-
}): this;
|
|
423
|
-
withType(agentType: number): this;
|
|
424
|
-
withIPFS(): this;
|
|
425
|
-
compressed(): this;
|
|
426
|
-
debug(): this;
|
|
427
|
-
private validateParams;
|
|
428
|
-
getCost(): Promise<bigint>;
|
|
429
|
-
simulate(): Promise<unknown>;
|
|
430
|
-
explain(): Promise<string>;
|
|
431
|
-
execute(): Promise<{
|
|
432
|
-
address: Address$1;
|
|
433
|
-
signature: string;
|
|
434
|
-
}>;
|
|
435
|
-
private deriveAgentAddress;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Escrow builder for fluent API
|
|
439
|
-
*/
|
|
440
|
-
declare class EscrowBuilder {
|
|
441
|
-
private module;
|
|
442
|
-
private params;
|
|
443
|
-
constructor(config: GhostSpeakConfig);
|
|
444
|
-
between(buyer: Address$1, seller: Address$1): this;
|
|
445
|
-
amount(lamports: bigint): this;
|
|
446
|
-
description(desc: string): this;
|
|
447
|
-
withMilestones(milestones: Array<{
|
|
448
|
-
amount: bigint;
|
|
449
|
-
description: string;
|
|
450
|
-
}>): this;
|
|
451
|
-
debug(): this;
|
|
452
|
-
private validateParams;
|
|
453
|
-
getCost(): Promise<bigint>;
|
|
454
|
-
explain(): Promise<string>;
|
|
455
|
-
execute(): Promise<{
|
|
456
|
-
address: Address$1;
|
|
457
|
-
signature: string;
|
|
458
|
-
}>;
|
|
459
|
-
private deriveEscrowAddress;
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* Channel builder for fluent API
|
|
463
|
-
*/
|
|
464
|
-
declare class ChannelBuilder {
|
|
465
|
-
private module;
|
|
466
|
-
private params;
|
|
467
|
-
constructor(config: GhostSpeakConfig);
|
|
468
|
-
create(name: string): this;
|
|
469
|
-
description(desc: string): this;
|
|
470
|
-
private(): this;
|
|
471
|
-
maxMembers(max: number): this;
|
|
472
|
-
debug(): this;
|
|
473
|
-
private validateParams;
|
|
474
|
-
getCost(): Promise<bigint>;
|
|
475
|
-
explain(): Promise<string>;
|
|
476
|
-
execute(): Promise<{
|
|
477
|
-
address: Address$1;
|
|
478
|
-
signature: string;
|
|
479
|
-
}>;
|
|
480
|
-
private deriveChannelAddress;
|
|
481
|
-
}
|
|
482
|
-
declare class MarketplaceBuilder {
|
|
483
|
-
private config;
|
|
484
|
-
constructor(config: GhostSpeakConfig);
|
|
485
|
-
}
|
|
486
|
-
declare class GovernanceBuilder {
|
|
487
|
-
private config;
|
|
488
|
-
constructor(config: GhostSpeakConfig);
|
|
489
|
-
}
|
|
490
|
-
declare class Token2022Builder {
|
|
491
|
-
private config;
|
|
492
|
-
constructor(config: GhostSpeakConfig);
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Convert SOL to lamports
|
|
496
|
-
*/
|
|
497
|
-
declare function sol(amount: number): bigint;
|
|
498
|
-
/**
|
|
499
|
-
* Convert lamports to SOL
|
|
500
|
-
*/
|
|
501
|
-
declare function lamportsToSol(lamports: bigint): number;
|
|
502
|
-
|
|
503
|
-
export { type Agent as A, type RpcAccountInfoResponse as B, type Commitment as C, type RpcMultipleAccountsResponse as D, type ExtendedRpcApi as E, type SimulatedTransactionResponse as F, type GhostSpeakConfig as G, type SolanaRpcClient as H, type RetryConfig as I, type JobPosting as J, type RpcApi as K, getAgentDecoder as L, PricingModel$1 as P, type RpcSubscriptionApi as R, type ServiceListing as S, type TransactionResponse as T, type AgentWithAddress as a, type ServiceListingWithAddress as b, type EmergencyConfig as c, type ResolvedMessageContent as d, GhostSpeak as e, type AgentRegistrationData as f, type AgentAccount as g, type ServiceListingData as h, type EscrowAccount as i, EscrowStatus as j, type A2ASession as k, lamportsToSol as l, type A2AMessage as m, PricingModel as n, GhostSpeakError as o, type RegisterAgentParams as p, type CreateServiceListingParams as q, type CreateJobPostingParams as r, sol as s, type CreateEscrowParams as t, type CreateA2ASessionParams as u, type SendA2AMessageParams as v, type RpcResponse as w, type RpcAccountInfo as x, type RpcProgramAccount as y, type RpcProgramAccountsResponse as z };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{a as A2_A_MESSAGE_DISCRIMINATOR,k as A2_A_SESSION_DISCRIMINATOR,u as A2_A_STATUS_DISCRIMINATOR,E as AGENT_INCENTIVES_DISCRIMINATOR,P as AGENT_TREE_CONFIG_DISCRIMINATOR,_ as AGENT_VERIFICATION_DISCRIMINATOR,ia as ANALYTICS_DASHBOARD_DISCRIMINATOR,sa as ARBITRATOR_REGISTRY_DISCRIMINATOR,Ca as AUDIT_TRAIL_DISCRIMINATOR,Ma as BULK_DEAL_DISCRIMINATOR,Wa as CHANNEL_DISCRIMINATOR,eb as COMPLIANCE_REPORT_DISCRIMINATOR,ob as DISPUTE_CASE_DISCRIMINATOR,yb as DYNAMIC_PRICING_ENGINE_DISCRIMINATOR,Ib as ESCROW_DISCRIMINATOR,Sb as EXTENSION_DISCRIMINATOR,ac as GOVERNANCE_PROPOSAL_DISCRIMINATOR,kc as INCENTIVE_PROGRAM_DISCRIMINATOR,vc as JOB_APPLICATION_DISCRIMINATOR,Fc as JOB_CONTRACT_DISCRIMINATOR,Qc as JOB_POSTING_DISCRIMINATOR,_c as MARKET_ANALYTICS_DISCRIMINATOR,id as MESSAGE_DISCRIMINATOR,sd as MULTISIG_DISCRIMINATOR,Cd as NEGOTIATION_CHATBOT_DISCRIMINATOR,Md as PAYMENT_DISCRIMINATOR,Wd as RBAC_CONFIG_DISCRIMINATOR,ee as REENTRANCY_GUARD_DISCRIMINATOR,pe as REPLICATION_RECORD_DISCRIMINATOR,ze as REPLICATION_TEMPLATE_DISCRIMINATOR,Je as RESALE_MARKET_DISCRIMINATOR,Te as ROYALTY_STREAM_DISCRIMINATOR,cf as SERVICE_LISTING_DISCRIMINATOR,mf as SERVICE_PURCHASE_DISCRIMINATOR,wf as USER_REGISTRY_DISCRIMINATOR,Hf as WORK_DELIVERY_DISCRIMINATOR,Rf as WORK_ORDER_DISCRIMINATOR,f as decodeA2AMessage,p as decodeA2ASession,z as decodeA2AStatus,J as decodeAgentIncentives,U as decodeAgentTreeConfig,da as decodeAgentVerification,na as decodeAnalyticsDashboard,xa as decodeArbitratorRegistry,Ha as decodeAuditTrail,Ra as decodeBulkDeal,$a as decodeChannel,jb as decodeComplianceReport,tb as decodeDisputeCase,Db as decodeDynamicPricingEngine,Nb as decodeEscrow,Xb as decodeExtension,fc as decodeGovernanceProposal,pc as decodeIncentiveProgram,Ac as decodeJobApplication,Kc as decodeJobContract,Vc as decodeJobPosting,dd as decodeMarketAnalytics,nd as decodeMessage,xd as decodeMultisig,Hd as decodeNegotiationChatbot,Rd as decodePayment,$d as decodeRbacConfig,je as decodeReentrancyGuard,ue as decodeReplicationRecord,Ee as decodeReplicationTemplate,Oe as decodeResaleMarket,Ye as decodeRoyaltyStream,hf as decodeServiceListing,rf as decodeServicePurchase,Bf as decodeUserRegistry,Mf as decodeWorkDelivery,Wf as decodeWorkOrder,g as fetchA2AMessage,q as fetchA2ASession,A as fetchA2AStatus,K as fetchAgentIncentives,V as fetchAgentTreeConfig,ea as fetchAgentVerification,i as fetchAllA2AMessage,s as fetchAllA2ASession,C as fetchAllA2AStatus,M as fetchAllAgentIncentives,X as fetchAllAgentTreeConfig,ga as fetchAllAgentVerification,qa as fetchAllAnalyticsDashboard,Aa as fetchAllArbitratorRegistry,Ka as fetchAllAuditTrail,Ua as fetchAllBulkDeal,cb as fetchAllChannel,mb as fetchAllComplianceReport,wb as fetchAllDisputeCase,Gb as fetchAllDynamicPricingEngine,Qb as fetchAllEscrow,_b as fetchAllExtension,ic as fetchAllGovernanceProposal,sc as fetchAllIncentiveProgram,Dc as fetchAllJobApplication,Nc as fetchAllJobContract,Yc as fetchAllJobPosting,gd as fetchAllMarketAnalytics,j as fetchAllMaybeA2AMessage,t as fetchAllMaybeA2ASession,D as fetchAllMaybeA2AStatus,N as fetchAllMaybeAgentIncentives,Y as fetchAllMaybeAgentTreeConfig,ha as fetchAllMaybeAgentVerification,ra as fetchAllMaybeAnalyticsDashboard,Ba as fetchAllMaybeArbitratorRegistry,La as fetchAllMaybeAuditTrail,Va as fetchAllMaybeBulkDeal,db as fetchAllMaybeChannel,nb as fetchAllMaybeComplianceReport,xb as fetchAllMaybeDisputeCase,Hb as fetchAllMaybeDynamicPricingEngine,Rb as fetchAllMaybeEscrow,$b as fetchAllMaybeExtension,jc as fetchAllMaybeGovernanceProposal,tc as fetchAllMaybeIncentiveProgram,Ec as fetchAllMaybeJobApplication,Oc as fetchAllMaybeJobContract,Zc as fetchAllMaybeJobPosting,hd as fetchAllMaybeMarketAnalytics,rd as fetchAllMaybeMessage,Bd as fetchAllMaybeMultisig,Ld as fetchAllMaybeNegotiationChatbot,Vd as fetchAllMaybePayment,de as fetchAllMaybeRbacConfig,ne as fetchAllMaybeReentrancyGuard,ye as fetchAllMaybeReplicationRecord,Ie as fetchAllMaybeReplicationTemplate,Se as fetchAllMaybeResaleMarket,af as fetchAllMaybeRoyaltyStream,lf as fetchAllMaybeServiceListing,vf as fetchAllMaybeServicePurchase,Ff as fetchAllMaybeUserRegistry,Qf as fetchAllMaybeWorkDelivery,_f as fetchAllMaybeWorkOrder,qd as fetchAllMessage,Ad as fetchAllMultisig,Kd as fetchAllNegotiationChatbot,Ud as fetchAllPayment,ce as fetchAllRbacConfig,me as fetchAllReentrancyGuard,xe as fetchAllReplicationRecord,He as fetchAllReplicationTemplate,Re as fetchAllResaleMarket,$e as fetchAllRoyaltyStream,kf as fetchAllServiceListing,uf as fetchAllServicePurchase,Ef as fetchAllUserRegistry,Pf as fetchAllWorkDelivery,Zf as fetchAllWorkOrder,oa as fetchAnalyticsDashboard,ya as fetchArbitratorRegistry,Ia as fetchAuditTrail,Sa as fetchBulkDeal,ab as fetchChannel,kb as fetchComplianceReport,ub as fetchDisputeCase,Eb as fetchDynamicPricingEngine,Ob as fetchEscrow,Yb as fetchExtension,gc as fetchGovernanceProposal,qc as fetchIncentiveProgram,Bc as fetchJobApplication,Lc as fetchJobContract,Wc as fetchJobPosting,ed as fetchMarketAnalytics,h as fetchMaybeA2AMessage,r as fetchMaybeA2ASession,B as fetchMaybeA2AStatus,L as fetchMaybeAgentIncentives,W as fetchMaybeAgentTreeConfig,fa as fetchMaybeAgentVerification,pa as fetchMaybeAnalyticsDashboard,za as fetchMaybeArbitratorRegistry,Ja as fetchMaybeAuditTrail,Ta as fetchMaybeBulkDeal,bb as fetchMaybeChannel,lb as fetchMaybeComplianceReport,vb as fetchMaybeDisputeCase,Fb as fetchMaybeDynamicPricingEngine,Pb as fetchMaybeEscrow,Zb as fetchMaybeExtension,hc as fetchMaybeGovernanceProposal,rc as fetchMaybeIncentiveProgram,Cc as fetchMaybeJobApplication,Mc as fetchMaybeJobContract,Xc as fetchMaybeJobPosting,fd as fetchMaybeMarketAnalytics,pd as fetchMaybeMessage,zd as fetchMaybeMultisig,Jd as fetchMaybeNegotiationChatbot,Td as fetchMaybePayment,be as fetchMaybeRbacConfig,le as fetchMaybeReentrancyGuard,we as fetchMaybeReplicationRecord,Ge as fetchMaybeReplicationTemplate,Qe as fetchMaybeResaleMarket,_e as fetchMaybeRoyaltyStream,jf as fetchMaybeServiceListing,tf as fetchMaybeServicePurchase,Df as fetchMaybeUserRegistry,Of as fetchMaybeWorkDelivery,Yf as fetchMaybeWorkOrder,od as fetchMessage,yd as fetchMultisig,Id as fetchNegotiationChatbot,Sd as fetchPayment,ae as fetchRbacConfig,ke as fetchReentrancyGuard,ve as fetchReplicationRecord,Fe as fetchReplicationTemplate,Pe as fetchResaleMarket,Ze as fetchRoyaltyStream,if as fetchServiceListing,sf as fetchServicePurchase,Cf as fetchUserRegistry,Nf as fetchWorkDelivery,Xf as fetchWorkOrder,e as getA2AMessageCodec,d as getA2AMessageDecoder,b as getA2AMessageDiscriminatorBytes,c as getA2AMessageEncoder,o as getA2ASessionCodec,n as getA2ASessionDecoder,l as getA2ASessionDiscriminatorBytes,m as getA2ASessionEncoder,y as getA2AStatusCodec,x as getA2AStatusDecoder,v as getA2AStatusDiscriminatorBytes,w as getA2AStatusEncoder,I as getAgentIncentivesCodec,H as getAgentIncentivesDecoder,F as getAgentIncentivesDiscriminatorBytes,G as getAgentIncentivesEncoder,O as getAgentIncentivesSize,T as getAgentTreeConfigCodec,S as getAgentTreeConfigDecoder,Q as getAgentTreeConfigDiscriminatorBytes,R as getAgentTreeConfigEncoder,Z as getAgentTreeConfigSize,ca as getAgentVerificationCodec,ba as getAgentVerificationDecoder,$ as getAgentVerificationDiscriminatorBytes,aa as getAgentVerificationEncoder,ma as getAnalyticsDashboardCodec,la as getAnalyticsDashboardDecoder,ja as getAnalyticsDashboardDiscriminatorBytes,ka as getAnalyticsDashboardEncoder,wa as getArbitratorRegistryCodec,va as getArbitratorRegistryDecoder,ta as getArbitratorRegistryDiscriminatorBytes,ua as getArbitratorRegistryEncoder,Ga as getAuditTrailCodec,Fa as getAuditTrailDecoder,Da as getAuditTrailDiscriminatorBytes,Ea as getAuditTrailEncoder,Qa as getBulkDealCodec,Pa as getBulkDealDecoder,Na as getBulkDealDiscriminatorBytes,Oa as getBulkDealEncoder,_a as getChannelCodec,Za as getChannelDecoder,Xa as getChannelDiscriminatorBytes,Ya as getChannelEncoder,ib as getComplianceReportCodec,hb as getComplianceReportDecoder,fb as getComplianceReportDiscriminatorBytes,gb as getComplianceReportEncoder,sb as getDisputeCaseCodec,rb as getDisputeCaseDecoder,pb as getDisputeCaseDiscriminatorBytes,qb as getDisputeCaseEncoder,Cb as getDynamicPricingEngineCodec,Bb as getDynamicPricingEngineDecoder,zb as getDynamicPricingEngineDiscriminatorBytes,Ab as getDynamicPricingEngineEncoder,Mb as getEscrowCodec,Lb as getEscrowDecoder,Jb as getEscrowDiscriminatorBytes,Kb as getEscrowEncoder,Wb as getExtensionCodec,Vb as getExtensionDecoder,Tb as getExtensionDiscriminatorBytes,Ub as getExtensionEncoder,ec as getGovernanceProposalCodec,dc as getGovernanceProposalDecoder,bc as getGovernanceProposalDiscriminatorBytes,cc as getGovernanceProposalEncoder,oc as getIncentiveProgramCodec,nc as getIncentiveProgramDecoder,lc as getIncentiveProgramDiscriminatorBytes,mc as getIncentiveProgramEncoder,uc as getIncentiveProgramSize,zc as getJobApplicationCodec,yc as getJobApplicationDecoder,wc as getJobApplicationDiscriminatorBytes,xc as getJobApplicationEncoder,Jc as getJobContractCodec,Ic as getJobContractDecoder,Gc as getJobContractDiscriminatorBytes,Hc as getJobContractEncoder,Pc as getJobContractSize,Uc as getJobPostingCodec,Tc as getJobPostingDecoder,Rc as getJobPostingDiscriminatorBytes,Sc as getJobPostingEncoder,cd as getMarketAnalyticsCodec,bd as getMarketAnalyticsDecoder,$c as getMarketAnalyticsDiscriminatorBytes,ad as getMarketAnalyticsEncoder,md as getMessageCodec,ld as getMessageDecoder,jd as getMessageDiscriminatorBytes,kd as getMessageEncoder,wd as getMultisigCodec,vd as getMultisigDecoder,td as getMultisigDiscriminatorBytes,ud as getMultisigEncoder,Gd as getNegotiationChatbotCodec,Fd as getNegotiationChatbotDecoder,Dd as getNegotiationChatbotDiscriminatorBytes,Ed as getNegotiationChatbotEncoder,Qd as getPaymentCodec,Pd as getPaymentDecoder,Nd as getPaymentDiscriminatorBytes,Od as getPaymentEncoder,_d as getRbacConfigCodec,Zd as getRbacConfigDecoder,Xd as getRbacConfigDiscriminatorBytes,Yd as getRbacConfigEncoder,ie as getReentrancyGuardCodec,he as getReentrancyGuardDecoder,fe as getReentrancyGuardDiscriminatorBytes,ge as getReentrancyGuardEncoder,oe as getReentrancyGuardSize,te as getReplicationRecordCodec,se as getReplicationRecordDecoder,qe as getReplicationRecordDiscriminatorBytes,re as getReplicationRecordEncoder,De as getReplicationTemplateCodec,Ce as getReplicationTemplateDecoder,Ae as getReplicationTemplateDiscriminatorBytes,Be as getReplicationTemplateEncoder,Ne as getResaleMarketCodec,Me as getResaleMarketDecoder,Ke as getResaleMarketDiscriminatorBytes,Le as getResaleMarketEncoder,Xe as getRoyaltyStreamCodec,We as getRoyaltyStreamDecoder,Ue as getRoyaltyStreamDiscriminatorBytes,Ve as getRoyaltyStreamEncoder,bf as getRoyaltyStreamSize,gf as getServiceListingCodec,ff as getServiceListingDecoder,df as getServiceListingDiscriminatorBytes,ef as getServiceListingEncoder,qf as getServicePurchaseCodec,pf as getServicePurchaseDecoder,nf as getServicePurchaseDiscriminatorBytes,of as getServicePurchaseEncoder,Af as getUserRegistryCodec,zf as getUserRegistryDecoder,xf as getUserRegistryDiscriminatorBytes,yf as getUserRegistryEncoder,Gf as getUserRegistrySize,Lf as getWorkDeliveryCodec,Kf as getWorkDeliveryDecoder,If as getWorkDeliveryDiscriminatorBytes,Jf as getWorkDeliveryEncoder,Vf as getWorkOrderCodec,Uf as getWorkOrderDecoder,Sf as getWorkOrderDiscriminatorBytes,Tf as getWorkOrderEncoder}from'./chunk-DF7LLAMH.js';export{a as AGENT_DISCRIMINATOR,f as decodeAgent,g as fetchAgent,i as fetchAllAgent,j as fetchAllMaybeAgent,h as fetchMaybeAgent,e as getAgentCodec,d as getAgentDecoder,b as getAgentDiscriminatorBytes,c as getAgentEncoder}from'./chunk-GSHXEKBW.js';export{a as AUCTION_MARKETPLACE_DISCRIMINATOR,f as decodeAuctionMarketplace,i as fetchAllAuctionMarketplace,j as fetchAllMaybeAuctionMarketplace,g as fetchAuctionMarketplace,h as fetchMaybeAuctionMarketplace,e as getAuctionMarketplaceCodec,d as getAuctionMarketplaceDecoder,b as getAuctionMarketplaceDiscriminatorBytes,c as getAuctionMarketplaceEncoder}from'./chunk-PUI35LBF.js';import'./chunk-B4WUFVLE.js';import'./chunk-DJ356OUX.js';//# sourceMappingURL=accounts-IUZMPYVE.js.map
|
|
2
|
-
//# sourceMappingURL=accounts-IUZMPYVE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"accounts-IUZMPYVE.js"}
|
package/dist/agent-GZ2OES75.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{a as AGENT_DISCRIMINATOR,f as decodeAgent,g as fetchAgent,i as fetchAllAgent,j as fetchAllMaybeAgent,h as fetchMaybeAgent,e as getAgentCodec,d as getAgentDecoder,b as getAgentDiscriminatorBytes,c as getAgentEncoder}from'./chunk-GSHXEKBW.js';import'./chunk-B4WUFVLE.js';import'./chunk-DJ356OUX.js';//# sourceMappingURL=agent-GZ2OES75.js.map
|
|
2
|
-
//# sourceMappingURL=agent-GZ2OES75.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-GZ2OES75.js"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{a as AUCTION_MARKETPLACE_DISCRIMINATOR,f as decodeAuctionMarketplace,i as fetchAllAuctionMarketplace,j as fetchAllMaybeAuctionMarketplace,g as fetchAuctionMarketplace,h as fetchMaybeAuctionMarketplace,e as getAuctionMarketplaceCodec,d as getAuctionMarketplaceDecoder,b as getAuctionMarketplaceDiscriminatorBytes,c as getAuctionMarketplaceEncoder}from'./chunk-PUI35LBF.js';import'./chunk-B4WUFVLE.js';import'./chunk-DJ356OUX.js';//# sourceMappingURL=auctionMarketplace-W4YM7HKU.js.map
|
|
2
|
-
//# sourceMappingURL=auctionMarketplace-W4YM7HKU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"auctionMarketplace-W4YM7HKU.js"}
|
package/dist/chunk-2KOOI5BX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(typeof globalThis.TextEncoder>"u"&&typeof process<"u"&&process?.versions?.node)try{let util=eval("require")("util");globalThis.TextEncoder=util.TextEncoder,globalThis.TextDecoder=util.TextDecoder;}catch{}//# sourceMappingURL=chunk-2KOOI5BX.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-2KOOI5BX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/text-encoder-polyfill.ts"],"names":[],"mappings":"AAUA,GAAI,OAAO,UAAA,CAAW,WAAA,CAAgB,GAAA,EAEhC,OAAO,OAAA,CAAY,GAAA,EAAe,OAAA,EAAS,QAAA,EAAU,IAAA,CACvD,GAAI,CAGF,IAAM,IAAA,CAAO,IAAA,CAAK,SAAS,CAAA,CAAE,MAAM,CAAA,CAEnC,UAAA,CAAW,WAAA,CAAc,IAAA,CAAK,WAAA,CAE9B,UAAA,CAAW,WAAA,CAAc,IAAA,CAAK,YAChC,CAAA,KAAQ,CAER","file":"chunk-2KOOI5BX.js","sourcesContent":["/**\n * TextEncoder polyfill for Node.js compatibility\n * Node.js has TextEncoder in the util module, but not in global scope\n */\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ndeclare const globalThis: any\n\n// Check if TextEncoder is already available globally\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nif (typeof globalThis.TextEncoder === 'undefined') {\n // In Node.js environment, try to use util module\n if (typeof process !== 'undefined' && process?.versions?.node) {\n try {\n // Dynamic import for Node.js util module\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const util = eval('require')('util')\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n globalThis.TextEncoder = util.TextEncoder\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n globalThis.TextDecoder = util.TextDecoder\n } catch {\n // Ignore errors - TextEncoder might not be needed or available elsewhere\n }\n }\n}\n\n// Export for explicit usage\nexport const getTextEncoder = (): typeof TextEncoder => {\n if (typeof TextEncoder !== 'undefined') {\n return TextEncoder\n }\n \n // Fallback for environments without TextEncoder\n throw new Error('TextEncoder is not available in this environment')\n}\n\nexport const getTextDecoder = (): typeof TextDecoder => {\n if (typeof TextDecoder !== 'undefined') {\n return TextDecoder\n }\n \n // Fallback for environments without TextDecoder \n throw new Error('TextDecoder is not available in this environment')\n}"]}
|