agent0-sdk 0.2.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/README.md +234 -0
- package/dist/core/agent.d.ts +76 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +477 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/contracts.d.ts +688 -0
- package/dist/core/contracts.d.ts.map +1 -0
- package/dist/core/contracts.js +348 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/endpoint-crawler.d.ts +44 -0
- package/dist/core/endpoint-crawler.d.ts.map +1 -0
- package/dist/core/endpoint-crawler.js +280 -0
- package/dist/core/endpoint-crawler.js.map +1 -0
- package/dist/core/feedback-manager.d.ts +98 -0
- package/dist/core/feedback-manager.d.ts.map +1 -0
- package/dist/core/feedback-manager.js +543 -0
- package/dist/core/feedback-manager.js.map +1 -0
- package/dist/core/indexer.d.ts +37 -0
- package/dist/core/indexer.d.ts.map +1 -0
- package/dist/core/indexer.js +189 -0
- package/dist/core/indexer.js.map +1 -0
- package/dist/core/ipfs-client.d.ts +88 -0
- package/dist/core/ipfs-client.d.ts.map +1 -0
- package/dist/core/ipfs-client.js +334 -0
- package/dist/core/ipfs-client.js.map +1 -0
- package/dist/core/sdk.d.ts +177 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +544 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/subgraph-client.d.ts +68 -0
- package/dist/core/subgraph-client.d.ts.map +1 -0
- package/dist/core/subgraph-client.js +635 -0
- package/dist/core/subgraph-client.js.map +1 -0
- package/dist/core/web3-client.d.ts +94 -0
- package/dist/core/web3-client.d.ts.map +1 -0
- package/dist/core/web3-client.js +197 -0
- package/dist/core/web3-client.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enums.d.ts +22 -0
- package/dist/models/enums.d.ts.map +1 -0
- package/dist/models/enums.js +24 -0
- package/dist/models/enums.js.map +1 -0
- package/dist/models/generated/subgraph-types.d.ts +208 -0
- package/dist/models/generated/subgraph-types.d.ts.map +1 -0
- package/dist/models/generated/subgraph-types.js +2 -0
- package/dist/models/generated/subgraph-types.js.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +8 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/interfaces.d.ts +125 -0
- package/dist/models/interfaces.d.ts.map +1 -0
- package/dist/models/interfaces.js +5 -0
- package/dist/models/interfaces.js.map +1 -0
- package/dist/models/types.d.ts +11 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +5 -0
- package/dist/models/types.js.map +1 -0
- package/dist/utils/constants.d.ts +24 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +28 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/id-format.d.ts +30 -0
- package/dist/utils/id-format.d.ts.map +1 -0
- package/dist/utils/id-format.js +67 -0
- package/dist/utils/id-format.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.d.ts +25 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +61 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web3 integration layer for smart contract interactions using ethers.js
|
|
3
|
+
*/
|
|
4
|
+
import { ethers, type Contract, type Wallet, type JsonRpcProvider, type InterfaceAbi } from 'ethers';
|
|
5
|
+
export interface TransactionOptions {
|
|
6
|
+
gasLimit?: bigint;
|
|
7
|
+
gasPrice?: bigint;
|
|
8
|
+
maxFeePerGas?: bigint;
|
|
9
|
+
maxPriorityFeePerGas?: bigint;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Web3 client for interacting with ERC-8004 smart contracts
|
|
13
|
+
*/
|
|
14
|
+
export declare class Web3Client {
|
|
15
|
+
readonly provider: JsonRpcProvider;
|
|
16
|
+
readonly signer?: Wallet;
|
|
17
|
+
chainId: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize Web3 client
|
|
20
|
+
* @param rpcUrl - RPC endpoint URL
|
|
21
|
+
* @param privateKey - Optional private key for signing transactions
|
|
22
|
+
*/
|
|
23
|
+
constructor(rpcUrl: string, privateKey?: string);
|
|
24
|
+
/**
|
|
25
|
+
* Initialize the client (fetch chain ID)
|
|
26
|
+
*/
|
|
27
|
+
initialize(): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Get contract instance
|
|
30
|
+
*/
|
|
31
|
+
getContract(address: string, abi: InterfaceAbi): Contract;
|
|
32
|
+
/**
|
|
33
|
+
* Call a contract method (view/pure function)
|
|
34
|
+
*/
|
|
35
|
+
callContract(contract: Contract, methodName: string, ...args: any[]): Promise<any>;
|
|
36
|
+
/**
|
|
37
|
+
* Execute a contract transaction
|
|
38
|
+
* For overloaded functions like register(), use registerAgent() wrapper instead
|
|
39
|
+
*/
|
|
40
|
+
transactContract(contract: Contract, methodName: string, options?: TransactionOptions, ...args: any[]): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Router wrapper for register() function overloads
|
|
43
|
+
* Intelligently selects the correct overload based on arguments:
|
|
44
|
+
* - register() - no arguments
|
|
45
|
+
* - register(string tokenUri) - just tokenUri
|
|
46
|
+
* - register(string tokenUri, tuple[] metadata) - tokenUri + metadata
|
|
47
|
+
*/
|
|
48
|
+
private registerAgent;
|
|
49
|
+
/**
|
|
50
|
+
* Wait for transaction to be mined
|
|
51
|
+
*/
|
|
52
|
+
waitForTransaction(txHash: string, timeout?: number): Promise<ethers.ContractTransactionReceipt>;
|
|
53
|
+
/**
|
|
54
|
+
* Get contract events
|
|
55
|
+
*/
|
|
56
|
+
getEvents(contract: Contract, eventName: string, fromBlock?: number, toBlock?: number): Promise<ethers.Log[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Encode feedback authorization data
|
|
59
|
+
*/
|
|
60
|
+
encodeFeedbackAuth(agentId: bigint, clientAddress: string, indexLimit: bigint, expiry: bigint, chainId: bigint, identityRegistry: string, signerAddress: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Sign a message with the account's private key
|
|
63
|
+
*/
|
|
64
|
+
signMessage(message: string | Uint8Array): Promise<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Recover address from message and signature
|
|
67
|
+
*/
|
|
68
|
+
recoverAddress(message: string | Uint8Array, signature: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* Compute Keccak-256 hash
|
|
71
|
+
*/
|
|
72
|
+
keccak256(data: string | Uint8Array): string;
|
|
73
|
+
/**
|
|
74
|
+
* Convert address to checksum format
|
|
75
|
+
*/
|
|
76
|
+
toChecksumAddress(address: string): string;
|
|
77
|
+
/**
|
|
78
|
+
* Check if string is a valid Ethereum address
|
|
79
|
+
*/
|
|
80
|
+
isAddress(address: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Get ETH balance of an address
|
|
83
|
+
*/
|
|
84
|
+
getBalance(address: string): Promise<bigint>;
|
|
85
|
+
/**
|
|
86
|
+
* Get transaction count (nonce) of an address
|
|
87
|
+
*/
|
|
88
|
+
getTransactionCount(address: string): Promise<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Get the account address (if signer is available)
|
|
91
|
+
*/
|
|
92
|
+
get address(): string | undefined;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=web3-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web3-client.d.ts","sourceRoot":"","sources":["../../src/core/web3-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KA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AKxB;;OAEG;IACH,kBAAkB,CAChB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,MAAM,GACpB,MAAM;IAOT;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAOhE;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAIvE;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM;IAQ5C;;OAEG;IACH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAK1C;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAQnC;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlD;;OAEG;IACG,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3D;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,GAAG,SAAS,CAEhC;CACF"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web3 integration layer for smart contract interactions using ethers.js
|
|
3
|
+
*/
|
|
4
|
+
import { ethers, } from 'ethers';
|
|
5
|
+
/**
|
|
6
|
+
* Web3 client for interacting with ERC-8004 smart contracts
|
|
7
|
+
*/
|
|
8
|
+
export class Web3Client {
|
|
9
|
+
/**
|
|
10
|
+
* Initialize Web3 client
|
|
11
|
+
* @param rpcUrl - RPC endpoint URL
|
|
12
|
+
* @param privateKey - Optional private key for signing transactions
|
|
13
|
+
*/
|
|
14
|
+
constructor(rpcUrl, privateKey) {
|
|
15
|
+
this.provider = new ethers.JsonRpcProvider(rpcUrl);
|
|
16
|
+
if (privateKey) {
|
|
17
|
+
this.signer = new ethers.Wallet(privateKey, this.provider);
|
|
18
|
+
}
|
|
19
|
+
// Get chain ID asynchronously (will be set in async initialization)
|
|
20
|
+
// For now, we'll fetch it when needed
|
|
21
|
+
this.chainId = 0n;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Initialize the client (fetch chain ID)
|
|
25
|
+
*/
|
|
26
|
+
async initialize() {
|
|
27
|
+
const network = await this.provider.getNetwork();
|
|
28
|
+
this.chainId = network.chainId;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get contract instance
|
|
32
|
+
*/
|
|
33
|
+
getContract(address, abi) {
|
|
34
|
+
const signerOrProvider = this.signer || this.provider;
|
|
35
|
+
return new ethers.Contract(address, abi, signerOrProvider);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Call a contract method (view/pure function)
|
|
39
|
+
*/
|
|
40
|
+
async callContract(contract, methodName, ...args) {
|
|
41
|
+
const method = contract[methodName];
|
|
42
|
+
if (!method || typeof method !== 'function') {
|
|
43
|
+
throw new Error(`Method ${methodName} not found on contract`);
|
|
44
|
+
}
|
|
45
|
+
return await method(...args);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Execute a contract transaction
|
|
49
|
+
* For overloaded functions like register(), use registerAgent() wrapper instead
|
|
50
|
+
*/
|
|
51
|
+
async transactContract(contract, methodName, options = {}, ...args) {
|
|
52
|
+
if (!this.signer) {
|
|
53
|
+
throw new Error('Cannot execute transaction: SDK is in read-only mode. Provide a private key to enable write operations.');
|
|
54
|
+
}
|
|
55
|
+
// Special handling for register() function with multiple overloads
|
|
56
|
+
if (methodName === 'register') {
|
|
57
|
+
return this.registerAgent(contract, options, ...args);
|
|
58
|
+
}
|
|
59
|
+
const method = contract[methodName];
|
|
60
|
+
if (!method || typeof method !== 'function') {
|
|
61
|
+
throw new Error(`Method ${methodName} not found on contract`);
|
|
62
|
+
}
|
|
63
|
+
// Build transaction options - filter out undefined values
|
|
64
|
+
const txOptions = Object.fromEntries(Object.entries(options).filter(([_, value]) => value !== undefined));
|
|
65
|
+
// Send transaction
|
|
66
|
+
const tx = await method(...args);
|
|
67
|
+
const txResponse = await tx;
|
|
68
|
+
return txResponse.hash;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Router wrapper for register() function overloads
|
|
72
|
+
* Intelligently selects the correct overload based on arguments:
|
|
73
|
+
* - register() - no arguments
|
|
74
|
+
* - register(string tokenUri) - just tokenUri
|
|
75
|
+
* - register(string tokenUri, tuple[] metadata) - tokenUri + metadata
|
|
76
|
+
*/
|
|
77
|
+
async registerAgent(contract, options, ...args) {
|
|
78
|
+
if (!this.signer) {
|
|
79
|
+
throw new Error('No signer available for transaction');
|
|
80
|
+
}
|
|
81
|
+
const contractInterface = contract.interface;
|
|
82
|
+
// Determine which overload to use based on arguments
|
|
83
|
+
let functionName;
|
|
84
|
+
let callArgs;
|
|
85
|
+
if (args.length === 0) {
|
|
86
|
+
// register() - no arguments
|
|
87
|
+
functionName = 'register()';
|
|
88
|
+
callArgs = [];
|
|
89
|
+
}
|
|
90
|
+
else if (args.length === 1 && typeof args[0] === 'string') {
|
|
91
|
+
// register(string tokenUri) - just tokenUri
|
|
92
|
+
functionName = 'register(string)';
|
|
93
|
+
callArgs = [args[0]];
|
|
94
|
+
}
|
|
95
|
+
else if (args.length === 2 && typeof args[0] === 'string' && Array.isArray(args[1])) {
|
|
96
|
+
// register(string tokenUri, tuple[] metadata) - tokenUri + metadata
|
|
97
|
+
functionName = 'register(string,(string,bytes)[])';
|
|
98
|
+
callArgs = [args[0], args[1]];
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
throw new Error(`Invalid arguments for register(). Expected: () | (string) | (string, tuple[]), got ${args.length} arguments`);
|
|
102
|
+
}
|
|
103
|
+
// Get the specific function fragment using the signature
|
|
104
|
+
const functionFragment = contractInterface.getFunction(functionName);
|
|
105
|
+
if (!functionFragment) {
|
|
106
|
+
throw new Error(`Function ${functionName} not found in contract ABI`);
|
|
107
|
+
}
|
|
108
|
+
// Encode function data to avoid ambiguity - this bypasses function resolution
|
|
109
|
+
const data = contractInterface.encodeFunctionData(functionFragment, callArgs);
|
|
110
|
+
// Send transaction directly with encoded data (no function call resolution needed)
|
|
111
|
+
const txResponse = await this.signer.sendTransaction({
|
|
112
|
+
to: contract.target,
|
|
113
|
+
data: data,
|
|
114
|
+
});
|
|
115
|
+
return txResponse.hash;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Wait for transaction to be mined
|
|
119
|
+
*/
|
|
120
|
+
async waitForTransaction(txHash, timeout = 60000) {
|
|
121
|
+
return (await this.provider.waitForTransaction(txHash, undefined, timeout));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get contract events
|
|
125
|
+
*/
|
|
126
|
+
async getEvents(contract, eventName, fromBlock = 0, toBlock) {
|
|
127
|
+
const filter = contract.filters[eventName]();
|
|
128
|
+
return await contract.queryFilter(filter, fromBlock, toBlock);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Encode feedback authorization data
|
|
132
|
+
*/
|
|
133
|
+
encodeFeedbackAuth(agentId, clientAddress, indexLimit, expiry, chainId, identityRegistry, signerAddress) {
|
|
134
|
+
return ethers.AbiCoder.defaultAbiCoder().encode(['uint256', 'address', 'uint64', 'uint256', 'uint256', 'address', 'address'], [agentId, clientAddress, indexLimit, expiry, chainId, identityRegistry, signerAddress]);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Sign a message with the account's private key
|
|
138
|
+
*/
|
|
139
|
+
async signMessage(message) {
|
|
140
|
+
if (!this.signer) {
|
|
141
|
+
throw new Error('No signer available');
|
|
142
|
+
}
|
|
143
|
+
return await this.signer.signMessage(message);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Recover address from message and signature
|
|
147
|
+
*/
|
|
148
|
+
recoverAddress(message, signature) {
|
|
149
|
+
return ethers.verifyMessage(message, signature);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Compute Keccak-256 hash
|
|
153
|
+
*/
|
|
154
|
+
keccak256(data) {
|
|
155
|
+
if (typeof data === 'string') {
|
|
156
|
+
return ethers.keccak256(ethers.toUtf8Bytes(data));
|
|
157
|
+
}
|
|
158
|
+
// For Uint8Array, convert to hex string first
|
|
159
|
+
return ethers.keccak256(ethers.hexlify(data));
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Convert address to checksum format
|
|
163
|
+
*/
|
|
164
|
+
toChecksumAddress(address) {
|
|
165
|
+
return ethers.getAddress(address);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Check if string is a valid Ethereum address
|
|
169
|
+
*/
|
|
170
|
+
isAddress(address) {
|
|
171
|
+
try {
|
|
172
|
+
return ethers.isAddress(address);
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get ETH balance of an address
|
|
180
|
+
*/
|
|
181
|
+
async getBalance(address) {
|
|
182
|
+
return await this.provider.getBalance(address);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Get transaction count (nonce) of an address
|
|
186
|
+
*/
|
|
187
|
+
async getTransactionCount(address) {
|
|
188
|
+
return await this.provider.getTransactionCount(address, 'pending');
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Get the account address (if signer is available)
|
|
192
|
+
*/
|
|
193
|
+
get address() {
|
|
194
|
+
return this.signer?.address;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=web3-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web3-client.js","sourceRoot":"","sources":["../../src/core/web3-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,MAA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D,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,IAAyB;QACjC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,8CAA8C;QAC9C,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,OAAe;QAC/B,OAAO,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAGD;;OAEG;IACH,SAAS,CAAC,OAAe;QACvB,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,OAAe;QAC9B,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CAAC,OAAe;QACvC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9B,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent0 TypeScript SDK
|
|
3
|
+
* Main entry point - exports public API
|
|
4
|
+
*/
|
|
5
|
+
export * from './models';
|
|
6
|
+
export * from './utils';
|
|
7
|
+
export { SDK } from './core/sdk';
|
|
8
|
+
export type { SDKConfig } from './core/sdk';
|
|
9
|
+
export { Agent } from './core/agent';
|
|
10
|
+
export { Web3Client } from './core/web3-client';
|
|
11
|
+
export type { TransactionOptions } from './core/web3-client';
|
|
12
|
+
export { IPFSClient } from './core/ipfs-client';
|
|
13
|
+
export type { IPFSClientConfig } from './core/ipfs-client';
|
|
14
|
+
export { SubgraphClient } from './core/subgraph-client';
|
|
15
|
+
export { FeedbackManager } from './core/feedback-manager';
|
|
16
|
+
export { EndpointCrawler } from './core/endpoint-crawler';
|
|
17
|
+
export type { McpCapabilities, A2aCapabilities } from './core/endpoint-crawler';
|
|
18
|
+
export { AgentIndexer } from './core/indexer';
|
|
19
|
+
export * from './core/contracts';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent0 TypeScript SDK
|
|
3
|
+
* Main entry point - exports public API
|
|
4
|
+
*/
|
|
5
|
+
// Export models
|
|
6
|
+
export * from './models';
|
|
7
|
+
// Export utilities
|
|
8
|
+
export * from './utils';
|
|
9
|
+
// Export core classes
|
|
10
|
+
export { SDK } from './core/sdk';
|
|
11
|
+
export { Agent } from './core/agent';
|
|
12
|
+
export { Web3Client } from './core/web3-client';
|
|
13
|
+
export { IPFSClient } from './core/ipfs-client';
|
|
14
|
+
export { SubgraphClient } from './core/subgraph-client';
|
|
15
|
+
export { FeedbackManager } from './core/feedback-manager';
|
|
16
|
+
export { EndpointCrawler } from './core/endpoint-crawler';
|
|
17
|
+
export { AgentIndexer } from './core/indexer';
|
|
18
|
+
// Export contract definitions
|
|
19
|
+
export * from './core/contracts';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gBAAgB;AAChB,cAAc,UAAU,CAAC;AAEzB,mBAAmB;AACnB,cAAc,SAAS,CAAC;AAExB,sBAAsB;AACtB,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,8BAA8B;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enums for Agent0 SDK
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Types of endpoints that agents can advertise
|
|
6
|
+
*/
|
|
7
|
+
export declare enum EndpointType {
|
|
8
|
+
MCP = "MCP",
|
|
9
|
+
A2A = "A2A",
|
|
10
|
+
ENS = "ENS",
|
|
11
|
+
DID = "DID",
|
|
12
|
+
WALLET = "wallet"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Trust models supported by the SDK
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TrustModel {
|
|
18
|
+
REPUTATION = "reputation",
|
|
19
|
+
CRYPTO_ECONOMIC = "crypto-economic",
|
|
20
|
+
TEE_ATTESTATION = "tee-attestation"
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/models/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,UAAU;IACpB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;CACpC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enums for Agent0 SDK
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Types of endpoints that agents can advertise
|
|
6
|
+
*/
|
|
7
|
+
export var EndpointType;
|
|
8
|
+
(function (EndpointType) {
|
|
9
|
+
EndpointType["MCP"] = "MCP";
|
|
10
|
+
EndpointType["A2A"] = "A2A";
|
|
11
|
+
EndpointType["ENS"] = "ENS";
|
|
12
|
+
EndpointType["DID"] = "DID";
|
|
13
|
+
EndpointType["WALLET"] = "wallet";
|
|
14
|
+
})(EndpointType || (EndpointType = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Trust models supported by the SDK
|
|
17
|
+
*/
|
|
18
|
+
export var TrustModel;
|
|
19
|
+
(function (TrustModel) {
|
|
20
|
+
TrustModel["REPUTATION"] = "reputation";
|
|
21
|
+
TrustModel["CRYPTO_ECONOMIC"] = "crypto-economic";
|
|
22
|
+
TrustModel["TEE_ATTESTATION"] = "tee-attestation";
|
|
23
|
+
})(TrustModel || (TrustModel = {}));
|
|
24
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/models/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,iCAAiB,CAAA;AACnB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,iDAAmC,CAAA;IACnC,iDAAmC,CAAA;AACrC,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
BigDecimal: {
|
|
45
|
+
input: number;
|
|
46
|
+
output: number;
|
|
47
|
+
};
|
|
48
|
+
BigInt: {
|
|
49
|
+
input: bigint;
|
|
50
|
+
output: bigint;
|
|
51
|
+
};
|
|
52
|
+
Bytes: {
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type Agent = {
|
|
58
|
+
__typename?: 'Agent';
|
|
59
|
+
agentId: Scalars['BigInt']['output'];
|
|
60
|
+
agentURI?: Maybe<Scalars['String']['output']>;
|
|
61
|
+
agentURIType?: Maybe<Scalars['String']['output']>;
|
|
62
|
+
chainId: Scalars['BigInt']['output'];
|
|
63
|
+
createdAt: Scalars['BigInt']['output'];
|
|
64
|
+
feedback: Array<Feedback>;
|
|
65
|
+
id: Scalars['ID']['output'];
|
|
66
|
+
lastActivity: Scalars['BigInt']['output'];
|
|
67
|
+
metadata: Array<AgentMetadata>;
|
|
68
|
+
operators: Array<Scalars['Bytes']['output']>;
|
|
69
|
+
owner: Scalars['Bytes']['output'];
|
|
70
|
+
registrationFile?: Maybe<AgentRegistrationFile>;
|
|
71
|
+
totalFeedback: Scalars['BigInt']['output'];
|
|
72
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
73
|
+
validations: Array<Validation>;
|
|
74
|
+
};
|
|
75
|
+
export type AgentMetadata = {
|
|
76
|
+
__typename?: 'AgentMetadata';
|
|
77
|
+
agent: Agent;
|
|
78
|
+
id: Scalars['ID']['output'];
|
|
79
|
+
key: Scalars['String']['output'];
|
|
80
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
81
|
+
value: Scalars['Bytes']['output'];
|
|
82
|
+
};
|
|
83
|
+
export type AgentRegistrationFile = {
|
|
84
|
+
__typename?: 'AgentRegistrationFile';
|
|
85
|
+
a2aEndpoint?: Maybe<Scalars['String']['output']>;
|
|
86
|
+
a2aSkills: Array<Scalars['String']['output']>;
|
|
87
|
+
a2aVersion?: Maybe<Scalars['String']['output']>;
|
|
88
|
+
active?: Maybe<Scalars['Boolean']['output']>;
|
|
89
|
+
agentId: Scalars['String']['output'];
|
|
90
|
+
agentWallet?: Maybe<Scalars['Bytes']['output']>;
|
|
91
|
+
agentWalletChainId?: Maybe<Scalars['BigInt']['output']>;
|
|
92
|
+
cid: Scalars['String']['output'];
|
|
93
|
+
createdAt: Scalars['BigInt']['output'];
|
|
94
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
95
|
+
did?: Maybe<Scalars['String']['output']>;
|
|
96
|
+
ens?: Maybe<Scalars['String']['output']>;
|
|
97
|
+
id: Scalars['ID']['output'];
|
|
98
|
+
image?: Maybe<Scalars['String']['output']>;
|
|
99
|
+
mcpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
100
|
+
mcpPrompts: Array<Scalars['String']['output']>;
|
|
101
|
+
mcpResources: Array<Scalars['String']['output']>;
|
|
102
|
+
mcpTools: Array<Scalars['String']['output']>;
|
|
103
|
+
mcpVersion?: Maybe<Scalars['String']['output']>;
|
|
104
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
105
|
+
supportedTrusts: Array<Scalars['String']['output']>;
|
|
106
|
+
x402support?: Maybe<Scalars['Boolean']['output']>;
|
|
107
|
+
};
|
|
108
|
+
export type AgentStats = {
|
|
109
|
+
__typename?: 'AgentStats';
|
|
110
|
+
agent: Agent;
|
|
111
|
+
averageScore: Scalars['BigDecimal']['output'];
|
|
112
|
+
averageValidationScore: Scalars['BigDecimal']['output'];
|
|
113
|
+
completedValidations: Scalars['BigInt']['output'];
|
|
114
|
+
id: Scalars['ID']['output'];
|
|
115
|
+
lastActivity: Scalars['BigInt']['output'];
|
|
116
|
+
scoreDistribution: Array<Scalars['Int']['output']>;
|
|
117
|
+
totalFeedback: Scalars['BigInt']['output'];
|
|
118
|
+
totalValidations: Scalars['BigInt']['output'];
|
|
119
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
120
|
+
};
|
|
121
|
+
export type Feedback = {
|
|
122
|
+
__typename?: 'Feedback';
|
|
123
|
+
agent: Agent;
|
|
124
|
+
clientAddress: Scalars['Bytes']['output'];
|
|
125
|
+
createdAt: Scalars['BigInt']['output'];
|
|
126
|
+
feedbackFile?: Maybe<FeedbackFile>;
|
|
127
|
+
feedbackHash?: Maybe<Scalars['Bytes']['output']>;
|
|
128
|
+
feedbackURIType?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
feedbackUri?: Maybe<Scalars['String']['output']>;
|
|
130
|
+
id: Scalars['ID']['output'];
|
|
131
|
+
isRevoked: Scalars['Boolean']['output'];
|
|
132
|
+
responses: Array<FeedbackResponse>;
|
|
133
|
+
revokedAt?: Maybe<Scalars['BigInt']['output']>;
|
|
134
|
+
score: Scalars['Int']['output'];
|
|
135
|
+
tag1?: Maybe<Scalars['String']['output']>;
|
|
136
|
+
tag2?: Maybe<Scalars['String']['output']>;
|
|
137
|
+
};
|
|
138
|
+
export type FeedbackFile = {
|
|
139
|
+
__typename?: 'FeedbackFile';
|
|
140
|
+
capability?: Maybe<Scalars['String']['output']>;
|
|
141
|
+
cid: Scalars['String']['output'];
|
|
142
|
+
context?: Maybe<Scalars['String']['output']>;
|
|
143
|
+
createdAt: Scalars['BigInt']['output'];
|
|
144
|
+
feedbackId: Scalars['String']['output'];
|
|
145
|
+
id: Scalars['ID']['output'];
|
|
146
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
147
|
+
proofOfPaymentChainId?: Maybe<Scalars['String']['output']>;
|
|
148
|
+
proofOfPaymentFromAddress?: Maybe<Scalars['String']['output']>;
|
|
149
|
+
proofOfPaymentToAddress?: Maybe<Scalars['String']['output']>;
|
|
150
|
+
proofOfPaymentTxHash?: Maybe<Scalars['String']['output']>;
|
|
151
|
+
skill?: Maybe<Scalars['String']['output']>;
|
|
152
|
+
tag1?: Maybe<Scalars['String']['output']>;
|
|
153
|
+
tag2?: Maybe<Scalars['String']['output']>;
|
|
154
|
+
task?: Maybe<Scalars['String']['output']>;
|
|
155
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
156
|
+
};
|
|
157
|
+
export type FeedbackResponse = {
|
|
158
|
+
__typename?: 'FeedbackResponse';
|
|
159
|
+
createdAt: Scalars['BigInt']['output'];
|
|
160
|
+
feedback: Feedback;
|
|
161
|
+
id: Scalars['ID']['output'];
|
|
162
|
+
responder: Scalars['Bytes']['output'];
|
|
163
|
+
responseHash?: Maybe<Scalars['Bytes']['output']>;
|
|
164
|
+
responseUri?: Maybe<Scalars['String']['output']>;
|
|
165
|
+
};
|
|
166
|
+
export type GlobalStats = {
|
|
167
|
+
__typename?: 'GlobalStats';
|
|
168
|
+
agents: Array<Agent>;
|
|
169
|
+
id: Scalars['ID']['output'];
|
|
170
|
+
tags: Array<Scalars['String']['output']>;
|
|
171
|
+
totalAgents: Scalars['BigInt']['output'];
|
|
172
|
+
totalFeedback: Scalars['BigInt']['output'];
|
|
173
|
+
totalProtocols: Scalars['BigInt']['output'];
|
|
174
|
+
totalValidations: Scalars['BigInt']['output'];
|
|
175
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
176
|
+
};
|
|
177
|
+
export type Protocol = {
|
|
178
|
+
__typename?: 'Protocol';
|
|
179
|
+
agents: Array<Agent>;
|
|
180
|
+
chainId: Scalars['BigInt']['output'];
|
|
181
|
+
id: Scalars['ID']['output'];
|
|
182
|
+
identityRegistry: Scalars['Bytes']['output'];
|
|
183
|
+
name: Scalars['String']['output'];
|
|
184
|
+
reputationRegistry: Scalars['Bytes']['output'];
|
|
185
|
+
tags: Array<Scalars['String']['output']>;
|
|
186
|
+
totalAgents: Scalars['BigInt']['output'];
|
|
187
|
+
totalFeedback: Scalars['BigInt']['output'];
|
|
188
|
+
totalValidations: Scalars['BigInt']['output'];
|
|
189
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
190
|
+
validationRegistry: Scalars['Bytes']['output'];
|
|
191
|
+
};
|
|
192
|
+
export type Validation = {
|
|
193
|
+
__typename?: 'Validation';
|
|
194
|
+
agent: Agent;
|
|
195
|
+
createdAt: Scalars['BigInt']['output'];
|
|
196
|
+
id: Scalars['ID']['output'];
|
|
197
|
+
requestHash: Scalars['Bytes']['output'];
|
|
198
|
+
requestUri?: Maybe<Scalars['String']['output']>;
|
|
199
|
+
response?: Maybe<Scalars['Int']['output']>;
|
|
200
|
+
responseHash?: Maybe<Scalars['Bytes']['output']>;
|
|
201
|
+
responseUri?: Maybe<Scalars['String']['output']>;
|
|
202
|
+
status: ValidationStatus;
|
|
203
|
+
tag?: Maybe<Scalars['String']['output']>;
|
|
204
|
+
updatedAt: Scalars['BigInt']['output'];
|
|
205
|
+
validatorAddress: Scalars['Bytes']['output'];
|
|
206
|
+
};
|
|
207
|
+
export type ValidationStatus = 'COMPLETED' | 'EXPIRED' | 'PENDING';
|
|
208
|
+
//# sourceMappingURL=subgraph-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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