@twin.org/nft-models 0.0.3-next.8 → 0.0.3-next.9

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 (29) hide show
  1. package/dist/es/models/IIrc27Metadata.js.map +1 -1
  2. package/dist/es/models/INftComponent.js.map +1 -1
  3. package/dist/es/models/INftConnector.js.map +1 -1
  4. package/dist/es/models/api/INftBurnRequest.js.map +1 -1
  5. package/dist/es/models/api/INftMintRequest.js.map +1 -1
  6. package/dist/es/models/api/INftResolveRequest.js.map +1 -1
  7. package/dist/es/models/api/INftResolveResponse.js.map +1 -1
  8. package/dist/es/models/api/INftTransferRequest.js.map +1 -1
  9. package/dist/es/models/api/INftUpdateRequest.js.map +1 -1
  10. package/dist/types/models/IIrc27Metadata.d.ts +2 -2
  11. package/dist/types/models/INftComponent.d.ts +3 -3
  12. package/dist/types/models/INftConnector.d.ts +3 -3
  13. package/dist/types/models/api/INftBurnRequest.d.ts +2 -2
  14. package/dist/types/models/api/INftMintRequest.d.ts +2 -2
  15. package/dist/types/models/api/INftResolveRequest.d.ts +2 -2
  16. package/dist/types/models/api/INftResolveResponse.d.ts +2 -2
  17. package/dist/types/models/api/INftTransferRequest.d.ts +3 -3
  18. package/dist/types/models/api/INftUpdateRequest.d.ts +4 -4
  19. package/docs/changelog.md +7 -0
  20. package/docs/reference/interfaces/IIrc27Metadata.md +4 -1
  21. package/docs/reference/interfaces/INftBurnRequest.md +2 -2
  22. package/docs/reference/interfaces/INftComponent.md +3 -3
  23. package/docs/reference/interfaces/INftConnector.md +3 -3
  24. package/docs/reference/interfaces/INftMintRequest.md +2 -2
  25. package/docs/reference/interfaces/INftResolveRequest.md +2 -2
  26. package/docs/reference/interfaces/INftResolveResponse.md +2 -2
  27. package/docs/reference/interfaces/INftTransferRequest.md +3 -3
  28. package/docs/reference/interfaces/INftUpdateRequest.md +4 -4
  29. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"IIrc27Metadata.js","sourceRoot":"","sources":["../../../src/models/IIrc27Metadata.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Model defining the IRC27 NFT Standards.\n * https://docs.iota.org/developer/references/framework/stardust/irc27\n */\nexport interface IIrc27Metadata {\n\t/**\n\t * The standard marker.\n\t */\n\tstandard: \"IRC27\";\n\n\t/**\n\t * The version\n\t */\n\tversion: \"v1.0\";\n\n\t/**\n\t * A mime type for the content of the NFT.\n\t */\n\ttype: string;\n\n\t/**\n\t * Url pointing to the NFT file location with MIME type defined in type.\n\t */\n\turi: string;\n\n\t/**\n\t * Alphanumeric text string defining the human identifiable name for the NFT\n\t */\n\tname: string;\n\n\t/**\n\t * Alphanumeric text string defining the human identifiable collection name.\n\t */\n\tcollectionName?: string;\n\n\t/**\n\t * Object containing key value pair where payment address mapped to the payout percentage.\n\t */\n\troyalties?: {\n\t\t[id: string]: number;\n\t};\n\n\t/**\n\t * Alphanumeric text string to define the human identifiable name of the creator.\n\t */\n\tissuerName?: string;\n\n\t/**\n\t * Alphanumeric text string to define a basic description of the NFT.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Array objects defining additional attributes of the NFT\n\t */\n\tattributes?: {\n\t\ttrait_type: string;\n\t\tvalue: unknown;\n\t}[];\n}\n"]}
