@medialane/sdk 0.133.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.
- package/dist/{errors-DEz42hh5.d.cts → errors-BQGalSIU.d.cts} +205 -6
- package/dist/{errors-DxBa5Wne.d.ts → errors-BsNfDL85.d.ts} +205 -6
- package/dist/index.cjs +213 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +147 -3
- package/dist/index.d.ts +147 -3
- package/dist/index.js +210 -3
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +130 -2
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +130 -2
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -801,7 +802,6 @@ interface ApiPortalKey {
|
|
|
801
802
|
id: string;
|
|
802
803
|
prefix: string;
|
|
803
804
|
label: string | null;
|
|
804
|
-
appSource: string | null;
|
|
805
805
|
status: ApiKeyStatus;
|
|
806
806
|
lastUsedAt: string | null;
|
|
807
807
|
createdAt: string;
|
|
@@ -941,7 +941,6 @@ interface ApiCreatorListResult {
|
|
|
941
941
|
page: number;
|
|
942
942
|
limit: number;
|
|
943
943
|
}
|
|
944
|
-
type ApiAppSource = "MEDIALANE_STARKNET" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK" | "MEDIALANE_DAPP";
|
|
945
944
|
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN";
|
|
946
945
|
interface ApiUserWallet {
|
|
947
946
|
walletAddress: string;
|
|
@@ -1022,8 +1021,6 @@ interface ApiRewardsLevel {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
interface ApiUserRewards {
|
|
1024
1023
|
address: string;
|
|
1025
|
-
accountId: string | null;
|
|
1026
|
-
publicId: string | null;
|
|
1027
1024
|
totalXp: number;
|
|
1028
1025
|
currentLevel: number;
|
|
1029
1026
|
currentLevelName: string;
|
|
@@ -1074,6 +1071,163 @@ interface ApiPointEvent {
|
|
|
1074
1071
|
txHash: string | null;
|
|
1075
1072
|
createdAt: string;
|
|
1076
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
|
+
}
|
|
1077
1231
|
|
|
1078
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";
|
|
1079
1233
|
|
|
@@ -1101,6 +1255,11 @@ declare class ApiClient {
|
|
|
1101
1255
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1102
1256
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
1103
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[]>>;
|
|
1104
1263
|
getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
|
|
1105
1264
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1106
1265
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1148,6 +1307,14 @@ declare class ApiClient {
|
|
|
1148
1307
|
getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1149
1308
|
getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
|
|
1150
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
|
+
}>;
|
|
1151
1318
|
resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
|
|
1152
1319
|
uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1153
1320
|
getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
|
|
@@ -1247,7 +1414,6 @@ declare class ApiClient {
|
|
|
1247
1414
|
walletAddress: string;
|
|
1248
1415
|
chain: string;
|
|
1249
1416
|
provider: string;
|
|
1250
|
-
appSource: ApiAppSource;
|
|
1251
1417
|
createdAt: string;
|
|
1252
1418
|
}>;
|
|
1253
1419
|
upsertMyWallet(siwsToken: string, options?: {
|
|
@@ -1317,6 +1483,39 @@ declare class ApiClient {
|
|
|
1317
1483
|
sort?: CollectionSort;
|
|
1318
1484
|
}): Promise<ApiResponse<ApiCollection[]>>;
|
|
1319
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[]>>;
|
|
1320
1519
|
getRewards(address: string): Promise<ApiUserRewards>;
|
|
1321
1520
|
getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
|
|
1322
1521
|
getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
|
|
@@ -1490,4 +1689,4 @@ declare class UserFacingError extends Error {
|
|
|
1490
1689
|
constructor(message: string);
|
|
1491
1690
|
}
|
|
1492
1691
|
|
|
1493
|
-
export { type
|
|
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;
|
|
@@ -801,7 +802,6 @@ interface ApiPortalKey {
|
|
|
801
802
|
id: string;
|
|
802
803
|
prefix: string;
|
|
803
804
|
label: string | null;
|
|
804
|
-
appSource: string | null;
|
|
805
805
|
status: ApiKeyStatus;
|
|
806
806
|
lastUsedAt: string | null;
|
|
807
807
|
createdAt: string;
|
|
@@ -941,7 +941,6 @@ interface ApiCreatorListResult {
|
|
|
941
941
|
page: number;
|
|
942
942
|
limit: number;
|
|
943
943
|
}
|
|
944
|
-
type ApiAppSource = "MEDIALANE_STARKNET" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK" | "MEDIALANE_DAPP";
|
|
945
944
|
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN";
|
|
946
945
|
interface ApiUserWallet {
|
|
947
946
|
walletAddress: string;
|
|
@@ -1022,8 +1021,6 @@ interface ApiRewardsLevel {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
interface ApiUserRewards {
|
|
1024
1023
|
address: string;
|
|
1025
|
-
accountId: string | null;
|
|
1026
|
-
publicId: string | null;
|
|
1027
1024
|
totalXp: number;
|
|
1028
1025
|
currentLevel: number;
|
|
1029
1026
|
currentLevelName: string;
|
|
@@ -1074,6 +1071,163 @@ interface ApiPointEvent {
|
|
|
1074
1071
|
txHash: string | null;
|
|
1075
1072
|
createdAt: string;
|
|
1076
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
|
+
}
|
|
1077
1231
|
|
|
1078
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";
|
|
1079
1233
|
|
|
@@ -1101,6 +1255,11 @@ declare class ApiClient {
|
|
|
1101
1255
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1102
1256
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
1103
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[]>>;
|
|
1104
1263
|
getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
|
|
1105
1264
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1106
1265
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1148,6 +1307,14 @@ declare class ApiClient {
|
|
|
1148
1307
|
getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1149
1308
|
getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
|
|
1150
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
|
+
}>;
|
|
1151
1318
|
resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
|
|
1152
1319
|
uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1153
1320
|
getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
|
|
@@ -1247,7 +1414,6 @@ declare class ApiClient {
|
|
|
1247
1414
|
walletAddress: string;
|
|
1248
1415
|
chain: string;
|
|
1249
1416
|
provider: string;
|
|
1250
|
-
appSource: ApiAppSource;
|
|
1251
1417
|
createdAt: string;
|
|
1252
1418
|
}>;
|
|
1253
1419
|
upsertMyWallet(siwsToken: string, options?: {
|
|
@@ -1317,6 +1483,39 @@ declare class ApiClient {
|
|
|
1317
1483
|
sort?: CollectionSort;
|
|
1318
1484
|
}): Promise<ApiResponse<ApiCollection[]>>;
|
|
1319
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[]>>;
|
|
1320
1519
|
getRewards(address: string): Promise<ApiUserRewards>;
|
|
1321
1520
|
getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
|
|
1322
1521
|
getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
|
|
@@ -1490,4 +1689,4 @@ declare class UserFacingError extends Error {
|
|
|
1490
1689
|
constructor(message: string);
|
|
1491
1690
|
}
|
|
1492
1691
|
|
|
1493
|
-
export { type
|
|
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 };
|