@cascade-fyi/sati-sdk 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ 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.4.2] - 2026-02-10
9
+
10
+ ### Fixed
11
+
12
+ - Close attestation off-by-one error: program was reading `agent_mint`/`counterparty` at offsets 32/64 instead of 33/65, skipping the `layout_version` byte - caused every close/update attempt to fail with `AgentMintAccountMismatch`
13
+ - Missing SAS CPI accounts (`sasEventAuthority`, `systemProgram`) in `closeRegularAttestation` instruction - previously caused runtime panics
14
+ - Wired `sasEventAuthority` into `closeRegularAttestation()` and `updateReputationScore()` SDK methods
15
+
16
+ ### Added
17
+
18
+ - `deriveSasEventAuthorityPda()` helper for SAS event authority PDA derivation
19
+
20
+ ## [0.4.1] - 2026-02-09
21
+
22
+ ### Fixed
23
+
24
+ - Fixed `workspace:*` dependency for `@cascade-fyi/compression-kit` not being resolved in published npm package, breaking installs for npm/yarn users
25
+
8
26
  ## [0.4.0] - 2026-02-06
9
27
 
10
28
  ### Added
@@ -67,6 +85,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
67
85
  - Compressed attestation storage via Light Protocol
68
86
  - Basic querying via Photon RPC
69
87
 
70
- [0.4.0]: https://github.com/cascade-protocol/sati/compare/v0.3.0...v0.4.0
71
- [0.3.0]: https://github.com/cascade-protocol/sati/compare/v0.2.0...v0.3.0
72
- [0.2.0]: https://github.com/cascade-protocol/sati/releases/tag/v0.2.0
88
+ [0.4.2]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.4.1...@cascade-fyi/sati-sdk@0.4.2
89
+ [0.4.1]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.4.0...@cascade-fyi/sati-sdk@0.4.1
90
+ [0.4.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.3.0...@cascade-fyi/sati-sdk@0.4.0
91
+ [0.3.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-sdk@0.2.0...@cascade-fyi/sati-sdk@0.3.0
92
+ [0.2.0]: https://github.com/cascade-protocol/sati/releases/tag/@cascade-fyi/sati-sdk@0.2.0
package/dist/index.cjs CHANGED
@@ -971,6 +971,14 @@ async function getCloseRegularAttestationInstructionAsync(input, config$2) {
971
971
  value: input.agentMint ?? null,
972
972
  isWritable: false
973
973
  },
974
+ sasEventAuthority: {
975
+ value: input.sasEventAuthority ?? null,
976
+ isWritable: false
977
+ },
978
+ systemProgram: {
979
+ value: input.systemProgram ?? null,
980
+ isWritable: false
981
+ },
974
982
  eventAuthority: {
975
983
  value: input.eventAuthority ?? null,
976
984
  isWritable: false
@@ -1002,6 +1010,7 @@ async function getCloseRegularAttestationInstructionAsync(input, config$2) {
1002
1010
  ]))]
1003
1011
  });
1004
1012
  if (!accounts.sasProgram.value) accounts.sasProgram.value = "22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG";
