@medialane/sdk 0.134.0 → 0.135.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.
@@ -387,6 +387,7 @@ interface ApiCoinsQuery {
387
387
  page?: number;
388
388
  limit?: number;
389
389
  service?: string;
390
+ sort?: string;
390
391
  }
391
392
  interface ApiActivityPrice {
392
393
  raw: string | null;
@@ -1070,6 +1071,163 @@ interface ApiPointEvent {
1070
1071
  txHash: string | null;
1071
1072
  createdAt: string;
1072
1073
  }
1074
+ interface ApiPlatformStats {
1075
+ collections: number;
1076
+ tokens: number;
1077
+ sales: number;
1078
+ }
1079
+ interface ApiDropInfo {
1080
+ contractAddress: string;
1081
+ name: string | null;
1082
+ symbol: string | null;
1083
+ description: string | null;
1084
+ image: string | null;
1085
+ owner: string | null;
1086
+ totalMinted: number;
1087
+ }
1088
+ interface ApiDropConditions {
1089
+ maxSupply: string;
1090
+ price: string;
1091
+ paymentToken: string;
1092
+ startTime: number;
1093
+ endTime: number;
1094
+ maxPerWallet: string;
1095
+ }
1096
+ interface ApiDropState {
1097
+ conditions: ApiDropConditions;
1098
+ totalMinted: number;
1099
+ maxSupply: number;
1100
+ allowlistEnabled: boolean;
1101
+ paused: boolean;
1102
+ }
1103
+ /** An IP Ticket or IP Club membership tier, as read from its contract. Amounts are decimal strings. */
1104
+ interface ApiTierOnchain {
1105
+ maxSupply: string;
1106
+ minted: string;
1107
+ startTime: number | null;
1108
+ endTime: number | null;
1109
+ royaltyBps: number;
1110
+ }
1111
+ interface ApiIpNftTokenData {
1112
+ owner: string;
1113
+ metadataUri: string;
1114
+ originalCreator: string;
1115
+ registeredAt: number;
1116
+ }
1117
+ interface ApiTokensQuery {
1118
+ page?: number;
1119
+ limit?: number;
1120
+ sort?: string;
1121
+ ipType?: string;
1122
+ derivatives?: "allowed";
1123
+ }
1124
+ interface ApiUsernameClaim {
1125
+ id: string;
1126
+ username: string;
1127
+ walletAddress: string;
1128
+ status: "PENDING" | "APPROVED" | "REJECTED";
1129
+ adminNotes: string | null;
1130
+ reviewedAt: string | null;
1131
+ createdAt: string;
1132
+ }
1133
+ type ApiReportTargetType = "COLLECTION" | "TOKEN" | "CREATOR" | "COMMENT";
1134
+ interface ApiSubmitReport {
1135
+ targetType: ApiReportTargetType;
1136
+ targetKey: string;
1137
+ targetContract?: string;
1138
+ targetTokenId?: string;
1139
+ targetAddress?: string;
1140
+ targetId?: string;
1141
+ categories: string[];
1142
+ description?: string;
1143
+ }
1144
+ interface ApiSponsorshipOffer {
1145
+ id: string;
1146
+ chain: string;
1147
+ contractAddress: string;
1148
+ offerId: string;
1149
+ author: string;
1150
+ nftContract: string;
1151
+ tokenId: string;
1152
+ minAmount: string;
1153
+ duration: number;
1154
+ paymentToken: string;
1155
+ licenseTermsUri: string;
1156
+ transferable: boolean;
1157
+ royaltyBps: number;
1158
+ specificSponsor: string | null;
1159
+ open: boolean;
1160
+ createdAtChain: string;
1161
+ updatedAt: string;
1162
+ }
1163
+ interface ApiSponsorshipBid {
1164
+ id: string;
1165
+ chain: string;
1166
+ contractAddress: string;
1167
+ offerId: string;
1168
+ sponsor: string;
1169
+ amount: string;
1170
+ placedAtChain: string;
1171
+ updatedAt: string;
1172
+ }
1173
+ interface ApiSponsorshipProposal {
1174
+ id: string;
1175
+ chain: string;
1176
+ contractAddress: string;
1177
+ proposalId: string;
1178
+ proposer: string;
1179
+ nftContract: string;
1180
+ tokenId: string;
1181
+ amount: string;
1182
+ duration: number;
1183
+ validUntil: string | null;
1184
+ paymentToken: string;
1185
+ licenseTermsUri: string;
1186
+ transferable: boolean;
1187
+ royaltyBps: number;
1188
+ open: boolean;
1189
+ accepted: boolean | null;
1190
+ createdAtChain: string;
1191
+ closedAtChain: string | null;
1192
+ updatedAt: string;
1193
+ }
1194
+ interface ApiSponsorshipLicense {
1195
+ id: string;
1196
+ chain: string;
1197
+ contractAddress: string;
1198
+ tokenId: string;
1199
+ author: string;
1200
+ recipient: string;
1201
+ assetContract: string;
1202
+ assetTokenId: string;
1203
+ expiresAt: string;
1204
+ transferable: boolean;
1205
+ royaltyBps: number;
1206
+ licenseTermsUri: string;
1207
+ offerId: string | null;
1208
+ proposalId: string | null;
1209
+ mintedAtChain: string;
1210
+ currentHolder?: string | null;
1211
+ }
1212
+ interface ApiSponsorshipOffersQuery {
1213
+ limit?: number;
1214
+ nftContract?: string;
1215
+ author?: string;
1216
+ owner?: string;
1217
+ open?: boolean;
1218
+ }
1219
+ interface ApiSponsorshipProposalsQuery {
1220
+ limit?: number;
1221
+ nftContract?: string;
1222
+ proposer?: string;
1223
+ owner?: string;
1224
+ open?: boolean;
1225
+ }
1226
+ interface ApiSponsorshipLicensesQuery {
1227
+ limit?: number;
1228
+ holder?: string;
1229
+ author?: string;
1230
+ }
1073
1231
 
1074
1232
  type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
1075
1233
 
@@ -1097,6 +1255,11 @@ declare class ApiClient {
1097
1255
  getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
1098
1256
  getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
1099
1257
  getActiveOrdersForToken(contract: string, tokenId: string): Promise<ApiResponse<ApiOrder[]>>;
1258
+ /** Offers others made on the address's assets. */
1259
+ getReceivedOffers(address: string, opts?: {
1260
+ page?: number;
1261
+ limit?: number;
1262
+ }): Promise<ApiResponse<ApiOrder[]>>;
1100
1263
  getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
1101
1264
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
1102
1265
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -1144,6 +1307,14 @@ declare class ApiClient {
1144
1307
  getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
1145
1308
  getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
1146
1309
  uploadMetadata(metadata: Record<string, unknown>): Promise<ApiResponse<ApiMetadataUpload>>;
1310
+ /** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
1311
+ uploadMetadataDirectory(files: {
1312
+ name: string;
1313
+ content: unknown;
1314
+ }[]): Promise<{
1315
+ cid: string;
1316
+ baseUri: string;
1317
+ }>;
1147
1318
  resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
1148
1319
  uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
1149
1320
  getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
@@ -1312,6 +1483,39 @@ declare class ApiClient {
1312
1483
  sort?: CollectionSort;
1313
1484
  }): Promise<ApiResponse<ApiCollection[]>>;
1314
1485
  getDropMintStatus(collection: string, wallet: string): Promise<DropMintStatus>;
1486
+ getDropInfo(contract: string): Promise<ApiDropInfo | null>;
1487
+ getDropState(contract: string): Promise<ApiDropState>;
1488
+ getTicket(contract: string, tokenId: string): Promise<ApiTierOnchain>;
1489
+ getTicketCount(contract: string): Promise<number>;
1490
+ getClubMembership(contract: string, tokenId: string): Promise<ApiTierOnchain>;
1491
+ isClubMember(contract: string, tokenId: string, wallet: string): Promise<boolean>;
1492
+ getIpNftTokenData(contract: string, tokenId: string): Promise<ApiIpNftTokenData | null>;
1493
+ getPlatformStats(): Promise<ApiPlatformStats>;
1494
+ getTokens(query?: ApiTokensQuery): Promise<ApiResponse<ApiToken[]>>;
1495
+ isCreatorHidden(wallet: string): Promise<boolean>;
1496
+ getMyUsernameClaim(siwsToken: string): Promise<{
1497
+ username: string | null;
1498
+ claim: ApiUsernameClaim | null;
1499
+ }>;
1500
+ checkUsernameAvailability(username: string): Promise<{
1501
+ available: boolean;
1502
+ reason?: string;
1503
+ }>;
1504
+ submitUsernameClaim(username: string, siwsToken: string, notifyEmail?: string): Promise<ApiUsernameClaim>;
1505
+ submitReport(report: ApiSubmitReport, siwsToken: string): Promise<void>;
1506
+ generateWallet(newWalletSiwsToken: string, siwsToken: string): Promise<{
1507
+ walletAddress: string;
1508
+ }>;
1509
+ syncCoin(coinAddress: string, owner?: string): Promise<{
1510
+ data: ApiCoin;
1511
+ }>;
1512
+ registerCollection(contractAddress: string): Promise<{
1513
+ data: ApiCollection;
1514
+ }>;
1515
+ getSponsorshipOffers(query?: ApiSponsorshipOffersQuery): Promise<ApiResponse<ApiSponsorshipOffer[]>>;
1516
+ getSponsorshipBids(offerId: string): Promise<ApiSponsorshipBid[]>;
1517
+ getSponsorshipProposals(query?: ApiSponsorshipProposalsQuery): Promise<ApiResponse<ApiSponsorshipProposal[]>>;
1518
+ getSponsorshipLicenses(query?: ApiSponsorshipLicensesQuery): Promise<ApiResponse<ApiSponsorshipLicense[]>>;
1315
1519
  getRewards(address: string): Promise<ApiUserRewards>;
1316
1520
  getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
1317
1521
  getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
@@ -1485,4 +1689,4 @@ declare class UserFacingError extends Error {
1485
1689
  constructor(message: string);
1486
1690
  }
1487
1691
 
1488
- export { type ApiPortalSpend as $, type AcceptSponsorshipBidIntentParams as A, type ApiEmissionCall as B, type ApiEmissionResult as C, type ApiFundingInstructions as D, type ApiFundingIntent as E, type ApiFundingMethod as F, type ApiFundingStatus as G, type ApiFundingSubmit as H, type ApiIntent as I, type ApiIntentCreated as J, type ApiKeyStatus as K, type ApiMeta as L, type ApiMetadataSignedUrl as M, type ApiMetadataUpload as N, type ApiOrder as O, type ApiOrderConsideration as P, type ApiOrderOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiOrderPrice as T, type ApiOrderTokenMeta as U, type ApiOrderTxHash as V, type ApiOrdersQuery as W, type ApiPointEvent as X, type ApiPortalKey as Y, type ApiPortalKeyCreated as Z, type ApiPortalMe as _, type ServiceCapability as a, type IpNftMetadata as a$, type ApiPublicRemix as a0, type ApiRemixOffer as a1, type ApiRemixOfferPrice as a2, type ApiRemixOffersQuery as a3, type ApiResponse as a4, type ApiRewardsBadge as a5, type ApiRewardsBatchEntry as a6, type ApiRewardsConfig as a7, type ApiRewardsLeaderboardEntry as a8, type ApiRewardsLevel as a9, type CreateCoinIntentParams as aA, type CreateCollectionIntentParams as aB, type CreateCounterOfferIntentParams as aC, type CreateDropParams as aD, type CreateListingIntentParams as aE, type CreateMembershipParams as aF, type CreateMintIntentParams as aG, type CreatePopCollectionParams as aH, type CreateRemixOfferParams as aI, type CreateSponsorshipOfferIntentParams as aJ, type CreateSponsorshipOfferParams as aK, type CreateSponsorshipProposalIntentParams as aL, type CreateTicketParams as aM, type CreateTierIntentParams as aN, type CreateWebhookParams as aO, type DropMintStatus as aP, type EmissionParams as aQ, type EnforcementDeclaration as aR, type FactoryFamilyServiceId as aS, type FeeConfig as aT, FeeConfigSchema as aU, type FulfillOrderIntentParams as aV, type IPType as aW, type IntentCall as aX, type IntentStatus as aY, type IntentType as aZ, type IpAttribute as a_, type ApiSearchCollectionResult as aa, type ApiSearchCreatorResult as ab, type ApiSearchResult as ac, type ApiSearchTokenResult as ad, type ApiSpendByAction as ae, type ApiToken as af, type ApiTokenBalance as ag, type ApiTokenMetadata as ah, type ApiTxSyncResult as ai, type ApiUserRewards as aj, type ApiUserWallet as ak, type ApiWalletActivity as al, type ApiWebhookCreated as am, type ApiWebhookEndpoint as an, type AutoRemixOfferParams as ao, type CancelOrderIntentParams as ap, type ChainFilter as aq, type CheckoutIntentItem as ar, type ClaimConditions as as, type CollectionServiceId as at, type CollectionSort as au, type CollectionTokensSort as av, type ConfirmRemixOfferParams as aw, type ConfirmSelfRemixParams as ax, type ConsiderationItem as ay, type CreateCheckoutIntentParams as az, type AcceptSponsorshipProposalIntentParams as b, type LaunchCoinIntentParams as b0, type MakeOfferIntentParams as b1, MedialaneApiError as b2, type MedialaneConfig as b3, type MedialaneErrorCode as b4, type MintMembershipsParams as b5, type MintTicketsParams as b6, OPEN_LICENSES as b7, type OfferItem as b8, type OpenLicense as b9, resolveConfig as bA, resolveFeeConfig as bB, type SealedOwner as bC, type ReceiptProviderLike as bD, type WalletExecutor as bE, type ExecutedTransaction as bF, type PasskeyOwner as bG, type CreatedOwner as bH, type OwnerSigner as bI, type PasskeyConfig as bJ, createPasskeyOwner as bK, type Order as ba, type OrderDetails as bb, type OrderParameters as bc, type OrderStatus as bd, PasskeyCancelledError as be, type PlaceSponsorshipBidIntentParams as bf, type PopBatchEligibilityItem as bg, type PopClaimStatus as bh, type PopEventType as bi, type ProposeSponsorshipParams as bj, type RejectSponsorshipProposalIntentParams as bk, type RemixOfferStatus as bl, type ResolvedConfig as bm, type RetractSponsorshipBidIntentParams as bn, type RetryOptions as bo, type ServiceEventDeclaration as bp, type SetSponsorshipOfferOpenIntentParams as bq, type SortOrder as br, type TenantPlan as bs, type TierServiceId as bt, type TxResult as bu, type UpdateCollectionProfileInput as bv, UserFacingError as bw, type WebhookEventType as bx, type WebhookStatus as by, type WithdrawSponsorshipProposalIntentParams as bz, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsQuery as u, type ApiComment as v, type ApiCounterOffersQuery as w, type ApiCreatorListResult as x, type ApiCreatorProfile as y, type ApiCreditPayment as z };
1692
+ export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiDropConditions as B, type ApiDropInfo as C, type ApiDropState as D, type ApiEmissionCall as E, type ApiEmissionResult as F, type ApiFundingInstructions as G, type ApiFundingIntent as H, type ApiFundingMethod as I, type ApiFundingStatus as J, type ApiFundingSubmit as K, type ApiIntent as L, type ApiIntentCreated as M, type ApiIpNftTokenData as N, type ApiKeyStatus as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type CreateSponsorshipOfferParams as a$, type ApiPointEvent as a0, type ApiPortalKey as a1, type ApiPortalKeyCreated as a2, type ApiPortalMe as a3, type ApiPortalSpend as a4, type ApiPublicRemix as a5, type ApiRemixOffer as a6, type ApiRemixOfferPrice as a7, type ApiRemixOffersQuery as a8, type ApiReportTargetType as a9, type ApiUserWallet as aA, type ApiUsernameClaim as aB, type ApiWalletActivity as aC, type ApiWebhookCreated as aD, type ApiWebhookEndpoint as aE, type AutoRemixOfferParams as aF, type CancelOrderIntentParams as aG, type ChainFilter as aH, type CheckoutIntentItem as aI, type ClaimConditions as aJ, type CollectionServiceId as aK, type CollectionSort as aL, type CollectionTokensSort as aM, type ConfirmRemixOfferParams as aN, type ConfirmSelfRemixParams as aO, type ConsiderationItem as aP, type CreateCheckoutIntentParams as aQ, type CreateCoinIntentParams as aR, type CreateCollectionIntentParams as aS, type CreateCounterOfferIntentParams as aT, type CreateDropParams as aU, type CreateListingIntentParams as aV, type CreateMembershipParams as aW, type CreateMintIntentParams as aX, type CreatePopCollectionParams as aY, type CreateRemixOfferParams as aZ, type CreateSponsorshipOfferIntentParams as a_, type ApiResponse as aa, type ApiRewardsBadge as ab, type ApiRewardsBatchEntry as ac, type ApiRewardsConfig as ad, type ApiRewardsLeaderboardEntry as ae, type ApiRewardsLevel as af, type ApiSearchCollectionResult as ag, type ApiSearchCreatorResult as ah, type ApiSearchResult as ai, type ApiSearchTokenResult as aj, type ApiSpendByAction as ak, type ApiSponsorshipBid as al, type ApiSponsorshipLicense as am, type ApiSponsorshipLicensesQuery as an, type ApiSponsorshipOffer as ao, type ApiSponsorshipOffersQuery as ap, type ApiSponsorshipProposal as aq, type ApiSponsorshipProposalsQuery as ar, type ApiSubmitReport as as, type ApiTierOnchain as at, type ApiToken as au, type ApiTokenBalance as av, type ApiTokenMetadata as aw, type ApiTokensQuery as ax, type ApiTxSyncResult as ay, type ApiUserRewards as az, type AcceptSponsorshipProposalIntentParams as b, createPasskeyOwner as b$, type CreateSponsorshipProposalIntentParams as b0, type CreateTicketParams as b1, type CreateTierIntentParams as b2, type CreateWebhookParams as b3, type DropMintStatus as b4, type EmissionParams as b5, type EnforcementDeclaration as b6, type FactoryFamilyServiceId as b7, type FeeConfig as b8, FeeConfigSchema as b9, type ProposeSponsorshipParams as bA, type RejectSponsorshipProposalIntentParams as bB, type RemixOfferStatus as bC, type ResolvedConfig as bD, type RetractSponsorshipBidIntentParams as bE, type RetryOptions as bF, type ServiceEventDeclaration as bG, type SetSponsorshipOfferOpenIntentParams as bH, type SortOrder as bI, type TenantPlan as bJ, type TierServiceId as bK, type TxResult as bL, type UpdateCollectionProfileInput as bM, UserFacingError as bN, type WebhookEventType as bO, type WebhookStatus as bP, type WithdrawSponsorshipProposalIntentParams as bQ, resolveConfig as bR, resolveFeeConfig as bS, type SealedOwner as bT, type ReceiptProviderLike as bU, type WalletExecutor as bV, type ExecutedTransaction as bW, type PasskeyOwner as bX, type CreatedOwner as bY, type OwnerSigner as bZ, type PasskeyConfig as b_, type FulfillOrderIntentParams as ba, type IPType as bb, type IntentCall as bc, type IntentStatus as bd, type IntentType as be, type IpAttribute as bf, type IpNftMetadata as bg, type LaunchCoinIntentParams as bh, type MakeOfferIntentParams as bi, MedialaneApiError as bj, type MedialaneConfig as bk, type MedialaneErrorCode as bl, type MintMembershipsParams as bm, type MintTicketsParams as bn, OPEN_LICENSES as bo, type OfferItem as bp, type OpenLicense as bq, type Order as br, type OrderDetails as bs, type OrderParameters as bt, type OrderStatus as bu, PasskeyCancelledError as bv, type PlaceSponsorshipBidIntentParams as bw, type PopBatchEligibilityItem as bx, type PopClaimStatus as by, type PopEventType as bz, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsQuery as u, type ApiComment as v, type ApiCounterOffersQuery as w, type ApiCreatorListResult as x, type ApiCreatorProfile as y, type ApiCreditPayment as z };
@@ -387,6 +387,7 @@ interface ApiCoinsQuery {
387
387
  page?: number;
388
388
  limit?: number;
389
389
  service?: string;
390
+ sort?: string;
390
391
  }
391
392
  interface ApiActivityPrice {
392
393
  raw: string | null;
@@ -1070,6 +1071,163 @@ interface ApiPointEvent {
1070
1071
  txHash: string | null;
1071
1072
  createdAt: string;
1072
1073
  }
1074
+ interface ApiPlatformStats {
1075
+ collections: number;
1076
+ tokens: number;
1077
+ sales: number;
1078
+ }
1079
+ interface ApiDropInfo {
1080
+ contractAddress: string;
1081
+ name: string | null;
1082
+ symbol: string | null;
1083
+ description: string | null;
1084
+ image: string | null;
1085
+ owner: string | null;
1086
+ totalMinted: number;
1087
+ }
1088
+ interface ApiDropConditions {
1089
+ maxSupply: string;
1090
+ price: string;
1091
+ paymentToken: string;
1092
+ startTime: number;
1093
+ endTime: number;
1094
+ maxPerWallet: string;
1095
+ }
1096
+ interface ApiDropState {
1097
+ conditions: ApiDropConditions;
1098
+ totalMinted: number;
1099
+ maxSupply: number;
1100
+ allowlistEnabled: boolean;
1101
+ paused: boolean;
1102
+ }
1103
+ /** An IP Ticket or IP Club membership tier, as read from its contract. Amounts are decimal strings. */
1104
+ interface ApiTierOnchain {
1105
+ maxSupply: string;
1106
+ minted: string;
1107
+ startTime: number | null;
1108
+ endTime: number | null;
1109
+ royaltyBps: number;
1110
+ }
1111
+ interface ApiIpNftTokenData {
1112
+ owner: string;
1113
+ metadataUri: string;
1114
+ originalCreator: string;
1115
+ registeredAt: number;
1116
+ }
1117
+ interface ApiTokensQuery {
1118
+ page?: number;
1119
+ limit?: number;
1120
+ sort?: string;
1121
+ ipType?: string;
1122
+ derivatives?: "allowed";
1123
+ }
1124
+ interface ApiUsernameClaim {
1125
+ id: string;
1126
+ username: string;
1127
+ walletAddress: string;
1128
+ status: "PENDING" | "APPROVED" | "REJECTED";
1129
+ adminNotes: string | null;
1130
+ reviewedAt: string | null;
1131
+ createdAt: string;
1132
+ }
1133
+ type ApiReportTargetType = "COLLECTION" | "TOKEN" | "CREATOR" | "COMMENT";
1134
+ interface ApiSubmitReport {
1135
+ targetType: ApiReportTargetType;
1136
+ targetKey: string;
1137
+ targetContract?: string;
1138
+ targetTokenId?: string;
1139
+ targetAddress?: string;
1140
+ targetId?: string;
1141
+ categories: string[];
1142
+ description?: string;
1143
+ }
1144
+ interface ApiSponsorshipOffer {
1145
+ id: string;
1146
+ chain: string;
1147
+ contractAddress: string;
1148
+ offerId: string;
1149
+ author: string;
1150
+ nftContract: string;
1151
+ tokenId: string;
1152
+ minAmount: string;
1153
+ duration: number;
1154
+ paymentToken: string;
1155
+ licenseTermsUri: string;
1156
+ transferable: boolean;
1157
+ royaltyBps: number;
1158
+ specificSponsor: string | null;
1159
+ open: boolean;
1160
+ createdAtChain: string;
1161
+ updatedAt: string;
1162
+ }
1163
+ interface ApiSponsorshipBid {
1164
+ id: string;
1165
+ chain: string;
1166
+ contractAddress: string;
1167
+ offerId: string;
1168
+ sponsor: string;
1169
+ amount: string;
1170
+ placedAtChain: string;
1171
+ updatedAt: string;
1172
+ }
1173
+ interface ApiSponsorshipProposal {
1174
+ id: string;
1175
+ chain: string;
1176
+ contractAddress: string;
1177
+ proposalId: string;
1178
+ proposer: string;
1179
+ nftContract: string;
1180
+ tokenId: string;
1181
+ amount: string;
1182
+ duration: number;
1183
+ validUntil: string | null;
1184
+ paymentToken: string;
1185
+ licenseTermsUri: string;
1186
+ transferable: boolean;
1187
+ royaltyBps: number;
1188
+ open: boolean;
1189
+ accepted: boolean | null;
1190
+ createdAtChain: string;
1191
+ closedAtChain: string | null;
1192
+ updatedAt: string;
1193
+ }
1194
+ interface ApiSponsorshipLicense {
1195
+ id: string;
1196
+ chain: string;
1197
+ contractAddress: string;
1198
+ tokenId: string;
1199
+ author: string;
1200
+ recipient: string;
1201
+ assetContract: string;
1202
+ assetTokenId: string;
1203
+ expiresAt: string;
1204
+ transferable: boolean;
1205
+ royaltyBps: number;
1206
+ licenseTermsUri: string;
1207
+ offerId: string | null;
1208
+ proposalId: string | null;
1209
+ mintedAtChain: string;
1210
+ currentHolder?: string | null;
1211
+ }
1212
+ interface ApiSponsorshipOffersQuery {
1213
+ limit?: number;
1214
+ nftContract?: string;
1215
+ author?: string;
1216
+ owner?: string;
1217
+ open?: boolean;
1218
+ }
1219
+ interface ApiSponsorshipProposalsQuery {
1220
+ limit?: number;
1221
+ nftContract?: string;
1222
+ proposer?: string;
1223
+ owner?: string;
1224
+ open?: boolean;
1225
+ }
1226
+ interface ApiSponsorshipLicensesQuery {
1227
+ limit?: number;
1228
+ holder?: string;
1229
+ author?: string;
1230
+ }
1073
1231
 
1074
1232
  type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
1075
1233
 
@@ -1097,6 +1255,11 @@ declare class ApiClient {
1097
1255
  getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
1098
1256
  getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
1099
1257
  getActiveOrdersForToken(contract: string, tokenId: string): Promise<ApiResponse<ApiOrder[]>>;
1258
+ /** Offers others made on the address's assets. */
1259
+ getReceivedOffers(address: string, opts?: {
1260
+ page?: number;
1261
+ limit?: number;
1262
+ }): Promise<ApiResponse<ApiOrder[]>>;
1100
1263
  getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
1101
1264
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
1102
1265
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -1144,6 +1307,14 @@ declare class ApiClient {
1144
1307
  getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
1145
1308
  getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
1146
1309
  uploadMetadata(metadata: Record<string, unknown>): Promise<ApiResponse<ApiMetadataUpload>>;
1310
+ /** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
1311
+ uploadMetadataDirectory(files: {
1312
+ name: string;
1313
+ content: unknown;
1314
+ }[]): Promise<{
1315
+ cid: string;
1316
+ baseUri: string;
1317
+ }>;
1147
1318
  resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
1148
1319
  uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
1149
1320
  getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
@@ -1312,6 +1483,39 @@ declare class ApiClient {
1312
1483
  sort?: CollectionSort;
1313
1484
  }): Promise<ApiResponse<ApiCollection[]>>;
1314
1485
  getDropMintStatus(collection: string, wallet: string): Promise<DropMintStatus>;
1486
+ getDropInfo(contract: string): Promise<ApiDropInfo | null>;
1487
+ getDropState(contract: string): Promise<ApiDropState>;
1488
+ getTicket(contract: string, tokenId: string): Promise<ApiTierOnchain>;
1489
+ getTicketCount(contract: string): Promise<number>;
1490
+ getClubMembership(contract: string, tokenId: string): Promise<ApiTierOnchain>;
1491
+ isClubMember(contract: string, tokenId: string, wallet: string): Promise<boolean>;
1492
+ getIpNftTokenData(contract: string, tokenId: string): Promise<ApiIpNftTokenData | null>;
1493
+ getPlatformStats(): Promise<ApiPlatformStats>;
1494
+ getTokens(query?: ApiTokensQuery): Promise<ApiResponse<ApiToken[]>>;
1495
+ isCreatorHidden(wallet: string): Promise<boolean>;
1496
+ getMyUsernameClaim(siwsToken: string): Promise<{
1497
+ username: string | null;
1498
+ claim: ApiUsernameClaim | null;
1499
+ }>;
1500
+ checkUsernameAvailability(username: string): Promise<{
1501
+ available: boolean;
1502
+ reason?: string;
1503
+ }>;
1504
+ submitUsernameClaim(username: string, siwsToken: string, notifyEmail?: string): Promise<ApiUsernameClaim>;
1505
+ submitReport(report: ApiSubmitReport, siwsToken: string): Promise<void>;
1506
+ generateWallet(newWalletSiwsToken: string, siwsToken: string): Promise<{
1507
+ walletAddress: string;
1508
+ }>;
1509
+ syncCoin(coinAddress: string, owner?: string): Promise<{
1510
+ data: ApiCoin;
1511
+ }>;
1512
+ registerCollection(contractAddress: string): Promise<{
1513
+ data: ApiCollection;
1514
+ }>;
1515
+ getSponsorshipOffers(query?: ApiSponsorshipOffersQuery): Promise<ApiResponse<ApiSponsorshipOffer[]>>;
1516
+ getSponsorshipBids(offerId: string): Promise<ApiSponsorshipBid[]>;
1517
+ getSponsorshipProposals(query?: ApiSponsorshipProposalsQuery): Promise<ApiResponse<ApiSponsorshipProposal[]>>;
1518
+ getSponsorshipLicenses(query?: ApiSponsorshipLicensesQuery): Promise<ApiResponse<ApiSponsorshipLicense[]>>;
1315
1519
  getRewards(address: string): Promise<ApiUserRewards>;
1316
1520
  getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
1317
1521
  getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
@@ -1485,4 +1689,4 @@ declare class UserFacingError extends Error {
1485
1689
  constructor(message: string);
1486
1690
  }
1487
1691
 
1488
- export { type ApiPortalSpend as $, type AcceptSponsorshipBidIntentParams as A, type ApiEmissionCall as B, type ApiEmissionResult as C, type ApiFundingInstructions as D, type ApiFundingIntent as E, type ApiFundingMethod as F, type ApiFundingStatus as G, type ApiFundingSubmit as H, type ApiIntent as I, type ApiIntentCreated as J, type ApiKeyStatus as K, type ApiMeta as L, type ApiMetadataSignedUrl as M, type ApiMetadataUpload as N, type ApiOrder as O, type ApiOrderConsideration as P, type ApiOrderOffer as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiOrderPrice as T, type ApiOrderTokenMeta as U, type ApiOrderTxHash as V, type ApiOrdersQuery as W, type ApiPointEvent as X, type ApiPortalKey as Y, type ApiPortalKeyCreated as Z, type ApiPortalMe as _, type ServiceCapability as a, type IpNftMetadata as a$, type ApiPublicRemix as a0, type ApiRemixOffer as a1, type ApiRemixOfferPrice as a2, type ApiRemixOffersQuery as a3, type ApiResponse as a4, type ApiRewardsBadge as a5, type ApiRewardsBatchEntry as a6, type ApiRewardsConfig as a7, type ApiRewardsLeaderboardEntry as a8, type ApiRewardsLevel as a9, type CreateCoinIntentParams as aA, type CreateCollectionIntentParams as aB, type CreateCounterOfferIntentParams as aC, type CreateDropParams as aD, type CreateListingIntentParams as aE, type CreateMembershipParams as aF, type CreateMintIntentParams as aG, type CreatePopCollectionParams as aH, type CreateRemixOfferParams as aI, type CreateSponsorshipOfferIntentParams as aJ, type CreateSponsorshipOfferParams as aK, type CreateSponsorshipProposalIntentParams as aL, type CreateTicketParams as aM, type CreateTierIntentParams as aN, type CreateWebhookParams as aO, type DropMintStatus as aP, type EmissionParams as aQ, type EnforcementDeclaration as aR, type FactoryFamilyServiceId as aS, type FeeConfig as aT, FeeConfigSchema as aU, type FulfillOrderIntentParams as aV, type IPType as aW, type IntentCall as aX, type IntentStatus as aY, type IntentType as aZ, type IpAttribute as a_, type ApiSearchCollectionResult as aa, type ApiSearchCreatorResult as ab, type ApiSearchResult as ac, type ApiSearchTokenResult as ad, type ApiSpendByAction as ae, type ApiToken as af, type ApiTokenBalance as ag, type ApiTokenMetadata as ah, type ApiTxSyncResult as ai, type ApiUserRewards as aj, type ApiUserWallet as ak, type ApiWalletActivity as al, type ApiWebhookCreated as am, type ApiWebhookEndpoint as an, type AutoRemixOfferParams as ao, type CancelOrderIntentParams as ap, type ChainFilter as aq, type CheckoutIntentItem as ar, type ClaimConditions as as, type CollectionServiceId as at, type CollectionSort as au, type CollectionTokensSort as av, type ConfirmRemixOfferParams as aw, type ConfirmSelfRemixParams as ax, type ConsiderationItem as ay, type CreateCheckoutIntentParams as az, type AcceptSponsorshipProposalIntentParams as b, type LaunchCoinIntentParams as b0, type MakeOfferIntentParams as b1, MedialaneApiError as b2, type MedialaneConfig as b3, type MedialaneErrorCode as b4, type MintMembershipsParams as b5, type MintTicketsParams as b6, OPEN_LICENSES as b7, type OfferItem as b8, type OpenLicense as b9, resolveConfig as bA, resolveFeeConfig as bB, type SealedOwner as bC, type ReceiptProviderLike as bD, type WalletExecutor as bE, type ExecutedTransaction as bF, type PasskeyOwner as bG, type CreatedOwner as bH, type OwnerSigner as bI, type PasskeyConfig as bJ, createPasskeyOwner as bK, type Order as ba, type OrderDetails as bb, type OrderParameters as bc, type OrderStatus as bd, PasskeyCancelledError as be, type PlaceSponsorshipBidIntentParams as bf, type PopBatchEligibilityItem as bg, type PopClaimStatus as bh, type PopEventType as bi, type ProposeSponsorshipParams as bj, type RejectSponsorshipProposalIntentParams as bk, type RemixOfferStatus as bl, type ResolvedConfig as bm, type RetractSponsorshipBidIntentParams as bn, type RetryOptions as bo, type ServiceEventDeclaration as bp, type SetSponsorshipOfferOpenIntentParams as bq, type SortOrder as br, type TenantPlan as bs, type TierServiceId as bt, type TxResult as bu, type UpdateCollectionProfileInput as bv, UserFacingError as bw, type WebhookEventType as bx, type WebhookStatus as by, type WithdrawSponsorshipProposalIntentParams as bz, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsQuery as u, type ApiComment as v, type ApiCounterOffersQuery as w, type ApiCreatorListResult as x, type ApiCreatorProfile as y, type ApiCreditPayment as z };
1692
+ export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiDropConditions as B, type ApiDropInfo as C, type ApiDropState as D, type ApiEmissionCall as E, type ApiEmissionResult as F, type ApiFundingInstructions as G, type ApiFundingIntent as H, type ApiFundingMethod as I, type ApiFundingStatus as J, type ApiFundingSubmit as K, type ApiIntent as L, type ApiIntentCreated as M, type ApiIpNftTokenData as N, type ApiKeyStatus as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type CreateSponsorshipOfferParams as a$, type ApiPointEvent as a0, type ApiPortalKey as a1, type ApiPortalKeyCreated as a2, type ApiPortalMe as a3, type ApiPortalSpend as a4, type ApiPublicRemix as a5, type ApiRemixOffer as a6, type ApiRemixOfferPrice as a7, type ApiRemixOffersQuery as a8, type ApiReportTargetType as a9, type ApiUserWallet as aA, type ApiUsernameClaim as aB, type ApiWalletActivity as aC, type ApiWebhookCreated as aD, type ApiWebhookEndpoint as aE, type AutoRemixOfferParams as aF, type CancelOrderIntentParams as aG, type ChainFilter as aH, type CheckoutIntentItem as aI, type ClaimConditions as aJ, type CollectionServiceId as aK, type CollectionSort as aL, type CollectionTokensSort as aM, type ConfirmRemixOfferParams as aN, type ConfirmSelfRemixParams as aO, type ConsiderationItem as aP, type CreateCheckoutIntentParams as aQ, type CreateCoinIntentParams as aR, type CreateCollectionIntentParams as aS, type CreateCounterOfferIntentParams as aT, type CreateDropParams as aU, type CreateListingIntentParams as aV, type CreateMembershipParams as aW, type CreateMintIntentParams as aX, type CreatePopCollectionParams as aY, type CreateRemixOfferParams as aZ, type CreateSponsorshipOfferIntentParams as a_, type ApiResponse as aa, type ApiRewardsBadge as ab, type ApiRewardsBatchEntry as ac, type ApiRewardsConfig as ad, type ApiRewardsLeaderboardEntry as ae, type ApiRewardsLevel as af, type ApiSearchCollectionResult as ag, type ApiSearchCreatorResult as ah, type ApiSearchResult as ai, type ApiSearchTokenResult as aj, type ApiSpendByAction as ak, type ApiSponsorshipBid as al, type ApiSponsorshipLicense as am, type ApiSponsorshipLicensesQuery as an, type ApiSponsorshipOffer as ao, type ApiSponsorshipOffersQuery as ap, type ApiSponsorshipProposal as aq, type ApiSponsorshipProposalsQuery as ar, type ApiSubmitReport as as, type ApiTierOnchain as at, type ApiToken as au, type ApiTokenBalance as av, type ApiTokenMetadata as aw, type ApiTokensQuery as ax, type ApiTxSyncResult as ay, type ApiUserRewards as az, type AcceptSponsorshipProposalIntentParams as b, createPasskeyOwner as b$, type CreateSponsorshipProposalIntentParams as b0, type CreateTicketParams as b1, type CreateTierIntentParams as b2, type CreateWebhookParams as b3, type DropMintStatus as b4, type EmissionParams as b5, type EnforcementDeclaration as b6, type FactoryFamilyServiceId as b7, type FeeConfig as b8, FeeConfigSchema as b9, type ProposeSponsorshipParams as bA, type RejectSponsorshipProposalIntentParams as bB, type RemixOfferStatus as bC, type ResolvedConfig as bD, type RetractSponsorshipBidIntentParams as bE, type RetryOptions as bF, type ServiceEventDeclaration as bG, type SetSponsorshipOfferOpenIntentParams as bH, type SortOrder as bI, type TenantPlan as bJ, type TierServiceId as bK, type TxResult as bL, type UpdateCollectionProfileInput as bM, UserFacingError as bN, type WebhookEventType as bO, type WebhookStatus as bP, type WithdrawSponsorshipProposalIntentParams as bQ, resolveConfig as bR, resolveFeeConfig as bS, type SealedOwner as bT, type ReceiptProviderLike as bU, type WalletExecutor as bV, type ExecutedTransaction as bW, type PasskeyOwner as bX, type CreatedOwner as bY, type OwnerSigner as bZ, type PasskeyConfig as b_, type FulfillOrderIntentParams as ba, type IPType as bb, type IntentCall as bc, type IntentStatus as bd, type IntentType as be, type IpAttribute as bf, type IpNftMetadata as bg, type LaunchCoinIntentParams as bh, type MakeOfferIntentParams as bi, MedialaneApiError as bj, type MedialaneConfig as bk, type MedialaneErrorCode as bl, type MintMembershipsParams as bm, type MintTicketsParams as bn, OPEN_LICENSES as bo, type OfferItem as bp, type OpenLicense as bq, type Order as br, type OrderDetails as bs, type OrderParameters as bt, type OrderStatus as bu, PasskeyCancelledError as bv, type PlaceSponsorshipBidIntentParams as bw, type PopBatchEligibilityItem as bx, type PopClaimStatus as by, type PopEventType as bz, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsQuery as u, type ApiComment as v, type ApiCounterOffersQuery as w, type ApiCreatorListResult as x, type ApiCreatorProfile as y, type ApiCreditPayment as z };