@medialane/sdk 0.23.0 → 0.24.1

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.
package/dist/index.d.cts CHANGED
@@ -23,7 +23,7 @@ declare const COLLECTION_721_START_BLOCK_MAINNET = 10046166;
23
23
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
24
24
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
25
25
  /** NFTComments on-chain comment system — immutable, no admin key. */
26
- declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x024f97eb5abe659fb650bf162b5fc16501f8f3863a7369901ce6099462e62799";
26
+ declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
27
27
  declare const SUPPORTED_TOKENS: readonly [{
28
28
  readonly symbol: "USDC";
29
29
  readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
@@ -689,6 +689,12 @@ interface ApiCollection {
689
689
  /** Token standard detected via ERC-165. */
690
690
  standard: "ERC721" | "ERC1155" | "UNKNOWN";
691
691
  isKnown: boolean;
692
+ /** Hidden by ops/admin (content moderation). When true, list endpoints
693
+ * already filter the row out; single-collection fetches still return
694
+ * it so the UI can render a "hidden" banner instead of a 404. */
695
+ isHidden: boolean;
696
+ /** Promoted on homepage / browse surfaces. */
697
+ isFeatured: boolean;
692
698
  /** Stable Medialane service ID, or null for external collections.
693
699
  * Resolve via getService() (05-service-model). Primary field. */
694
700
  service: string | null;
@@ -1050,6 +1056,12 @@ interface ApiCreatorProfile {
1050
1056
  bio: string | null;
1051
1057
  avatarImage: string | null;
1052
1058
  bannerImage: string | null;
1059
+ /** Computed fallback used by the creator-list / creator-page endpoints
1060
+ * ONLY when both `avatarImage` and `bannerImage` are null: image of
1061
+ * any collection owned by this creator. Undefined on profile-detail
1062
+ * endpoints where this lookup isn't performed. UI may use this to
1063
+ * populate hero banners without an extra fetch. */
1064
+ collectionImage?: string | null;
1053
1065
  websiteUrl: string | null;
1054
1066
  twitterUrl: string | null;
1055
1067
  discordUrl: string | null;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare const COLLECTION_721_START_BLOCK_MAINNET = 10046166;
23
23
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
24
24
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
25
25
  /** NFTComments on-chain comment system — immutable, no admin key. */
26
- declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x024f97eb5abe659fb650bf162b5fc16501f8f3863a7369901ce6099462e62799";
26
+ declare const NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
27
27
  declare const SUPPORTED_TOKENS: readonly [{
28
28
  readonly symbol: "USDC";
29
29
  readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
@@ -689,6 +689,12 @@ interface ApiCollection {
689
689
  /** Token standard detected via ERC-165. */
690
690
  standard: "ERC721" | "ERC1155" | "UNKNOWN";
691
691
  isKnown: boolean;
692
+ /** Hidden by ops/admin (content moderation). When true, list endpoints
693
+ * already filter the row out; single-collection fetches still return
694
+ * it so the UI can render a "hidden" banner instead of a 404. */
695
+ isHidden: boolean;
696
+ /** Promoted on homepage / browse surfaces. */
697
+ isFeatured: boolean;
692
698
  /** Stable Medialane service ID, or null for external collections.
693
699
  * Resolve via getService() (05-service-model). Primary field. */
694
700
  service: string | null;
@@ -1050,6 +1056,12 @@ interface ApiCreatorProfile {
1050
1056
  bio: string | null;
1051
1057
  avatarImage: string | null;
1052
1058
  bannerImage: string | null;
1059
+ /** Computed fallback used by the creator-list / creator-page endpoints
1060
+ * ONLY when both `avatarImage` and `bannerImage` are null: image of
1061
+ * any collection owned by this creator. Undefined on profile-detail
1062
+ * endpoints where this lookup isn't performed. UI may use this to
1063
+ * populate hero banners without an extra fetch. */
1064
+ collectionImage?: string | null;
1053
1065
  websiteUrl: string | null;
1054
1066
  twitterUrl: string | null;
1055
1067
  discordUrl: string | null;
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var IPCOLLECTION_CLASS_HASH_MAINNET = "0x287ccdff8b6655a2248cfe170d82eae3a35303c
16
16
  var COLLECTION_721_START_BLOCK_MAINNET = 10046166;
17
17
  var DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
18
18
  var POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
19
- var NFTCOMMENTS_CONTRACT_MAINNET = "0x024f97eb5abe659fb650bf162b5fc16501f8f3863a7369901ce6099462e62799";
19
+ var NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
20
20
  var SUPPORTED_TOKENS = [
21
21
  {
22
22
  // Circle-native USDC on Starknet (canonical)