@medialane/sdk 0.11.0 → 0.13.0

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
@@ -348,14 +348,50 @@ declare class Medialane1155Module {
348
348
 
349
349
  type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
350
350
  type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
351
- type CollectionSource = "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
351
+ /** Bounded capability set (05-service-model §III). Expand the union when a
352
+ * service needs behavior outside it — never make it free-form. */
353
+ type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem";
354
+ /** A service that bakes enforcement into its own contract declares it here
355
+ * (04-licensing-model §V, 05-service-model §IV). Absence/all-falsey =
356
+ * soft enforcement (the 00-principles §9 default). */
357
+ interface EnforcementDeclaration {
358
+ royalty?: "erc2981" | "service-split" | "none";
359
+ escrow?: boolean;
360
+ timeLock?: boolean;
361
+ revocable?: boolean;
362
+ }
363
+ /** Declarative description of a service (05-service-model §II).
364
+ * SDK-resident in v1; on-chain registry in year 2. */
365
+ interface ServiceDefinition {
366
+ /** Stable kebab-case id. NO version number (05 §II). */
367
+ id: string;
368
+ displayName: string;
369
+ description: string;
370
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
371
+ provenance: "MEDIALANE" | "EXTERNAL";
372
+ onchain?: {
373
+ factoryAddress?: string;
374
+ classHash?: string;
375
+ startBlock?: number;
376
+ };
377
+ /** Drives the dapp asset/collection page variant. */
378
+ uiVariant: string;
379
+ capabilities: ServiceCapability[];
380
+ metadataSchema?: {
381
+ requiredTraits?: string[];
382
+ /** Canonical platform default is "CC BY-SA" (04-licensing-model §III). */
383
+ licenseDefault?: string;
384
+ enforcement?: EnforcementDeclaration;
385
+ };
386
+ }
352
387
  interface ApiCollectionsQuery {
353
388
  page?: number;
354
389
  limit?: number;
355
390
  isKnown?: boolean;
356
391
  sort?: CollectionSort;
357
392
  owner?: string;
358
- source?: CollectionSource;
393
+ /** Filter by service id. */
394
+ service?: string;
359
395
  }
360
396
  type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
361
397
  type SortOrder = "price_asc" | "price_desc" | "recent";
@@ -531,7 +567,9 @@ interface ApiCollection {
531
567
  /** Token standard detected via ERC-165. */
532
568
  standard: "ERC721" | "ERC1155" | "UNKNOWN";
533
569
  isKnown: boolean;
534
- source: CollectionSource;
570
+ /** Stable Medialane service ID, or null for external collections.
571
+ * Resolve via getService() (05-service-model). Primary field. */
572
+ service: string | null;
535
573
  claimedBy: string | null;
536
574
  profile?: ApiCollectionProfile | null;
537
575
  floorPrice: string | null;
@@ -959,7 +997,7 @@ declare class ApiClient {
959
997
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
960
998
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
961
999
  getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
962
- getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, source?: CollectionSource): Promise<ApiResponse<ApiCollection[]>>;
1000
+ getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string): Promise<ApiResponse<ApiCollection[]>>;
963
1001
  getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
964
1002
  getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
965
1003
  getCollectionTokens(contract: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -4102,6 +4140,14 @@ declare const IPNftABI: readonly [{
4102
4140
  }];
4103
4141
  }];
4104
4142
 
4143
+ /** Lookup. Returns undefined for external/unknown (service: null) — callers
4144
+ * fall back to standard-based generic UI (01-core-model §I). */
4145
+ declare function getService(id: string | null | undefined): ServiceDefinition | undefined;
4146
+ /** All registered services (e.g. the launchpad grid). */
4147
+ declare function listServices(): ServiceDefinition[];
4148
+ /** Services that declare a capability (e.g. "where can users mint"). */
4149
+ declare function getServicesByCapability(cap: ServiceCapability): ServiceDefinition[];
4150
+
4105
4151
  /**
4106
4152
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
4107
4153
  */
@@ -4192,4 +4238,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
4192
4238
  */
4193
4239
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
4194
4240
 
