@cascade-fyi/sati-sdk 0.8.0 → 0.9.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 CHANGED
@@ -5,6 +5,19 @@ 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.9.0] - 2026-02-12
9
+
10
+ ### Breaking Changes
11
+
12
+ - **`MAX_SINGLE_SIGNATURE_CONTENT_SIZE` replaced** with two mode-specific constants:
13
+ - `MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE` (100 bytes) - CounterpartySigned mode has SIWS content duplication
14
+ - `MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE` (240 bytes) - AgentOwnerSigned mode has no SIWS duplication
15
+ - `getMaxContentSize()` and `validateContentSize()` now return correct per-mode limits
16
+
17
+ ### Fixed
18
+
19
+ - **`getAgentOwner` returns stale/empty data after registration or transfer** - added retry with exponential backoff to handle SPL token index lag on RPC node pools
20
+
8
21
  ## [0.8.0] - 2026-02-12
9
22
 
10
23
  ### Breaking Changes
@@ -157,6 +170,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
157
170
  - Compressed attestation storage via Light Protocol
158
171
  - Basic querying via Photon RPC
159
172
 
173
+ [0.9.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.8.0...@cascade-fyi/sati-sdk@0.9.0
160
174
  [0.8.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.7.0...@cascade-fyi/sati-sdk@0.8.0
161
175
  [0.7.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.6.0...@cascade-fyi/sati-sdk@0.7.0
162
176
  [0.6.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.5.0...@cascade-fyi/sati-sdk@0.6.0
package/dist/index.cjs CHANGED
@@ -2872,13 +2872,24 @@ const MAX_CONTENT_SIZE = 512;
2872
2872
  */
2873
2873
  const MAX_DUAL_SIGNATURE_CONTENT_SIZE = 70;
2874
2874
  /**
2875
- * Maximum content size for SingleSignature mode attestations.
2875
+ * Maximum content size for CounterpartySigned mode attestations.
2876
2876
  *
2877
- * SingleSignature mode has more headroom because:
2878
- * 1. Content appears only once (no SIWS message duplication)
2877
+ * CounterpartySigned has a SIWS message containing the content, so content
2878
+ * appears TWICE in the transaction (data blob + SIWS Details field).
2879
+ * This is similar to DualSignature but with one fewer signature (no agent sig),
2880
+ * giving slightly more headroom.
2881
+ *
2882
+ * Use ContentType.IPFS or ContentType.Arweave for larger content.
2883
+ */
2884
+ const MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE = 100;
2885
+ /**
2886
+ * Maximum content size for AgentOwnerSigned mode attestations.
2887
+ *
2888
+ * AgentOwnerSigned has more headroom because:
2889
+ * 1. Content appears only once (no SIWS message - agent signs interaction_hash)
2879
2890
  * 2. No counterparty signature verification overhead
2880
2891
  */
2881
- const MAX_SINGLE_SIGNATURE_CONTENT_SIZE = 240;
2892
+ const MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE = 240;
2882
2893
  /**
2883
2894
  * Minimum universal base layout size.
2884
2895
  * All schemas share: layout_version(1) + task_ref(32) + agent_mint(32) + counterparty(32) +
@@ -3316,7 +3327,11 @@ function validateBaseLayout(data) {
3316
3327
  * ```
3317
3328
  */
3318
3329
  function getMaxContentSize(signatureMode) {
3319
- return signatureMode === SignatureMode.DualSignature ? MAX_DUAL_SIGNATURE_CONTENT_SIZE : MAX_SINGLE_SIGNATURE_CONTENT_SIZE;
3330
+ switch (signatureMode) {
3331
+ case SignatureMode.DualSignature: return MAX_DUAL_SIGNATURE_CONTENT_SIZE;
3332
+ case SignatureMode.CounterpartySigned: return MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE;
3333
+ case SignatureMode.AgentOwnerSigned: return MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE;
3334
+ }
3320
3335
  }
3321
3336
  /**
3322
3337
  * Validate content size for a given signature mode.
@@ -3350,7 +3365,11 @@ function validateContentSize(content, signatureMode, options = {}) {
3350
3365
  actualSize
3351
3366
  };
3352
3367
  if (!valid) {
3353
- result.error = `Content too large for ${signatureMode === SignatureMode.DualSignature ? "DualSignature" : "SingleSignature"} mode: ${actualSize} bytes exceeds maximum ${maxSize} bytes. Use ContentType.IPFS or ContentType.Arweave for larger content.`;
3368
+ result.error = `Content too large for ${{
3369
+ [SignatureMode.DualSignature]: "DualSignature",
3370
+ [SignatureMode.CounterpartySigned]: "CounterpartySigned",
3371
+ [SignatureMode.AgentOwnerSigned]: "AgentOwnerSigned"
3372
+ }[signatureMode] ?? "Unknown"} mode: ${actualSize} bytes exceeds maximum ${maxSize} bytes. Use ContentType.IPFS or ContentType.Arweave for larger content.`;
3354
3373
  if (throwOnError) throw new Error(result.error);
3355
3374
  }
3356
3375
  return result;
@@ -5503,14 +5522,21 @@ var Sati = class {
5503
5522
  return { signature: (0, __solana_kit.getSignatureFromTransaction)(signedTx).toString() };
5504
5523
  }
5505
5524
  /**
5506
- * Get current owner of an agent
5525
+ * Get current owner of an agent.
5526
+ *
5527
+ * Uses `getTokenLargestAccounts` which relies on an SPL token index.
5528
+ * This index can lag behind transaction confirmation on RPC node pools,
5529
+ * so we retry with backoff for recently created or transferred tokens.
5507
5530
  */
5508
5531
  async getAgentOwner(mint) {
5509
- const response = await this.rpc.getTokenLargestAccounts(mint, { commitment: "confirmed" }).send();
5510
- if (!response.value || response.value.length === 0) throw new Error(`No token accounts found for mint ${mint}`);
5511
- const holderAccount = response.value.find((acc) => BigInt(acc.amount) > 0n);
5512
- if (!holderAccount) throw new Error(`No holder found for agent ${mint}`);
5513
- return (await (0, __solana_program_token_2022.fetchToken)(this.rpc, (0, __solana_kit.address)(holderAccount.address))).data.owner;
5532
+ const maxRetries = 3;
5533
+ const baseDelay = 500;
5534
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
5535
+ const holderAccount = (await this.rpc.getTokenLargestAccounts(mint, { commitment: "confirmed" }).send()).value?.find((acc) => BigInt(acc.amount) > 0n);
5536
+ if (holderAccount) return (await (0, __solana_program_token_2022.fetchToken)(this.rpc, (0, __solana_kit.address)(holderAccount.address))).data.owner;
5537
+ if (attempt < maxRetries) await new Promise((resolve) => setTimeout(resolve, baseDelay * 2 ** attempt));
5538
+ }
5539
+ throw new Error(`No token accounts found for mint ${mint}`);
5514
5540
  }
5515
5541
  /**
5516
5542
  * Get registry statistics
@@ -7044,10 +7070,11 @@ exports.FeedbackCache = FeedbackCache;
7044
7070
  exports.INITIALIZE_DISCRIMINATOR = INITIALIZE_DISCRIMINATOR;
7045
7071
  exports.LIGHT_ERROR_CODES = LIGHT_ERROR_CODES;
7046
7072
  exports.LINK_EVM_ADDRESS_DISCRIMINATOR = LINK_EVM_ADDRESS_DISCRIMINATOR;
7073
+ exports.MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE = MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE;
7047
7074
  exports.MAX_CONTENT_SIZE = MAX_CONTENT_SIZE;
7075
+ exports.MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE = MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE;
7048
7076
  exports.MAX_DUAL_SIGNATURE_CONTENT_SIZE = MAX_DUAL_SIGNATURE_CONTENT_SIZE;
7049
7077
  exports.MAX_PLAINTEXT_SIZE = MAX_PLAINTEXT_SIZE;
7050
- exports.MAX_SINGLE_SIGNATURE_CONTENT_SIZE = MAX_SINGLE_SIGNATURE_CONTENT_SIZE;
7051
7078
  exports.MIN_BASE_LAYOUT_SIZE = MIN_BASE_LAYOUT_SIZE;
7052
7079
  exports.MIN_ENCRYPTED_SIZE = MIN_ENCRYPTED_SIZE;
7053
7080
  exports.NONCE_SIZE = NONCE_SIZE;
package/dist/index.d.cts CHANGED
@@ -1543,13 +1543,24 @@ declare const MAX_CONTENT_SIZE = 512;
1543
1543
  */
1544
1544
  declare const MAX_DUAL_SIGNATURE_CONTENT_SIZE = 70;
1545
1545
  /**
1546
- * Maximum content size for SingleSignature mode attestations.
1546
+ * Maximum content size for CounterpartySigned mode attestations.
1547
1547
  *
1548
- * SingleSignature mode has more headroom because:
1549
- * 1. Content appears only once (no SIWS message duplication)
1548
+ * CounterpartySigned has a SIWS message containing the content, so content
1549
+ * appears TWICE in the transaction (data blob + SIWS Details field).
1550
+ * This is similar to DualSignature but with one fewer signature (no agent sig),
1551
+ * giving slightly more headroom.
1552
+ *
1553
+ * Use ContentType.IPFS or ContentType.Arweave for larger content.
1554
+ */
1555
+ declare const MAX_COUNTERPARTY_SIGNED_CONTENT_SIZE = 100;
1556
+ /**
1557
+ * Maximum content size for AgentOwnerSigned mode attestations.
1558
+ *
1559
+ * AgentOwnerSigned has more headroom because:
1560
+ * 1. Content appears only once (no SIWS message - agent signs interaction_hash)
1550
1561
  * 2. No counterparty signature verification overhead
1551
1562
  */
1552
- declare const MAX_SINGLE_SIGNATURE_CONTENT_SIZE = 240;
1563
+ declare const MAX_AGENT_OWNER_SIGNED_CONTENT_SIZE = 240;
1553
1564
  /**
1554
1565
  * Minimum universal base layout size.
1555
1566
  * All schemas share: layout_version(1) + task_ref(32) + agent_mint(32) + counterparty(32) +
@@ -3979,7 +3990,11 @@ declare class Sati {
3979
3990
  signature: string;
3980
3991
  }>;
3981
3992
  /**
3982
- * Get current owner of an agent
3993
+ * Get current owner of an agent.
3994
+ *
3995
+ * Uses `getTokenLargestAccounts` which relies on an SPL token index.
3996
+ * This index can lag behind transaction confirmation on RPC node pools,
3997
+ * so we retry with backoff for recently created or transferred tokens.
3983
3998
  */
3984
3999
  getAgentOwner(mint: Address$1): Promise<Address$1>;
3985
4000
  /**
@@ -4471,5 +4486,5 @@ declare function networkErrorMessage(): string;
4471
4486
  declare function transactionExpiredMessage(): string;
4472
4487
  declare function transactionFailedMessage(detail?: string): string;
4473
4488
  //#endregion
4474
- 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, 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_CONTENT_SIZE, MAX_DUAL_SIGNATURE_CONTENT_SIZE, MAX_PLAINTEXT_SIZE, MAX_SINGLE_SIGNATURE_CONTENT_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, type PropertyFile, 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, type RegistrationFile, type RegistrationFileParams, 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_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 SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, type ValidationContent, type ValidationData, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, buildCounterpartyMessage, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, 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, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiError, loadDeployedConfig, networkErrorMessage, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
4489
+ 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, 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, type PropertyFile, 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, type RegistrationFile, type RegistrationFileParams, 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_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 SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, type ValidationContent, type ValidationData, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, buildCounterpartyMessage, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, 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, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiError, loadDeployedConfig, networkErrorMessage, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
4475
4490
  //# sourceMappingURL=index.d.cts.map