1
+ {"version":3,"file":"IIrc27Metadata.js","sourceRoot":"","sources":["../../../src/models/IIrc27Metadata.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Model defining the IRC27 NFT metadata standard.\n * @see https://docs.iota.org/developer/references/framework/stardust/irc27\n */\nexport interface IIrc27Metadata {\n\t/**\n\t * The standard marker.\n\t */\n\tstandard: \"IRC27\";\n\n\t/**\n\t * The version\n\t */\n\tversion: \"v1.0\";\n\n\t/**\n\t * A mime type for the content of the NFT.\n\t */\n\ttype: string;\n\n\t/**\n\t * Url pointing to the NFT file location with MIME type defined in type.\n\t */\n\turi: string;\n\n\t/**\n\t * Alphanumeric text string defining the human identifiable name for the NFT\n\t */\n\tname: string;\n\n\t/**\n\t * Alphanumeric text string defining the human identifiable collection name.\n\t */\n\tcollectionName?: string;\n\n\t/**\n\t * Object containing key value pair where payment address mapped to the payout percentage.\n\t */\n\troyalties?: {\n\t\t[id: string]: number;\n\t};\n\n\t/**\n\t * Alphanumeric text string to define the human identifiable name of the creator.\n\t */\n\tissuerName?: string;\n\n\t/**\n\t * Alphanumeric text string to define a basic description of the NFT.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Array objects defining additional attributes of the NFT\n\t */\n\tattributes?: {\n\t\ttrait_type: string;\n\t\tvalue: unknown;\n\t}[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftComponent.js","sourceRoot":"","sources":["../../../src/models/INftComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\n\n/**\n * Interface describing an NFT component.\n */\nexport interface INftComponent extends IComponent {\n\t/**\n\t * Mint an NFT.\n\t * @param tag The tag for the NFT.\n\t * @param immutableMetadata The immutable metadata for the NFT.\n\t * @param metadata The metadata for the NFT.\n\t * @param namespace The namespace of the connector to use for the NFT, defaults to component configured namespace.\n\t * @param identity The identity to perform the nft operation with.\n\t * @returns The id of the created NFT in urn format.\n\t */\n\tmint<T = unknown, U = unknown>(\n\t\ttag: string,\n\t\timmutableMetadata?: T,\n\t\tmetadata?: U,\n\t\tnamespace?: string,\n\t\tidentity?: string\n\t): Promise<string>;\n\n\t/**\n\t * Resolve an NFT.\n\t * @param id The id of the NFT to resolve.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns The data for the NFT.\n\t */\n\tresolve<T = unknown, U = unknown>(\n\t\tid: string,\n\t\tcontrollerIdentity?: string\n\t): Promise<{\n\t\tissuer: string;\n\t\tissuerIdentityId: string;\n\t\ttag: string;\n\t\timmutableMetadata?: T;\n\t\tmetadata?: U;\n\t}>;\n\n\t/**\n\t * Burn an NFT.\n\t * @param id The id of the NFT to burn in urn format.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns Nothing.\n\t */\n\tburn(id: string, controllerIdentity?: string): Promise<void>;\n\n\t/**\n\t * Transfer an NFT.\n\t * @param id The id of the NFT to transfer in urn format.\n\t * @param recipientAddress The recipient address for the NFT.\n\t * @param metadata Optional mutable data to include during the transfer.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns Nothing.\n\t */\n\ttransfer<U = unknown>(\n\t\tid: string,\n\t\trecipientAddress: string,\n\t\tmetadata?: U,\n\t\tcontrollerIdentity?: string\n\t): Promise<void>;\n\n\t/**\n\t * Update the mutable data of the NFT.\n\t * @param id The id of the NFT to update in urn format.\n\t * @param metadata The mutable data to update.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns Nothing.\n\t */\n\tupdate<U = unknown>(id: string, metadata: U, controllerIdentity?: string): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"INftComponent.js","sourceRoot":"","sources":["../../../src/models/INftComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\n\n/**\n * Interface describing an NFT component.\n */\nexport interface INftComponent extends IComponent {\n\t/**\n\t * Mint an NFT.\n\t * @param tag The tag for the NFT.\n\t * @param immutableMetadata The immutable metadata for the NFT.\n\t * @param metadata The metadata for the NFT.\n\t * @param namespace The namespace of the connector to use for the NFT, defaults to component configured namespace.\n\t * @param identity The identity to perform the nft operation with.\n\t * @returns The id of the created NFT in urn format.\n\t */\n\tmint<T = unknown, U = unknown>(\n\t\ttag: string,\n\t\timmutableMetadata?: T,\n\t\tmetadata?: U,\n\t\tnamespace?: string,\n\t\tidentity?: string\n\t): Promise<string>;\n\n\t/**\n\t * Resolve an NFT.\n\t * @param id The id of the NFT to resolve.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns The data for the NFT.\n\t */\n\tresolve<T = unknown, U = unknown>(\n\t\tid: string,\n\t\tcontrollerIdentity?: string\n\t): Promise<{\n\t\tissuer: string;\n\t\tissuerIdentityId: string;\n\t\ttag: string;\n\t\timmutableMetadata?: T;\n\t\tmetadata?: U;\n\t}>;\n\n\t/**\n\t * Burn an NFT.\n\t * @param id The id of the NFT to burn in urn format.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns A promise that resolves when the NFT has been permanently destroyed.\n\t */\n\tburn(id: string, controllerIdentity?: string): Promise<void>;\n\n\t/**\n\t * Transfer an NFT.\n\t * @param id The id of the NFT to transfer in urn format.\n\t * @param recipientAddress The recipient address for the NFT.\n\t * @param metadata Optional mutable data to include during the transfer.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns A promise that resolves when the NFT ownership has been transferred.\n\t */\n\ttransfer<U = unknown>(\n\t\tid: string,\n\t\trecipientAddress: string,\n\t\tmetadata?: U,\n\t\tcontrollerIdentity?: string\n\t): Promise<void>;\n\n\t/**\n\t * Update the mutable data of the NFT.\n\t * @param id The id of the NFT to update in urn format.\n\t * @param metadata The mutable data to update.\n\t * @param controllerIdentity The identity to perform the nft operation with.\n\t * @returns A promise that resolves when the NFT metadata has been updated.\n\t */\n\tupdate<U = unknown>(id: string, metadata: U, controllerIdentity?: string): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftConnector.js","sourceRoot":"","sources":["../../../src/models/INftConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\n\n/**\n * Interface describing an NFT connector.\n */\nexport interface INftConnector extends IComponent {\n\t/**\n\t * Mint an NFT.\n\t * @param controllerIdentity The identity of the user to access the vault keys.\n\t * @param tag The tag for the NFT.\n\t * @param immutableMetadata The immutable metadata for the NFT.\n\t * @param metadata The metadata for the NFT.\n\t * @returns The id of the created NFT in urn format.\n\t */\n\tmint<T = unknown, U = unknown>(\n\t\tcontrollerIdentity: string,\n\t\ttag: string,\n\t\timmutableMetadata?: T,\n\t\tmetadata?: U\n\t): Promise<string>;\n\n\t/**\n\t * Resolve an NFT.\n\t * @param id The id of the NFT to resolve.\n\t * @returns The data for the NFT.\n\t */\n\tresolve<T = unknown, U = unknown>(\n\t\tid: string\n\t): Promise<{\n\t\tissuer: string;\n\t\tissuerIdentityId: string;\n\t\ttag: string;\n\t\timmutableMetadata?: T;\n\t\tmetadata?: U;\n\t}>;\n\n\t/**\n\t * Burn an NFT.\n\t * @param controller The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to burn in urn format.\n\t * @returns Nothing.\n\t */\n\tburn(controller: string, id: string): Promise<void>;\n\n\t/**\n\t * Transfer an NFT.\n\t * @param controllerIdentity The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to transfer in urn format.\n\t * @param recipientAddress The recipient address for the NFT.\n\t * @param metadata Optional mutable data to include during the transfer.\n\t * @returns Nothing.\n\t */\n\ttransfer<U = unknown>(\n\t\tcontrollerIdentity: string,\n\t\tid: string,\n\t\trecipientAddress: string,\n\t\tmetadata?: U\n\t): Promise<void>;\n\n\t/**\n\t * Update the mutable data of the NFT.\n\t * @param controllerIdentity The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to update in urn format.\n\t * @param metadata The mutable data to update.\n\t * @returns Nothing.\n\t */\n\tupdate<U = unknown>(controllerIdentity: string, id: string, metadata: U): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"INftConnector.js","sourceRoot":"","sources":["../../../src/models/INftConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\n\n/**\n * Interface describing an NFT connector.\n */\nexport interface INftConnector extends IComponent {\n\t/**\n\t * Mint an NFT.\n\t * @param controllerIdentity The identity of the user to access the vault keys.\n\t * @param tag The tag for the NFT.\n\t * @param immutableMetadata The immutable metadata for the NFT.\n\t * @param metadata The metadata for the NFT.\n\t * @returns The id of the created NFT in urn format.\n\t */\n\tmint<T = unknown, U = unknown>(\n\t\tcontrollerIdentity: string,\n\t\ttag: string,\n\t\timmutableMetadata?: T,\n\t\tmetadata?: U\n\t): Promise<string>;\n\n\t/**\n\t * Resolve an NFT.\n\t * @param id The id of the NFT to resolve.\n\t * @returns The data for the NFT.\n\t */\n\tresolve<T = unknown, U = unknown>(\n\t\tid: string\n\t): Promise<{\n\t\tissuer: string;\n\t\tissuerIdentityId: string;\n\t\ttag: string;\n\t\timmutableMetadata?: T;\n\t\tmetadata?: U;\n\t}>;\n\n\t/**\n\t * Burn an NFT.\n\t * @param controller The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to burn in urn format.\n\t * @returns A promise that resolves when the NFT has been permanently destroyed.\n\t */\n\tburn(controller: string, id: string): Promise<void>;\n\n\t/**\n\t * Transfer an NFT.\n\t * @param controllerIdentity The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to transfer in urn format.\n\t * @param recipientAddress The recipient address for the NFT.\n\t * @param metadata Optional mutable data to include during the transfer.\n\t * @returns A promise that resolves when the NFT ownership has been transferred.\n\t */\n\ttransfer<U = unknown>(\n\t\tcontrollerIdentity: string,\n\t\tid: string,\n\t\trecipientAddress: string,\n\t\tmetadata?: U\n\t): Promise<void>;\n\n\t/**\n\t * Update the mutable data of the NFT.\n\t * @param controllerIdentity The controller of the NFT who can make changes.\n\t * @param id The id of the NFT to update in urn format.\n\t * @param metadata The mutable data to update.\n\t * @returns A promise that resolves when the NFT metadata has been updated.\n\t */\n\tupdate<U = unknown>(controllerIdentity: string, id: string, metadata: U): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftBurnRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftBurnRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Burn the NFT.\n */\nexport interface INftBurnRequest {\n\t/**\n\t * The data to be used for resolving.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to burn.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftBurnRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftBurnRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to burn an NFT.\n */\nexport interface INftBurnRequest {\n\t/**\n\t * The path parameters for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to burn.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftMintRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftMintRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Mint the data and return the NFT id.\n */\nexport interface INftMintRequest {\n\t/**\n\t * The data to be used in the minting.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The tag for the NFT.\n\t\t */\n\t\ttag: string;\n\n\t\t/**\n\t\t * The immutable metadata for the NFT.\n\t\t */\n\t\timmutableMetadata?: unknown;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\n\t\t/**\n\t\t * The namespace of the connector to use for the NFT, defaults to component configured namespace.\n\t\t */\n\t\tnamespace?: string;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftMintRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftMintRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to mint a new NFT.\n */\nexport interface INftMintRequest {\n\t/**\n\t * The request body containing minting parameters.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The tag for the NFT.\n\t\t */\n\t\ttag: string;\n\n\t\t/**\n\t\t * The immutable metadata for the NFT.\n\t\t */\n\t\timmutableMetadata?: unknown;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\n\t\t/**\n\t\t * The namespace of the connector to use for the NFT, defaults to component configured namespace.\n\t\t */\n\t\tnamespace?: string;\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftResolveRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftResolveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Resolve the NFT.\n */\nexport interface INftResolveRequest {\n\t/**\n\t * The data to be used for resolving.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to resolve.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftResolveRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftResolveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to resolve an NFT by its id.\n */\nexport interface INftResolveRequest {\n\t/**\n\t * The path parameters for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to resolve.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftResolveResponse.js","sourceRoot":"","sources":["../../../../src/models/api/INftResolveResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Response to resolving the NFT.\n */\nexport interface INftResolveResponse {\n\t/**\n\t * The data that was resolved.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The issuer of the NFT.\n\t\t */\n\t\tissuer: string;\n\n\t\t/**\n\t\t * The on-chain Object ID of the verified IOTA Identity that minted this NFT.\n\t\t * Empty string when not minted with identity verification.\n\t\t */\n\t\tissuerIdentityId: string;\n\n\t\t/**\n\t\t * The tag data for the NFT.\n\t\t */\n\t\ttag: string;\n\n\t\t/**\n\t\t * The immutable data for the NFT.\n\t\t */\n\t\timmutableMetadata?: unknown;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftResolveResponse.js","sourceRoot":"","sources":["../../../../src/models/api/INftResolveResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Response returned after resolving an NFT.\n */\nexport interface INftResolveResponse {\n\t/**\n\t * The resolved NFT data.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The issuer of the NFT.\n\t\t */\n\t\tissuer: string;\n\n\t\t/**\n\t\t * The on-chain Object ID of the verified IOTA Identity that minted this NFT.\n\t\t * Empty string when not minted with identity verification.\n\t\t */\n\t\tissuerIdentityId: string;\n\n\t\t/**\n\t\t * The tag data for the NFT.\n\t\t */\n\t\ttag: string;\n\n\t\t/**\n\t\t * The immutable data for the NFT.\n\t\t */\n\t\timmutableMetadata?: unknown;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftTransferRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftTransferRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Transfer the NFT and update the metadata.\n */\nexport interface INftTransferRequest {\n\t/**\n\t * The data to be used in the transfer.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to transfer in urn format.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The data to be used in the transfer.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The recipient address for the NFT.\n\t\t */\n\t\trecipientAddress: string;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftTransferRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftTransferRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to transfer an NFT to a new owner.\n */\nexport interface INftTransferRequest {\n\t/**\n\t * The path parameters for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to transfer in urn format.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The request body containing transfer parameters.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The recipient address for the NFT.\n\t\t */\n\t\trecipientAddress: string;\n\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"INftUpdateRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftUpdateRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Update the mutable data for the NFT.\n */\nexport interface INftUpdateRequest {\n\t/**\n\t * The data to be used in the update.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to transfer in urn format.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The data to be used in the update.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
1
+ {"version":3,"file":"INftUpdateRequest.js","sourceRoot":"","sources":["../../../../src/models/api/INftUpdateRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to update the mutable metadata of an NFT.\n */\nexport interface INftUpdateRequest {\n\t/**\n\t * The path parameters for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the NFT to update in urn format.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The request body containing update parameters.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The metadata for the NFT.\n\t\t */\n\t\tmetadata?: unknown;\n\t};\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Model defining the IRC27 NFT Standards.
3
- * https://docs.iota.org/developer/references/framework/stardust/irc27
2
+ * Model defining the IRC27 NFT metadata standard.
3
+ * @see https://docs.iota.org/developer/references/framework/stardust/irc27
4
4
  */
5
5
  export interface IIrc27Metadata {
6
6
  /**
@@ -30,7 +30,7 @@ export interface INftComponent extends IComponent {
30
30
  * Burn an NFT.
31
31
  * @param id The id of the NFT to burn in urn format.
32
32
  * @param controllerIdentity The identity to perform the nft operation with.
33
- * @returns Nothing.
33
+ * @returns A promise that resolves when the NFT has been permanently destroyed.
34
34
  */
35
35
  burn(id: string, controllerIdentity?: string): Promise<void>;
36
36
  /**
@@ -39,7 +39,7 @@ export interface INftComponent extends IComponent {
39
39
  * @param recipientAddress The recipient address for the NFT.
40
40
  * @param metadata Optional mutable data to include during the transfer.
41
41
  * @param controllerIdentity The identity to perform the nft operation with.
42
- * @returns Nothing.
42
+ * @returns A promise that resolves when the NFT ownership has been transferred.
43
43
  */
44
44
  transfer<U = unknown>(id: string, recipientAddress: string, metadata?: U, controllerIdentity?: string): Promise<void>;
45
45
  /**
@@ -47,7 +47,7 @@ export interface INftComponent extends IComponent {
47
47
  * @param id The id of the NFT to update in urn format.
48
48
  * @param metadata The mutable data to update.
49
49
  * @param controllerIdentity The identity to perform the nft operation with.
50
- * @returns Nothing.
50
+ * @returns A promise that resolves when the NFT metadata has been updated.
51
51
  */
52
52
  update<U = unknown>(id: string, metadata: U, controllerIdentity?: string): Promise<void>;
53
53
  }
@@ -28,7 +28,7 @@ export interface INftConnector extends IComponent {
28
28
  * Burn an NFT.
29
29
  * @param controller The controller of the NFT who can make changes.
30
30
  * @param id The id of the NFT to burn in urn format.
31
- * @returns Nothing.
31
+ * @returns A promise that resolves when the NFT has been permanently destroyed.
32
32
  */
33
33
  burn(controller: string, id: string): Promise<void>;
34
34
  /**
@@ -37,7 +37,7 @@ export interface INftConnector extends IComponent {
37
37
  * @param id The id of the NFT to transfer in urn format.
38
38
  * @param recipientAddress The recipient address for the NFT.
39
39
  * @param metadata Optional mutable data to include during the transfer.
40
- * @returns Nothing.
40
+ * @returns A promise that resolves when the NFT ownership has been transferred.
41
41
  */
42
42
  transfer<U = unknown>(controllerIdentity: string, id: string, recipientAddress: string, metadata?: U): Promise<void>;
43
43
  /**
@@ -45,7 +45,7 @@ export interface INftConnector extends IComponent {
45
45
  * @param controllerIdentity The controller of the NFT who can make changes.
46
46
  * @param id The id of the NFT to update in urn format.
47
47
  * @param metadata The mutable data to update.
48
- * @returns Nothing.
48
+ * @returns A promise that resolves when the NFT metadata has been updated.
49
49
  */
50
50
  update<U = unknown>(controllerIdentity: string, id: string, metadata: U): Promise<void>;
51
51
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Burn the NFT.
2
+ * Request to burn an NFT.
3
3
  */
4
4
  export interface INftBurnRequest {
5
5
  /**
6
- * The data to be used for resolving.
6
+ * The path parameters for the request.
7
7
  */
8
8
  pathParams: {
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Mint the data and return the NFT id.
2
+ * Request to mint a new NFT.
3
3
  */
4
4
  export interface INftMintRequest {
5
5
  /**
6
- * The data to be used in the minting.
6
+ * The request body containing minting parameters.
7
7
  */
8
8
  body: {
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Resolve the NFT.
2
+ * Request to resolve an NFT by its id.
3
3
  */
4
4
  export interface INftResolveRequest {
5
5
  /**
6
- * The data to be used for resolving.
6
+ * The path parameters for the request.
7
7
  */
8
8
  pathParams: {
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Response to resolving the NFT.
2
+ * Response returned after resolving an NFT.
3
3
  */
4
4
  export interface INftResolveResponse {
5
5
  /**
6
- * The data that was resolved.
6
+ * The resolved NFT data.
7
7
  */
8
8
  body: {
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Transfer the NFT and update the metadata.
2
+ * Request to transfer an NFT to a new owner.
3
3
  */
4
4
  export interface INftTransferRequest {
5
5
  /**
6
- * The data to be used in the transfer.
6
+ * The path parameters for the request.
7
7
  */
8
8
  pathParams: {
9
9
  /**
@@ -12,7 +12,7 @@ export interface INftTransferRequest {
12
12
  id: string;
13
13
  };
14
14
  /**
15
- * The data to be used in the transfer.
15
+ * The request body containing transfer parameters.
16
16
  */
17
17
  body: {
18
18
  /**
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Update the mutable data for the NFT.
2
+ * Request to update the mutable metadata of an NFT.
3
3
  */
4
4
  export interface INftUpdateRequest {
5
5
  /**
6
- * The data to be used in the update.
6
+ * The path parameters for the request.
7
7
  */
8
8
  pathParams: {
9
9
  /**
10
- * The id of the NFT to transfer in urn format.
10
+ * The id of the NFT to update in urn format.
11
11
  */
12
12
  id: string;
13
13
  };
14
14
  /**
15
- * The data to be used in the update.
15
+ * The request body containing update parameters.
16
16
  */
17
17
  body: {
18
18
  /**
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.9](https://github.com/iotaledger/twin-nft/compare/nft-models-v0.0.3-next.8...nft-models-v0.0.3-next.9) (2026-06-17)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **nft-models:** Synchronize repo versions
9
+
3
10
  ## [0.0.3-next.8](https://github.com/iotaledger/twin-nft/compare/nft-models-v0.0.3-next.7...nft-models-v0.0.3-next.8) (2026-06-11)
4
11
 
5
12
 
@@ -1,6 +1,9 @@
1
1
  # Interface: IIrc27Metadata
2
2
 
3
- Model defining the IRC27 NFT Standards.
3
+ Model defining the IRC27 NFT metadata standard.
4
+
5
+ ## See
6
+
4
7
  https://docs.iota.org/developer/references/framework/stardust/irc27
5
8
 
6
9
  ## Properties
@@ -1,6 +1,6 @@
1
1
  # Interface: INftBurnRequest
2
2
 
3
- Burn the NFT.
3
+ Request to burn an NFT.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Burn the NFT.
8
8
 
9
9
  > **pathParams**: `object`
10
10
 
11
- The data to be used for resolving.
11
+ The path parameters for the request.
12
12
 
13
13
  #### id
14
14
 
@@ -126,7 +126,7 @@ The identity to perform the nft operation with.
126
126
 
127
127
  `Promise`\<`void`\>
128
128
 
129
- Nothing.
129
+ A promise that resolves when the NFT has been permanently destroyed.
130
130
 
131
131
  ***
132
132
 
@@ -172,7 +172,7 @@ The identity to perform the nft operation with.
172
172
 
173
173
  `Promise`\<`void`\>
174
174
 
175
- Nothing.
175
+ A promise that resolves when the NFT ownership has been transferred.
176
176
 
177
177
  ***
178
178
 
@@ -212,4 +212,4 @@ The identity to perform the nft operation with.
212
212
 
213
213
  `Promise`\<`void`\>
214
214
 
215
- Nothing.
215
+ A promise that resolves when the NFT metadata has been updated.
@@ -114,7 +114,7 @@ The id of the NFT to burn in urn format.
114
114
 
115
115
  `Promise`\<`void`\>
116
116
 
117
- Nothing.
117
+ A promise that resolves when the NFT has been permanently destroyed.
118
118
 
119
119
  ***
120
120
 
@@ -160,7 +160,7 @@ Optional mutable data to include during the transfer.
160
160
 
161
161
  `Promise`\<`void`\>
162
162
 
163
- Nothing.
163
+ A promise that resolves when the NFT ownership has been transferred.
164
164
 
165
165
  ***
166
166
 
@@ -200,4 +200,4 @@ The mutable data to update.
200
200
 
201
201
  `Promise`\<`void`\>
202
202
 
203
- Nothing.
203
+ A promise that resolves when the NFT metadata has been updated.
@@ -1,6 +1,6 @@
1
1
  # Interface: INftMintRequest
2
2
 
3
- Mint the data and return the NFT id.
3
+ Request to mint a new NFT.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Mint the data and return the NFT id.
8
8
 
9
9
  > **body**: `object`
10
10
 
11
- The data to be used in the minting.
11
+ The request body containing minting parameters.
12
12
 
13
13
  #### tag
14
14
 
@@ -1,6 +1,6 @@
1
1
  # Interface: INftResolveRequest
2
2
 
3
- Resolve the NFT.
3
+ Request to resolve an NFT by its id.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Resolve the NFT.
8
8
 
9
9
  > **pathParams**: `object`
10
10
 
11
- The data to be used for resolving.
11
+ The path parameters for the request.
12
12
 
13
13
  #### id
14
14
 
@@ -1,6 +1,6 @@
1
1
  # Interface: INftResolveResponse
2
2
 
3
- Response to resolving the NFT.
3
+ Response returned after resolving an NFT.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Response to resolving the NFT.
8
8
 
9
9
  > **body**: `object`
10
10
 
11
- The data that was resolved.
11
+ The resolved NFT data.
12
12
 
13
13
  #### issuer
14
14
 
@@ -1,6 +1,6 @@
1
1
  # Interface: INftTransferRequest
2
2
 
3
- Transfer the NFT and update the metadata.
3
+ Request to transfer an NFT to a new owner.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Transfer the NFT and update the metadata.
8
8
 
9
9
  > **pathParams**: `object`
10
10
 
11
- The data to be used in the transfer.
11
+ The path parameters for the request.
12
12
 
13
13
  #### id
14
14
 
@@ -22,7 +22,7 @@ The id of the NFT to transfer in urn format.
22
22
 
23
23
  > **body**: `object`
24
24
 
25
- The data to be used in the transfer.
25
+ The request body containing transfer parameters.
26
26
 
27
27
  #### recipientAddress
28
28
 
@@ -1,6 +1,6 @@
1
1
  # Interface: INftUpdateRequest
2
2
 
3
- Update the mutable data for the NFT.
3
+ Request to update the mutable metadata of an NFT.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,13 +8,13 @@ Update the mutable data for the NFT.
8
8
 
9
9
  > **pathParams**: `object`
10
10
 
11
- The data to be used in the update.
11
+ The path parameters for the request.
12
12
 
13
13
  #### id
14
14
 
15
15
  > **id**: `string`
16
16
 
17
- The id of the NFT to transfer in urn format.
17
+ The id of the NFT to update in urn format.
18
18
 
19
19
  ***
20
20
 
@@ -22,7 +22,7 @@ The id of the NFT to transfer in urn format.
22
22
 
23
23
  > **body**: `object`
24
24
 
25
- The data to be used in the update.
25
+ The request body containing update parameters.
26
26
 
27
27
  #### metadata?
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nft-models",
3
- "version": "0.0.3-next.8",
3
+ "version": "0.0.3-next.9",
4
4
  "description": "Shared NFT interfaces, request and response models, and connector contracts.",
5
5
  "repository": {
6
6
  "type": "git",