@@ -7,7 +7,13 @@ import { PublicKey } from '@solana/web3.js';
77import { MetadataAccount } from '../accounts' ;
88import { JsonMetadata } from './JsonMetadata' ;
99import { assert , Option , removeEmptyChars } from '@/utils' ;
10- import { BigNumber , Creator , Pda , toBigNumber } from '@/types' ;
10+ import {
11+ BigNumber ,
12+ Creator ,
13+ Pda ,
14+ toBigNumber ,
15+ ReadApiCompressionMetadata ,
16+ } from '@/types' ;
1117
1218/** @group Models */
1319export type Metadata < Json extends object = JsonMetadata > = {
@@ -26,7 +32,7 @@ export type Metadata<Json extends object = JsonMetadata> = {
2632 */
2733 readonly updateAuthorityAddress : PublicKey ;
2834
29- /** The JSON metadata associated with the metadata acount . */
35+ /** The JSON metadata associated with the metadata account . */
3036 readonly json : Option < Json > ;
3137
3238 /**
@@ -110,7 +116,7 @@ export type Metadata<Json extends object = JsonMetadata> = {
110116
111117 /**
112118 * When this field is not `null`, it indicates that
113- * the asset is a collection. Everytime an asset is
119+ * the asset is a collection. Every time an asset is
114120 * verified/unverified as part of this collection,
115121 * the `size` field inside this object will be updated accordingly.
116122 */
@@ -139,6 +145,9 @@ export type Metadata<Json extends object = JsonMetadata> = {
139145
140146 /** Programmable configuration for the asset. */
141147 readonly programmableConfig : Option < ProgrammableConfig > ;
148+
149+ /* Compression metadata only provided via the ReadApi */
150+ readonly compression ?: ReadApiCompressionMetadata ;
142151} ;
143152
144153/** @group Model Helpers */
0 commit comments