@cascade-fyi/sati-sdk 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/index.cjs +58 -35
- package/dist/index.d.cts +22 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +22 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +58 -37
- package/dist/index.mjs.map +1 -1
- package/idl.json +17 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,16 +5,39 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.11.0] - 2026-02-20
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Migrated to Light Protocol V2 batched trees** - all compressed attestation operations now use V2 state and address trees with lower rollover fees
|
|
13
|
+
- Updated deployed configs for all networks (localnet, devnet, mainnet) with new lookup tables and reputation score schema addresses
|
|
14
|
+
- Requires `@cascade-fyi/compression-kit` >= 0.3.0
|
|
15
|
+
|
|
16
|
+
## [0.10.1] - 2026-02-17
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **`listAllAgents` input validation** - offset and limit are now clamped to non-negative integers, preventing `BigInt` errors on fractional inputs and out-of-range member numbers on negative offsets
|
|
21
|
+
- **`searchValidations` duplicate slot fetch** - eliminated redundant `getSlot` RPC call; now fetches slot once with graceful failure handling (consistent with `listValidations`)
|
|
22
|
+
- **`isSatiAgentRegistry` false positives** - now verifies the registry address matches the SATI program ID, not just the Solana chain prefix
|
|
23
|
+
|
|
8
24
|
## [0.10.0] - 2026-02-17
|
|
9
25
|
|
|
10
26
|
### Breaking Changes
|
|
11
27
|
|
|
28
|
+
- **`Endpoint` renamed to `ServiceDefinition`** - deprecated `Endpoint` re-export kept for backward compatibility
|
|
29
|
+
- **`setEndpoint`/`removeEndpoint` renamed** to `setService`/`removeService` on `AgentBuilder`
|
|
12
30
|
- **`listAllAgents` return type changed** from `AgentIdentity[]` to `{ agents: AgentIdentity[]; totalAgents: bigint }` - callers must destructure
|
|
13
31
|
- **`listAllAgents` offset changed** from 1-based `bigint` to 0-based `number` for simpler pagination
|
|
14
32
|
- **`AgentSearchOptions.offset` changed** from `bigint` to `number`
|
|
15
33
|
|
|
16
34
|
### Added
|
|
17
35
|
|
|
36
|
+
- **ERC-8004 validation and parsing** - exported Zod schemas (`RegistrationFileSchema`, `ServiceDefinitionSchema`, etc.), `validateRegistrationFile()`, `parseRegistrationFile()`, `normalizeRegistrationFile()`
|
|
37
|
+
- **CAIP validation helpers** - `isValidAgentRegistry()`, `isSatiAgentRegistry()`
|
|
38
|
+
- **`buildSatiRegistrationEntry()`** - network-aware helper with devnet support
|
|
39
|
+
- **`ERC8004_TYPE`, `VALID_TRUST_MODELS`, `SATI_CHAIN_IDS` constants**
|
|
40
|
+
- **Strict mode for `fetchRegistrationFile()`** - validates against ERC-8004 schema when `strict: true`
|
|
18
41
|
- **Approximate `createdAt` timestamps** on `ParsedAttestation`, `ParsedFeedbackAttestation`, and `ParsedValidationAttestation` - derived from slot numbers, no more manual slot-to-time conversion needed
|
|
19
42
|
- **`listAllAgents` order parameter** - `"newest"` (default) or `"oldest"` sort order
|
|
20
43
|
- **`buildFeedbackContent()` helper** - builds typed ERC-8004 feedback content bytes from friendly params
|
|
@@ -191,6 +214,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
191
214
|
- Compressed attestation storage via Light Protocol
|
|
192
215
|
- Basic querying via Photon RPC
|
|
193
216
|
|
|
217
|
+
[0.11.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.10.1...@cascade-fyi/sati-sdk@0.11.0
|
|
218
|
+
[0.10.1]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.10.0...@cascade-fyi/sati-sdk@0.10.1
|
|
194
219
|
[0.10.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.9.0...@cascade-fyi/sati-sdk@0.10.0
|
|
195
220
|
[0.9.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.8.0...@cascade-fyi/sati-sdk@0.9.0
|
|
196
221
|
[0.8.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.7.0...@cascade-fyi/sati-sdk@0.8.0
|
package/dist/index.cjs
CHANGED
|
@@ -2772,6 +2772,10 @@ const SATI_ERROR__SECP256K1_RECOVERY_FAILED = 6047;
|
|
|
2772
2772
|
const SATI_ERROR__EVM_ADDRESS_MISMATCH = 6048;
|
|
2773
2773
|
/** InvalidEvmAddressRecovery: Failed to extract EVM address from secp256k1 key recovery */
|
|
2774
2774
|
const SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY = 6049;
|
|
2775
|
+
/** InvalidAddressTreeInfo: Invalid address tree info for V2 (address tree and queue indexes must match) */
|
|
2776
|
+
const SATI_ERROR__INVALID_ADDRESS_TREE_INFO = 6050;
|
|
2777
|
+
/** InvalidOutputStateTreeIndex: Invalid output state tree index for V2 */
|
|
2778
|
+
const SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX = 6051;
|
|
2775
2779
|
let satiErrorMessages;
|
|
2776
2780
|
if (process.env.NODE_ENV !== "production") satiErrorMessages = {
|
|
2777
2781
|
[SATI_ERROR__AGENT_ATA_EMPTY]: `Agent ATA is empty - signer does not own the agent NFT`,
|
|
@@ -2793,6 +2797,7 @@ if (process.env.NODE_ENV !== "production") satiErrorMessages = {
|
|
|
2793
2797
|
[SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND]: `No Ed25519 instruction found in transaction`,
|
|
2794
2798
|
[SATI_ERROR__EVM_ADDRESS_MISMATCH]: `EVM address mismatch - recovered address does not match expected`,
|
|
2795
2799
|
[SATI_ERROR__IMMUTABLE_AUTHORITY]: `Authority is immutable (renounced)`,
|
|
2800
|
+
[SATI_ERROR__INVALID_ADDRESS_TREE_INFO]: `Invalid address tree info for V2 (address tree and queue indexes must match)`,
|
|
2796
2801
|
[SATI_ERROR__INVALID_AUTHORITY]: `Invalid authority`,
|
|
2797
2802
|
[SATI_ERROR__INVALID_CONTENT_TYPE]: `Invalid content type (must be 0-15)`,
|
|
2798
2803
|
[SATI_ERROR__INVALID_DELEGATION_P_D_A]: `Delegation attestation PDA doesn't match expected derivation`,
|
|
@@ -2801,6 +2806,7 @@ if (process.env.NODE_ENV !== "production") satiErrorMessages = {
|
|
|
2801
2806
|
[SATI_ERROR__INVALID_GROUP_MINT]: `Invalid group mint - must be owned by Token-2022 with TokenGroup extension`,
|
|
2802
2807
|
[SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR]: `Invalid instructions sysvar`,
|
|
2803
2808
|
[SATI_ERROR__INVALID_OUTCOME]: `Invalid outcome value (must be 0, 1, or 2)`,
|
|
2809
|
+
[SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX]: `Invalid output state tree index for V2`,
|
|
2804
2810
|
[SATI_ERROR__INVALID_SECP256K1_SIGNATURE]: `Invalid secp256k1 signature`,
|
|
2805
2811
|
[SATI_ERROR__INVALID_SIGNATURE]: `Invalid Ed25519 signature`,
|
|
2806
2812
|
[SATI_ERROR__INVALID_SIGNATURE_COUNT]: `Invalid signature count for signature mode`,
|
|
@@ -3648,17 +3654,17 @@ var SATILightClientImpl = class {
|
|
|
3648
3654
|
rpc;
|
|
3649
3655
|
programId;
|
|
3650
3656
|
constructor(photonRpcUrl, programId = SATI_PROGRAM_ADDRESS) {
|
|
3651
|
-
this.rpc = (0, __cascade_fyi_compression_kit.createPhotonRpc)(photonRpcUrl);
|
|
3657
|
+
this.rpc = (0, __cascade_fyi_compression_kit.createPhotonRpc)(photonRpcUrl, void 0, __cascade_fyi_compression_kit.VERSION.V2);
|
|
3652
3658
|
this.programId = programId;
|
|
3653
3659
|
}
|
|
3654
3660
|
getRpc() {
|
|
3655
3661
|
return this.rpc;
|
|
3656
3662
|
}
|
|
3657
3663
|
async deriveAttestationAddress(seeds) {
|
|
3658
|
-
const addressTree = __cascade_fyi_compression_kit.
|
|
3659
|
-
const addressQueue = __cascade_fyi_compression_kit.
|
|
3664
|
+
const addressTree = __cascade_fyi_compression_kit.BATCH_ADDRESS_TREE;
|
|
3665
|
+
const addressQueue = __cascade_fyi_compression_kit.BATCH_ADDRESS_TREE;
|
|
3660
3666
|
return {
|
|
3661
|
-
address: new SimplePublicKey((0, __cascade_fyi_compression_kit.
|
|
3667
|
+
address: new SimplePublicKey((0, __cascade_fyi_compression_kit.deriveAddressV2)((0, __cascade_fyi_compression_kit.deriveAddressSeedV2)(seeds), addressTree, this.programId)),
|
|
3662
3668
|
addressTree: new SimplePublicKey(addressTree),
|
|
3663
3669
|
addressQueue: new SimplePublicKey(addressQueue)
|
|
3664
3670
|
};
|
|
@@ -3695,16 +3701,16 @@ var SATILightClientImpl = class {
|
|
|
3695
3701
|
const proofResult = await this.rpc.getValidityProof([], [{
|
|
3696
3702
|
address: addressBN254,
|
|
3697
3703
|
addressTreeInfo: {
|
|
3698
|
-
tree: __cascade_fyi_compression_kit.
|
|
3699
|
-
queue: __cascade_fyi_compression_kit.
|
|
3700
|
-
treeType:
|
|
3704
|
+
tree: __cascade_fyi_compression_kit.BATCH_ADDRESS_TREE,
|
|
3705
|
+
queue: __cascade_fyi_compression_kit.BATCH_ADDRESS_TREE,
|
|
3706
|
+
treeType: __cascade_fyi_compression_kit.TreeType.AddressV2,
|
|
3701
3707
|
nextTreeInfo: null
|
|
3702
3708
|
}
|
|
3703
3709
|
}]);
|
|
3704
|
-
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.
|
|
3705
|
-
const addressTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.
|
|
3706
|
-
const addressQueueIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.
|
|
3707
|
-
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.
|
|
3710
|
+
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.newWithSystemAccountsV2((0, __cascade_fyi_compression_kit.createSystemAccountConfig)(this.programId));
|
|
3711
|
+
const addressTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.BATCH_ADDRESS_TREE);
|
|
3712
|
+
const addressQueueIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.BATCH_ADDRESS_TREE);
|
|
3713
|
+
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.BATCH_QUEUE_1);
|
|
3708
3714
|
const { remainingAccounts } = packedAccounts.toAccountMetas();
|
|
3709
3715
|
return {
|
|
3710
3716
|
proof: this.convertProof(proofResult),
|
|
@@ -3728,11 +3734,11 @@ var SATILightClientImpl = class {
|
|
|
3728
3734
|
hash: hashBN254,
|
|
3729
3735
|
stateTreeInfo: compressedAccount.treeInfo
|
|
3730
3736
|
}], []);
|
|
3731
|
-
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.
|
|
3737
|
+
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.newWithSystemAccountsV2((0, __cascade_fyi_compression_kit.createSystemAccountConfig)(this.programId));
|
|
3732
3738
|
const treeInfo = compressedAccount.treeInfo;
|
|
3733
3739
|
const merkleTreeIndex = packedAccounts.insertOrGet(treeInfo.tree);
|
|
3734
3740
|
const queueIndex = packedAccounts.insertOrGet(treeInfo.queue);
|
|
3735
|
-
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.
|
|
3741
|
+
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.BATCH_QUEUE_1);
|
|
3736
3742
|
const { remainingAccounts } = packedAccounts.toAccountMetas();
|
|
3737
3743
|
return {
|
|
3738
3744
|
proof: this.convertProof(proofResult),
|
|
@@ -3758,14 +3764,14 @@ var SATILightClientImpl = class {
|
|
|
3758
3764
|
addressTreeInfo: {
|
|
3759
3765
|
tree: addressTree.toBase58(),
|
|
3760
3766
|
queue: addressQueue.toBase58(),
|
|
3761
|
-
treeType:
|
|
3767
|
+
treeType: __cascade_fyi_compression_kit.TreeType.AddressV2,
|
|
3762
3768
|
nextTreeInfo: null
|
|
3763
3769
|
}
|
|
3764
3770
|
}]);
|
|
3765
|
-
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.
|
|
3771
|
+
const packedAccounts = await __cascade_fyi_compression_kit.PackedAccounts.newWithSystemAccountsV2((0, __cascade_fyi_compression_kit.createSystemAccountConfig)(this.programId));
|
|
3766
3772
|
const addressTreeIndex = packedAccounts.insertOrGet(addressTree.toBase58());
|
|
3767
3773
|
const addressQueueIndex = packedAccounts.insertOrGet(addressQueue.toBase58());
|
|
3768
|
-
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.
|
|
3774
|
+
const outputStateTreeIndex = packedAccounts.insertOrGet(__cascade_fyi_compression_kit.BATCH_QUEUE_1);
|
|
3769
3775
|
const { remainingAccounts } = packedAccounts.toAccountMetas();
|
|
3770
3776
|
return {
|
|
3771
3777
|
address: derivedAddress,
|
|
@@ -3833,12 +3839,11 @@ var SATILightClientImpl = class {
|
|
|
3833
3839
|
return [
|
|
3834
3840
|
__cascade_fyi_compression_kit.LIGHT_SYSTEM_PROGRAM,
|
|
3835
3841
|
__cascade_fyi_compression_kit.ACCOUNT_COMPRESSION_PROGRAM,
|
|
3836
|
-
__cascade_fyi_compression_kit.NOOP_PROGRAM,
|
|
3837
3842
|
__cascade_fyi_compression_kit.REGISTERED_PROGRAM_PDA,
|
|
3838
|
-
__cascade_fyi_compression_kit.
|
|
3839
|
-
__cascade_fyi_compression_kit.
|
|
3840
|
-
__cascade_fyi_compression_kit.
|
|
3841
|
-
__cascade_fyi_compression_kit.
|
|
3843
|
+
__cascade_fyi_compression_kit.BATCH_MERKLE_TREE_1,
|
|
3844
|
+
__cascade_fyi_compression_kit.BATCH_QUEUE_1,
|
|
3845
|
+
__cascade_fyi_compression_kit.BATCH_CPI_CONTEXT_1,
|
|
3846
|
+
__cascade_fyi_compression_kit.BATCH_ADDRESS_TREE,
|
|
3842
3847
|
cpiSigner,
|
|
3843
3848
|
compressionAuthority,
|
|
3844
3849
|
this.programId,
|
|
@@ -4782,7 +4787,7 @@ var config$1 = {
|
|
|
4782
4787
|
"reputationScore": "7MoXgvrFhMxmB84AfAtp8LGfC4sEXUHD6JCQJpfj2jTj",
|
|
4783
4788
|
"delegate": "93wrAiBtCWgfVzToT6kU4zkPSvZpWbKDG3XUQEEHXBrk"
|
|
4784
4789
|
},
|
|
4785
|
-
"lookupTable": "
|
|
4790
|
+
"lookupTable": "FPaC61oWrC6Xdydwus9pNoX7c2wSh95b5CEWEFZMLqc5"
|
|
4786
4791
|
};
|
|
4787
4792
|
|
|
4788
4793
|
//#endregion
|
|
@@ -4796,7 +4801,7 @@ var config = {
|
|
|
4796
4801
|
"reputationScore": "7MoXgvrFhMxmB84AfAtp8LGfC4sEXUHD6JCQJpfj2jTj",
|
|
4797
4802
|
"delegate": "93wrAiBtCWgfVzToT6kU4zkPSvZpWbKDG3XUQEEHXBrk"
|
|
4798
4803
|
},
|
|
4799
|
-
"lookupTable": "
|
|
4804
|
+
"lookupTable": "fDinDQsTpN7Momkv7AxKT9oSyQam8xG2UD7v6vHu8LJ"
|
|
4800
4805
|
};
|
|
4801
4806
|
|
|
4802
4807
|
//#endregion
|
|
@@ -5218,7 +5223,8 @@ function isValidAgentRegistry(registry) {
|
|
|
5218
5223
|
*/
|
|
5219
5224
|
function isSatiAgentRegistry(registry) {
|
|
5220
5225
|
if (!isValidAgentRegistry(registry)) return false;
|
|
5221
|
-
|
|
5226
|
+
if (!registry.startsWith(SATI_CHAIN_ID) && !registry.startsWith(SATI_CHAIN_ID_DEVNET)) return false;
|
|
5227
|
+
return registry.split(":")[2] === SATI_PROGRAM_ADDRESS;
|
|
5222
5228
|
}
|
|
5223
5229
|
|
|
5224
5230
|
//#endregion
|
|
@@ -5824,8 +5830,8 @@ var Sati = class {
|
|
|
5824
5830
|
* ```
|
|
5825
5831
|
*/
|
|
5826
5832
|
async listAllAgents(options) {
|
|
5827
|
-
const limit = options?.limit ?? 100;
|
|
5828
|
-
const offset = options?.offset ?? 0;
|
|
5833
|
+
const limit = Math.max(1, Math.floor(options?.limit ?? 100));
|
|
5834
|
+
const offset = Math.max(0, Math.floor(options?.offset ?? 0));
|
|
5829
5835
|
const order = options?.order ?? "newest";
|
|
5830
5836
|
const total = (await this.getRegistryStats()).totalAgents;
|
|
5831
5837
|
if (total === 0n || BigInt(offset) >= total) return {
|
|
@@ -6520,20 +6526,36 @@ var Sati = class {
|
|
|
6520
6526
|
return { signature: await this.buildAndSendTransaction([closeIx], payer) };
|
|
6521
6527
|
}
|
|
6522
6528
|
/**
|
|
6523
|
-
* List Feedback attestations with pagination
|
|
6529
|
+
* List Feedback attestations with pagination.
|
|
6530
|
+
*
|
|
6531
|
+
* @param filter.sasSchema - SAS schema address. Defaults to the deployed feedback schema
|
|
6532
|
+
* when Sati was initialized with a deployed config. Throws if neither is available.
|
|
6524
6533
|
*/
|
|
6525
6534
|
async listFeedbacks(filter) {
|
|
6535
|
+
const sasSchema = filter.sasSchema ?? this.feedbackSchema;
|
|
6536
|
+
if (!sasSchema) throw new Error("sasSchema is required: provide it in the filter or initialize Sati with a deployed config");
|
|
6526
6537
|
const light = this.getLightClient();
|
|
6527
6538
|
const currentSlot = await this.fetchCurrentSlot();
|
|
6528
|
-
return light.listFeedbacks(
|
|
6539
|
+
return light.listFeedbacks({
|
|
6540
|
+
...filter,
|
|
6541
|
+
sasSchema
|
|
6542
|
+
}, currentSlot);
|
|
6529
6543
|
}
|
|
6530
6544
|
/**
|
|
6531
|
-
* List Validation attestations with pagination
|
|
6545
|
+
* List Validation attestations with pagination.
|
|
6546
|
+
*
|
|
6547
|
+
* @param filter.sasSchema - SAS schema address. Defaults to the deployed validation schema
|
|
6548
|
+
* when Sati was initialized with a deployed config. Throws if neither is available.
|
|
6532
6549
|
*/
|
|
6533
6550
|
async listValidations(filter) {
|
|
6551
|
+
const sasSchema = filter.sasSchema ?? this.validationSchema;
|
|
6552
|
+
if (!sasSchema) throw new Error("sasSchema is required: provide it in the filter or initialize Sati with a deployed config");
|
|
6534
6553
|
const light = this.getLightClient();
|
|
6535
6554
|
const currentSlot = await this.fetchCurrentSlot();
|
|
6536
|
-
return light.listValidations(
|
|
6555
|
+
return light.listValidations({
|
|
6556
|
+
...filter,
|
|
6557
|
+
sasSchema
|
|
6558
|
+
}, currentSlot);
|
|
6537
6559
|
}
|
|
6538
6560
|
/**
|
|
6539
6561
|
* Get a ReputationScoreV3 for an agent from a specific provider
|
|
@@ -7019,15 +7041,14 @@ var Sati = class {
|
|
|
7019
7041
|
async searchValidations(agentMint) {
|
|
7020
7042
|
const validationSchema = this._deployedConfig?.schemas.validation;
|
|
7021
7043
|
if (!validationSchema) throw new Error(`No validation schema deployed for network "${this.network}"`);
|
|
7022
|
-
const
|
|
7044
|
+
const currentSlot = await this.fetchCurrentSlot();
|
|
7045
|
+
const result = await this.getLightClient().listValidations({
|
|
7023
7046
|
sasSchema: validationSchema,
|
|
7024
7047
|
agentMint
|
|
7025
|
-
});
|
|
7026
|
-
const currentSlot = await this.rpc.getSlot({ commitment: "confirmed" }).send();
|
|
7048
|
+
}, currentSlot);
|
|
7027
7049
|
const nowSec = Math.floor(Date.now() / 1e3);
|
|
7028
7050
|
return result.items.map((item) => {
|
|
7029
|
-
const
|
|
7030
|
-
const createdAt = nowSec - Math.floor(slotDiff * .4);
|
|
7051
|
+
const createdAt = currentSlot != null ? nowSec - Math.floor(Number(currentSlot - item.raw.slotCreated) * .4) : void 0;
|
|
7031
7052
|
const [compressedAddress] = (0, __solana_kit.getAddressDecoder)().read(item.address, 0);
|
|
7032
7053
|
return {
|
|
7033
7054
|
compressedAddress,
|
|
@@ -7377,6 +7398,7 @@ exports.SATI_ERROR__DUPLICATE_SIGNERS = SATI_ERROR__DUPLICATE_SIGNERS;
|
|
|
7377
7398
|
exports.SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND = SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND;
|
|
7378
7399
|
exports.SATI_ERROR__EVM_ADDRESS_MISMATCH = SATI_ERROR__EVM_ADDRESS_MISMATCH;
|
|
7379
7400
|
exports.SATI_ERROR__IMMUTABLE_AUTHORITY = SATI_ERROR__IMMUTABLE_AUTHORITY;
|
|
7401
|
+
exports.SATI_ERROR__INVALID_ADDRESS_TREE_INFO = SATI_ERROR__INVALID_ADDRESS_TREE_INFO;
|
|
7380
7402
|
exports.SATI_ERROR__INVALID_AUTHORITY = SATI_ERROR__INVALID_AUTHORITY;
|
|
7381
7403
|
exports.SATI_ERROR__INVALID_CONTENT_TYPE = SATI_ERROR__INVALID_CONTENT_TYPE;
|
|
7382
7404
|
exports.SATI_ERROR__INVALID_DELEGATION_P_D_A = SATI_ERROR__INVALID_DELEGATION_P_D_A;
|
|
@@ -7385,6 +7407,7 @@ exports.SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY = SATI_ERROR__INVALID_EVM_ADDRE
|
|
|
7385
7407
|
exports.SATI_ERROR__INVALID_GROUP_MINT = SATI_ERROR__INVALID_GROUP_MINT;
|
|
7386
7408
|
exports.SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR = SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR;
|
|
7387
7409
|
exports.SATI_ERROR__INVALID_OUTCOME = SATI_ERROR__INVALID_OUTCOME;
|
|
7410
|
+
exports.SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX = SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX;
|
|
7388
7411
|
exports.SATI_ERROR__INVALID_SECP256K1_SIGNATURE = SATI_ERROR__INVALID_SECP256K1_SIGNATURE;
|
|
7389
7412
|
exports.SATI_ERROR__INVALID_SIGNATURE = SATI_ERROR__INVALID_SIGNATURE;
|
|
7390
7413
|
exports.SATI_ERROR__INVALID_SIGNATURE_COUNT = SATI_ERROR__INVALID_SIGNATURE_COUNT;
|
package/dist/index.d.cts
CHANGED
|
@@ -216,6 +216,10 @@ declare function getMetadataEntryDecoder(): Decoder<MetadataEntry>;
|
|
|
216
216
|
declare function getMetadataEntryCodec(): Codec<MetadataEntryArgs, MetadataEntry>;
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region src/generated/types/packedAddressTreeInfo.d.ts
|
|
219
|
+
/**
|
|
220
|
+
* Packed address tree info for instruction data.
|
|
221
|
+
* Contains indices to address tree accounts and root index.
|
|
222
|
+
*/
|
|
219
223
|
type PackedAddressTreeInfo$1 = {
|
|
220
224
|
addressMerkleTreePubkeyIndex: number;
|
|
221
225
|
addressQueuePubkeyIndex: number;
|
|
@@ -484,7 +488,11 @@ declare const SATI_ERROR__SECP256K1_RECOVERY_FAILED = 6047;
|
|
|
484
488
|
declare const SATI_ERROR__EVM_ADDRESS_MISMATCH = 6048;
|
|
485
489
|
/** InvalidEvmAddressRecovery: Failed to extract EVM address from secp256k1 key recovery */
|
|
486
490
|
declare const SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY = 6049;
|
|
487
|
-
|
|
491
|
+
/** InvalidAddressTreeInfo: Invalid address tree info for V2 (address tree and queue indexes must match) */
|
|
492
|
+
declare const SATI_ERROR__INVALID_ADDRESS_TREE_INFO = 6050;
|
|
493
|
+
/** InvalidOutputStateTreeIndex: Invalid output state tree index for V2 */
|
|
494
|
+
declare const SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX = 6051;
|
|
495
|
+
type SatiError$1 = typeof SATI_ERROR__AGENT_ATA_EMPTY | typeof SATI_ERROR__AGENT_ATA_MINT_MISMATCH | typeof SATI_ERROR__AGENT_ATA_REQUIRED | typeof SATI_ERROR__AGENT_MINT_ACCOUNT_MISMATCH | typeof SATI_ERROR__AGENT_MINT_MISMATCH | typeof SATI_ERROR__AGENT_SIGNATURE_NOT_FOUND | typeof SATI_ERROR__ATTESTATION_DATA_TOO_LARGE | typeof SATI_ERROR__ATTESTATION_DATA_TOO_SMALL | typeof SATI_ERROR__ATTESTATION_NOT_CLOSEABLE | typeof SATI_ERROR__CONTENT_TOO_LARGE | typeof SATI_ERROR__COUNTERPARTY_SIGNATURE_NOT_FOUND | typeof SATI_ERROR__DELEGATE_MISMATCH | typeof SATI_ERROR__DELEGATION_ATTESTATION_REQUIRED | typeof SATI_ERROR__DELEGATION_EXPIRED | typeof SATI_ERROR__DELEGATION_OWNER_MISMATCH | typeof SATI_ERROR__DUPLICATE_SIGNERS | typeof SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND | typeof SATI_ERROR__EVM_ADDRESS_MISMATCH | typeof SATI_ERROR__IMMUTABLE_AUTHORITY | typeof SATI_ERROR__INVALID_ADDRESS_TREE_INFO | typeof SATI_ERROR__INVALID_AUTHORITY | typeof SATI_ERROR__INVALID_CONTENT_TYPE | typeof SATI_ERROR__INVALID_DELEGATION_P_D_A | typeof SATI_ERROR__INVALID_ED25519_INSTRUCTION | typeof SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY | typeof SATI_ERROR__INVALID_GROUP_MINT | typeof SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR | typeof SATI_ERROR__INVALID_OUTCOME | typeof SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX | typeof SATI_ERROR__INVALID_SECP256K1_SIGNATURE | typeof SATI_ERROR__INVALID_SIGNATURE | typeof SATI_ERROR__INVALID_SIGNATURE_COUNT | typeof SATI_ERROR__LIGHT_CPI_INVOCATION_FAILED | typeof SATI_ERROR__MESSAGE_MISMATCH | typeof SATI_ERROR__METADATA_KEY_TOO_LONG | typeof SATI_ERROR__METADATA_VALUE_TOO_LONG | typeof SATI_ERROR__MINT_AUTHORITY_NOT_RENOUNCED | typeof SATI_ERROR__MISSING_SIGNATURES | typeof SATI_ERROR__NAME_TOO_LONG | typeof SATI_ERROR__OVERFLOW | typeof SATI_ERROR__OWNER_ONLY | typeof SATI_ERROR__SCHEMA_CONFIG_NOT_FOUND | typeof SATI_ERROR__SECP256K1_RECOVERY_FAILED | typeof SATI_ERROR__SELF_ATTESTATION_NOT_ALLOWED | typeof SATI_ERROR__SIGNATURE_MISMATCH | typeof SATI_ERROR__STORAGE_TYPE_MISMATCH | typeof SATI_ERROR__STORAGE_TYPE_NOT_SUPPORTED | typeof SATI_ERROR__SYMBOL_TOO_LONG | typeof SATI_ERROR__TOO_MANY_METADATA_ENTRIES | typeof SATI_ERROR__UNAUTHORIZED_CLOSE | typeof SATI_ERROR__UNSUPPORTED_LAYOUT_VERSION | typeof SATI_ERROR__URI_TOO_LONG;
|
|
488
496
|
declare function getSatiErrorMessage(code: SatiError$1): string;
|
|
489
497
|
declare function isSatiError<TProgramErrorCode extends SatiError$1>(error: unknown, transactionMessage: {
|
|
490
498
|
instructions: Record<number, {
|
|
@@ -3787,8 +3795,8 @@ interface ParsedValidation {
|
|
|
3787
3795
|
counterparty: Address$1;
|
|
3788
3796
|
/** Validation outcome */
|
|
3789
3797
|
outcome: Outcome;
|
|
3790
|
-
/** Approximate creation timestamp (Unix seconds) */
|
|
3791
|
-
createdAt
|
|
3798
|
+
/** Approximate creation timestamp (Unix seconds), undefined if slot unavailable */
|
|
3799
|
+
createdAt?: number;
|
|
3792
3800
|
}
|
|
3793
3801
|
//#endregion
|
|
3794
3802
|
//#region src/client.d.ts
|
|
@@ -4375,13 +4383,19 @@ declare class Sati {
|
|
|
4375
4383
|
*/
|
|
4376
4384
|
closeRegularAttestation(params: CloseRegularAttestationParams): Promise<CloseAttestationResult>;
|
|
4377
4385
|
/**
|
|
4378
|
-
* List Feedback attestations with pagination
|
|
4386
|
+
* List Feedback attestations with pagination.
|
|
4387
|
+
*
|
|
4388
|
+
* @param filter.sasSchema - SAS schema address. Defaults to the deployed feedback schema
|
|
4389
|
+
* when Sati was initialized with a deployed config. Throws if neither is available.
|
|
4379
4390
|
*/
|
|
4380
|
-
listFeedbacks(filter:
|
|
4391
|
+
listFeedbacks(filter: AttestationFilter): Promise<PaginatedAttestations<ParsedFeedbackAttestation>>;
|
|
4381
4392
|
/**
|
|
4382
|
-
* List Validation attestations with pagination
|
|
4393
|
+
* List Validation attestations with pagination.
|
|
4394
|
+
*
|
|
4395
|
+
* @param filter.sasSchema - SAS schema address. Defaults to the deployed validation schema
|
|
4396
|
+
* when Sati was initialized with a deployed config. Throws if neither is available.
|
|
4383
4397
|
*/
|
|
4384
|
-
listValidations(filter:
|
|
4398
|
+
listValidations(filter: AttestationFilter): Promise<PaginatedAttestations<ParsedValidationAttestation>>;
|
|
4385
4399
|
/**
|
|
4386
4400
|
* Get a ReputationScoreV3 for an agent from a specific provider
|
|
4387
4401
|
*/
|
|
@@ -4679,5 +4693,5 @@ declare function networkErrorMessage(): string;
|
|
|
4679
4693
|
declare function transactionExpiredMessage(): string;
|
|
4680
4694
|
declare function transactionFailedMessage(detail?: string): string;
|
|
4681
4695
|
//#endregion
|
|
4682
|
-
export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, type AgentSearchOptions, type AgentSearchResult, AttestationClosed, AttestationClosedArgs, AttestationCreated, AttestationCreatedArgs, type AttestationFilter, type AttestationResult, AttestationWithProof, BASE_OFFSETS, type BaseLayout, type BuildFeedbackParams, type BuiltTransaction, CLOSE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CLOSE_REGULAR_ATTESTATION_DISCRIMINATOR, COMPRESSED_OFFSETS, CREATE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CREATE_REGULAR_ATTESTATION_DISCRIMINATOR, CREDENTIAL_SEED, CloseAttestationResult, CloseCompressedAttestationAsyncInput, CloseCompressedAttestationInput, CloseCompressedAttestationInstruction, CloseCompressedAttestationInstructionData, CloseCompressedAttestationInstructionDataArgs, CloseCompressedAttestationParams, CloseRegularAttestationAsyncInput, CloseRegularAttestationInput, CloseRegularAttestationInstruction, CloseRegularAttestationInstructionData, CloseRegularAttestationInstructionDataArgs, CloseRegularAttestationParams, CompressedAccountMeta, CompressedAccountMetaArgs, type CompressedAttestation, CompressedProof, CompressedProofArgs, type ContentSizeValidationOptions, type ContentSizeValidationResult, ContentType, CounterpartyMessageParams, CreateCompressedAttestationAsyncInput, CreateCompressedAttestationInput, CreateCompressedAttestationInstruction, CreateCompressedAttestationInstructionData, CreateCompressedAttestationInstructionDataArgs, type CreateFeedbackParams, CreateRegularAttestationAsyncInput, CreateRegularAttestationInput, CreateRegularAttestationInstruction, CreateRegularAttestationInstructionData, CreateRegularAttestationInstructionDataArgs, type CreateReputationScoreParams, type CreateValidationParams, type CreationProofResult, DOMAINS, DataType, DeployedSASConfig, DuplicateAttestationError, ED25519_PROGRAM_ADDRESS, ENCRYPTION_VERSION, ERC8004_TYPE, Ed25519Instruction, Ed25519SignatureParams, type EncryptedPayload, type EncryptionKeypair, type Endpoint, EvmAddressLink, EvmAddressLinked, EvmAddressLinkedArgs, FEEDBACK_OFFSETS, type FailedReason, type FailedResult, FeedbackCache, type FeedbackContent, type FeedbackData, type FeedbackSearchOptions, FeedbackSigningMessage, FeedbackSigningParams, type GiveFeedbackParams, type GiveFeedbackResult, INITIALIZE_DISCRIMINATOR, InitializeAsyncInput, InitializeInput, InitializeInstruction, InitializeInstructionData, InitializeInstructionDataArgs, LIGHT_ERROR_CODES, LINK_EVM_ADDRESS_DISCRIMINATOR, LinkEvmAddressAsyncInput, LinkEvmAddressInput, LinkEvmAddressInstruction, LinkEvmAddressInstructionData, LinkEvmAddressInstructionDataArgs, LinkEvmAddressParams, LinkEvmAddressResult, MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE, MAX_CONTENT_SIZE, MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE, MAX_DUAL_SIGNATURE_CONTENT_SIZE, MAX_PLAINTEXT_SIZE, MIN_BASE_LAYOUT_SIZE, MIN_ENCRYPTED_SIZE, MerkleProofWithContext, MetadataEntry, MetadataEntryArgs, type MetadataUploader, type MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedback, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidation, type ParsedValidationAttestation, type PreparedFeedbackData, type Properties, PropertiesSchema, type PropertyFile, PropertyFileSchema, type PublicKeyLike, REGISTER_AGENT_DISCRIMINATOR, REGISTER_SCHEMA_CONFIG_DISCRIMINATOR, REGISTRY_CONFIG_DISCRIMINATOR, REPUTATION_SCHEMA_NAME, REPUTATION_SCHEMA_VERSION, REPUTATION_SCORE_OFFSETS, RegisterAgentAsyncInput, RegisterAgentInput, RegisterAgentInstruction, RegisterAgentInstructionData, RegisterAgentInstructionDataArgs, RegisterAgentResult, RegisterSchemaConfigAsyncInput, RegisterSchemaConfigInput, RegisterSchemaConfigInstruction, RegisterSchemaConfigInstructionData, RegisterSchemaConfigInstructionDataArgs, type RegistrationEntry, RegistrationEntrySchema, type RegistrationFile, type RegistrationFileParams, RegistrationFileSchema, RegistryAuthorityUpdated, RegistryAuthorityUpdatedArgs, RegistryConfig, RegistryConfigArgs, RegistryInitialized, RegistryInitializedArgs, type ReputationScoreContent, type ReputationScoreData, type ReputationSummary, SASDeploymentResult, SAS_DATA_LEN_OFFSET, SAS_HEADER_SIZE, SAS_PROGRAM_ADDRESS, SATIClientOptions, type SATILightClient, SATILightClientImpl, SATISASConfig, SATI_ATTESTATION_SEED, SATI_CHAIN_ID, SATI_CHAIN_IDS, SATI_CHAIN_ID_DEVNET, SATI_ERROR__AGENT_ATA_EMPTY, SATI_ERROR__AGENT_ATA_MINT_MISMATCH, SATI_ERROR__AGENT_ATA_REQUIRED, SATI_ERROR__AGENT_MINT_ACCOUNT_MISMATCH, SATI_ERROR__AGENT_MINT_MISMATCH, SATI_ERROR__AGENT_SIGNATURE_NOT_FOUND, SATI_ERROR__ATTESTATION_DATA_TOO_LARGE, SATI_ERROR__ATTESTATION_DATA_TOO_SMALL, SATI_ERROR__ATTESTATION_NOT_CLOSEABLE, SATI_ERROR__CONTENT_TOO_LARGE, SATI_ERROR__COUNTERPARTY_SIGNATURE_NOT_FOUND, SATI_ERROR__DELEGATE_MISMATCH, SATI_ERROR__DELEGATION_ATTESTATION_REQUIRED, SATI_ERROR__DELEGATION_EXPIRED, SATI_ERROR__DELEGATION_OWNER_MISMATCH, SATI_ERROR__DUPLICATE_SIGNERS, SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND, SATI_ERROR__EVM_ADDRESS_MISMATCH, SATI_ERROR__IMMUTABLE_AUTHORITY, SATI_ERROR__INVALID_AUTHORITY, SATI_ERROR__INVALID_CONTENT_TYPE, SATI_ERROR__INVALID_DELEGATION_P_D_A, SATI_ERROR__INVALID_ED25519_INSTRUCTION, SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY, SATI_ERROR__INVALID_GROUP_MINT, SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR, SATI_ERROR__INVALID_OUTCOME, SATI_ERROR__INVALID_SECP256K1_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE_COUNT, SATI_ERROR__LIGHT_CPI_INVOCATION_FAILED, SATI_ERROR__MESSAGE_MISMATCH, SATI_ERROR__METADATA_KEY_TOO_LONG, SATI_ERROR__METADATA_VALUE_TOO_LONG, SATI_ERROR__MINT_AUTHORITY_NOT_RENOUNCED, SATI_ERROR__MISSING_SIGNATURES, SATI_ERROR__NAME_TOO_LONG, SATI_ERROR__OVERFLOW, SATI_ERROR__OWNER_ONLY, SATI_ERROR__SCHEMA_CONFIG_NOT_FOUND, SATI_ERROR__SECP256K1_RECOVERY_FAILED, SATI_ERROR__SELF_ATTESTATION_NOT_ALLOWED, SATI_ERROR__SIGNATURE_MISMATCH, SATI_ERROR__STORAGE_TYPE_MISMATCH, SATI_ERROR__STORAGE_TYPE_NOT_SUPPORTED, SATI_ERROR__SYMBOL_TOO_LONG, SATI_ERROR__TOO_MANY_METADATA_ENTRIES, SATI_ERROR__UNAUTHORIZED_CLOSE, SATI_ERROR__UNSUPPORTED_LAYOUT_VERSION, SATI_ERROR__URI_TOO_LONG, SATI_PROGRAM_ADDRESS, SATI_PROGRAM_ID, SCHEMA_CONFIG_DISCRIMINATOR, SCHEMA_SEED, SOLANA_CHAIN_REFS, Sati, SatiAccount, SatiAgentBuilder, SatiError, type SatiErrorCode, SatiInstruction, SatiWarning, SchemaConfig, SchemaConfigArgs, SchemaConfigRegistered, SchemaConfigRegisteredArgs, SchemaDeploymentStatus, SchemaNotFoundError, type ServiceDefinition, ServiceDefinitionSchema, type SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, TrustMechanismSchema, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, VALID_TRUST_MODELS, type ValidationContent, type ValidationData, type ValidationError, type ValidationResult, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, assertRegistrationFile, buildCounterpartyMessage, buildFeedbackContent, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, bytesToHex, computeAttestationNonce, computeDataHash, computeDataHashFromHashes, computeDataHashFromStrings, computeEvmLinkHash, computeInteractionHash, computeReputationNonce, createBatchEd25519Instruction, createEd25519Instruction, createJsonContent, createPinataUploader, createSATILightClient, createSatiUploader, decodeAgentIndex, decodeRegistryConfig, decodeSchemaConfig, decryptContent, deriveEncryptionKeypair, deriveEncryptionPublicKey, deriveReputationAttestationPda, deriveReputationSchemaPda, deriveSasEventAuthorityPda, deriveSatiPda, deriveSatiProgramCredentialPda, deserializeEncryptedPayload, deserializeFeedback, deserializeReputationScore, deserializeUniversalLayout, deserializeValidation, duplicateAttestationMessage, encryptContent, fetchAgentIndex, fetchAllAgentIndex, fetchAllMaybeAgentIndex, fetchAllMaybeRegistryConfig, fetchAllMaybeSchemaConfig, fetchAllRegistryConfig, fetchAllSchemaConfig, fetchMaybeAgentIndex, fetchMaybeRegistryConfig, fetchMaybeSchemaConfig, fetchRegistrationFile, fetchRegistryConfig, fetchSchemaConfig, findAgentIndexPda, findAssociatedTokenAddress, findRegistryConfigPda, findSchemaConfigPda, formatCaip10, getAgentIndexCodec, getAgentIndexDecoder, getAgentIndexDiscriminatorBytes, getAgentIndexEncoder, getAgentIndexSize, getAgentRegisteredCodec, getAgentRegisteredDecoder, getAgentRegisteredEncoder, getAttestationClosedCodec, getAttestationClosedDecoder, getAttestationClosedEncoder, getAttestationCreatedCodec, getAttestationCreatedDecoder, getAttestationCreatedEncoder, getCloseCompressedAttestationDiscriminatorBytes, getCloseCompressedAttestationInstruction, getCloseCompressedAttestationInstructionAsync, getCloseCompressedAttestationInstructionDataCodec, getCloseCompressedAttestationInstructionDataDecoder, getCloseCompressedAttestationInstructionDataEncoder, getCloseRegularAttestationDiscriminatorBytes, getCloseRegularAttestationInstruction, getCloseRegularAttestationInstructionAsync, getCloseRegularAttestationInstructionDataCodec, getCloseRegularAttestationInstructionDataDecoder, getCloseRegularAttestationInstructionDataEncoder, getCompressedAccountMetaCodec, getCompressedAccountMetaDecoder, getCompressedAccountMetaEncoder, getCompressedProofCodec, getCompressedProofDecoder, getCompressedProofEncoder, getContentTypeLabel, getCreateCompressedAttestationDiscriminatorBytes, getCreateCompressedAttestationInstruction, getCreateCompressedAttestationInstructionAsync, getCreateCompressedAttestationInstructionDataCodec, getCreateCompressedAttestationInstructionDataDecoder, getCreateCompressedAttestationInstructionDataEncoder, getCreateRegularAttestationDiscriminatorBytes, getCreateRegularAttestationInstruction, getCreateRegularAttestationInstructionAsync, getCreateRegularAttestationInstructionDataCodec, getCreateRegularAttestationInstructionDataDecoder, getCreateRegularAttestationInstructionDataEncoder, getDeployedNetworks, getEvmAddressLinkedCodec, getEvmAddressLinkedDecoder, getEvmAddressLinkedEncoder, getImageUrl, getInitializeDiscriminatorBytes, getInitializeInstruction, getInitializeInstructionAsync, getInitializeInstructionDataCodec, getInitializeInstructionDataDecoder, getInitializeInstructionDataEncoder, getLinkEvmAddressDiscriminatorBytes, getLinkEvmAddressInstruction, getLinkEvmAddressInstructionAsync, getLinkEvmAddressInstructionDataCodec, getLinkEvmAddressInstructionDataDecoder, getLinkEvmAddressInstructionDataEncoder, getMaxContentSize, getMetadataEntryCodec, getMetadataEntryDecoder, getMetadataEntryEncoder, getOutcomeLabel, getPackedAddressTreeInfoCodec, getPackedAddressTreeInfoDecoder, getPackedAddressTreeInfoEncoder, getPackedStateTreeInfoCodec, getPackedStateTreeInfoDecoder, getPackedStateTreeInfoEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterSchemaConfigDiscriminatorBytes, getRegisterSchemaConfigInstruction, getRegisterSchemaConfigInstructionAsync, getRegisterSchemaConfigInstructionDataCodec, getRegisterSchemaConfigInstructionDataDecoder, getRegisterSchemaConfigInstructionDataEncoder, getRegistryAuthorityUpdatedCodec, getRegistryAuthorityUpdatedDecoder, getRegistryAuthorityUpdatedEncoder, getRegistryConfigCodec, getRegistryConfigDecoder, getRegistryConfigDiscriminatorBytes, getRegistryConfigEncoder, getRegistryConfigSize, getRegistryInitializedCodec, getRegistryInitializedDecoder, getRegistryInitializedEncoder, getSatiAgentIds, getSatiErrorMessage, getSchemaConfigCodec, getSchemaConfigDecoder, getSchemaConfigDiscriminatorBytes, getSchemaConfigEncoder, getSchemaConfigRegisteredCodec, getSchemaConfigRegisteredDecoder, getSchemaConfigRegisteredEncoder, getSignatureModeCodec, getSignatureModeDecoder, getSignatureModeEncoder, getStorageTypeCodec, getStorageTypeDecoder, getStorageTypeEncoder, getUpdateRegistryAuthorityDiscriminatorBytes, getUpdateRegistryAuthorityInstruction, getUpdateRegistryAuthorityInstructionAsync, getUpdateRegistryAuthorityInstructionDataCodec, getUpdateRegistryAuthorityInstructionDataDecoder, getUpdateRegistryAuthorityInstructionDataEncoder, getValidityProofCodec, getValidityProofDecoder, getValidityProofEncoder, handleTransactionError, hasDeployedConfig, hasSatiRegistration, hexToBytes, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiAgentRegistry, isSatiError, isValidAgentRegistry, loadDeployedConfig, networkErrorMessage, normalizeRegistrationFile, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseRegistrationFile, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateRegistrationFile, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
|
|
4696
|
+
export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, type AgentSearchOptions, type AgentSearchResult, AttestationClosed, AttestationClosedArgs, AttestationCreated, AttestationCreatedArgs, type AttestationFilter, type AttestationResult, AttestationWithProof, BASE_OFFSETS, type BaseLayout, type BuildFeedbackParams, type BuiltTransaction, CLOSE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CLOSE_REGULAR_ATTESTATION_DISCRIMINATOR, COMPRESSED_OFFSETS, CREATE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CREATE_REGULAR_ATTESTATION_DISCRIMINATOR, CREDENTIAL_SEED, CloseAttestationResult, CloseCompressedAttestationAsyncInput, CloseCompressedAttestationInput, CloseCompressedAttestationInstruction, CloseCompressedAttestationInstructionData, CloseCompressedAttestationInstructionDataArgs, CloseCompressedAttestationParams, CloseRegularAttestationAsyncInput, CloseRegularAttestationInput, CloseRegularAttestationInstruction, CloseRegularAttestationInstructionData, CloseRegularAttestationInstructionDataArgs, CloseRegularAttestationParams, CompressedAccountMeta, CompressedAccountMetaArgs, type CompressedAttestation, CompressedProof, CompressedProofArgs, type ContentSizeValidationOptions, type ContentSizeValidationResult, ContentType, CounterpartyMessageParams, CreateCompressedAttestationAsyncInput, CreateCompressedAttestationInput, CreateCompressedAttestationInstruction, CreateCompressedAttestationInstructionData, CreateCompressedAttestationInstructionDataArgs, type CreateFeedbackParams, CreateRegularAttestationAsyncInput, CreateRegularAttestationInput, CreateRegularAttestationInstruction, CreateRegularAttestationInstructionData, CreateRegularAttestationInstructionDataArgs, type CreateReputationScoreParams, type CreateValidationParams, type CreationProofResult, DOMAINS, DataType, DeployedSASConfig, DuplicateAttestationError, ED25519_PROGRAM_ADDRESS, ENCRYPTION_VERSION, ERC8004_TYPE, Ed25519Instruction, Ed25519SignatureParams, type EncryptedPayload, type EncryptionKeypair, type Endpoint, EvmAddressLink, EvmAddressLinked, EvmAddressLinkedArgs, FEEDBACK_OFFSETS, type FailedReason, type FailedResult, FeedbackCache, type FeedbackContent, type FeedbackData, type FeedbackSearchOptions, FeedbackSigningMessage, FeedbackSigningParams, type GiveFeedbackParams, type GiveFeedbackResult, INITIALIZE_DISCRIMINATOR, InitializeAsyncInput, InitializeInput, InitializeInstruction, InitializeInstructionData, InitializeInstructionDataArgs, LIGHT_ERROR_CODES, LINK_EVM_ADDRESS_DISCRIMINATOR, LinkEvmAddressAsyncInput, LinkEvmAddressInput, LinkEvmAddressInstruction, LinkEvmAddressInstructionData, LinkEvmAddressInstructionDataArgs, LinkEvmAddressParams, LinkEvmAddressResult, MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE, MAX_CONTENT_SIZE, MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE, MAX_DUAL_SIGNATURE_CONTENT_SIZE, MAX_PLAINTEXT_SIZE, MIN_BASE_LAYOUT_SIZE, MIN_ENCRYPTED_SIZE, MerkleProofWithContext, MetadataEntry, MetadataEntryArgs, type MetadataUploader, type MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedback, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidation, type ParsedValidationAttestation, type PreparedFeedbackData, type Properties, PropertiesSchema, type PropertyFile, PropertyFileSchema, type PublicKeyLike, REGISTER_AGENT_DISCRIMINATOR, REGISTER_SCHEMA_CONFIG_DISCRIMINATOR, REGISTRY_CONFIG_DISCRIMINATOR, REPUTATION_SCHEMA_NAME, REPUTATION_SCHEMA_VERSION, REPUTATION_SCORE_OFFSETS, RegisterAgentAsyncInput, RegisterAgentInput, RegisterAgentInstruction, RegisterAgentInstructionData, RegisterAgentInstructionDataArgs, RegisterAgentResult, RegisterSchemaConfigAsyncInput, RegisterSchemaConfigInput, RegisterSchemaConfigInstruction, RegisterSchemaConfigInstructionData, RegisterSchemaConfigInstructionDataArgs, type RegistrationEntry, RegistrationEntrySchema, type RegistrationFile, type RegistrationFileParams, RegistrationFileSchema, RegistryAuthorityUpdated, RegistryAuthorityUpdatedArgs, RegistryConfig, RegistryConfigArgs, RegistryInitialized, RegistryInitializedArgs, type ReputationScoreContent, type ReputationScoreData, type ReputationSummary, SASDeploymentResult, SAS_DATA_LEN_OFFSET, SAS_HEADER_SIZE, SAS_PROGRAM_ADDRESS, SATIClientOptions, type SATILightClient, SATILightClientImpl, SATISASConfig, SATI_ATTESTATION_SEED, SATI_CHAIN_ID, SATI_CHAIN_IDS, SATI_CHAIN_ID_DEVNET, SATI_ERROR__AGENT_ATA_EMPTY, SATI_ERROR__AGENT_ATA_MINT_MISMATCH, SATI_ERROR__AGENT_ATA_REQUIRED, SATI_ERROR__AGENT_MINT_ACCOUNT_MISMATCH, SATI_ERROR__AGENT_MINT_MISMATCH, SATI_ERROR__AGENT_SIGNATURE_NOT_FOUND, SATI_ERROR__ATTESTATION_DATA_TOO_LARGE, SATI_ERROR__ATTESTATION_DATA_TOO_SMALL, SATI_ERROR__ATTESTATION_NOT_CLOSEABLE, SATI_ERROR__CONTENT_TOO_LARGE, SATI_ERROR__COUNTERPARTY_SIGNATURE_NOT_FOUND, SATI_ERROR__DELEGATE_MISMATCH, SATI_ERROR__DELEGATION_ATTESTATION_REQUIRED, SATI_ERROR__DELEGATION_EXPIRED, SATI_ERROR__DELEGATION_OWNER_MISMATCH, SATI_ERROR__DUPLICATE_SIGNERS, SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND, SATI_ERROR__EVM_ADDRESS_MISMATCH, SATI_ERROR__IMMUTABLE_AUTHORITY, SATI_ERROR__INVALID_ADDRESS_TREE_INFO, SATI_ERROR__INVALID_AUTHORITY, SATI_ERROR__INVALID_CONTENT_TYPE, SATI_ERROR__INVALID_DELEGATION_P_D_A, SATI_ERROR__INVALID_ED25519_INSTRUCTION, SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY, SATI_ERROR__INVALID_GROUP_MINT, SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR, SATI_ERROR__INVALID_OUTCOME, SATI_ERROR__INVALID_OUTPUT_STATE_TREE_INDEX, SATI_ERROR__INVALID_SECP256K1_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE_COUNT, SATI_ERROR__LIGHT_CPI_INVOCATION_FAILED, SATI_ERROR__MESSAGE_MISMATCH, SATI_ERROR__METADATA_KEY_TOO_LONG, SATI_ERROR__METADATA_VALUE_TOO_LONG, SATI_ERROR__MINT_AUTHORITY_NOT_RENOUNCED, SATI_ERROR__MISSING_SIGNATURES, SATI_ERROR__NAME_TOO_LONG, SATI_ERROR__OVERFLOW, SATI_ERROR__OWNER_ONLY, SATI_ERROR__SCHEMA_CONFIG_NOT_FOUND, SATI_ERROR__SECP256K1_RECOVERY_FAILED, SATI_ERROR__SELF_ATTESTATION_NOT_ALLOWED, SATI_ERROR__SIGNATURE_MISMATCH, SATI_ERROR__STORAGE_TYPE_MISMATCH, SATI_ERROR__STORAGE_TYPE_NOT_SUPPORTED, SATI_ERROR__SYMBOL_TOO_LONG, SATI_ERROR__TOO_MANY_METADATA_ENTRIES, SATI_ERROR__UNAUTHORIZED_CLOSE, SATI_ERROR__UNSUPPORTED_LAYOUT_VERSION, SATI_ERROR__URI_TOO_LONG, SATI_PROGRAM_ADDRESS, SATI_PROGRAM_ID, SCHEMA_CONFIG_DISCRIMINATOR, SCHEMA_SEED, SOLANA_CHAIN_REFS, Sati, SatiAccount, SatiAgentBuilder, SatiError, type SatiErrorCode, SatiInstruction, SatiWarning, SchemaConfig, SchemaConfigArgs, SchemaConfigRegistered, SchemaConfigRegisteredArgs, SchemaDeploymentStatus, SchemaNotFoundError, type ServiceDefinition, ServiceDefinitionSchema, type SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, TrustMechanismSchema, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, VALID_TRUST_MODELS, type ValidationContent, type ValidationData, type ValidationError, type ValidationResult, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, assertRegistrationFile, buildCounterpartyMessage, buildFeedbackContent, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, bytesToHex, computeAttestationNonce, computeDataHash, computeDataHashFromHashes, computeDataHashFromStrings, computeEvmLinkHash, computeInteractionHash, computeReputationNonce, createBatchEd25519Instruction, createEd25519Instruction, createJsonContent, createPinataUploader, createSATILightClient, createSatiUploader, decodeAgentIndex, decodeRegistryConfig, decodeSchemaConfig, decryptContent, deriveEncryptionKeypair, deriveEncryptionPublicKey, deriveReputationAttestationPda, deriveReputationSchemaPda, deriveSasEventAuthorityPda, deriveSatiPda, deriveSatiProgramCredentialPda, deserializeEncryptedPayload, deserializeFeedback, deserializeReputationScore, deserializeUniversalLayout, deserializeValidation, duplicateAttestationMessage, encryptContent, fetchAgentIndex, fetchAllAgentIndex, fetchAllMaybeAgentIndex, fetchAllMaybeRegistryConfig, fetchAllMaybeSchemaConfig, fetchAllRegistryConfig, fetchAllSchemaConfig, fetchMaybeAgentIndex, fetchMaybeRegistryConfig, fetchMaybeSchemaConfig, fetchRegistrationFile, fetchRegistryConfig, fetchSchemaConfig, findAgentIndexPda, findAssociatedTokenAddress, findRegistryConfigPda, findSchemaConfigPda, formatCaip10, getAgentIndexCodec, getAgentIndexDecoder, getAgentIndexDiscriminatorBytes, getAgentIndexEncoder, getAgentIndexSize, getAgentRegisteredCodec, getAgentRegisteredDecoder, getAgentRegisteredEncoder, getAttestationClosedCodec, getAttestationClosedDecoder, getAttestationClosedEncoder, getAttestationCreatedCodec, getAttestationCreatedDecoder, getAttestationCreatedEncoder, getCloseCompressedAttestationDiscriminatorBytes, getCloseCompressedAttestationInstruction, getCloseCompressedAttestationInstructionAsync, getCloseCompressedAttestationInstructionDataCodec, getCloseCompressedAttestationInstructionDataDecoder, getCloseCompressedAttestationInstructionDataEncoder, getCloseRegularAttestationDiscriminatorBytes, getCloseRegularAttestationInstruction, getCloseRegularAttestationInstructionAsync, getCloseRegularAttestationInstructionDataCodec, getCloseRegularAttestationInstructionDataDecoder, getCloseRegularAttestationInstructionDataEncoder, getCompressedAccountMetaCodec, getCompressedAccountMetaDecoder, getCompressedAccountMetaEncoder, getCompressedProofCodec, getCompressedProofDecoder, getCompressedProofEncoder, getContentTypeLabel, getCreateCompressedAttestationDiscriminatorBytes, getCreateCompressedAttestationInstruction, getCreateCompressedAttestationInstructionAsync, getCreateCompressedAttestationInstructionDataCodec, getCreateCompressedAttestationInstructionDataDecoder, getCreateCompressedAttestationInstructionDataEncoder, getCreateRegularAttestationDiscriminatorBytes, getCreateRegularAttestationInstruction, getCreateRegularAttestationInstructionAsync, getCreateRegularAttestationInstructionDataCodec, getCreateRegularAttestationInstructionDataDecoder, getCreateRegularAttestationInstructionDataEncoder, getDeployedNetworks, getEvmAddressLinkedCodec, getEvmAddressLinkedDecoder, getEvmAddressLinkedEncoder, getImageUrl, getInitializeDiscriminatorBytes, getInitializeInstruction, getInitializeInstructionAsync, getInitializeInstructionDataCodec, getInitializeInstructionDataDecoder, getInitializeInstructionDataEncoder, getLinkEvmAddressDiscriminatorBytes, getLinkEvmAddressInstruction, getLinkEvmAddressInstructionAsync, getLinkEvmAddressInstructionDataCodec, getLinkEvmAddressInstructionDataDecoder, getLinkEvmAddressInstructionDataEncoder, getMaxContentSize, getMetadataEntryCodec, getMetadataEntryDecoder, getMetadataEntryEncoder, getOutcomeLabel, getPackedAddressTreeInfoCodec, getPackedAddressTreeInfoDecoder, getPackedAddressTreeInfoEncoder, getPackedStateTreeInfoCodec, getPackedStateTreeInfoDecoder, getPackedStateTreeInfoEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterSchemaConfigDiscriminatorBytes, getRegisterSchemaConfigInstruction, getRegisterSchemaConfigInstructionAsync, getRegisterSchemaConfigInstructionDataCodec, getRegisterSchemaConfigInstructionDataDecoder, getRegisterSchemaConfigInstructionDataEncoder, getRegistryAuthorityUpdatedCodec, getRegistryAuthorityUpdatedDecoder, getRegistryAuthorityUpdatedEncoder, getRegistryConfigCodec, getRegistryConfigDecoder, getRegistryConfigDiscriminatorBytes, getRegistryConfigEncoder, getRegistryConfigSize, getRegistryInitializedCodec, getRegistryInitializedDecoder, getRegistryInitializedEncoder, getSatiAgentIds, getSatiErrorMessage, getSchemaConfigCodec, getSchemaConfigDecoder, getSchemaConfigDiscriminatorBytes, getSchemaConfigEncoder, getSchemaConfigRegisteredCodec, getSchemaConfigRegisteredDecoder, getSchemaConfigRegisteredEncoder, getSignatureModeCodec, getSignatureModeDecoder, getSignatureModeEncoder, getStorageTypeCodec, getStorageTypeDecoder, getStorageTypeEncoder, getUpdateRegistryAuthorityDiscriminatorBytes, getUpdateRegistryAuthorityInstruction, getUpdateRegistryAuthorityInstructionAsync, getUpdateRegistryAuthorityInstructionDataCodec, getUpdateRegistryAuthorityInstructionDataDecoder, getUpdateRegistryAuthorityInstructionDataEncoder, getValidityProofCodec, getValidityProofDecoder, getValidityProofEncoder, handleTransactionError, hasDeployedConfig, hasSatiRegistration, hexToBytes, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiAgentRegistry, isSatiError, isValidAgentRegistry, loadDeployedConfig, networkErrorMessage, normalizeRegistrationFile, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseRegistrationFile, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateRegistrationFile, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
|
|
4683
4697
|
//# sourceMappingURL=index.d.cts.map
|