4195
- export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
4241
+ export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type EnforcementDeclaration, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
package/dist/index.d.ts CHANGED
@@ -348,14 +348,50 @@ declare class Medialane1155Module {
348
348
 
349
349
  type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
350
350
  type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
351
- type CollectionSource = "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
351
+ /** Bounded capability set (05-service-model §III). Expand the union when a
352
+ * service needs behavior outside it — never make it free-form. */
353
+ type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem";
354
+ /** A service that bakes enforcement into its own contract declares it here
355
+ * (04-licensing-model §V, 05-service-model §IV). Absence/all-falsey =
356
+ * soft enforcement (the 00-principles §9 default). */
357
+ interface EnforcementDeclaration {
358
+ royalty?: "erc2981" | "service-split" | "none";
359
+ escrow?: boolean;
360
+ timeLock?: boolean;
361
+ revocable?: boolean;
362
+ }
363
+ /** Declarative description of a service (05-service-model §II).
364
+ * SDK-resident in v1; on-chain registry in year 2. */
365
+ interface ServiceDefinition {
366
+ /** Stable kebab-case id. NO version number (05 §II). */
367
+ id: string;
368
+ displayName: string;
369
+ description: string;
370
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
371
+ provenance: "MEDIALANE" | "EXTERNAL";
372
+ onchain?: {
373
+ factoryAddress?: string;
374
+ classHash?: string;
375
+ startBlock?: number;
376
+ };
377
+ /** Drives the dapp asset/collection page variant. */
378
+ uiVariant: string;
379
+ capabilities: ServiceCapability[];
380
+ metadataSchema?: {
381
+ requiredTraits?: string[];
382
+ /** Canonical platform default is "CC BY-SA" (04-licensing-model §III). */
383
+ licenseDefault?: string;
384
+ enforcement?: EnforcementDeclaration;
385
+ };
386
+ }
352
387
  interface ApiCollectionsQuery {
353
388
  page?: number;
354
389
  limit?: number;
355
390
  isKnown?: boolean;
356
391
  sort?: CollectionSort;
357
392
  owner?: string;
358
- source?: CollectionSource;
393
+ /** Filter by service id. */
394
+ service?: string;
359
395
  }
360
396
  type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
361
397
  type SortOrder = "price_asc" | "price_desc" | "recent";
@@ -531,7 +567,9 @@ interface ApiCollection {
531
567
  /** Token standard detected via ERC-165. */
532
568
  standard: "ERC721" | "ERC1155" | "UNKNOWN";
533
569
  isKnown: boolean;
534
- source: CollectionSource;
570
+ /** Stable Medialane service ID, or null for external collections.
571
+ * Resolve via getService() (05-service-model). Primary field. */
572
+ service: string | null;
535
573
  claimedBy: string | null;
536
574
  profile?: ApiCollectionProfile | null;
537
575
  floorPrice: string | null;
@@ -959,7 +997,7 @@ declare class ApiClient {
959
997
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
960
998
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
961
999
  getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
962
- getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, source?: CollectionSource): Promise<ApiResponse<ApiCollection[]>>;
1000
+ getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string): Promise<ApiResponse<ApiCollection[]>>;
963
1001
  getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
964
1002
  getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
965
1003
  getCollectionTokens(contract: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -4102,6 +4140,14 @@ declare const IPNftABI: readonly [{
4102
4140
  }];
4103
4141
  }];
4104
4142
 
4143
+ /** Lookup. Returns undefined for external/unknown (service: null) — callers
4144
+ * fall back to standard-based generic UI (01-core-model §I). */
4145
+ declare function getService(id: string | null | undefined): ServiceDefinition | undefined;
4146
+ /** All registered services (e.g. the launchpad grid). */
4147
+ declare function listServices(): ServiceDefinition[];
4148
+ /** Services that declare a capability (e.g. "where can users mint"). */
4149
+ declare function getServicesByCapability(cap: ServiceCapability): ServiceDefinition[];
4150
+
4105
4151
  /**
4106
4152
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
4107
4153
  */
@@ -4192,4 +4238,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
4192
4238
  */
4193
4239
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
4194
4240
 
4195
- export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
4241
+ export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type EnforcementDeclaration, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
package/dist/index.js CHANGED
@@ -4324,11 +4324,11 @@ var ApiClient = class {
4324
4324
  );
4325
4325
  }
4326
4326
  // ─── Collections ───────────────────────────────────────────────────────────
