/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type Address, type HasAddress, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from "@solana/kit"; /** InvalidSecp256r1Instruction: No prior secp256r1 verification instruction in this transaction matches the provided client data */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_INSTRUCTION = 6000; /** SignatureIndexOutOfBounds: The signature index provided is out of bounds for the secp256r1 instruction */ export declare const PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS = 6001; /** InvalidSignatureOffsets: Failed to deserialize secp256r1 signature offsets from the instruction data */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_SIGNATURE_OFFSETS = 6002; /** InvalidSecp256r1PublicKey: Invalid secp256r1 public key */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_PUBLIC_KEY = 6003; /** Secp256r1PubkeyMismatch: secp256r1 pubkey does not match phygital token record */ export declare const PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH = 6004; /** OwnerMismatch: Phygital token owner mismatch */ export declare const PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH = 6005; /** InvalidSlotHash: Slot not found in SlotHashes sysvar — signature has expired or is being replayed */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH = 6006; /** StaleSignCount: WebAuthn signCount must be greater than the last accepted signCount */ export declare const PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT = 6007; /** ClientDataHashMismatch: Client data hash mismatch */ export declare const PHYGITAL_TOKEN_ERROR__CLIENT_DATA_HASH_MISMATCH = 6008; /** InvalidSysvarDataFormat: Invalid sysvar data format */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT = 6009; /** TokenIsCurrentlyLocked: The owner needs to unlock the phygital token to enable transfer. */ export declare const PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED = 6010; /** UnableToParseClientData: Unable to parse client data JSON. */ export declare const PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA = 6011; /** ChallengeHashMismatch: Challenge hash mismatch. */ export declare const PHYGITAL_TOKEN_ERROR__CHALLENGE_HASH_MISMATCH = 6012; /** InvalidAuthenticatorData: Authenticator data is too short to contain WebAuthn flags. */ export declare const PHYGITAL_TOKEN_ERROR__INVALID_AUTHENTICATOR_DATA = 6013; /** UserPresenceNotVerified: WebAuthn user presence flag (UP) was not set by the authenticator. */ export declare const PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED = 6014; /** RpIdMismatch: WebAuthn rpId hash does not match the expected relying party id. */ export declare const PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH = 6015; /** OriginMismatch: WebAuthn origin does not match any expected origin. */ export declare const PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH = 6016; /** UnauthorizedAuthority: Only the designated authority can perform this action. */ export declare const PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY = 6017; /** UnauthorizedAdmin: Only the admin can perform this action. */ export declare const PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_ADMIN = 6018; /** KeyAlreadyExists: Key already exists on the admin config. */ export declare const PHYGITAL_TOKEN_ERROR__KEY_ALREADY_EXISTS = 6019; /** PermanentOwnerRequired: Only Permanent phygital tokens set an owner at initialize, and they must set one. */ export declare const PHYGITAL_TOKEN_ERROR__PERMANENT_OWNER_REQUIRED = 6020; /** PermanentOwnerImmutable: Permanent phygital token owner cannot be transferred or removed. */ export declare const PHYGITAL_TOKEN_ERROR__PERMANENT_OWNER_IMMUTABLE = 6021; /** ClientDataTypeMismatch: clientDataJSON type must be webauthn.get. */ export declare const PHYGITAL_TOKEN_ERROR__CLIENT_DATA_TYPE_MISMATCH = 6022; export type PhygitalTokenError = typeof PHYGITAL_TOKEN_ERROR__CHALLENGE_HASH_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__CLIENT_DATA_HASH_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__CLIENT_DATA_TYPE_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__INVALID_AUTHENTICATOR_DATA | typeof PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_INSTRUCTION | typeof PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_PUBLIC_KEY | typeof PHYGITAL_TOKEN_ERROR__INVALID_SIGNATURE_OFFSETS | typeof PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH | typeof PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT | typeof PHYGITAL_TOKEN_ERROR__KEY_ALREADY_EXISTS | typeof PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__PERMANENT_OWNER_IMMUTABLE | typeof PHYGITAL_TOKEN_ERROR__PERMANENT_OWNER_REQUIRED | typeof PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS | typeof PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT | typeof PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED | typeof PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA | typeof PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_ADMIN | typeof PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY | typeof PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED; export declare function getPhygitalTokenErrorMessage(code: PhygitalTokenError): string; export declare function isPhygitalTokenError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode, config?: { programAddress?: Address | HasAddress; }): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; //# sourceMappingURL=phygitalToken.d.ts.map