@ghostspeak/sdk 2.0.7 → 2.0.10

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.
Files changed (61) hide show
  1. package/README.md +145 -2
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/{GhostSpeakClient-CWmGaM9Q.d.ts → GhostSpeakClient-qdLGyuDp.d.ts} +11 -7
  4. package/dist/{StakingModule-C5rzuOWb.d.ts → StakingModule-CPhp_ZY0.d.ts} +263 -343
  5. package/dist/{agent-5YLZ7DAC.js → agent-S42FIMR7.js} +3 -3
  6. package/dist/{agent-5YLZ7DAC.js.map → agent-S42FIMR7.js.map} +1 -1
  7. package/dist/browser-D1TpjbjZ.d.ts +234 -0
  8. package/dist/browser.d.ts +4 -64
  9. package/dist/browser.js +9 -9
  10. package/dist/{chunk-SFTSZ3LC.js → chunk-46QWY3MG.js} +3 -3
  11. package/dist/{chunk-SFTSZ3LC.js.map → chunk-46QWY3MG.js.map} +1 -1
  12. package/dist/{chunk-IHVDQ4YI.js → chunk-5QZVFUXB.js} +201 -256
  13. package/dist/chunk-5QZVFUXB.js.map +1 -0
  14. package/dist/{chunk-E3FD2CNY.js → chunk-5SS3OL4B.js} +20 -24
  15. package/dist/chunk-5SS3OL4B.js.map +1 -0
  16. package/dist/{chunk-SZGFSCNU.js → chunk-63A7F2YP.js} +504 -326
  17. package/dist/chunk-63A7F2YP.js.map +1 -0
  18. package/dist/{chunk-JV2SWONF.js → chunk-A7ALCVUI.js} +3 -3
  19. package/dist/{chunk-JV2SWONF.js.map → chunk-A7ALCVUI.js.map} +1 -1
  20. package/dist/{chunk-AL3HQN73.js → chunk-AWMGX3OX.js} +172 -112
  21. package/dist/chunk-AWMGX3OX.js.map +1 -0
  22. package/dist/{chunk-G7S6B6WB.js → chunk-EU6PHSM5.js} +7 -7
  23. package/dist/{chunk-G7S6B6WB.js.map → chunk-EU6PHSM5.js.map} +1 -1
  24. package/dist/{chunk-C5CDA3WX.js → chunk-HIDBANFS.js} +529 -4
  25. package/dist/chunk-HIDBANFS.js.map +1 -0
  26. package/dist/{chunk-S74EH3KD.js → chunk-IQM5RASO.js} +637 -25
  27. package/dist/chunk-IQM5RASO.js.map +1 -0
  28. package/dist/{chunk-KB6CKIUK.js → chunk-QLRWUHN2.js} +3 -3
  29. package/dist/{chunk-KB6CKIUK.js.map → chunk-QLRWUHN2.js.map} +1 -1
  30. package/dist/{chunk-BQDGRTVP.js → chunk-QWQTPTZ4.js} +39 -51
  31. package/dist/chunk-QWQTPTZ4.js.map +1 -0
  32. package/dist/client.d.ts +3 -4
  33. package/dist/client.js +10 -10
  34. package/dist/{createAgentAuthorization-ULG47ZJI.js → createAgentAuthorization-KGZNXZBT.js} +4 -4
  35. package/dist/{createAgentAuthorization-ULG47ZJI.js.map → createAgentAuthorization-KGZNXZBT.js.map} +1 -1
  36. package/dist/generated-QJREJQ2C.js +9 -0
  37. package/dist/{generated-EG5USUFG.js.map → generated-QJREJQ2C.js.map} +1 -1
  38. package/dist/index.d.ts +345 -236
  39. package/dist/index.js +372 -537
  40. package/dist/index.js.map +1 -1
  41. package/dist/metafile-esm.json +1 -1
  42. package/dist/minimal/core-minimal.d.ts +266 -189
  43. package/dist/minimal/core-minimal.js +6 -6
  44. package/dist/minimal/core-minimal.js.map +1 -1
  45. package/dist/{revokeAuthorization-OK7E7OK3.js → revokeAuthorization-2ZRO6GUZ.js} +4 -4
  46. package/dist/{revokeAuthorization-OK7E7OK3.js.map → revokeAuthorization-2ZRO6GUZ.js.map} +1 -1
  47. package/dist/{signature-verification-DGxR4aYQ.d.ts → signature-verification-BDzoR1MG.d.ts} +0 -5
  48. package/dist/{updateReputationWithAuth-Y4ONEVSP.js → updateReputationWithAuth-PCEUOCFV.js} +4 -4
  49. package/dist/{updateReputationWithAuth-Y4ONEVSP.js.map → updateReputationWithAuth-PCEUOCFV.js.map} +1 -1
  50. package/dist/utils.d.ts +143 -2
  51. package/dist/utils.js +10 -10
  52. package/dist/utils.js.map +1 -1
  53. package/package.json +5 -3
  54. package/dist/chunk-AL3HQN73.js.map +0 -1
  55. package/dist/chunk-BQDGRTVP.js.map +0 -1
  56. package/dist/chunk-C5CDA3WX.js.map +0 -1
  57. package/dist/chunk-E3FD2CNY.js.map +0 -1
  58. package/dist/chunk-IHVDQ4YI.js.map +0 -1
  59. package/dist/chunk-S74EH3KD.js.map +0 -1
  60. package/dist/chunk-SZGFSCNU.js.map +0 -1
  61. package/dist/generated-EG5USUFG.js +0 -9
@@ -1,4 +1,4 @@
1
- import { GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, expectAddress, expectSome, getAccountMetaFactory } from './chunk-AL3HQN73.js';
1
+ import { GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, expectAddress, expectSome, getAccountMetaFactory } from './chunk-AWMGX3OX.js';
2
2
  import { fixEncoderSize, getBytesEncoder, transformEncoder, getStructEncoder, getI64Encoder, addEncoderSizePrefix, getOptionEncoder, getUtf8Encoder, getU32Encoder, getStructDecoder, fixDecoderSize, getI64Decoder, addDecoderSizePrefix, getOptionDecoder, getBytesDecoder, getUtf8Decoder, getU32Decoder, combineCodec, getProgramDerivedAddress, getAddressEncoder } from '@solana/kit';
3
3
 
