{"version":3,"file":"enums.cjs","sources":["../../../../src/types/enums.ts"],"sourcesContent":["// Helper that keeps runtime values and infers the union type\nconst makeEnum = <T extends Record<string, string>>(o: T) => o;\n\n/** Asset interface type — identifies the on-chain program standard. */\nexport const Interface = makeEnum({\n  V1_NFT: \"V1_NFT\",\n  CUSTOM: \"Custom\",\n  V1_PRINT: \"V1_PRINT\",\n  LEGACY_NFT: \"Legacy_NFT\",\n  V2_NFT: \"V2_NFT\",\n  FUNGIBLE_ASSET: \"FungibleAsset\",\n  IDENTITY: \"Identity\",\n  EXECUTABLE: \"Executable\",\n  PROGRAMMABLE_NFT: \"ProgrammableNFT\",\n  FUNGIBLE_TOKEN: \"FungibleToken\",\n  MPL_CORE_ASSET: \"MplCoreAsset\",\n});\n\n/** Asset interface type — identifies the on-chain program standard. */\nexport type Interface = (typeof Interface)[keyof typeof Interface];\n\n/** How ownership of an asset is modeled. */\nexport const OwnershipModel = makeEnum({\n  SINGLE: \"single\",\n  TOKEN: \"token\",\n});\n\n/** How ownership of an asset is modeled. */\nexport type OwnershipModel =\n  (typeof OwnershipModel)[keyof typeof OwnershipModel];\n\n/** Royalty distribution model for an asset. */\nexport const RoyaltyModel = makeEnum({\n  CREATORS: \"creators\",\n  FANOUT: \"fanout\",\n  SINGLE: \"single\",\n});\n\n/** Royalty distribution model for an asset. */\nexport type RoyaltyModel = (typeof RoyaltyModel)[keyof typeof RoyaltyModel];\n\n/** Authority scope level for an asset. */\nexport const Scope = makeEnum({\n  FULL: \"full\",\n  ROYALTY: \"royalty\",\n  METADATA: \"metadata\",\n  EXTENSION: \"extension\",\n});\n\n/** Authority scope level for an asset. */\nexport type Scope = (typeof Scope)[keyof typeof Scope];\n\n/** Method governing how an asset's uses are consumed. */\nexport const UseMethods = makeEnum({\n  BURN: \"Burn\",\n  SINGLE: \"Single\",\n  MULTIPLE: \"Multiple\",\n});\n\n/** Method governing how an asset's uses are consumed. */\nexport type UseMethods = (typeof UseMethods)[keyof typeof UseMethods];\n\n/** Display context in which a file/asset is intended to be rendered. */\nexport const Context = makeEnum({\n  WALLET_DEFAULT: \"wallet-default\",\n  WEB_DESKTOP: \"web-desktop\",\n  WEB_MOBILE: \"web-mobile\",\n  APP_MOBILE: \"app-mobile\",\n  APP_DESKTOP: \"app-desktop\",\n  APP: \"app\",\n  VR: \"vr\",\n});\n\n/** Display context in which a file/asset is intended to be rendered. */\nexport type Context = (typeof Context)[keyof typeof Context];\n\n/** Field by which DAS asset queries can be sorted. */\nexport const AssetSortBy = makeEnum({\n  ID: \"id\",\n  CREATED: \"created\",\n  UPDATED: \"updated\",\n  RECENT_ACTION: \"recent_action\",\n  NONE: \"none\",\n});\n\n/** Field by which DAS asset queries can be sorted. */\nexport type AssetSortBy = (typeof AssetSortBy)[keyof typeof AssetSortBy];\n\n/** Sort direction for DAS asset queries. */\nexport const AssetSortDirection = makeEnum({ ASC: \"asc\", DESC: \"desc\" });\n/** Sort direction for DAS asset queries. */\nexport type AssetSortDirection =\n  (typeof AssetSortDirection)[keyof typeof AssetSortDirection];\n\n/** Token standard classification. */\nexport const TokenStandard = makeEnum({\n  PROGRAMMABLE_NON_FUNGIBLE: \"ProgrammableNonFungible\",\n  NON_FUNGIBLE: \"NonFungible\",\n  FUNGIBLE: \"Fungible\",\n  FUNGIBLE_ASSET: \"FungibleAsset\",\n  NON_FUNGIBLE_EDITION: \"NonFungibleEdition\",\n  UNKNOWN_STANDARD: \"UnknownStandard\",\n});\n\n/** Token standard classification. */\nexport type TokenStandard = (typeof TokenStandard)[keyof typeof TokenStandard];\n\n/** Priority fee level hint for the `getPriorityFeeEstimate` API. */\nexport const PriorityLevel = makeEnum({\n  MIN: \"Min\",\n  LOW: \"Low\",\n  MEDIUM: \"Medium\",\n  HIGH: \"High\",\n  VERY_HIGH: \"VeryHigh\",\n  UNSAFE_MAX: \"UnsafeMax\",\n  DEFAULT: \"Default\",\n});\n\n/** Priority fee level hint for the `getPriorityFeeEstimate` API. */\nexport type PriorityLevel = (typeof PriorityLevel)[keyof typeof PriorityLevel];\n\n/** Transaction encoding format for UI / RPC requests. */\nexport const UiTransactionEncoding = makeEnum({\n  Binary: \"binary\",\n  Base64: \"base64\",\n  Base58: \"base58\",\n  Json: \"json\",\n  JsonParsed: \"jsonParsed\",\n});\n\n/** Transaction encoding format for UI / RPC requests. */\nexport type UiTransactionEncoding =\n  (typeof UiTransactionEncoding)[keyof typeof UiTransactionEncoding];\n"],"names":[],"mappings":";;AAAA;AACA,MAAM,QAAQ,GAAG,CAAmC,CAAI,KAAK,CAAC;AAE9D;AACO,MAAM,SAAS,GAAG,QAAQ,CAAC;AAChC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,cAAc,EAAE,eAAe;AAC/B,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,gBAAgB,EAAE,iBAAiB;AACnC,IAAA,cAAc,EAAE,eAAe;AAC/B,IAAA,cAAc,EAAE,cAAc;AAC/B,CAAA;AAKD;AACO,MAAM,cAAc,GAAG,QAAQ,CAAC;AACrC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,OAAO;AACf,CAAA;AAMD;AACO,MAAM,YAAY,GAAG,QAAQ,CAAC;AACnC,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,MAAM,EAAE,QAAQ;AACjB,CAAA;AAKD;AACO,MAAM,KAAK,GAAG,QAAQ,CAAC;AAC5B,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,SAAS,EAAE,WAAW;AACvB,CAAA;AAKD;AACO,MAAM,UAAU,GAAG,QAAQ,CAAC;AACjC,IAAA,IAAI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