1013
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
1005
1014
  if (!accounts.eventAuthority.value) accounts.eventAuthority.value = await (0, __solana_kit.getProgramDerivedAddress)({
1006
1015
  programAddress,
1007
1016
  seeds: [(0, __solana_kit.getBytesEncoder)().encode(new Uint8Array([
@@ -1037,6 +1046,8 @@ async function getCloseRegularAttestationInstructionAsync(input, config$2) {
1037
1046
  getAccountMeta(accounts.agentAta),
1038
1047
  getAccountMeta(accounts.tokenProgram),
1039
1048
  getAccountMeta(accounts.agentMint),
1049
+ getAccountMeta(accounts.sasEventAuthority),
1050
+ getAccountMeta(accounts.systemProgram),
1040
1051
  getAccountMeta(accounts.eventAuthority),
1041
1052
  getAccountMeta(accounts.program)
1042
1053
  ],
@@ -1087,6 +1098,14 @@ function getCloseRegularAttestationInstruction(input, config$2) {
1087
1098
  value: input.agentMint ?? null,
1088
1099
  isWritable: false
1089
1100
  },
1101
+ sasEventAuthority: {
1102
+ value: input.sasEventAuthority ?? null,
1103
+ isWritable: false
1104
+ },
1105
+ systemProgram: {
1106
+ value: input.systemProgram ?? null,
1107
+ isWritable: false
1108
+ },
1090
1109
  eventAuthority: {
1091
1110
  value: input.eventAuthority ?? null,
1092
1111
  isWritable: false
@@ -1097,6 +1116,7 @@ function getCloseRegularAttestationInstruction(input, config$2) {
1097
1116
  }
1098
1117
  };
1099
1118
  if (!accounts.sasProgram.value) accounts.sasProgram.value = "22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG";
1119
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
1100
1120
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1101
1121
  return Object.freeze({
1102
1122
  accounts: [
@@ -1110,6 +1130,8 @@ function getCloseRegularAttestationInstruction(input, config$2) {
1110
1130
  getAccountMeta(accounts.agentAta),
1111
1131
  getAccountMeta(accounts.tokenProgram),
1112
1132
  getAccountMeta(accounts.agentMint),
1133
+ getAccountMeta(accounts.sasEventAuthority),
1134
+ getAccountMeta(accounts.systemProgram),
1113
1135
  getAccountMeta(accounts.eventAuthority),
1114
1136
  getAccountMeta(accounts.program)
1115
1137
  ],
@@ -1118,7 +1140,7 @@ function getCloseRegularAttestationInstruction(input, config$2) {
1118
1140
  });
1119
1141
  }
1120
1142
  function parseCloseRegularAttestationInstruction(instruction) {
1121
- if (instruction.accounts.length < 12) throw new Error("Not enough accounts");
1143
+ if (instruction.accounts.length < 14) throw new Error("Not enough accounts");
1122
1144
  let accountIndex = 0;
1123
1145
  const getNextAccount = () => {
1124
1146
  const accountMeta = instruction.accounts[accountIndex];
@@ -1142,6 +1164,8 @@ function parseCloseRegularAttestationInstruction(instruction) {
1142
1164
  agentAta: getNextOptionalAccount(),
1143
1165
  tokenProgram: getNextOptionalAccount(),
1144
1166
  agentMint: getNextAccount(),
1167
+ sasEventAuthority: getNextAccount(),
1168
+ systemProgram: getNextAccount(),
1145
1169
  eventAuthority: getNextAccount(),
1146
1170
  program: getNextAccount()
1147
1171
  },
@@ -3970,6 +3994,20 @@ async function deriveReputationAttestationPda(credential, schema, nonce) {
3970
3994
  ]
3971
3995
  });
3972
3996
  }
3997
+ /**
3998
+ * Derive the SAS event authority PDA.
3999
+ *
4000
+ * Required for CPI calls to SAS that emit events (e.g., close attestation).
4001
+ * Seeds: ["__event_authority"] (derived from SAS program, not SATI program)
4002
+ *
4003
+ * @returns [address, bump] tuple
4004
+ */
4005
+ async function deriveSasEventAuthorityPda() {
4006
+ return (0, __solana_kit.getProgramDerivedAddress)({
4007
+ programAddress: SAS_PROGRAM_ADDRESS,
4008
+ seeds: ["__event_authority"]
4009
+ });
4010
+ }
3973
4011
 
3974
4012
  //#endregion
3975
4013
  //#region src/helpers.ts
@@ -5618,6 +5656,7 @@ var Sati = class {
5618
5656
  const [schemaConfigPda] = await findSchemaConfigPda(sasSchema);
5619
5657
  const instructions = [];
5620
5658
  if ((await this.rpc.getAccountInfo(attestationPda, { encoding: "base64" }).send()).value) {
5659
+ const [sasEventAuthority] = await deriveSasEventAuthorityPda();
5621
5660
  const closeIx = await getCloseRegularAttestationInstructionAsync({
5622
5661
  payer,
5623
5662
  signer: provider,
@@ -5625,6 +5664,7 @@ var Sati = class {
5625
5664
  agentMint,
5626
5665
  satiCredential,
5627
5666
  attestation: attestationPda,
5667
+ sasEventAuthority,
5628
5668
  program: SATI_PROGRAM_ADDRESS
5629
5669
  });
5630
5670
  instructions.push(closeIx);
@@ -5669,6 +5709,7 @@ var Sati = class {
5669
5709
  async closeRegularAttestation(params) {
5670
5710
  const { payer, provider, sasSchema, satiCredential, agentMint, attestation } = params;
5671
5711
  const [schemaConfigPda] = await findSchemaConfigPda(sasSchema);
5712
+ const [sasEventAuthority] = await deriveSasEventAuthorityPda();
5672
5713
  const closeIx = await getCloseRegularAttestationInstructionAsync({
5673
5714
  payer,
5674
5715
  signer: provider,
@@ -5676,6 +5717,7 @@ var Sati = class {
5676
5717
  agentMint,
5677
5718
  satiCredential,
5678
5719
  attestation,
5720
+ sasEventAuthority,
5679
5721
  program: SATI_PROGRAM_ADDRESS
5680
5722
  });
5681
5723
  return { signature: await this.buildAndSendTransaction([closeIx], payer) };
@@ -6365,6 +6407,7 @@ exports.deriveEncryptionKeypair = deriveEncryptionKeypair;
6365
6407
  exports.deriveEncryptionPublicKey = deriveEncryptionPublicKey;
6366
6408
  exports.deriveReputationAttestationPda = deriveReputationAttestationPda;
6367
6409
  exports.deriveReputationSchemaPda = deriveReputationSchemaPda;
6410
+ exports.deriveSasEventAuthorityPda = deriveSasEventAuthorityPda;
6368
6411
  exports.deriveSatiPda = deriveSatiPda;
6369
6412
  exports.deriveSatiProgramCredentialPda = deriveSatiProgramCredentialPda;
6370
6413
  exports.deserializeEncryptedPayload = deserializeEncryptedPayload;
package/dist/index.d.cts CHANGED
@@ -668,7 +668,7 @@ declare function parseCloseCompressedAttestationInstruction<TProgram extends str
668
668
  //#region src/generated/instructions/closeRegularAttestation.d.ts
669
669
  declare const CLOSE_REGULAR_ATTESTATION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
670
670
  declare function getCloseRegularAttestationDiscriminatorBytes(): ReadonlyUint8Array;
671
- type CloseRegularAttestationInstruction<TProgram extends string = typeof SATI_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta$1<string> = string, TAccountSigner extends string | AccountMeta$1<string> = string, TAccountSchemaConfig extends string | AccountMeta$1<string> = string, TAccountSatiPda extends string | AccountMeta$1<string> = string, TAccountSatiCredential extends string | AccountMeta$1<string> = string, TAccountAttestation extends string | AccountMeta$1<string> = string, TAccountSasProgram extends string | AccountMeta$1<string> = "22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG", TAccountAgentAta extends string | AccountMeta$1<string> = string, TAccountTokenProgram extends string | AccountMeta$1<string> = string, TAccountAgentMint extends string | AccountMeta$1<string> = string, TAccountEventAuthority extends string | AccountMeta$1<string> = string, TAccountProgram extends string | AccountMeta$1<string> = string, TRemainingAccounts extends readonly AccountMeta$1<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner, TAccountSchemaConfig extends string ? ReadonlyAccount<TAccountSchemaConfig> : TAccountSchemaConfig, TAccountSatiPda extends string ? ReadonlyAccount<TAccountSatiPda> : TAccountSatiPda, TAccountSatiCredential extends string ? ReadonlyAccount<TAccountSatiCredential> : TAccountSatiCredential, TAccountAttestation extends string ? WritableAccount<TAccountAttestation> : TAccountAttestation, TAccountSasProgram extends string ? ReadonlyAccount<TAccountSasProgram> : TAccountSasProgram, TAccountAgentAta extends string ? ReadonlyAccount<TAccountAgentAta> : TAccountAgentAta, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAgentMint extends string ? ReadonlyAccount<TAccountAgentMint> : TAccountAgentMint, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
671
+ type CloseRegularAttestationInstruction<TProgram extends string = typeof SATI_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta$1<string> = string, TAccountSigner extends string | AccountMeta$1<string> = string, TAccountSchemaConfig extends string | AccountMeta$1<string> = string, TAccountSatiPda extends string | AccountMeta$1<string> = string, TAccountSatiCredential extends string | AccountMeta$1<string> = string, TAccountAttestation extends string | AccountMeta$1<string> = string, TAccountSasProgram extends string | AccountMeta$1<string> = "22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG", TAccountAgentAta extends string | AccountMeta$1<string> = string, TAccountTokenProgram extends string | AccountMeta$1<string> = string, TAccountAgentMint extends string | AccountMeta$1<string> = string, TAccountSasEventAuthority extends string | AccountMeta$1<string> = string, TAccountSystemProgram extends string | AccountMeta$1<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta$1<string> = string, TAccountProgram extends string | AccountMeta$1<string> = string, TRemainingAccounts extends readonly AccountMeta$1<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner, TAccountSchemaConfig extends string ? ReadonlyAccount<TAccountSchemaConfig> : TAccountSchemaConfig, TAccountSatiPda extends string ? ReadonlyAccount<TAccountSatiPda> : TAccountSatiPda, TAccountSatiCredential extends string ? ReadonlyAccount<TAccountSatiCredential> : TAccountSatiCredential, TAccountAttestation extends string ? WritableAccount<TAccountAttestation> : TAccountAttestation, TAccountSasProgram extends string ? ReadonlyAccount<TAccountSasProgram> : TAccountSasProgram, TAccountAgentAta extends string ? ReadonlyAccount<TAccountAgentAta> : TAccountAgentAta, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAgentMint extends string ? ReadonlyAccount<TAccountAgentMint> : TAccountAgentMint, TAccountSasEventAuthority extends string ? ReadonlyAccount<TAccountSasEventAuthority> : TAccountSasEventAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
672
672
  type CloseRegularAttestationInstructionData = {
673
673
  discriminator: ReadonlyUint8Array;
674
674
  };
@@ -676,7 +676,7 @@ type CloseRegularAttestationInstructionDataArgs = {};
676
676
  declare function getCloseRegularAttestationInstructionDataEncoder(): FixedSizeEncoder<CloseRegularAttestationInstructionDataArgs>;
677
677
  declare function getCloseRegularAttestationInstructionDataDecoder(): FixedSizeDecoder<CloseRegularAttestationInstructionData>;
678
678
  declare function getCloseRegularAttestationInstructionDataCodec(): FixedSizeCodec<CloseRegularAttestationInstructionDataArgs, CloseRegularAttestationInstructionData>;
679
- type CloseRegularAttestationAsyncInput<TAccountPayer extends string = string, TAccountSigner extends string = string, TAccountSchemaConfig extends string = string, TAccountSatiPda extends string = string, TAccountSatiCredential extends string = string, TAccountAttestation extends string = string, TAccountSasProgram extends string = string, TAccountAgentAta extends string = string, TAccountTokenProgram extends string = string, TAccountAgentMint extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
679
+ type CloseRegularAttestationAsyncInput<TAccountPayer extends string = string, TAccountSigner extends string = string, TAccountSchemaConfig extends string = string, TAccountSatiPda extends string = string, TAccountSatiCredential extends string = string, TAccountAttestation extends string = string, TAccountSasProgram extends string = string, TAccountAgentAta extends string = string, TAccountTokenProgram extends string = string, TAccountAgentMint extends string = string, TAccountSasEventAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
680
680
  /** Payer receives rent back */
681
681
  payer: TransactionSigner<TAccountPayer>;
682
682
  /** Signer must be either the agent (NFT owner via ATA) or the counterparty */
@@ -703,13 +703,17 @@ type CloseRegularAttestationAsyncInput<TAccountPayer extends string = string, TA
703
703
  * Must match agent_mint in attestation data (bytes 33-64).
704
704
  */
705
705
  agentMint: Address$1<TAccountAgentMint>;
706
+ /** SAS event authority PDA (required for SAS close CPI event emission) */
707
+ sasEventAuthority: Address$1<TAccountSasEventAuthority>;
708
+ /** System program (required by SAS close instruction) */
709
+ systemProgram?: Address$1<TAccountSystemProgram>;
706
710
  eventAuthority?: Address$1<TAccountEventAuthority>;
707
711
  program: Address$1<TAccountProgram>;
708
712
  };
709
- declare function getCloseRegularAttestationInstructionAsync<TAccountPayer extends string, TAccountSigner extends string, TAccountSchemaConfig extends string, TAccountSatiPda extends string, TAccountSatiCredential extends string, TAccountAttestation extends string, TAccountSasProgram extends string, TAccountAgentAta extends string, TAccountTokenProgram extends string, TAccountAgentMint extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address$1 = typeof SATI_PROGRAM_ADDRESS>(input: CloseRegularAttestationAsyncInput<TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountEventAuthority, TAccountProgram>, config?: {
713
+ declare function getCloseRegularAttestationInstructionAsync<TAccountPayer extends string, TAccountSigner extends string, TAccountSchemaConfig extends string, TAccountSatiPda extends string, TAccountSatiCredential extends string, TAccountAttestation extends string, TAccountSasProgram extends string, TAccountAgentAta extends string, TAccountTokenProgram extends string, TAccountAgentMint extends string, TAccountSasEventAuthority extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address$1 = typeof SATI_PROGRAM_ADDRESS>(input: CloseRegularAttestationAsyncInput<TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountSasEventAuthority, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
710
714
  programAddress?: TProgramAddress;
711
- }): Promise<CloseRegularAttestationInstruction<TProgramAddress, TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountEventAuthority, TAccountProgram>>;
712
- type CloseRegularAttestationInput<TAccountPayer extends string = string, TAccountSigner extends string = string, TAccountSchemaConfig extends string = string, TAccountSatiPda extends string = string, TAccountSatiCredential extends string = string, TAccountAttestation extends string = string, TAccountSasProgram extends string = string, TAccountAgentAta extends string = string, TAccountTokenProgram extends string = string, TAccountAgentMint extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
715
+ }): Promise<CloseRegularAttestationInstruction<TProgramAddress, TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountSasEventAuthority, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
716
+ type CloseRegularAttestationInput<TAccountPayer extends string = string, TAccountSigner extends string = string, TAccountSchemaConfig extends string = string, TAccountSatiPda extends string = string, TAccountSatiCredential extends string = string, TAccountAttestation extends string = string, TAccountSasProgram extends string = string, TAccountAgentAta extends string = string, TAccountTokenProgram extends string = string, TAccountAgentMint extends string = string, TAccountSasEventAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
713
717
  /** Payer receives rent back */
714
718
  payer: TransactionSigner<TAccountPayer>;
715
719
  /** Signer must be either the agent (NFT owner via ATA) or the counterparty */
@@ -736,12 +740,16 @@ type CloseRegularAttestationInput<TAccountPayer extends string = string, TAccoun
736
740
  * Must match agent_mint in attestation data (bytes 33-64).
737
741
  */
738
742
  agentMint: Address$1<TAccountAgentMint>;
743
+ /** SAS event authority PDA (required for SAS close CPI event emission) */
744
+ sasEventAuthority: Address$1<TAccountSasEventAuthority>;
745
+ /** System program (required by SAS close instruction) */
746
+ systemProgram?: Address$1<TAccountSystemProgram>;
739
747
  eventAuthority: Address$1<TAccountEventAuthority>;
740
748
  program: Address$1<TAccountProgram>;
741
749
  };
742
- declare function getCloseRegularAttestationInstruction<TAccountPayer extends string, TAccountSigner extends string, TAccountSchemaConfig extends string, TAccountSatiPda extends string, TAccountSatiCredential extends string, TAccountAttestation extends string, TAccountSasProgram extends string, TAccountAgentAta extends string, TAccountTokenProgram extends string, TAccountAgentMint extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address$1 = typeof SATI_PROGRAM_ADDRESS>(input: CloseRegularAttestationInput<TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountEventAuthority, TAccountProgram>, config?: {
750
+ declare function getCloseRegularAttestationInstruction<TAccountPayer extends string, TAccountSigner extends string, TAccountSchemaConfig extends string, TAccountSatiPda extends string, TAccountSatiCredential extends string, TAccountAttestation extends string, TAccountSasProgram extends string, TAccountAgentAta extends string, TAccountTokenProgram extends string, TAccountAgentMint extends string, TAccountSasEventAuthority extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address$1 = typeof SATI_PROGRAM_ADDRESS>(input: CloseRegularAttestationInput<TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountSasEventAuthority, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
743
751
  programAddress?: TProgramAddress;
744
- }): CloseRegularAttestationInstruction<TProgramAddress, TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountEventAuthority, TAccountProgram>;
752
+ }): CloseRegularAttestationInstruction<TProgramAddress, TAccountPayer, TAccountSigner, TAccountSchemaConfig, TAccountSatiPda, TAccountSatiCredential, TAccountAttestation, TAccountSasProgram, TAccountAgentAta, TAccountTokenProgram, TAccountAgentMint, TAccountSasEventAuthority, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
745
753
  type ParsedCloseRegularAttestationInstruction<TProgram extends string = typeof SATI_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta$1[] = readonly AccountMeta$1[]> = {
746
754
  programAddress: Address$1<TProgram>;
747
755
  accounts: {
@@ -771,8 +779,12 @@ type ParsedCloseRegularAttestationInstruction<TProgram extends string = typeof S
771
779
  * Must match agent_mint in attestation data (bytes 33-64).
772
780
  */
773
781
  agentMint: TAccountMetas[9];
774
- eventAuthority: TAccountMetas[10];
775
- program: TAccountMetas[11];
782
+ /** SAS event authority PDA (required for SAS close CPI event emission) */
783
+ sasEventAuthority: TAccountMetas[10];
784
+ /** System program (required by SAS close instruction) */
785
+ systemProgram: TAccountMetas[11];
786
+ eventAuthority: TAccountMetas[12];
787
+ program: TAccountMetas[13];
776
788
  };
777
789
  data: CloseRegularAttestationInstructionData;
778
790
  };
@@ -2357,6 +2369,15 @@ declare function deriveReputationSchemaPda(): Promise<readonly [Address$1, Progr
2357
2369
  * @returns [address, bump] tuple
2358
2370
  */
2359
2371
  declare function deriveReputationAttestationPda(credential: Address$1, schema: Address$1, nonce: Uint8Array): Promise<readonly [Address$1, ProgramDerivedAddressBump]>;
2372
+ /**
2373
+ * Derive the SAS event authority PDA.
2374
+ *
2375
+ * Required for CPI calls to SAS that emit events (e.g., close attestation).
2376
+ * Seeds: ["__event_authority"] (derived from SAS program, not SATI program)
2377
+ *
2378
+ * @returns [address, bump] tuple
2379
+ */
2380
+ declare function deriveSasEventAuthorityPda(): Promise<readonly [Address$1, ProgramDerivedAddressBump]>;
2360
2381
  //#endregion
2361
2382
  //#region src/helpers.d.ts
2362
2383
  declare const TOKEN_2022_PROGRAM_ADDRESS: Address$1<"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb">;
@@ -3945,5 +3966,5 @@ declare function networkErrorMessage(): string;
3945
3966
  declare function transactionExpiredMessage(): string;
3946
3967
  declare function transactionFailedMessage(detail?: string): string;
3947
3968
  //#endregion
3948
- export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, 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, type FeedbackContent, type FeedbackData, FeedbackSigningMessage, FeedbackSigningParams, 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 MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidationAttestation, 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, 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, SatiError, type SatiErrorCode, SatiInstruction, 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, createSATILightClient, decodeAgentIndex, decodeRegistryConfig, decodeSchemaConfig, decryptContent, deriveEncryptionKeypair, deriveEncryptionPublicKey, deriveReputationAttestationPda, deriveReputationSchemaPda, 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 };
3969
+ export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, 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, type FeedbackContent, type FeedbackData, FeedbackSigningMessage, FeedbackSigningParams, 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 MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidationAttestation, 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, 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, SatiError, type SatiErrorCode, SatiInstruction, 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, createSATILightClient, 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 };
3949
3970
  //# sourceMappingURL=index.d.cts.map