4327
- getCollections(page = 1, limit = 20, isKnown, sort, source) {
4327
+ getCollections(page = 1, limit = 20, isKnown, sort, service) {
4328
4328
  const params = new URLSearchParams({ page: String(page), limit: String(limit) });
4329
4329
  if (isKnown !== void 0) params.set("isKnown", String(isKnown));
4330
4330
  if (sort) params.set("sort", sort);
4331
- if (source) params.set("source", source);
4331
+ if (service) params.set("service", service);
4332
4332
  return this.get(`/v1/collections?${params}`);
4333
4333
  }
4334
4334
  getCollectionsByOwner(owner, page = 1, limit = 50) {
@@ -5051,6 +5051,114 @@ var MedialaneClient = class {
5051
5051
  // src/types/api.ts
5052
5052
  var OPEN_LICENSES = ["CC0", "CC BY", "CC BY-SA", "CC BY-NC"];
5053
5053
 
5054
- export { ApiClient, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, CollectionRegistryABI, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, NFTCOMMENTS_CONTRACT_MAINNET, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
5054
+ // src/services/registry.ts
5055
+ var SERVICES = {
5056
+ "mip-erc721": {
5057
+ id: "mip-erc721",
5058
+ displayName: "IP Collection",
5059
+ description: "Tokenize intellectual property as a per-creator ERC-721 collection.",
5060
+ standard: "ERC721",
5061
+ provenance: "MEDIALANE",
5062
+ onchain: {
5063
+ factoryAddress: COLLECTION_721_CONTRACT_MAINNET,
5064
+ startBlock: INDEXER_START_BLOCK_MAINNET
5065
+ },
5066
+ uiVariant: "standard",
5067
+ capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"],
5068
+ metadataSchema: { licenseDefault: "CC BY-SA" }
5069
+ },
5070
+ "ip-erc721": {
5071
+ id: "ip-erc721",
5072
+ displayName: "Programmable IP (genesis)",
5073
+ description: "One shared ERC-721 contract; many wallets mint genesis pieces.",
5074
+ standard: "ERC721",
5075
+ provenance: "MEDIALANE",
5076
+ uiVariant: "standard",
5077
+ capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"],
5078
+ metadataSchema: { licenseDefault: "CC BY-SA" }
5079
+ },
5080
+ "mip-erc1155": {
5081
+ id: "mip-erc1155",
5082
+ displayName: "NFT Editions",
5083
+ description: "Per-creator ERC-1155 collection; creator mints editions.",
5084
+ standard: "ERC1155",
5085
+ provenance: "MEDIALANE",
5086
+ onchain: {
5087
+ factoryAddress: ERC1155_FACTORY_CONTRACT_MAINNET,
5088
+ classHash: ERC1155_COLLECTION_CLASS_HASH_MAINNET,
5089
+ startBlock: MARKETPLACE_1155_START_BLOCK_MAINNET
5090
+ },
5091
+ uiVariant: "edition",
5092
+ capabilities: ["list", "buy", "make_offer", "cancel", "transfer", "mint", "remix", "license"],
5093
+ metadataSchema: { licenseDefault: "CC BY-SA" }
5094
+ },
5095
+ "pop-protocol": {
5096
+ id: "pop-protocol",
5097
+ displayName: "POP Protocol",
5098
+ description: "Soulbound proof-of-presence collectibles per event.",
5099
+ standard: "ERC721",
5100
+ provenance: "MEDIALANE",
5101
+ onchain: {
5102
+ factoryAddress: POP_FACTORY_CONTRACT_MAINNET,
5103
+ classHash: POP_COLLECTION_CLASS_HASH_MAINNET
5104
+ },
5105
+ uiVariant: "pop",
5106
+ capabilities: ["claim", "transfer"],
5107
+ metadataSchema: { licenseDefault: "CC BY-SA" }
5108
+ },
5109
+ "drop-collection": {
5110
+ id: "drop-collection",
5111
+ displayName: "Collection Drop",
5112
+ description: "Sequential mint with claim windows + allowlist.",
5113
+ standard: "ERC721",
5114
+ provenance: "MEDIALANE",
5115
+ onchain: {
5116
+ factoryAddress: DROP_FACTORY_CONTRACT_MAINNET,
5117
+ classHash: DROP_COLLECTION_CLASS_HASH_MAINNET
5118
+ },
5119
+ uiVariant: "drop",
5120
+ capabilities: ["claim", "list", "buy", "make_offer", "cancel", "transfer"],
5121
+ metadataSchema: { licenseDefault: "CC BY-SA" }
5122
+ },
5123
+ "medialane-marketplace-erc721": {
5124
+ id: "medialane-marketplace-erc721",
5125
+ displayName: "Medialane Marketplace (ERC-721)",
5126
+ description: "ERC-721 order matching venue.",
5127
+ standard: "ERC721",
5128
+ provenance: "MEDIALANE",
5129
+ onchain: {
5130
+ factoryAddress: MARKETPLACE_721_CONTRACT_MAINNET,
5131
+ classHash: MARKETPLACE_721_CLASS_HASH_MAINNET,
5132
+ startBlock: MARKETPLACE_721_START_BLOCK_MAINNET
5133
+ },
5134
+ uiVariant: "standard",
5135
+ capabilities: ["list", "buy", "make_offer", "cancel"]
5136
+ },
5137
+ "medialane-marketplace-erc1155": {
5138
+ id: "medialane-marketplace-erc1155",
5139
+ displayName: "Medialane Marketplace (ERC-1155)",
5140
+ description: "ERC-1155 order matching venue.",
5141
+ standard: "ERC1155",
5142
+ provenance: "MEDIALANE",
5143
+ onchain: {
5144
+ factoryAddress: MARKETPLACE_1155_CONTRACT_MAINNET,
5145
+ classHash: MARKETPLACE_1155_CLASS_HASH_MAINNET,
5146
+ startBlock: MARKETPLACE_1155_START_BLOCK_MAINNET
5147
+ },
5148
+ uiVariant: "edition",
5149
+ capabilities: ["list", "buy", "make_offer", "cancel"]
5150
+ }
5151
+ };
5152
+ function getService(id) {
5153
+ return id ? SERVICES[id] : void 0;
5154
+ }
5155
+ function listServices() {
5156
+ return Object.values(SERVICES);
5157
+ }
5158
+ function getServicesByCapability(cap) {
5159
+ return Object.values(SERVICES).filter((s) => s.capabilities.includes(cap));
5160
+ }
5161
+
5162
+ export { ApiClient, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, CollectionRegistryABI, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, NFTCOMMENTS_CONTRACT_MAINNET, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, PopService, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
5055
5163
  //# sourceMappingURL=index.js.map
5056
5164
  //# sourceMappingURL=index.js.map