4
4
  var UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR = new Uint8Array([
@@ -227,5 +227,5 @@ function parseUpdateReputationWithAuthInstruction(instruction) {
227
227
  }
228
228
 
229
229
  export { UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR, getUpdateReputationWithAuthDiscriminatorBytes, getUpdateReputationWithAuthInstruction, getUpdateReputationWithAuthInstructionAsync, getUpdateReputationWithAuthInstructionDataCodec, getUpdateReputationWithAuthInstructionDataDecoder, getUpdateReputationWithAuthInstructionDataEncoder, parseUpdateReputationWithAuthInstruction };
230
- //# sourceMappingURL=chunk-KB6CKIUK.js.map
231
- //# sourceMappingURL=chunk-KB6CKIUK.js.map
230
+ //# sourceMappingURL=chunk-QLRWUHN2.js.map
231
+ //# sourceMappingURL=chunk-QLRWUHN2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generated/instructions/updateReputationWithAuth.ts"],"names":[],"mappings":";;;AAsDO,IAAM,yCAAA,GAA4C,IAAI,UAAA,CAAW;AAAA,EACtE,EAAA;AAAA,EAAI,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,EAAA;AAAA,EAAI,EAAA;AAAA,EAAI;AAClC,CAAC;AAEM,SAAS,6CAAA,GAAgD;AAC9D,EAAA,OAAO,cAAA,CAAe,eAAA,EAAgB,EAAG,CAAC,CAAA,CAAE,MAAA;AAAA,IAC1C;AAAA,GACF;AACF;AA2DO,SAAS,iDAAA,GAA0G;AACxH,EAAA,OAAO,gBAAA;AAAA,IACL,gBAAA,CAAiB;AAAA,MACf,CAAC,eAAA,EAAiB,cAAA,CAAe,eAAA,EAAgB,EAAG,CAAC,CAAC,CAAA;AAAA,MACtD,CAAC,kBAAA,EAAoB,aAAA,EAAe,CAAA;AAAA,MACpC;AAAA,QACE,sBAAA;AAAA,QACA,oBAAA,CAAqB,cAAA,EAAe,EAAG,aAAA,EAAe;AAAA,OACxD;AAAA,MACA;AAAA,QACE,UAAA;AAAA,QACA,gBAAA;AAAA,UACE,oBAAA,CAAqB,cAAA,EAAe,EAAG,aAAA,EAAe;AAAA;AACxD,OACF;AAAA,MACA;AAAA,QACE,OAAA;AAAA,QACA,gBAAA;AAAA,UACE,oBAAA,CAAqB,cAAA,EAAe,EAAG,aAAA,EAAe;AAAA;AACxD;AACF,KACD,CAAA;AAAA,IACD,CAAC,KAAA,MAAW;AAAA,MACV,GAAG,KAAA;AAAA,MACH,aAAA,EAAe;AAAA,KACjB;AAAA,GACF;AACF;AAEO,SAAS,iDAAA,GAAsG;AACpH,EAAA,OAAO,gBAAA,CAAiB;AAAA,IACtB,CAAC,eAAA,EAAiB,cAAA,CAAe,eAAA,EAAgB,EAAG,CAAC,CA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,MACzC,cAAA,CAAe,SAAS,aAAa,CAAA;AAAA,MACrC,cAAA,CAAe,SAAS,WAAW,CAAA;AAAA,MACnC,cAAA,CAAe,SAAS,gBAAgB,CAAA;AAAA,MACxC,cAAA,CAAe,SAAS,aAAa,CAAA;AAAA,MACrC,cAAA,CAAe,SAAS,KAAK;AAAA,KAC/B;AAAA,IACA,IAAA,EAAM,mDAAkD,CAAE,MAAA;AAAA,MACxD;AAAA,KACF;AAAA,IACA;AAAA,GAUD,CAAA;AACH;AA0BO,SAAS,yCAId,WAAA,EAGoE;AACpE,EAAA,IAAI,WAAA,CAAY,QAAA,CAAS,MAAA,GAAS,CAAA,EAAG;AAEnC,IAAA,MAAM,IAAI,MAAM,qBAAqB,CAAA;AAAA,EACvC;AACA,EAAA,IAAI,YAAA,GAAe,CAAA;AACnB,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAA,MAAM,WAAA,GAAe,WAAA,CAAY,QAAA,CAA2B,YAAY,CAAA;AACxE,IAAA,YAAA,IAAgB,CAAA;AAChB,IAAA,OAAO,WAAA;AAAA,EACT,CAAA;AACA,EAAA,OAAO;AAAA,IACL,gBAAgB,WAAA,CAAY,cAAA;AAAA,IAC5B,QAAA,EAAU;AAAA,MACR,OAAO,cAAA,EAAe;AAAA,MACtB,mBAAmB,cAAA,EAAe;AAAA,MAClC,eAAe,cAAA,EAAe;AAAA,MAC9B,aAAa,cAAA,EAAe;AAAA,MAC5B,kBAAkB,cAAA,EAAe;AAAA,MACjC,eAAe,cAAA,EAAe;AAAA,MAC9B,OAAO,cAAA;AAAe,KACxB;AAAA,IACA,IAAA,EAAM,mDAAkD,CAAE,MAAA;AAAA,MACxD,WAAA,CAAY;AAAA;AACd,GACF;AACF","file":"chunk-KB6CKIUK.js","sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n addDecoderSizePrefix,\n addEncoderSizePrefix,\n combineCodec,\n fixDecoderSize,\n fixEncoderSize,\n getAddressEncoder,\n getBytesDecoder,\n getBytesEncoder,\n getI64Decoder,\n getI64Encoder,\n getOptionDecoder,\n getOptionEncoder,\n getProgramDerivedAddress,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getUtf8Decoder,\n getUtf8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type Codec,\n type Decoder,\n type Encoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type Option,\n type OptionOrNullable,\n type ReadonlyAccount,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from \"@solana/kit\";\nimport { GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS } from \"../programs\";\nimport {\n expectAddress,\n expectSome,\n getAccountMetaFactory,\n type ResolvedAccount,\n} from \"../shared\";\n\nexport const UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR = new Uint8Array([\n 61, 236, 225, 167, 134, 43, 53, 93,\n]);\n\nexport function getUpdateReputationWithAuthDiscriminatorBytes() {\n return fixEncoderSize(getBytesEncoder(), 8).encode(\n UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR,\n );\n}\n\nexport type UpdateReputationWithAuthInstruction<\n TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n TAccountAgent extends string | AccountMeta<string> = string,\n TAccountReputationMetrics extends string | AccountMeta<string> = string,\n TAccountAuthorization extends string | AccountMeta<string> = string,\n TAccountUsageRecord extends string | AccountMeta<string> = string,\n TAccountAuthorizedSource extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends string | AccountMeta<string> =\n \"11111111111111111111111111111111\",\n TAccountClock extends string | AccountMeta<string> =\n \"SysvarC1ock11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAgent extends string\n ? ReadonlyAccount<TAccountAgent>\n : TAccountAgent,\n TAccountReputationMetrics extends string\n ? WritableAccount<TAccountReputationMetrics>\n : TAccountReputationMetrics,\n TAccountAuthorization extends string\n ? WritableAccount<TAccountAuthorization>\n : TAccountAuthorization,\n TAccountUsageRecord extends string\n ? WritableAccount<TAccountUsageRecord>\n : TAccountUsageRecord,\n TAccountAuthorizedSource extends string\n ? WritableSignerAccount<TAccountAuthorizedSource> &\n AccountSignerMeta<TAccountAuthorizedSource>\n : TAccountAuthorizedSource,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountClock extends string\n ? ReadonlyAccount<TAccountClock>\n : TAccountClock,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type UpdateReputationWithAuthInstructionData = {\n discriminator: ReadonlyUint8Array;\n reputationChange: bigint;\n transactionSignature: string;\n metadata: Option<string>;\n nonce: Option<string>;\n};\n\nexport type UpdateReputationWithAuthInstructionDataArgs = {\n reputationChange: number | bigint;\n transactionSignature: string;\n metadata: OptionOrNullable<string>;\n nonce: OptionOrNullable<string>;\n};\n\nexport function getUpdateReputationWithAuthInstructionDataEncoder(): Encoder<UpdateReputationWithAuthInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", fixEncoderSize(getBytesEncoder(), 8)],\n [\"reputationChange\", getI64Encoder()],\n [\n \"transactionSignature\",\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ],\n [\n \"metadata\",\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ),\n ],\n [\n \"nonce\",\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getUpdateReputationWithAuthInstructionDataDecoder(): Decoder<UpdateReputationWithAuthInstructionData> {\n return getStructDecoder([\n [\"discriminator\", fixDecoderSize(getBytesDecoder(), 8)],\n [\"reputationChange\", getI64Decoder()],\n [\n \"transactionSignature\",\n addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder()),\n ],\n [\n \"metadata\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n [\n \"nonce\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n ]);\n}\n\nexport function getUpdateReputationWithAuthInstructionDataCodec(): Codec<\n UpdateReputationWithAuthInstructionDataArgs,\n UpdateReputationWithAuthInstructionData\n> {\n return combineCodec(\n getUpdateReputationWithAuthInstructionDataEncoder(),\n getUpdateReputationWithAuthInstructionDataDecoder(),\n );\n}\n\nexport type UpdateReputationWithAuthAsyncInput<\n TAccountAgent extends string = string,\n TAccountReputationMetrics extends string = string,\n TAccountAuthorization extends string = string,\n TAccountUsageRecord extends string = string,\n TAccountAuthorizedSource extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountClock extends string = string,\n> = {\n /** Agent whose reputation is being updated */\n agent: Address<TAccountAgent>;\n /** Agent reputation metrics */\n reputationMetrics?: Address<TAccountReputationMetrics>;\n /** Authorization account (PDA) */\n authorization?: Address<TAccountAuthorization>;\n /** Usage record account (optional, for audit trail) */\n usageRecord: Address<TAccountUsageRecord>;\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TransactionSigner<TAccountAuthorizedSource>;\n /** System program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** Clock for timestamps */\n clock?: Address<TAccountClock>;\n reputationChange: UpdateReputationWithAuthInstructionDataArgs[\"reputationChange\"];\n transactionSignature: UpdateReputationWithAuthInstructionDataArgs[\"transactionSignature\"];\n metadata: UpdateReputationWithAuthInstructionDataArgs[\"metadata\"];\n nonce: UpdateReputationWithAuthInstructionDataArgs[\"nonce\"];\n};\n\nexport async function getUpdateReputationWithAuthInstructionAsync<\n TAccountAgent extends string,\n TAccountReputationMetrics extends string,\n TAccountAuthorization extends string,\n TAccountUsageRecord extends string,\n TAccountAuthorizedSource extends string,\n TAccountSystemProgram extends string,\n TAccountClock extends string,\n TProgramAddress extends Address =\n typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n>(\n input: UpdateReputationWithAuthAsyncInput<\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >,\n config?: { programAddress?: TProgramAddress },\n): Promise<\n UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n agent: { value: input.agent ?? null, isWritable: false },\n reputationMetrics: {\n value: input.reputationMetrics ?? null,\n isWritable: true,\n },\n authorization: { value: input.authorization ?? null, isWritable: true },\n usageRecord: { value: input.usageRecord ?? null, isWritable: true },\n authorizedSource: {\n value: input.authorizedSource ?? null,\n isWritable: true,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n clock: { value: input.clock ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.reputationMetrics.value) {\n accounts.reputationMetrics.value = await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getBytesEncoder().encode(\n new Uint8Array([\n 114, 101, 112, 117, 116, 97, 116, 105, 111, 110, 95, 109, 101, 116,\n 114, 105, 99, 115,\n ]),\n ),\n getAddressEncoder().encode(expectAddress(accounts.agent.value)),\n ],\n });\n }\n if (!accounts.authorization.value) {\n accounts.authorization.value = await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getBytesEncoder().encode(\n new Uint8Array([97, 103, 101, 110, 116, 95, 97, 117, 116, 104]),\n ),\n getAddressEncoder().encode(expectAddress(accounts.agent.value)),\n getAddressEncoder().encode(\n expectAddress(accounts.authorizedSource.value),\n ),\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ).encode(expectSome(args.nonce)),\n ],\n });\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n if (!accounts.clock.value) {\n accounts.clock.value =\n \"SysvarC1ock11111111111111111111111111111111\" as Address<\"SysvarC1ock11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.agent),\n getAccountMeta(accounts.reputationMetrics),\n getAccountMeta(accounts.authorization),\n getAccountMeta(accounts.usageRecord),\n getAccountMeta(accounts.authorizedSource),\n getAccountMeta(accounts.systemProgram),\n getAccountMeta(accounts.clock),\n ],\n data: getUpdateReputationWithAuthInstructionDataEncoder().encode(\n args as UpdateReputationWithAuthInstructionDataArgs,\n ),\n programAddress,\n } as UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >);\n}\n\nexport type UpdateReputationWithAuthInput<\n TAccountAgent extends string = string,\n TAccountReputationMetrics extends string = string,\n TAccountAuthorization extends string = string,\n TAccountUsageRecord extends string = string,\n TAccountAuthorizedSource extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountClock extends string = string,\n> = {\n /** Agent whose reputation is being updated */\n agent: Address<TAccountAgent>;\n /** Agent reputation metrics */\n reputationMetrics: Address<TAccountReputationMetrics>;\n /** Authorization account (PDA) */\n authorization: Address<TAccountAuthorization>;\n /** Usage record account (optional, for audit trail) */\n usageRecord: Address<TAccountUsageRecord>;\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TransactionSigner<TAccountAuthorizedSource>;\n /** System program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** Clock for timestamps */\n clock?: Address<TAccountClock>;\n reputationChange: UpdateReputationWithAuthInstructionDataArgs[\"reputationChange\"];\n transactionSignature: UpdateReputationWithAuthInstructionDataArgs[\"transactionSignature\"];\n metadata: UpdateReputationWithAuthInstructionDataArgs[\"metadata\"];\n nonce: UpdateReputationWithAuthInstructionDataArgs[\"nonce\"];\n};\n\nexport function getUpdateReputationWithAuthInstruction<\n TAccountAgent extends string,\n TAccountReputationMetrics extends string,\n TAccountAuthorization extends string,\n TAccountUsageRecord extends string,\n TAccountAuthorizedSource extends string,\n TAccountSystemProgram extends string,\n TAccountClock extends string,\n TProgramAddress extends Address =\n typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n>(\n input: UpdateReputationWithAuthInput<\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n agent: { value: input.agent ?? null, isWritable: false },\n reputationMetrics: {\n value: input.reputationMetrics ?? null,\n isWritable: true,\n },\n authorization: { value: input.authorization ?? null, isWritable: true },\n usageRecord: { value: input.usageRecord ?? null, isWritable: true },\n authorizedSource: {\n value: input.authorizedSource ?? null,\n isWritable: true,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n clock: { value: input.clock ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n if (!accounts.clock.value) {\n accounts.clock.value =\n \"SysvarC1ock11111111111111111111111111111111\" as Address<\"SysvarC1ock11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.agent),\n getAccountMeta(accounts.reputationMetrics),\n getAccountMeta(accounts.authorization),\n getAccountMeta(accounts.usageRecord),\n getAccountMeta(accounts.authorizedSource),\n getAccountMeta(accounts.systemProgram),\n getAccountMeta(accounts.clock),\n ],\n data: getUpdateReputationWithAuthInstructionDataEncoder().encode(\n args as UpdateReputationWithAuthInstructionDataArgs,\n ),\n programAddress,\n } as UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >);\n}\n\nexport type ParsedUpdateReputationWithAuthInstruction<\n TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n /** Agent whose reputation is being updated */\n agent: TAccountMetas[0];\n /** Agent reputation metrics */\n reputationMetrics: TAccountMetas[1];\n /** Authorization account (PDA) */\n authorization: TAccountMetas[2];\n /** Usage record account (optional, for audit trail) */\n usageRecord: TAccountMetas[3];\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TAccountMetas[4];\n /** System program */\n systemProgram: TAccountMetas[5];\n /** Clock for timestamps */\n clock: TAccountMetas[6];\n };\n data: UpdateReputationWithAuthInstructionData;\n};\n\nexport function parseUpdateReputationWithAuthInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdateReputationWithAuthInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 7) {\n // TODO: Coded error.\n throw new Error(\"Not enough accounts\");\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n agent: getNextAccount(),\n reputationMetrics: getNextAccount(),\n authorization: getNextAccount(),\n usageRecord: getNextAccount(),\n authorizedSource: getNextAccount(),\n systemProgram: getNextAccount(),\n clock: getNextAccount(),\n },\n data: getUpdateReputationWithAuthInstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"]}
1
+ {"version":3,"sources":["../src/generated/instructions/updateReputationWithAuth.ts"],"names":[],"mappings":";;;AAsDO,IAAM,yCAAA,GAA4C,IAAI,UAAA,CAAW;AAAA,EACtE,EAAA;AAAA,EAAI,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,GAAA;AAAA,EAAK,EAAA;AAAA,EAAI,EAAA;AAAA,EAAI;AAClC,CAAC;AAEM,SAAS,6CAAA,GAAgD;AAC9D,EAAA,OAAO,cAAA,CAAe,eAAA,EAAgB,EAAG,CAAC,CAAA,CAAE,MAAA;AAAA,IAC1C;AAAA,GACF;AACF;AA2DO,SAAS,iDAAA,GAA0G;AACxH,EAAA,OAAO,gBAAA;AAAA,IACL,gBAAA,CAAiB;AAAA,MACf,CAAC,eAAA,EAAiB,cAAA,CAAe,eAAA,EAAgB,EAAG,CAAC,CAAC,CAAA;AAAA,MACtD,CAAC,kBAAA,EAAoB,aAAA,EAAe,CAAA;AAAA,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;AAAA,EACT,CAAA;AACA,EAAA,OAAO;AAAA,IACL,gBAAgB,WAAA,CAAY,cAAA;AAAA,IAC5B,QAAA,EAAU;AAAA,MACR,OAAO,cAAA,EAAe;AAAA,MACtB,mBAAmB,cAAA,EAAe;AAAA,MAClC,eAAe,cAAA,EAAe;AAAA,MAC9B,aAAa,cAAA,EAAe;AAAA,MAC5B,kBAAkB,cAAA,EAAe;AAAA,MACjC,eAAe,cAAA,EAAe;AAAA,MAC9B,OAAO,cAAA;AAAe,KACxB;AAAA,IACA,IAAA,EAAM,mDAAkD,CAAE,MAAA;AAAA,MACxD,WAAA,CAAY;AAAA;AACd,GACF;AACF","file":"chunk-QLRWUHN2.js","sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n addDecoderSizePrefix,\n addEncoderSizePrefix,\n combineCodec,\n fixDecoderSize,\n fixEncoderSize,\n getAddressEncoder,\n getBytesDecoder,\n getBytesEncoder,\n getI64Decoder,\n getI64Encoder,\n getOptionDecoder,\n getOptionEncoder,\n getProgramDerivedAddress,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getUtf8Decoder,\n getUtf8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type Codec,\n type Decoder,\n type Encoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type Option,\n type OptionOrNullable,\n type ReadonlyAccount,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from \"@solana/kit\";\nimport { GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS } from \"../programs\";\nimport {\n expectAddress,\n expectSome,\n getAccountMetaFactory,\n type ResolvedAccount,\n} from \"../shared\";\n\nexport const UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR = new Uint8Array([\n 61, 236, 225, 167, 134, 43, 53, 93,\n]);\n\nexport function getUpdateReputationWithAuthDiscriminatorBytes() {\n return fixEncoderSize(getBytesEncoder(), 8).encode(\n UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR,\n );\n}\n\nexport type UpdateReputationWithAuthInstruction<\n TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n TAccountAgent extends string | AccountMeta<string> = string,\n TAccountReputationMetrics extends string | AccountMeta<string> = string,\n TAccountAuthorization extends string | AccountMeta<string> = string,\n TAccountUsageRecord extends string | AccountMeta<string> = string,\n TAccountAuthorizedSource extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends string | AccountMeta<string> =\n \"11111111111111111111111111111111\",\n TAccountClock extends string | AccountMeta<string> =\n \"SysvarC1ock11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAgent extends string\n ? ReadonlyAccount<TAccountAgent>\n : TAccountAgent,\n TAccountReputationMetrics extends string\n ? WritableAccount<TAccountReputationMetrics>\n : TAccountReputationMetrics,\n TAccountAuthorization extends string\n ? WritableAccount<TAccountAuthorization>\n : TAccountAuthorization,\n TAccountUsageRecord extends string\n ? WritableAccount<TAccountUsageRecord>\n : TAccountUsageRecord,\n TAccountAuthorizedSource extends string\n ? WritableSignerAccount<TAccountAuthorizedSource> &\n AccountSignerMeta<TAccountAuthorizedSource>\n : TAccountAuthorizedSource,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountClock extends string\n ? ReadonlyAccount<TAccountClock>\n : TAccountClock,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type UpdateReputationWithAuthInstructionData = {\n discriminator: ReadonlyUint8Array;\n reputationChange: bigint;\n transactionSignature: string;\n metadata: Option<string>;\n nonce: Option<string>;\n};\n\nexport type UpdateReputationWithAuthInstructionDataArgs = {\n reputationChange: number | bigint;\n transactionSignature: string;\n metadata: OptionOrNullable<string>;\n nonce: OptionOrNullable<string>;\n};\n\nexport function getUpdateReputationWithAuthInstructionDataEncoder(): Encoder<UpdateReputationWithAuthInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", fixEncoderSize(getBytesEncoder(), 8)],\n [\"reputationChange\", getI64Encoder()],\n [\n \"transactionSignature\",\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ],\n [\n \"metadata\",\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ),\n ],\n [\n \"nonce\",\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getUpdateReputationWithAuthInstructionDataDecoder(): Decoder<UpdateReputationWithAuthInstructionData> {\n return getStructDecoder([\n [\"discriminator\", fixDecoderSize(getBytesDecoder(), 8)],\n [\"reputationChange\", getI64Decoder()],\n [\n \"transactionSignature\",\n addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder()),\n ],\n [\n \"metadata\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n [\n \"nonce\",\n getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())),\n ],\n ]);\n}\n\nexport function getUpdateReputationWithAuthInstructionDataCodec(): Codec<\n UpdateReputationWithAuthInstructionDataArgs,\n UpdateReputationWithAuthInstructionData\n> {\n return combineCodec(\n getUpdateReputationWithAuthInstructionDataEncoder(),\n getUpdateReputationWithAuthInstructionDataDecoder(),\n );\n}\n\nexport type UpdateReputationWithAuthAsyncInput<\n TAccountAgent extends string = string,\n TAccountReputationMetrics extends string = string,\n TAccountAuthorization extends string = string,\n TAccountUsageRecord extends string = string,\n TAccountAuthorizedSource extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountClock extends string = string,\n> = {\n /** Agent whose reputation is being updated */\n agent: Address<TAccountAgent>;\n /** Agent reputation metrics */\n reputationMetrics?: Address<TAccountReputationMetrics>;\n /** Authorization account (PDA) */\n authorization?: Address<TAccountAuthorization>;\n /** Usage record account (optional, for audit trail) */\n usageRecord: Address<TAccountUsageRecord>;\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TransactionSigner<TAccountAuthorizedSource>;\n /** System program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** Clock for timestamps */\n clock?: Address<TAccountClock>;\n reputationChange: UpdateReputationWithAuthInstructionDataArgs[\"reputationChange\"];\n transactionSignature: UpdateReputationWithAuthInstructionDataArgs[\"transactionSignature\"];\n metadata: UpdateReputationWithAuthInstructionDataArgs[\"metadata\"];\n nonce: UpdateReputationWithAuthInstructionDataArgs[\"nonce\"];\n};\n\nexport async function getUpdateReputationWithAuthInstructionAsync<\n TAccountAgent extends string,\n TAccountReputationMetrics extends string,\n TAccountAuthorization extends string,\n TAccountUsageRecord extends string,\n TAccountAuthorizedSource extends string,\n TAccountSystemProgram extends string,\n TAccountClock extends string,\n TProgramAddress extends Address =\n typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n>(\n input: UpdateReputationWithAuthAsyncInput<\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >,\n config?: { programAddress?: TProgramAddress },\n): Promise<\n UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n agent: { value: input.agent ?? null, isWritable: false },\n reputationMetrics: {\n value: input.reputationMetrics ?? null,\n isWritable: true,\n },\n authorization: { value: input.authorization ?? null, isWritable: true },\n usageRecord: { value: input.usageRecord ?? null, isWritable: true },\n authorizedSource: {\n value: input.authorizedSource ?? null,\n isWritable: true,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n clock: { value: input.clock ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.reputationMetrics.value) {\n accounts.reputationMetrics.value = await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getBytesEncoder().encode(\n new Uint8Array([\n 114, 101, 112, 117, 116, 97, 116, 105, 111, 110, 95, 109, 101, 116,\n 114, 105, 99, 115,\n ]),\n ),\n getAddressEncoder().encode(expectAddress(accounts.agent.value)),\n ],\n });\n }\n if (!accounts.authorization.value) {\n accounts.authorization.value = await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getBytesEncoder().encode(\n new Uint8Array([97, 103, 101, 110, 116, 95, 97, 117, 116, 104]),\n ),\n getAddressEncoder().encode(expectAddress(accounts.agent.value)),\n getAddressEncoder().encode(\n expectAddress(accounts.authorizedSource.value),\n ),\n getOptionEncoder(\n addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder()),\n ).encode(expectSome(args.nonce)),\n ],\n });\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n if (!accounts.clock.value) {\n accounts.clock.value =\n \"SysvarC1ock11111111111111111111111111111111\" as Address<\"SysvarC1ock11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.agent),\n getAccountMeta(accounts.reputationMetrics),\n getAccountMeta(accounts.authorization),\n getAccountMeta(accounts.usageRecord),\n getAccountMeta(accounts.authorizedSource),\n getAccountMeta(accounts.systemProgram),\n getAccountMeta(accounts.clock),\n ],\n data: getUpdateReputationWithAuthInstructionDataEncoder().encode(\n args as UpdateReputationWithAuthInstructionDataArgs,\n ),\n programAddress,\n } as UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >);\n}\n\nexport type UpdateReputationWithAuthInput<\n TAccountAgent extends string = string,\n TAccountReputationMetrics extends string = string,\n TAccountAuthorization extends string = string,\n TAccountUsageRecord extends string = string,\n TAccountAuthorizedSource extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountClock extends string = string,\n> = {\n /** Agent whose reputation is being updated */\n agent: Address<TAccountAgent>;\n /** Agent reputation metrics */\n reputationMetrics: Address<TAccountReputationMetrics>;\n /** Authorization account (PDA) */\n authorization: Address<TAccountAuthorization>;\n /** Usage record account (optional, for audit trail) */\n usageRecord: Address<TAccountUsageRecord>;\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TransactionSigner<TAccountAuthorizedSource>;\n /** System program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** Clock for timestamps */\n clock?: Address<TAccountClock>;\n reputationChange: UpdateReputationWithAuthInstructionDataArgs[\"reputationChange\"];\n transactionSignature: UpdateReputationWithAuthInstructionDataArgs[\"transactionSignature\"];\n metadata: UpdateReputationWithAuthInstructionDataArgs[\"metadata\"];\n nonce: UpdateReputationWithAuthInstructionDataArgs[\"nonce\"];\n};\n\nexport function getUpdateReputationWithAuthInstruction<\n TAccountAgent extends string,\n TAccountReputationMetrics extends string,\n TAccountAuthorization extends string,\n TAccountUsageRecord extends string,\n TAccountAuthorizedSource extends string,\n TAccountSystemProgram extends string,\n TAccountClock extends string,\n TProgramAddress extends Address =\n typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n>(\n input: UpdateReputationWithAuthInput<\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n agent: { value: input.agent ?? null, isWritable: false },\n reputationMetrics: {\n value: input.reputationMetrics ?? null,\n isWritable: true,\n },\n authorization: { value: input.authorization ?? null, isWritable: true },\n usageRecord: { value: input.usageRecord ?? null, isWritable: true },\n authorizedSource: {\n value: input.authorizedSource ?? null,\n isWritable: true,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n clock: { value: input.clock ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n if (!accounts.clock.value) {\n accounts.clock.value =\n \"SysvarC1ock11111111111111111111111111111111\" as Address<\"SysvarC1ock11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.agent),\n getAccountMeta(accounts.reputationMetrics),\n getAccountMeta(accounts.authorization),\n getAccountMeta(accounts.usageRecord),\n getAccountMeta(accounts.authorizedSource),\n getAccountMeta(accounts.systemProgram),\n getAccountMeta(accounts.clock),\n ],\n data: getUpdateReputationWithAuthInstructionDataEncoder().encode(\n args as UpdateReputationWithAuthInstructionDataArgs,\n ),\n programAddress,\n } as UpdateReputationWithAuthInstruction<\n TProgramAddress,\n TAccountAgent,\n TAccountReputationMetrics,\n TAccountAuthorization,\n TAccountUsageRecord,\n TAccountAuthorizedSource,\n TAccountSystemProgram,\n TAccountClock\n >);\n}\n\nexport type ParsedUpdateReputationWithAuthInstruction<\n TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n /** Agent whose reputation is being updated */\n agent: TAccountMetas[0];\n /** Agent reputation metrics */\n reputationMetrics: TAccountMetas[1];\n /** Authorization account (PDA) */\n authorization: TAccountMetas[2];\n /** Usage record account (optional, for audit trail) */\n usageRecord: TAccountMetas[3];\n /** Authorized source (e.g., PayAI facilitator) */\n authorizedSource: TAccountMetas[4];\n /** System program */\n systemProgram: TAccountMetas[5];\n /** Clock for timestamps */\n clock: TAccountMetas[6];\n };\n data: UpdateReputationWithAuthInstructionData;\n};\n\nexport function parseUpdateReputationWithAuthInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdateReputationWithAuthInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 7) {\n // TODO: Coded error.\n throw new Error(\"Not enough accounts\");\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n agent: getNextAccount(),\n reputationMetrics: getNextAccount(),\n authorization: getNextAccount(),\n usageRecord: getNextAccount(),\n authorizedSource: getNextAccount(),\n systemProgram: getNextAccount(),\n clock: getNextAccount(),\n },\n data: getUpdateReputationWithAuthInstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"]}
@@ -49,22 +49,22 @@ async function signAuthorizationMessage(message, agentKeypair) {
49
49
  const signature = nacl.sign.detached(messageBuffer, agentKeypair.secretKey);
50
50
  return signature;
51
51
  }
52
- async function verifyAuthorizationSignature(authorization2) {
52
+ async function verifyAuthorizationSignature(authorization) {
53
53
  try {
54
54
  const message = {
55
- agentAddress: authorization2.agentAddress,
56
- authorizedSource: authorization2.authorizedSource,
57
- indexLimit: authorization2.indexLimit,
58
- expiresAt: authorization2.expiresAt,
59
- network: authorization2.network,
60
- nonce: authorization2.nonce
55
+ agentAddress: authorization.agentAddress,
56
+ authorizedSource: authorization.authorizedSource,
57
+ indexLimit: authorization.indexLimit,
58
+ expiresAt: authorization.expiresAt,
59
+ network: authorization.network,
60
+ nonce: authorization.nonce
61
61
  };
62
62
  const messageBuffer = createAuthorizationMessage(message);
63
63
  const nacl = await import('./nacl-fast-W5BJ3KZ2.js');
64
- const agentPubkeyBytes = bs58.decode(authorization2.agentAddress);
64
+ const agentPubkeyBytes = bs58.decode(authorization.agentAddress);
65
65
  const isValid = nacl.sign.detached.verify(
66
66
  messageBuffer,
67
- authorization2.signature,
67
+ authorization.signature,
68
68
  agentPubkeyBytes
69
69
  );
70
70
  return isValid;
@@ -89,7 +89,7 @@ async function createSignedAuthorization(params, agentKeypair) {
89
89
  nonce
90
90
  };
91
91
  const signature = await signAuthorizationMessage(message, agentKeypair);
92
- const authorization2 = {
92
+ const authorization = {
93
93
  agentAddress,
94
94
  authorizedSource: params.authorizedSource,
95
95
  indexLimit,
@@ -99,41 +99,35 @@ async function createSignedAuthorization(params, agentKeypair) {
99
99
  nonce,
100
100
  metadata: params.metadata
101
101
  };
102
- return authorization2;
102
+ return authorization;
103
103
  }
104
104
  function generateNonce() {
105
- if (globalThis.crypto) {
106
- const buffer2 = new Uint8Array(32);
107
- globalThis.crypto.getRandomValues(buffer2);
108
- return Buffer.from(buffer2).toString("hex");
109
- }
110
- const nodeCrypto = eval("require")("crypto");
111
105
  const buffer = new Uint8Array(32);
112
- nodeCrypto.webcrypto.getRandomValues(buffer);
106
+ globalThis.crypto.getRandomValues(buffer);
113
107
  return Buffer.from(buffer).toString("hex");
114
108
  }
115
- function serializeAuthorization(authorization2) {
109
+ function serializeAuthorization(authorization) {
116
110
  return {
117
- agentAddress: authorization2.agentAddress,
118
- authorizedSource: authorization2.authorizedSource,
119
- indexLimit: authorization2.indexLimit,
120
- expiresAt: authorization2.expiresAt,
121
- network: authorization2.network,
122
- signature: bs58.encode(authorization2.signature),
123
- nonce: authorization2.nonce,
124
- metadata: authorization2.metadata
111
+ agentAddress: authorization.agentAddress,
112
+ authorizedSource: authorization.authorizedSource,
113
+ indexLimit: authorization.indexLimit,
114
+ expiresAt: authorization.expiresAt,
115
+ network: authorization.network,
116
+ signature: bs58.encode(authorization.signature),
117
+ nonce: authorization.nonce,
118
+ metadata: authorization.metadata
125
119
  };
126
120
  }
127
- function deserializeAuthorization(data2) {
121
+ function deserializeAuthorization(data) {
128
122
  return {
129
- agentAddress: data2.agentAddress,
130
- authorizedSource: data2.authorizedSource,
131
- indexLimit: data2.indexLimit,
132
- expiresAt: data2.expiresAt,
133
- network: data2.network,
134
- signature: bs58.decode(data2.signature),
135
- nonce: data2.nonce,
136
- metadata: data2.metadata
123
+ agentAddress: data.agentAddress,
124
+ authorizedSource: data.authorizedSource,
125
+ indexLimit: data.indexLimit,
126
+ expiresAt: data.expiresAt,
127
+ network: data.network,
128
+ signature: bs58.decode(data.signature),
129
+ nonce: data.nonce,
130
+ metadata: data.metadata
137
131
  };
138
132
  }
139
133
  async function getAuthorizationId(authorization) {
@@ -141,28 +135,22 @@ async function getAuthorizationId(authorization) {
141
135
  const json = JSON.stringify(serialized);
142
136
  const encoder = new TextEncoder();
143
137
  const data = encoder.encode(json);
144
- let crypto;
145
- if (globalThis.crypto) {
146
- crypto = globalThis.crypto;
147
- } else {
148
- const nodeCrypto = eval("require")("crypto");
149
- crypto = nodeCrypto.webcrypto;
150
- }
138
+ const crypto = globalThis.crypto;
151
139
  const hashBuffer = await crypto.subtle.digest("SHA-256", data);
152
140
  const hashArray = new Uint8Array(hashBuffer);
153
141
  return bs58.encode(hashArray);
154
142
  }
155
- function isAuthorizationExpired(authorization2, currentTime) {
143
+ function isAuthorizationExpired(authorization, currentTime) {
156
144
  const now = currentTime || Math.floor(Date.now() / 1e3);
157
- return now >= authorization2.expiresAt;
145
+ return now >= authorization.expiresAt;
158
146
  }
159
- function isAuthorizationExhausted(authorization2, currentIndex) {
160
- return currentIndex >= authorization2.indexLimit;
147
+ function isAuthorizationExhausted(authorization, currentIndex) {
148
+ return currentIndex >= authorization.indexLimit;
161
149
  }
162
- function validateAuthorizationNetwork(authorization2, expectedNetwork) {
163
- return authorization2.network === expectedNetwork;
150
+ function validateAuthorizationNetwork(authorization, expectedNetwork) {
151
+ return authorization.network === expectedNetwork;
164
152
  }
165
153
 
166
154
  export { createAuthorizationMessage, createSignedAuthorization, deserializeAuthorization, generateNonce, getAuthorizationId, isAuthorizationExhausted, isAuthorizationExpired, serializeAuthorization, signAuthorizationMessage, signature_verification_exports, validateAuthorizationNetwork, verifyAuthorizationSignature };
167
- //# sourceMappingURL=chunk-BQDGRTVP.js.map
168
- //# sourceMappingURL=chunk-BQDGRTVP.js.map
155
+ //# sourceMappingURL=chunk-QWQTPTZ4.js.map
156
+ //# sourceMappingURL=chunk-QWQTPTZ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/signature-verification.ts"],"names":[],"mappings":";;;;;AAAA,IAAA,8BAAA,GAAA;AAAA,QAAA,CAAA,8BAAA,EAAA;AAAA,EAAA,0BAAA,EAAA,MAAA,0BAAA;AAAA,EAAA,yBAAA,EAAA,MAAA,yBAAA;AAAA,EAAA,wBAAA,EAAA,MAAA,wBAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,kBAAA,EAAA,MAAA,kBAAA;AAAA,EAAA,wBAAA,EAAA,MAAA,wBAAA;AAAA,EAAA,sBAAA,EAAA,MAAA,sBAAA;AAAA,EAAA,sBAAA,E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AO,OAAA,CAAQ,MAAA,CAAO,IAAI,CAAA;AAGhC,EAAA,MAAM,SAAS,UAAA,CAAW,MAAA;AAG1B,EAAA,MAAM,aAAa,MAAM,MAAA,CAAO,MAAA,CAAO,MAAA,CAAO,WAAW,IAAI,CAAA;AAC7D,EAAA,MAAM,SAAA,GAAY,IAAI,UAAA,CAAW,UAAU,CAAA;AAE3C,EAAA,OAAO,IAAA,CAAK,OAAO,SAAS,CAAA;AAC9B;AASO,SAAS,sBAAA,CACd,eACA,WAAA,EACS;AACT,EAAA,MAAM,MAAM,WAAA,IAAe,IAAA,CAAK,MAAM,IAAA,CAAK,GAAA,KAAQ,GAAI,CAAA;AACvD,EAAA,OAAO,OAAO,aAAA,CAAc,SAAA;AAC9B;AASO,SAAS,wBAAA,CACd,eACA,YAAA,EACS;AACT,EAAA,OAAO,gBAAgB,aAAA,CAAc,UAAA;AACvC;AASO,SAAS,4BAAA,CACd,eACA,eAAA,EACS;AACT,EAAA,OAAO,cAAc,OAAA,KAAY,eAAA;AACnC","file":"chunk-QWQTPTZ4.js","sourcesContent":["/**\n * Agent Authorization Signature Verification\n *\n * Ed25519 signature creation and verification for GhostSpeak's\n * trustless agent pre-authorization system.\n *\n * Enables verifiable delegation of reputation update authority.\n */\n\nimport { address } from '@solana/addresses'\nimport type { Address } from '@solana/addresses'\nimport type {\n ReputationAuthorization,\n AuthorizationMessage,\n CreateAuthorizationParams,\n SolanaNetwork,\n} from '../types/authorization/authorization-types'\nimport bs58 from 'bs58'\n\n/**\n * Keypair interface for Ed25519 signing operations\n * Compatible with both legacy and modern Solana key formats\n */\nexport interface SigningKeypair {\n publicKey: {\n toBase58(): string\n toBytes(): Uint8Array\n }\n secretKey: Uint8Array\n}\n\n/**\n * Authorization message domain separator\n * Prevents signature reuse across different protocols\n */\nconst DOMAIN_SEPARATOR = 'GhostSpeak Reputation Authorization'\n\n/**\n * Create authorization message for signing\n *\n * Message format:\n * - Domain separator (prevents cross-protocol replay)\n * - Agent address (32 bytes)\n * - Authorized source (32 bytes)\n * - Index limit (8 bytes, u64 big-endian)\n * - Expiration timestamp (8 bytes, u64 big-endian)\n * - Network string (variable length)\n * - Nonce (optional, 32 bytes if present)\n *\n * @param message - Authorization message parameters\n * @returns Buffer ready for signing\n */\nexport function createAuthorizationMessage(message: AuthorizationMessage): Buffer {\n const components: Buffer[] = []\n\n // 1. Domain separator\n components.push(Buffer.from(DOMAIN_SEPARATOR, 'utf8'))\n\n // 2. Agent address (32 bytes)\n const agentBytes = bs58.decode(message.agentAddress)\n components.push(Buffer.from(agentBytes))\n\n // 3. Authorized source (32 bytes)\n const sourceBytes = bs58.decode(message.authorizedSource)\n components.push(Buffer.from(sourceBytes))\n\n // 4. Index limit (8 bytes, u64 big-endian)\n const indexLimitBuffer = Buffer.allocUnsafe(8)\n indexLimitBuffer.writeBigUInt64BE(BigInt(message.indexLimit))\n components.push(indexLimitBuffer)\n\n // 5. Expiration timestamp (8 bytes, u64 big-endian)\n const expiresAtBuffer = Buffer.allocUnsafe(8)\n expiresAtBuffer.writeBigUInt64BE(BigInt(message.expiresAt))\n components.push(expiresAtBuffer)\n\n // 6. Network string\n components.push(Buffer.from(message.network, 'utf8'))\n\n // 7. Nonce (optional, 32 bytes)\n if (message.nonce) {\n components.push(Buffer.from(message.nonce, 'utf8'))\n }\n\n return Buffer.concat(components)\n}\n\n/**\n * Sign authorization message with agent's private key\n *\n * @param message - Authorization message to sign\n * @param agentKeypair - Agent's keypair (must match message.agentAddress)\n * @returns Ed25519 signature (64 bytes)\n */\nexport async function signAuthorizationMessage(\n message: AuthorizationMessage,\n agentKeypair: SigningKeypair\n): Promise<Uint8Array> {\n // Verify keypair matches agent address\n const keypairAddress = agentKeypair.publicKey.toBase58()\n if (keypairAddress !== message.agentAddress) {\n throw new Error(\n `Keypair public key ${keypairAddress} does not match agent address ${message.agentAddress}`\n )\n }\n\n // Create message buffer\n const messageBuffer = createAuthorizationMessage(message)\n\n // Sign with Ed25519\n const nacl = await import('tweetnacl')\n const signature = nacl.sign.detached(messageBuffer, agentKeypair.secretKey)\n\n return signature\n}\n\n/**\n * Verify authorization signature\n *\n * @param authorization - Authorization to verify\n * @returns True if signature is valid\n */\nexport async function verifyAuthorizationSignature(\n authorization: ReputationAuthorization\n): Promise<boolean> {\n try {\n // Reconstruct message\n const message: AuthorizationMessage = {\n agentAddress: authorization.agentAddress,\n authorizedSource: authorization.authorizedSource,\n indexLimit: authorization.indexLimit,\n expiresAt: authorization.expiresAt,\n network: authorization.network,\n nonce: authorization.nonce,\n }\n\n const messageBuffer = createAuthorizationMessage(message)\n\n // Verify signature\n const nacl = await import('tweetnacl')\n const agentPubkeyBytes = bs58.decode(authorization.agentAddress)\n const isValid = nacl.sign.detached.verify(\n messageBuffer,\n authorization.signature,\n agentPubkeyBytes\n )\n\n return isValid\n } catch (error) {\n console.error('[Auth Signature] Verification failed:', error)\n return false\n }\n}\n\n/**\n * Create a complete authorization with signature\n *\n * @param params - Authorization parameters\n * @param agentKeypair - Agent's keypair for signing\n * @returns Complete signed authorization\n */\nexport async function createSignedAuthorization(\n params: CreateAuthorizationParams,\n agentKeypair: SigningKeypair\n): Promise<ReputationAuthorization> {\n // Get agent address from keypair\n const agentAddress = address(agentKeypair.publicKey.toBase58())\n\n // Calculate expiration\n const now = Math.floor(Date.now() / 1000)\n const expiresAt = params.expiresAt || now + (params.expiresIn || 30 * 24 * 60 * 60) // Default 30 days\n\n // Default index limit\n const indexLimit = params.indexLimit || 1000\n\n // Default network (would need to be passed or detected from cluster)\n const network: SolanaNetwork = params.network || 'devnet'\n\n // Use \"default\" nonce if not provided to avoid PDA seed length issues (64-char hex exceeds 32-byte limit)\n // Note: This matches Rust's unwrap_or(&String::from(\"default\")) behavior\n const nonce = params.nonce !== undefined ? params.nonce : \"default\"\n\n // Create message\n const message: AuthorizationMessage = {\n agentAddress,\n authorizedSource: params.authorizedSource,\n indexLimit,\n expiresAt,\n network,\n nonce,\n }\n\n // Sign message\n const signature = await signAuthorizationMessage(message, agentKeypair)\n\n // Return complete authorization\n const authorization: ReputationAuthorization = {\n agentAddress,\n authorizedSource: params.authorizedSource,\n indexLimit,\n expiresAt,\n network,\n signature,\n nonce,\n metadata: params.metadata,\n }\n\n return authorization\n}\n\n/**\n * Generate a random nonce for replay protection\n *\n * @returns 32-byte random nonce as hex string\n */\nexport function generateNonce(): string {\n // Node 24+ always has globalThis.crypto\n const buffer = new Uint8Array(32)\n globalThis.crypto.getRandomValues(buffer)\n return Buffer.from(buffer).toString('hex')\n}\n\n/**\n * Serialize authorization to JSON-safe format\n *\n * @param authorization - Authorization to serialize\n * @returns JSON-safe object (signature as base58)\n */\nexport function serializeAuthorization(authorization: ReputationAuthorization): {\n agentAddress: string\n authorizedSource: string\n indexLimit: number\n expiresAt: number\n network: SolanaNetwork\n signature: string\n nonce?: string\n metadata?: any\n} {\n return {\n agentAddress: authorization.agentAddress,\n authorizedSource: authorization.authorizedSource,\n indexLimit: authorization.indexLimit,\n expiresAt: authorization.expiresAt,\n network: authorization.network,\n signature: bs58.encode(authorization.signature),\n nonce: authorization.nonce,\n metadata: authorization.metadata,\n }\n}\n\n/**\n * Deserialize authorization from JSON format\n *\n * @param data - Serialized authorization data\n * @returns ReputationAuthorization with Uint8Array signature\n */\nexport function deserializeAuthorization(data: {\n agentAddress: string\n authorizedSource: string\n indexLimit: number\n expiresAt: number\n network: SolanaNetwork\n signature: string\n nonce?: string\n metadata?: any\n}): ReputationAuthorization {\n return {\n agentAddress: data.agentAddress as Address,\n authorizedSource: data.authorizedSource as Address,\n indexLimit: data.indexLimit,\n expiresAt: data.expiresAt,\n network: data.network,\n signature: bs58.decode(data.signature),\n nonce: data.nonce,\n metadata: data.metadata,\n }\n}\n\n/**\n * Get authorization ID (deterministic hash)\n *\n * @param authorization - Authorization to hash\n * @returns Base58-encoded SHA-256 hash\n */\nexport async function getAuthorizationId(authorization: ReputationAuthorization): Promise<string> {\n const serialized = serializeAuthorization(authorization)\n const json = JSON.stringify(serialized)\n const encoder = new TextEncoder()\n const data = encoder.encode(json)\n\n // Node 24+ always has globalThis.crypto\n const crypto = globalThis.crypto\n\n // SHA-256 hash\n const hashBuffer = await crypto.subtle.digest('SHA-256', data)\n const hashArray = new Uint8Array(hashBuffer)\n\n return bs58.encode(hashArray)\n}\n\n/**\n * Check if authorization is expired\n *\n * @param authorization - Authorization to check\n * @param currentTime - Current Unix timestamp (defaults to now)\n * @returns True if expired\n */\nexport function isAuthorizationExpired(\n authorization: ReputationAuthorization,\n currentTime?: number\n): boolean {\n const now = currentTime || Math.floor(Date.now() / 1000)\n return now >= authorization.expiresAt\n}\n\n/**\n * Check if authorization has exceeded index limit\n *\n * @param authorization - Authorization to check\n * @param currentIndex - Current usage count\n * @returns True if exhausted\n */\nexport function isAuthorizationExhausted(\n authorization: ReputationAuthorization,\n currentIndex: number\n): boolean {\n return currentIndex >= authorization.indexLimit\n}\n\n/**\n * Validate authorization network matches expected\n *\n * @param authorization - Authorization to check\n * @param expectedNetwork - Expected network\n * @returns True if networks match\n */\nexport function validateAuthorizationNetwork(\n authorization: ReputationAuthorization,\n expectedNetwork: SolanaNetwork\n): boolean {\n return authorization.network === expectedNetwork\n}\n"]}
package/dist/client.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import '@solana/kit';
2
2
  import './reputation-types-Yebf0Rm_.js';
3
3
  import '@solana/addresses';
4
- import './StakingModule-C5rzuOWb.js';
5
- export { G as GhostSpeakClient, G as default, l as lamportsToSol, s as sol } from './GhostSpeakClient-CWmGaM9Q.js';
6
- import 'node:events';
4
+ import './StakingModule-CPhp_ZY0.js';
5
+ export { G as GhostSpeakClient, G as default, l as lamportsToSol, s as sol } from './GhostSpeakClient-qdLGyuDp.js';
7
6
  import './types.js';
8
7
  import './credentials.js';
9
- import './signature-verification-DGxR4aYQ.js';
8
+ import './signature-verification-BDzoR1MG.js';
package/dist/client.js CHANGED
@@ -1,13 +1,13 @@
1
- export { GhostSpeakClient, GhostSpeakClient_default as default, lamportsToSol, sol } from './chunk-E3FD2CNY.js';
2
- import './chunk-SZGFSCNU.js';
3
- import './chunk-BQDGRTVP.js';
4
- import './chunk-C5CDA3WX.js';
5
- import './chunk-S74EH3KD.js';
6
- import './chunk-IHVDQ4YI.js';
7
- import './chunk-SFTSZ3LC.js';
8
- import './chunk-JV2SWONF.js';
9
- import './chunk-KB6CKIUK.js';
10
- import './chunk-AL3HQN73.js';
1
+ export { GhostSpeakClient, GhostSpeakClient_default as default, lamportsToSol, sol } from './chunk-5SS3OL4B.js';
2
+ import './chunk-63A7F2YP.js';
3
+ import './chunk-QWQTPTZ4.js';
4
+ import './chunk-HIDBANFS.js';
5
+ import './chunk-IQM5RASO.js';
6
+ import './chunk-5QZVFUXB.js';
7
+ import './chunk-46QWY3MG.js';
8
+ import './chunk-A7ALCVUI.js';
9
+ import './chunk-QLRWUHN2.js';
10
+ import './chunk-AWMGX3OX.js';
11
11
  import './chunk-SRS2SKFS.js';
12
12
  import './chunk-RIZZPLLB.js';
13
13
  import './chunk-UP2VWCW5.js';
@@ -1,5 +1,5 @@
1
- export { CREATE_AGENT_AUTHORIZATION_DISCRIMINATOR, getCreateAgentAuthorizationDiscriminatorBytes, getCreateAgentAuthorizationInstruction, getCreateAgentAuthorizationInstructionAsync, getCreateAgentAuthorizationInstructionDataCodec, getCreateAgentAuthorizationInstructionDataDecoder, getCreateAgentAuthorizationInstructionDataEncoder, parseCreateAgentAuthorizationInstruction } from './chunk-SFTSZ3LC.js';
2
- import './chunk-AL3HQN73.js';
1
+ export { CREATE_AGENT_AUTHORIZATION_DISCRIMINATOR, getCreateAgentAuthorizationDiscriminatorBytes, getCreateAgentAuthorizationInstruction, getCreateAgentAuthorizationInstructionAsync, getCreateAgentAuthorizationInstructionDataCodec, getCreateAgentAuthorizationInstructionDataDecoder, getCreateAgentAuthorizationInstructionDataEncoder, parseCreateAgentAuthorizationInstruction } from './chunk-46QWY3MG.js';
2
+ import './chunk-AWMGX3OX.js';
3
3
  import './chunk-UP2VWCW5.js';
4
- //# sourceMappingURL=createAgentAuthorization-ULG47ZJI.js.map
5
- //# sourceMappingURL=createAgentAuthorization-ULG47ZJI.js.map
4
+ //# sourceMappingURL=createAgentAuthorization-KGZNXZBT.js.map
5
+ //# sourceMappingURL=createAgentAuthorization-KGZNXZBT.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"createAgentAuthorization-ULG47ZJI.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"createAgentAuthorization-KGZNXZBT.js"}
@@ -0,0 +1,9 @@
1
+ export { ACTIVATE_AGENT_DISCRIMINATOR, AGENT_REPUTATION_AUTH_DISCRIMINATOR, AGENT_TREE_CONFIG_DISCRIMINATOR, AGENT_VERIFICATION_DISCRIMINATOR, APPROVE_DELIVERY_DISCRIMINATOR, ARBITRATE_DISPUTE_DISCRIMINATOR, AUDIT_TRAIL_DISCRIMINATOR, AUTHORIZATION_USAGE_RECORD_DISCRIMINATOR, AUTO_CREATE_GHOST_DISCRIMINATOR, CLAIM_GHOST_DISCRIMINATOR, COMPLIANCE_REPORT_DISCRIMINATOR, CREATE_CREDENTIAL_TEMPLATE_DISCRIMINATOR, CREATE_CREDENTIAL_TYPE_DISCRIMINATOR, CREATE_DID_DOCUMENT_DISCRIMINATOR, CREATE_ESCROW_DISCRIMINATOR, CREATE_MULTISIG_DISCRIMINATOR, CREDENTIAL_DISCRIMINATOR, CREDENTIAL_TEMPLATE_DISCRIMINATOR, CREDENTIAL_TYPE_DISCRIMINATOR, DEACTIVATE_AGENT_DISCRIMINATOR, DEACTIVATE_CREDENTIAL_TEMPLATE_DISCRIMINATOR, DEACTIVATE_CREDENTIAL_TYPE_DISCRIMINATOR, DEACTIVATE_DID_DOCUMENT_DISCRIMINATOR, DID_DOCUMENT_DISCRIMINATOR, ENABLE_PROTOCOL_FEES_DISCRIMINATOR, EXTERNAL_ID_MAPPING_DISCRIMINATOR, FILE_DISPUTE_DISCRIMINATOR, GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR, GHOSTSPEAK_MARKETPLACE_ERROR__DEFAULT_KEY_AS_ADMIN, GHOSTSPEAK_MARKETPLACE_ERROR__SYSTEM_PROGRAM_AS_ADMIN, GHOSTSPEAK_MARKETPLACE_ERROR__TEST_ADDRESS_ON_MAINNET, GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ADMIN, GHOSTSPEAK_MARKETPLACE_ERROR__VALIDATION_FAILED, GHOST_PROTECT_ESCROW_DISCRIMINATOR, GOVERNANCE_PROPOSAL_DISCRIMINATOR, INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR, INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR, INITIALIZE_PROTOCOL_CONFIG_DISCRIMINATOR, INITIALIZE_RBAC_CONFIG_DISCRIMINATOR, INITIALIZE_REPUTATION_METRICS_DISCRIMINATOR, INITIALIZE_STAKING_CONFIG_DISCRIMINATOR, INIT_REENTRANCY_GUARD_DISCRIMINATOR, ISSUE_CREDENTIAL_DISCRIMINATOR, LINK_EXTERNAL_ID_DISCRIMINATOR, MANAGE_AGENT_STATUS_DISCRIMINATOR, MULTISIG_DISCRIMINATOR, PROTOCOL_CONFIG_DISCRIMINATOR, RBAC_CONFIG_DISCRIMINATOR, RECORD_PAYAI_PAYMENT_DISCRIMINATOR, REENTRANCY_GUARD_DISCRIMINATOR, REGISTER_AGENT_COMPRESSED_DISCRIMINATOR, REGISTER_AGENT_DISCRIMINATOR, REGISTER_GHOST_METADATA_DISCRIMINATOR, REPUTATION_METRICS_DISCRIMINATOR, RESET_REENTRANCY_GUARD_DISCRIMINATOR, RESOLVE_DID_DOCUMENT_DISCRIMINATOR, REVOKE_CREDENTIAL_DISCRIMINATOR, SLASH_STAKE_DISCRIMINATOR, STAKE_GHOST_DISCRIMINATOR, STAKING_ACCOUNT_DISCRIMINATOR, STAKING_CONFIG_DISCRIMINATOR, SUBMIT_DELIVERY_DISCRIMINATOR, SUBMIT_SERVICE_RATING_DISCRIMINATOR, UNSTAKE_GHOST_DISCRIMINATOR, UPDATE_AGENT_DISCRIMINATOR, UPDATE_AGENT_REPUTATION_DISCRIMINATOR, UPDATE_AGENT_SERVICE_DISCRIMINATOR, UPDATE_CROSSCHAIN_STATUS_DISCRIMINATOR, UPDATE_DID_DOCUMENT_DISCRIMINATOR, UPDATE_GHOST_SCORE_DISCRIMINATOR, UPDATE_PROTOCOL_CONFIG_DISCRIMINATOR, UPDATE_REPUTATION_TAGS_DISCRIMINATOR, UPDATE_SOURCE_REPUTATION_DISCRIMINATOR, USER_REGISTRY_DISCRIMINATOR, VERIFY_AGENT_DISCRIMINATOR, VERIFY_AUTHORIZATION_DISCRIMINATOR, decodeAgentReputationAuth, decodeAgentTreeConfig, decodeAgentVerification, decodeAuditTrail, decodeAuthorizationUsageRecord, decodeComplianceReport, decodeCredential, decodeCredentialTemplate, decodeCredentialType, decodeDidDocument, decodeExternalIdMapping, decodeGhostProtectEscrow, decodeGovernanceProposal, decodeMultisig, decodeProtocolConfig, decodeRbacConfig, decodeReentrancyGuard, decodeReputationMetrics, decodeStakingAccount, decodeStakingConfig, decodeUserRegistry, fetchAgentReputationAuth, fetchAgentTreeConfig, fetchAgentVerification, fetchAllAgentReputationAuth, fetchAllAgentTreeConfig, fetchAllAgentVerification, fetchAllAuditTrail, fetchAllAuthorizationUsageRecord, fetchAllComplianceReport, fetchAllCredential, fetchAllCredentialTemplate, fetchAllCredentialType, fetchAllDidDocument, fetchAllExternalIdMapping, fetchAllGhostProtectEscrow, fetchAllGovernanceProposal, fetchAllMaybeAgentReputationAuth, fetchAllMaybeAgentTreeConfig, fetchAllMaybeAgentVerification, fetchAllMaybeAuditTrail, fetchAllMaybeAuthorizationUsageRecord, fetchAllMaybeComplianceReport, fetchAllMaybeCredential, fetchAllMaybeCredentialTemplate, fetchAllMaybeCredentialType, fetchAllMaybeDidDocument, fetchAllMaybeExternalIdMapping, fetchAllMaybeGhostProtectEscrow, fetchAllMaybeGovernanceProposal, fetchAllMaybeMultisig, fetchAllMaybeProtocolConfig, fetchAllMaybeRbacConfig, fetchAllMaybeReentrancyGuard, fetchAllMaybeReputationMetrics, fetchAllMaybeStakingAccount, fetchAllMaybeStakingConfig, fetchAllMaybeUserRegistry, fetchAllMultisig, fetchAllProtocolConfig, fetchAllRbacConfig, fetchAllReentrancyGuard, fetchAllReputationMetrics, fetchAllStakingAccount, fetchAllStakingConfig, fetchAllUserRegistry, fetchAuditTrail, fetchAuthorizationUsageRecord, fetchComplianceReport, fetchCredential, fetchCredentialTemplate, fetchCredentialType, fetchDidDocument, fetchExternalIdMapping, fetchGhostProtectEscrow, fetchGovernanceProposal, fetchMaybeAgentReputationAuth, fetchMaybeAgentTreeConfig, fetchMaybeAgentVerification, fetchMaybeAuditTrail, fetchMaybeAuthorizationUsageRecord, fetchMaybeComplianceReport, fetchMaybeCredential, fetchMaybeCredentialTemplate, fetchMaybeCredentialType, fetchMaybeDidDocument, fetchMaybeExternalIdMapping, fetchMaybeGhostProtectEscrow, fetchMaybeGovernanceProposal, fetchMaybeMultisig, fetchMaybeProtocolConfig, fetchMaybeRbacConfig, fetchMaybeReentrancyGuard, fetchMaybeReputationMetrics, fetchMaybeStakingAccount, fetchMaybeStakingConfig, fetchMaybeUserRegistry, fetchMultisig, fetchProtocolConfig, fetchRbacConfig, fetchReentrancyGuard, fetchReputationMetrics, fetchStakingAccount, fetchStakingConfig, fetchUserRegistry, getActivateAgentDiscriminatorBytes, getActivateAgentInstruction, getActivateAgentInstructionAsync, getActivateAgentInstructionDataCodec, getActivateAgentInstructionDataDecoder, getActivateAgentInstructionDataEncoder, getAgentReputationAuthCodec, getAgentReputationAuthDecoder, getAgentReputationAuthDiscriminatorBytes, getAgentReputationAuthEncoder, getAgentTreeConfigCodec, getAgentTreeConfigDecoder, getAgentTreeConfigDiscriminatorBytes, getAgentTreeConfigEncoder, getAgentTreeConfigSize, getAgentVerificationCodec, getAgentVerificationDecoder, getAgentVerificationDiscriminatorBytes, getAgentVerificationEncoder, getApproveDeliveryDiscriminatorBytes, getApproveDeliveryInstruction, getApproveDeliveryInstructionDataCodec, getApproveDeliveryInstructionDataDecoder, getApproveDeliveryInstructionDataEncoder, getArbitrateDisputeDiscriminatorBytes, getArbitrateDisputeInstruction, getArbitrateDisputeInstructionDataCodec, getArbitrateDisputeInstructionDataDecoder, getArbitrateDisputeInstructionDataEncoder, getAuditTrailCodec, getAuditTrailDecoder, getAuditTrailDiscriminatorBytes, getAuditTrailEncoder, getAuthorizationUsageRecordCodec, getAuthorizationUsageRecordDecoder, getAuthorizationUsageRecordDiscriminatorBytes, getAuthorizationUsageRecordEncoder, getAutoCreateGhostDiscriminatorBytes, getAutoCreateGhostInstruction, getAutoCreateGhostInstructionAsync, getAutoCreateGhostInstructionDataCodec, getAutoCreateGhostInstructionDataDecoder, getAutoCreateGhostInstructionDataEncoder, getClaimGhostDiscriminatorBytes, getClaimGhostInstruction, getClaimGhostInstructionDataCodec, getClaimGhostInstructionDataDecoder, getClaimGhostInstructionDataEncoder, getComplianceReportCodec, getComplianceReportDecoder, getComplianceReportDiscriminatorBytes, getComplianceReportEncoder, getCreateCredentialTemplateDiscriminatorBytes, getCreateCredentialTemplateInstruction, getCreateCredentialTemplateInstructionAsync, getCreateCredentialTemplateInstructionDataCodec, getCreateCredentialTemplateInstructionDataDecoder, getCreateCredentialTemplateInstructionDataEncoder, getCreateCredentialTypeDiscriminatorBytes, getCreateCredentialTypeInstruction, getCreateCredentialTypeInstructionAsync, getCreateCredentialTypeInstructionDataCodec, getCreateCredentialTypeInstructionDataDecoder, getCreateCredentialTypeInstructionDataEncoder, getCreateDidDocumentDiscriminatorBytes, getCreateDidDocumentInstruction, getCreateDidDocumentInstructionAsync, getCreateDidDocumentInstructionDataCodec, getCreateDidDocumentInstructionDataDecoder, getCreateDidDocumentInstructionDataEncoder, getCreateEscrowDiscriminatorBytes, getCreateEscrowInstruction, getCreateEscrowInstructionAsync, getCreateEscrowInstructionDataCodec, getCreateEscrowInstructionDataDecoder, getCreateEscrowInstructionDataEncoder, getCreateMultisigDiscriminatorBytes, getCreateMultisigInstruction, getCreateMultisigInstructionAsync, getCreateMultisigInstructionDataCodec, getCreateMultisigInstructionDataDecoder, getCreateMultisigInstructionDataEncoder, getCredentialCodec, getCredentialDecoder, getCredentialDiscriminatorBytes, getCredentialEncoder, getCredentialTemplateCodec, getCredentialTemplateDecoder, getCredentialTemplateDiscriminatorBytes, getCredentialTemplateEncoder, getCredentialTypeCodec, getCredentialTypeDecoder, getCredentialTypeDiscriminatorBytes, getCredentialTypeEncoder, getDeactivateAgentDiscriminatorBytes, getDeactivateAgentInstruction, getDeactivateAgentInstructionAsync, getDeactivateAgentInstructionDataCodec, getDeactivateAgentInstructionDataDecoder, getDeactivateAgentInstructionDataEncoder, getDeactivateCredentialTemplateDiscriminatorBytes, getDeactivateCredentialTemplateInstruction, getDeactivateCredentialTemplateInstructionDataCodec, getDeactivateCredentialTemplateInstructionDataDecoder, getDeactivateCredentialTemplateInstructionDataEncoder, getDeactivateCredentialTypeDiscriminatorBytes, getDeactivateCredentialTypeInstruction, getDeactivateCredentialTypeInstructionDataCodec, getDeactivateCredentialTypeInstructionDataDecoder, getDeactivateCredentialTypeInstructionDataEncoder, getDeactivateDidDocumentDiscriminatorBytes, getDeactivateDidDocumentInstruction, getDeactivateDidDocumentInstructionAsync, getDeactivateDidDocumentInstructionDataCodec, getDeactivateDidDocumentInstructionDataDecoder, getDeactivateDidDocumentInstructionDataEncoder, getDidDocumentCodec, getDidDocumentDecoder, getDidDocumentDiscriminatorBytes, getDidDocumentEncoder, getEnableProtocolFeesDiscriminatorBytes, getEnableProtocolFeesInstruction, getEnableProtocolFeesInstructionAsync, getEnableProtocolFeesInstructionDataCodec, getEnableProtocolFeesInstructionDataDecoder, getEnableProtocolFeesInstructionDataEncoder, getExternalIdMappingCodec, getExternalIdMappingDecoder, getExternalIdMappingDiscriminatorBytes, getExternalIdMappingEncoder, getFileDisputeDiscriminatorBytes, getFileDisputeInstruction, getFileDisputeInstructionDataCodec, getFileDisputeInstructionDataDecoder, getFileDisputeInstructionDataEncoder, getGenerateComplianceReportDiscriminatorBytes, getGenerateComplianceReportInstruction, getGenerateComplianceReportInstructionAsync, getGenerateComplianceReportInstructionDataCodec, getGenerateComplianceReportInstructionDataDecoder, getGenerateComplianceReportInstructionDataEncoder, getGhostProtectEscrowCodec, getGhostProtectEscrowDecoder, getGhostProtectEscrowDiscriminatorBytes, getGhostProtectEscrowEncoder, getGhostspeakMarketplaceErrorMessage, getGovernanceProposalCodec, getGovernanceProposalDecoder, getGovernanceProposalDiscriminatorBytes, getGovernanceProposalEncoder, getInitReentrancyGuardDiscriminatorBytes, getInitReentrancyGuardInstruction, getInitReentrancyGuardInstructionAsync, getInitReentrancyGuardInstructionDataCodec, getInitReentrancyGuardInstructionDataDecoder, getInitReentrancyGuardInstructionDataEncoder, getInitializeAuditTrailDiscriminatorBytes, getInitializeAuditTrailInstruction, getInitializeAuditTrailInstructionAsync, getInitializeAuditTrailInstructionDataCodec, getInitializeAuditTrailInstructionDataDecoder, getInitializeAuditTrailInstructionDataEncoder, getInitializeGovernanceProposalDiscriminatorBytes, getInitializeGovernanceProposalInstruction, getInitializeGovernanceProposalInstructionAsync, getInitializeGovernanceProposalInstructionDataCodec, getInitializeGovernanceProposalInstructionDataDecoder, getInitializeGovernanceProposalInstructionDataEncoder, getInitializeProtocolConfigDiscriminatorBytes, getInitializeProtocolConfigInstruction, getInitializeProtocolConfigInstructionAsync, getInitializeProtocolConfigInstructionDataCodec, getInitializeProtocolConfigInstructionDataDecoder, getInitializeProtocolConfigInstructionDataEncoder, getInitializeRbacConfigDiscriminatorBytes, getInitializeRbacConfigInstruction, getInitializeRbacConfigInstructionAsync, getInitializeRbacConfigInstructionDataCodec, getInitializeRbacConfigInstructionDataDecoder, getInitializeRbacConfigInstructionDataEncoder, getInitializeReputationMetricsDiscriminatorBytes, getInitializeReputationMetricsInstruction, getInitializeReputationMetricsInstructionAsync, getInitializeReputationMetricsInstructionDataCodec, getInitializeReputationMetricsInstructionDataDecoder, getInitializeReputationMetricsInstructionDataEncoder, getInitializeStakingConfigDiscriminatorBytes, getInitializeStakingConfigInstruction, getInitializeStakingConfigInstructionAsync, getInitializeStakingConfigInstructionDataCodec, getInitializeStakingConfigInstructionDataDecoder, getInitializeStakingConfigInstructionDataEncoder, getIssueCredentialDiscriminatorBytes, getIssueCredentialInstruction, getIssueCredentialInstructionAsync, getIssueCredentialInstructionDataCodec, getIssueCredentialInstructionDataDecoder, getIssueCredentialInstructionDataEncoder, getLinkExternalIdDiscriminatorBytes, getLinkExternalIdInstruction, getLinkExternalIdInstructionAsync, getLinkExternalIdInstructionDataCodec, getLinkExternalIdInstructionDataDecoder, getLinkExternalIdInstructionDataEncoder, getManageAgentStatusDiscriminatorBytes, getManageAgentStatusInstruction, getManageAgentStatusInstructionAsync, getManageAgentStatusInstructionDataCodec, getManageAgentStatusInstructionDataDecoder, getManageAgentStatusInstructionDataEncoder, getMultisigCodec, getMultisigDecoder, getMultisigDiscriminatorBytes, getMultisigEncoder, getProtocolConfigCodec, getProtocolConfigDecoder, getProtocolConfigDiscriminatorBytes, getProtocolConfigEncoder, getProtocolConfigSize, getRbacConfigCodec, getRbacConfigDecoder, getRbacConfigDiscriminatorBytes, getRbacConfigEncoder, getRecordPayaiPaymentDiscriminatorBytes, getRecordPayaiPaymentInstruction, getRecordPayaiPaymentInstructionAsync, getRecordPayaiPaymentInstructionDataCodec, getRecordPayaiPaymentInstructionDataDecoder, getRecordPayaiPaymentInstructionDataEncoder, getReentrancyGuardCodec, getReentrancyGuardDecoder, getReentrancyGuardDiscriminatorBytes, getReentrancyGuardEncoder, getReentrancyGuardSize, getRegisterAgentCompressedDiscriminatorBytes, getRegisterAgentCompressedInstruction, getRegisterAgentCompressedInstructionAsync, getRegisterAgentCompressedInstructionDataCodec, getRegisterAgentCompressedInstructionDataDecoder, getRegisterAgentCompressedInstructionDataEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterGhostMetadataDiscriminatorBytes, getRegisterGhostMetadataInstruction, getRegisterGhostMetadataInstructionDataCodec, getRegisterGhostMetadataInstructionDataDecoder, getRegisterGhostMetadataInstructionDataEncoder, getReputationMetricsCodec, getReputationMetricsDecoder, getReputationMetricsDiscriminatorBytes, getReputationMetricsEncoder, getResetReentrancyGuardDiscriminatorBytes, getResetReentrancyGuardInstruction, getResetReentrancyGuardInstructionAsync, getResetReentrancyGuardInstructionDataCodec, getResetReentrancyGuardInstructionDataDecoder, getResetReentrancyGuardInstructionDataEncoder, getResolveDidDocumentDiscriminatorBytes, getResolveDidDocumentInstruction, getResolveDidDocumentInstructionAsync, getResolveDidDocumentInstructionDataCodec, getResolveDidDocumentInstructionDataDecoder, getResolveDidDocumentInstructionDataEncoder, getRevokeCredentialDiscriminatorBytes, getRevokeCredentialInstruction, getRevokeCredentialInstructionDataCodec, getRevokeCredentialInstructionDataDecoder, getRevokeCredentialInstructionDataEncoder, getSlashStakeDiscriminatorBytes, getSlashStakeInstruction, getSlashStakeInstructionAsync, getSlashStakeInstructionDataCodec, getSlashStakeInstructionDataDecoder, getSlashStakeInstructionDataEncoder, getStakeGhostDiscriminatorBytes, getStakeGhostInstruction, getStakeGhostInstructionAsync, getStakeGhostInstructionDataCodec, getStakeGhostInstructionDataDecoder, getStakeGhostInstructionDataEncoder, getStakingAccountCodec, getStakingAccountDecoder, getStakingAccountDiscriminatorBytes, getStakingAccountEncoder, getStakingAccountSize, getStakingConfigCodec, getStakingConfigDecoder, getStakingConfigDiscriminatorBytes, getStakingConfigEncoder, getStakingConfigSize, getSubmitDeliveryDiscriminatorBytes, getSubmitDeliveryInstruction, getSubmitDeliveryInstructionDataCodec, getSubmitDeliveryInstructionDataDecoder, getSubmitDeliveryInstructionDataEncoder, getSubmitServiceRatingDiscriminatorBytes, getSubmitServiceRatingInstruction, getSubmitServiceRatingInstructionAsync, getSubmitServiceRatingInstructionDataCodec, getSubmitServiceRatingInstructionDataDecoder, getSubmitServiceRatingInstructionDataEncoder, getUnstakeGhostDiscriminatorBytes, getUnstakeGhostInstruction, getUnstakeGhostInstructionAsync, getUnstakeGhostInstructionDataCodec, getUnstakeGhostInstructionDataDecoder, getUnstakeGhostInstructionDataEncoder, getUpdateAgentDiscriminatorBytes, getUpdateAgentInstruction, getUpdateAgentInstructionAsync, getUpdateAgentInstructionDataCodec, getUpdateAgentInstructionDataDecoder, getUpdateAgentInstructionDataEncoder, getUpdateAgentReputationDiscriminatorBytes, getUpdateAgentReputationInstruction, getUpdateAgentReputationInstructionAsync, getUpdateAgentReputationInstructionDataCodec, getUpdateAgentReputationInstructionDataDecoder, getUpdateAgentReputationInstructionDataEncoder, getUpdateAgentServiceDiscriminatorBytes, getUpdateAgentServiceInstruction, getUpdateAgentServiceInstructionAsync, getUpdateAgentServiceInstructionDataCodec, getUpdateAgentServiceInstructionDataDecoder, getUpdateAgentServiceInstructionDataEncoder, getUpdateCrosschainStatusDiscriminatorBytes, getUpdateCrosschainStatusInstruction, getUpdateCrosschainStatusInstructionDataCodec, getUpdateCrosschainStatusInstructionDataDecoder, getUpdateCrosschainStatusInstructionDataEncoder, getUpdateDidDocumentDiscriminatorBytes, getUpdateDidDocumentInstruction, getUpdateDidDocumentInstructionAsync, getUpdateDidDocumentInstructionDataCodec, getUpdateDidDocumentInstructionDataDecoder, getUpdateDidDocumentInstructionDataEncoder, getUpdateGhostScoreDiscriminatorBytes, getUpdateGhostScoreInstruction, getUpdateGhostScoreInstructionDataCodec, getUpdateGhostScoreInstructionDataDecoder, getUpdateGhostScoreInstructionDataEncoder, getUpdateProtocolConfigDiscriminatorBytes, getUpdateProtocolConfigInstruction, getUpdateProtocolConfigInstructionAsync, getUpdateProtocolConfigInstructionDataCodec, getUpdateProtocolConfigInstructionDataDecoder, getUpdateProtocolConfigInstructionDataEncoder, getUpdateReputationTagsDiscriminatorBytes, getUpdateReputationTagsInstruction, getUpdateReputationTagsInstructionAsync, getUpdateReputationTagsInstructionDataCodec, getUpdateReputationTagsInstructionDataDecoder, getUpdateReputationTagsInstructionDataEncoder, getUpdateSourceReputationDiscriminatorBytes, getUpdateSourceReputationInstruction, getUpdateSourceReputationInstructionAsync, getUpdateSourceReputationInstructionDataCodec, getUpdateSourceReputationInstructionDataDecoder, getUpdateSourceReputationInstructionDataEncoder, getUserRegistryCodec, getUserRegistryDecoder, getUserRegistryDiscriminatorBytes, getUserRegistryEncoder, getUserRegistrySize, getVerifyAgentDiscriminatorBytes, getVerifyAgentInstruction, getVerifyAgentInstructionAsync, getVerifyAgentInstructionDataCodec, getVerifyAgentInstructionDataDecoder, getVerifyAgentInstructionDataEncoder, getVerifyAuthorizationDiscriminatorBytes, getVerifyAuthorizationInstruction, getVerifyAuthorizationInstructionDataCodec, getVerifyAuthorizationInstructionDataDecoder, getVerifyAuthorizationInstructionDataEncoder, isGhostspeakMarketplaceError, parseActivateAgentInstruction, parseApproveDeliveryInstruction, parseArbitrateDisputeInstruction, parseAutoCreateGhostInstruction, parseClaimGhostInstruction, parseCreateCredentialTemplateInstruction, parseCreateCredentialTypeInstruction, parseCreateDidDocumentInstruction, parseCreateEscrowInstruction, parseCreateMultisigInstruction, parseDeactivateAgentInstruction, parseDeactivateCredentialTemplateInstruction, parseDeactivateCredentialTypeInstruction, parseDeactivateDidDocumentInstruction, parseEnableProtocolFeesInstruction, parseFileDisputeInstruction, parseGenerateComplianceReportInstruction, parseInitReentrancyGuardInstruction, parseInitializeAuditTrailInstruction, parseInitializeGovernanceProposalInstruction, parseInitializeProtocolConfigInstruction, parseInitializeRbacConfigInstruction, parseInitializeReputationMetricsInstruction, parseInitializeStakingConfigInstruction, parseIssueCredentialInstruction, parseLinkExternalIdInstruction, parseManageAgentStatusInstruction, parseRecordPayaiPaymentInstruction, parseRegisterAgentCompressedInstruction, parseRegisterAgentInstruction, parseRegisterGhostMetadataInstruction, parseResetReentrancyGuardInstruction, parseResolveDidDocumentInstruction, parseRevokeCredentialInstruction, parseSlashStakeInstruction, parseStakeGhostInstruction, parseSubmitDeliveryInstruction, parseSubmitServiceRatingInstruction, parseUnstakeGhostInstruction, parseUpdateAgentInstruction, parseUpdateAgentReputationInstruction, parseUpdateAgentServiceInstruction, parseUpdateCrosschainStatusInstruction, parseUpdateDidDocumentInstruction, parseUpdateGhostScoreInstruction, parseUpdateProtocolConfigInstruction, parseUpdateReputationTagsInstruction, parseUpdateSourceReputationInstruction, parseVerifyAgentInstruction, parseVerifyAuthorizationInstruction } from './chunk-IQM5RASO.js';
2
+ export { AGENT_DISCRIMINATOR, AccessTier, ActivationRequirementType, AgentStatus, AuditAction, AuthenticationLevel, AuthenticationMethod, BackupFrequency, BiometricStorageMethod, BiometricType, ConditionType, ConstraintOperator, CredentialKind, CredentialStatus, CrossChainStatus, DataAccessLevel, DegradationHandling, EnforcementLevel, EscrowStatus, MultisigType, NotificationMethod, NotificationPriority, NotificationTargetType, NotificationTiming, PermissionConstraintType, PolicyStatus, PolicyType, PricingModel, ProposalStatus, ProposalType, QuorumMethod, ReentrancyState, ReportStatus, ReportType, ReportingFrequency, ReputationSourceType, RiskCategory, RiskLevel, RoleStatus, RoleType, RuleEffect, ScopeInheritance, ScopeType, SecurityEventType, ServiceEndpointType, SlashReason, SodConstraintType, StepUpTrigger, TimeLockType, TransactionPriority, TransactionStatus, TransactionType, TrendDirection, UnlockMethod, ValueType, VerificationMethodType, VerificationRelationship, ViolationSeverity, VoteChoice, arbitratorDecision, decodeAgent, delegationScope, fetchAgent, fetchAllAgent, fetchAllMaybeAgent, fetchMaybeAgent, getAccessAuditConfigCodec, getAccessAuditConfigDecoder, getAccessAuditConfigEncoder, getAccessPolicyCodec, getAccessPolicyDecoder, getAccessPolicyEncoder, getAccessTierCodec, getAccessTierDecoder, getAccessTierEncoder, getAccountLockoutPoliciesCodec, getAccountLockoutPoliciesDecoder, getAccountLockoutPoliciesEncoder, getActionCodec, getActionDecoder, getActionEncoder, getActivationRequirementCodec, getActivationRequirementDecoder, getActivationRequirementEncoder, getActivationRequirementTypeCodec, getActivationRequirementTypeDecoder, getActivationRequirementTypeEncoder, getAgentCodec, getAgentDecoder, getAgentDiscriminatorBytes, getAgentEncoder, getAgentRegisteredEventCodec, getAgentRegisteredEventDecoder, getAgentRegisteredEventEncoder, getAgentServiceUpdatedEventCodec, getAgentServiceUpdatedEventDecoder, getAgentServiceUpdatedEventEncoder, getAgentStatusChangedEventCodec, getAgentStatusChangedEventDecoder, getAgentStatusChangedEventEncoder, getAgentStatusCodec, getAgentStatusDecoder, getAgentStatusEncoder, getAgentUpdatedEventCodec, getAgentUpdatedEventDecoder, getAgentUpdatedEventEncoder, getAgentVerificationDataCodec, getAgentVerificationDataDecoder, getAgentVerificationDataEncoder, getAgingPolicyCodec, getAgingPolicyDecoder, getAgingPolicyEncoder, getApprovalLevelCodec, getApprovalLevelDecoder, getApprovalLevelEncoder, getArbitratorDecisionCodec, getArbitratorDecisionDecoder, getArbitratorDecisionEncoder, getAuditActionCodec, getAuditActionDecoder, getAuditActionEncoder, getAuditConfigCodec, getAuditConfigDecoder, getAuditConfigEncoder, getAuditContextCodec, getAuditContextDecoder, getAuditContextEncoder, getAuditEntryCodec, getAuditEntryDecoder, getAuditEntryEncoder, getAuditTrailInitializedEventCodec, getAuditTrailInitializedEventDecoder, getAuditTrailInitializedEventEncoder, getAuthenticationLevelCodec, getAuthenticationLevelDecoder, getAuthenticationLevelEncoder, getAuthenticationMethodCodec, getAuthenticationMethodDecoder, getAuthenticationMethodEncoder, getAuthenticationPoliciesCodec, getAuthenticationPoliciesDecoder, getAuthenticationPoliciesEncoder, getAuthenticationStrengthCodec, getAuthenticationStrengthDecoder, getAuthenticationStrengthEncoder, getAuthorizationPoliciesCodec, getAuthorizationPoliciesDecoder, getAuthorizationPoliciesEncoder, getBackupFrequencyCodec, getBackupFrequencyDecoder, getBackupFrequencyEncoder, getBiometricPoliciesCodec, getBiometricPoliciesDecoder, getBiometricPoliciesEncoder, getBiometricProtectionCodec, getBiometricProtectionDecoder, getBiometricProtectionEncoder, getBiometricQualityCodec, getBiometricQualityDecoder, getBiometricQualityEncoder, getBiometricStorageMethodCodec, getBiometricStorageMethodDecoder, getBiometricStorageMethodEncoder, getBiometricTypeCodec, getBiometricTypeDecoder, getBiometricTypeEncoder, getComplianceFlagsCodec, getComplianceFlagsDecoder, getComplianceFlagsEncoder, getComplianceMetricsCodec, getComplianceMetricsDecoder, getComplianceMetricsEncoder, getCompliancePoliciesCodec, getCompliancePoliciesDecoder, getCompliancePoliciesEncoder, getComplianceReportGeneratedEventCodec, getComplianceReportGeneratedEventDecoder, getComplianceReportGeneratedEventEncoder, getComplianceStatusCodec, getComplianceStatusDecoder, getComplianceStatusEncoder, getCompressedAgentCreatedEventCodec, getCompressedAgentCreatedEventDecoder, getCompressedAgentCreatedEventEncoder, getConditionTypeCodec, getConditionTypeDecoder, getConditionTypeEncoder, getConstraintConditionCodec, getConstraintConditionDecoder, getConstraintConditionEncoder, getConstraintOperatorCodec, getConstraintOperatorDecoder, getConstraintOperatorEncoder, getCredentialKindCodec, getCredentialKindDecoder, getCredentialKindEncoder, getCredentialStatusCodec, getCredentialStatusDecoder, getCredentialStatusEncoder, getCrossChainStatusCodec, getCrossChainStatusDecoder, getCrossChainStatusEncoder, getDataAccessLevelCodec, getDataAccessLevelDecoder, getDataAccessLevelEncoder, getDataProtectionPoliciesCodec, getDataProtectionPoliciesDecoder, getDataProtectionPoliciesEncoder, getDegradationHandlingCodec, getDegradationHandlingDecoder, getDegradationHandlingEncoder, getDelegationInfoCodec, getDelegationInfoDecoder, getDelegationInfoEncoder, getDelegationScopeCodec, getDelegationScopeDecoder, getDelegationScopeEncoder, getDeliverySubmittedEventCodec, getDeliverySubmittedEventDecoder, getDeliverySubmittedEventEncoder, getDisputeFiledEventCodec, getDisputeFiledEventDecoder, getDisputeFiledEventEncoder, getDisputeResolvedEventCodec, getDisputeResolvedEventDecoder, getDisputeResolvedEventEncoder, getEmergencyAccessConfigCodec, getEmergencyAccessConfigDecoder, getEmergencyAccessConfigEncoder, getEmergencyConfigCodec, getEmergencyConfigDecoder, getEmergencyConfigEncoder, getEnforcementLevelCodec, getEnforcementLevelDecoder, getEnforcementLevelEncoder, getEscrowCompletedEventCodec, getEscrowCompletedEventDecoder, getEscrowCompletedEventEncoder, getEscrowCreatedEventCodec, getEscrowCreatedEventDecoder, getEscrowCreatedEventEncoder, getEscrowStatusCodec, getEscrowStatusDecoder, getEscrowStatusEncoder, getExecutionConditionCodec, getExecutionConditionDecoder, getExecutionConditionEncoder, getExecutionParamsCodec, getExecutionParamsDecoder, getExecutionParamsEncoder, getExternalIdentifierCodec, getExternalIdentifierDecoder, getExternalIdentifierEncoder, getGeographicRegionCodec, getGeographicRegionDecoder, getGeographicRegionEncoder, getGhostSlashedEventCodec, getGhostSlashedEventDecoder, getGhostSlashedEventEncoder, getGhostStakedEventCodec, getGhostStakedEventDecoder, getGhostStakedEventEncoder, getGhostUnstakedEventCodec, getGhostUnstakedEventDecoder, getGhostUnstakedEventEncoder, getGovernanceProposalCreatedEventCodec, getGovernanceProposalCreatedEventDecoder, getGovernanceProposalCreatedEventEncoder, getHierarchicalBoundaryCodec, getHierarchicalBoundaryDecoder, getHierarchicalBoundaryEncoder, getIncidentResponsePoliciesCodec, getIncidentResponsePoliciesDecoder, getIncidentResponsePoliciesEncoder, getLatitudeRangeCodec, getLatitudeRangeDecoder, getLatitudeRangeEncoder, getLocationConstraintsCodec, getLocationConstraintsDecoder, getLocationConstraintsEncoder, getLongitudeRangeCodec, getLongitudeRangeDecoder, getLongitudeRangeEncoder, getMultisigConfigCodec, getMultisigConfigDecoder, getMultisigConfigEncoder, getMultisigCreatedEventCodec, getMultisigCreatedEventDecoder, getMultisigCreatedEventEncoder, getMultisigSignatureCodec, getMultisigSignatureDecoder, getMultisigSignatureEncoder, getMultisigTypeCodec, getMultisigTypeConfigCodec, getMultisigTypeConfigDecoder, getMultisigTypeConfigEncoder, getMultisigTypeDecoder, getMultisigTypeEncoder, getNetworkSecurityPoliciesCodec, getNetworkSecurityPoliciesDecoder, getNetworkSecurityPoliciesEncoder, getNotificationMethodCodec, getNotificationMethodDecoder, getNotificationMethodEncoder, getNotificationPriorityCodec, getNotificationPriorityDecoder, getNotificationPriorityEncoder, getNotificationRequirementCodec, getNotificationRequirementDecoder, getNotificationRequirementEncoder, getNotificationTargetCodec, getNotificationTargetDecoder, getNotificationTargetEncoder, getNotificationTargetTypeCodec, getNotificationTargetTypeDecoder, getNotificationTargetTypeEncoder, getNotificationTimingCodec, getNotificationTimingDecoder, getNotificationTimingEncoder, getPasswordPoliciesCodec, getPasswordPoliciesDecoder, getPasswordPoliciesEncoder, getPendingTransactionCodec, getPendingTransactionDecoder, getPendingTransactionEncoder, getPermissionCodec, getPermissionConstraintCodec, getPermissionConstraintDecoder, getPermissionConstraintEncoder, getPermissionConstraintTypeCodec, getPermissionConstraintTypeDecoder, getPermissionConstraintTypeEncoder, getPermissionDecoder, getPermissionEncoder, getPermissionMetadataCodec, getPermissionMetadataDecoder, getPermissionMetadataEncoder, getPermissionScopeCodec, getPermissionScopeDecoder, getPermissionScopeEncoder, getPolicyMetadataCodec, getPolicyMetadataDecoder, getPolicyMetadataEncoder, getPolicyRuleCodec, getPolicyRuleDecoder, getPolicyRuleEncoder, getPolicyScopeCodec, getPolicyScopeDecoder, getPolicyScopeEncoder, getPolicyStatusCodec, getPolicyStatusDecoder, getPolicyStatusEncoder, getPolicyTypeCodec, getPolicyTypeDecoder, getPolicyTypeEncoder, getPricingModelCodec, getPricingModelDecoder, getPricingModelEncoder, getProposalAccountCodec, getProposalAccountDecoder, getProposalAccountEncoder, getProposalInstructionCodec, getProposalInstructionDecoder, getProposalInstructionEncoder, getProposalMetadataCodec, getProposalMetadataDecoder, getProposalMetadataEncoder, getProposalStatusCodec, getProposalStatusDecoder, getProposalStatusEncoder, getProposalTypeCodec, getProposalTypeDecoder, getProposalTypeEncoder, getProtocolConfigUpdatedEventCodec, getProtocolConfigUpdatedEventDecoder, getProtocolConfigUpdatedEventEncoder, getQuorumMethodCodec, getQuorumMethodDecoder, getQuorumMethodEncoder, getQuorumRequirementsCodec, getQuorumRequirementsDecoder, getQuorumRequirementsEncoder, getRbacConfigInitializedEventCodec, getRbacConfigInitializedEventDecoder, getRbacConfigInitializedEventEncoder, getReentrancyStateCodec, getReentrancyStateDecoder, getReentrancyStateEncoder, getReportDataCodec, getReportDataDecoder, getReportDataEncoder, getReportEntryCodec, getReportEntryDecoder, getReportEntryEncoder, getReportStatusCodec, getReportStatusDecoder, getReportStatusEncoder, getReportSummaryCodec, getReportSummaryDecoder, getReportSummaryEncoder, getReportTypeCodec, getReportTypeDecoder, getReportTypeEncoder, getReportingFrequencyCodec, getReportingFrequencyDecoder, getReportingFrequencyEncoder, getReputationComponentCodec, getReputationComponentDecoder, getReputationComponentEncoder, getReputationMetricsInitializedEventCodec, getReputationMetricsInitializedEventDecoder, getReputationMetricsInitializedEventEncoder, getReputationPaymentRecordedEventCodec, getReputationPaymentRecordedEventDecoder, getReputationPaymentRecordedEventEncoder, getReputationRatingSubmittedEventCodec, getReputationRatingSubmittedEventDecoder, getReputationRatingSubmittedEventEncoder, getReputationSourceTypeCodec, getReputationSourceTypeDecoder, getReputationSourceTypeEncoder, getReputationTagsUpdatedEventCodec, getReputationTagsUpdatedEventDecoder, getReputationTagsUpdatedEventEncoder, getResourceConstraintsCodec, getResourceConstraintsDecoder, getResourceConstraintsEncoder, getReviewScheduleCodec, getReviewScheduleDecoder, getReviewScheduleEncoder, getRiskAcceptanceCodec, getRiskAcceptanceDecoder, getRiskAcceptanceEncoder, getRiskAssessmentCodec, getRiskAssessmentDecoder, getRiskAssessmentEncoder, getRiskCategoryCodec, getRiskCategoryDecoder, getRiskCategoryEncoder, getRiskFactorCodec, getRiskFactorDecoder, getRiskFactorEncoder, getRiskIndicatorCodec, getRiskIndicatorDecoder, getRiskIndicatorEncoder, getRiskLevelCodec, getRiskLevelDecoder, getRiskLevelEncoder, getRoleCodec, getRoleConstraintsCodec, getRoleConstraintsDecoder, getRoleConstraintsEncoder, getRoleDecoder, getRoleEncoder, getRoleMetadataCodec, getRoleMetadataDecoder, getRoleMetadataEncoder, getRoleStatusCodec, getRoleStatusDecoder, getRoleStatusEncoder, getRoleTypeCodec, getRoleTypeDecoder, getRoleTypeEncoder, getRuleConditionCodec, getRuleConditionDecoder, getRuleConditionEncoder, getRuleEffectCodec, getRuleEffectDecoder, getRuleEffectEncoder, getScopeBoundariesCodec, getScopeBoundariesDecoder, getScopeBoundariesEncoder, getScopeInheritanceCodec, getScopeInheritanceDecoder, getScopeInheritanceEncoder, getScopeTypeCodec, getScopeTypeDecoder, getScopeTypeEncoder, getSecurityEventTypeCodec, getSecurityEventTypeDecoder, getSecurityEventTypeEncoder, getSecurityPoliciesCodec, getSecurityPoliciesDecoder, getSecurityPoliciesEncoder, getServiceEndpointCodec, getServiceEndpointDecoder, getServiceEndpointEncoder, getServiceEndpointTypeCodec, getServiceEndpointTypeDecoder, getServiceEndpointTypeEncoder, getSessionConstraintsCodec, getSessionConstraintsDecoder, getSessionConstraintsEncoder, getSessionPoliciesCodec, getSessionPoliciesDecoder, getSessionPoliciesEncoder, getSlashReasonCodec, getSlashReasonDecoder, getSlashReasonEncoder, getSodConstraintCodec, getSodConstraintDecoder, getSodConstraintEncoder, getSodConstraintTypeCodec, getSodConstraintTypeDecoder, getSodConstraintTypeEncoder, getSourceReputationUpdatedEventCodec, getSourceReputationUpdatedEventDecoder, getSourceReputationUpdatedEventEncoder, getSourceScoreCodec, getSourceScoreDecoder, getSourceScoreEncoder, getStepUpTriggerCodec, getStepUpTriggerDecoder, getStepUpTriggerEncoder, getSubmissionDetailsCodec, getSubmissionDetailsDecoder, getSubmissionDetailsEncoder, getTagDecayAppliedEventCodec, getTagDecayAppliedEventDecoder, getTagDecayAppliedEventEncoder, getTagScoreCodec, getTagScoreDecoder, getTagScoreEncoder, getTierUpdatedEventCodec, getTierUpdatedEventDecoder, getTierUpdatedEventEncoder, getTimeConstraintsCodec, getTimeConstraintsDecoder, getTimeConstraintsEncoder, getTimeLockCodec, getTimeLockDecoder, getTimeLockEncoder, getTimeLockTypeCodec, getTimeLockTypeDecoder, getTimeLockTypeEncoder, getTransactionPriorityCodec, getTransactionPriorityDecoder, getTransactionPriorityEncoder, getTransactionStatusCodec, getTransactionStatusDecoder, getTransactionStatusEncoder, getTransactionTypeCodec, getTransactionTypeDecoder, getTransactionTypeEncoder, getTrendDirectionCodec, getTrendDirectionDecoder, getTrendDirectionEncoder, getUnlockMethodCodec, getUnlockMethodDecoder, getUnlockMethodEncoder, getValueTypeCodec, getValueTypeDecoder, getValueTypeEncoder, getVerificationMethodCodec, getVerificationMethodDecoder, getVerificationMethodEncoder, getVerificationMethodTypeCodec, getVerificationMethodTypeDecoder, getVerificationMethodTypeEncoder, getVerificationRelationshipCodec, getVerificationRelationshipDecoder, getVerificationRelationshipEncoder, getViolationSeverityCodec, getViolationSeverityDecoder, getViolationSeverityEncoder, getVoteChoiceCodec, getVoteChoiceDecoder, getVoteChoiceEncoder, getVoteCodec, getVoteDecoder, getVoteEncoder, getVotingResultsCodec, getVotingResultsDecoder, getVotingResultsEncoder, isArbitratorDecision, isDelegationScope } from './chunk-5QZVFUXB.js';
3
+ export { CREATE_AGENT_AUTHORIZATION_DISCRIMINATOR, getCreateAgentAuthorizationDiscriminatorBytes, getCreateAgentAuthorizationInstruction, getCreateAgentAuthorizationInstructionAsync, getCreateAgentAuthorizationInstructionDataCodec, getCreateAgentAuthorizationInstructionDataDecoder, getCreateAgentAuthorizationInstructionDataEncoder, parseCreateAgentAuthorizationInstruction } from './chunk-46QWY3MG.js';
4
+ export { REVOKE_AUTHORIZATION_DISCRIMINATOR, getRevokeAuthorizationDiscriminatorBytes, getRevokeAuthorizationInstruction, getRevokeAuthorizationInstructionDataCodec, getRevokeAuthorizationInstructionDataDecoder, getRevokeAuthorizationInstructionDataEncoder, parseRevokeAuthorizationInstruction } from './chunk-A7ALCVUI.js';
5
+ export { UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR, getUpdateReputationWithAuthDiscriminatorBytes, getUpdateReputationWithAuthInstruction, getUpdateReputationWithAuthInstructionAsync, getUpdateReputationWithAuthInstructionDataCodec, getUpdateReputationWithAuthInstructionDataDecoder, getUpdateReputationWithAuthInstructionDataEncoder, parseUpdateReputationWithAuthInstruction } from './chunk-QLRWUHN2.js';
6
+ export { GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, GhostspeakMarketplaceAccount, GhostspeakMarketplaceInstruction, identifyGhostspeakMarketplaceAccount, identifyGhostspeakMarketplaceInstruction } from './chunk-AWMGX3OX.js';
7
+ import './chunk-UP2VWCW5.js';
8
+ //# sourceMappingURL=generated-QJREJQ2C.js.map
9
+ //# sourceMappingURL=generated-QJREJQ2C.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"generated-EG5USUFG.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"generated-QJREJQ2C.js"}