@medialane/sdk 0.134.0 → 0.136.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-BpiH1lap.d.cts → errors-CadmV001.d.cts} +241 -3
- package/dist/{errors-BsiYot6M.d.ts → errors-DlrNXuXZ.d.ts} +241 -3
- package/dist/index.cjs +244 -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 +241 -3
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +161 -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 +161 -2
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -387,6 +387,8 @@ interface ApiCoinsQuery {
|
|
|
387
387
|
page?: number;
|
|
388
388
|
limit?: number;
|
|
389
389
|
service?: string;
|
|
390
|
+
sort?: string;
|
|
391
|
+
creator?: string;
|
|
390
392
|
}
|
|
391
393
|
interface ApiActivityPrice {
|
|
392
394
|
raw: string | null;
|
|
@@ -780,6 +782,7 @@ interface ConfirmRemixOfferParams {
|
|
|
780
782
|
}
|
|
781
783
|
interface ApiRemixOffersQuery {
|
|
782
784
|
role: "creator" | "requester";
|
|
785
|
+
status?: string;
|
|
783
786
|
page?: number;
|
|
784
787
|
limit?: number;
|
|
785
788
|
}
|
|
@@ -1070,6 +1073,193 @@ interface ApiPointEvent {
|
|
|
1070
1073
|
txHash: string | null;
|
|
1071
1074
|
createdAt: string;
|
|
1072
1075
|
}
|
|
1076
|
+
interface ApiPlatformStats {
|
|
1077
|
+
collections: number;
|
|
1078
|
+
tokens: number;
|
|
1079
|
+
sales: number;
|
|
1080
|
+
}
|
|
1081
|
+
interface ApiDropInfo {
|
|
1082
|
+
contractAddress: string;
|
|
1083
|
+
name: string | null;
|
|
1084
|
+
symbol: string | null;
|
|
1085
|
+
description: string | null;
|
|
1086
|
+
image: string | null;
|
|
1087
|
+
owner: string | null;
|
|
1088
|
+
totalMinted: number;
|
|
1089
|
+
}
|
|
1090
|
+
interface ApiDropConditions {
|
|
1091
|
+
maxSupply: string;
|
|
1092
|
+
price: string;
|
|
1093
|
+
paymentToken: string;
|
|
1094
|
+
startTime: number;
|
|
1095
|
+
endTime: number;
|
|
1096
|
+
maxPerWallet: string;
|
|
1097
|
+
}
|
|
1098
|
+
interface ApiDropState {
|
|
1099
|
+
conditions: ApiDropConditions;
|
|
1100
|
+
totalMinted: number;
|
|
1101
|
+
maxSupply: number;
|
|
1102
|
+
allowlistEnabled: boolean;
|
|
1103
|
+
paused: boolean;
|
|
1104
|
+
}
|
|
1105
|
+
/** An IP Ticket or IP Club membership tier, as read from its contract. Amounts are decimal strings. */
|
|
1106
|
+
interface ApiTierOnchain {
|
|
1107
|
+
maxSupply: string;
|
|
1108
|
+
minted: string;
|
|
1109
|
+
startTime: number | null;
|
|
1110
|
+
endTime: number | null;
|
|
1111
|
+
royaltyBps: number;
|
|
1112
|
+
}
|
|
1113
|
+
interface ApiIpNftTokenData {
|
|
1114
|
+
owner: string;
|
|
1115
|
+
metadataUri: string;
|
|
1116
|
+
originalCreator: string;
|
|
1117
|
+
registeredAt: number;
|
|
1118
|
+
}
|
|
1119
|
+
interface ApiTokensQuery {
|
|
1120
|
+
page?: number;
|
|
1121
|
+
limit?: number;
|
|
1122
|
+
sort?: string;
|
|
1123
|
+
ipType?: string;
|
|
1124
|
+
derivatives?: "allowed";
|
|
1125
|
+
}
|
|
1126
|
+
interface ApiUsernameClaim {
|
|
1127
|
+
id: string;
|
|
1128
|
+
username: string;
|
|
1129
|
+
walletAddress: string;
|
|
1130
|
+
status: "PENDING" | "APPROVED" | "REJECTED";
|
|
1131
|
+
adminNotes: string | null;
|
|
1132
|
+
reviewedAt: string | null;
|
|
1133
|
+
createdAt: string;
|
|
1134
|
+
}
|
|
1135
|
+
type ApiReportTargetType = "COLLECTION" | "TOKEN" | "CREATOR" | "COMMENT";
|
|
1136
|
+
/** `targetKey` is built from the target fields. */
|
|
1137
|
+
interface ApiSubmitReport {
|
|
1138
|
+
targetType: ApiReportTargetType;
|
|
1139
|
+
targetContract?: string;
|
|
1140
|
+
targetTokenId?: string;
|
|
1141
|
+
targetAddress?: string;
|
|
1142
|
+
targetId?: string;
|
|
1143
|
+
categories: string[];
|
|
1144
|
+
description?: string;
|
|
1145
|
+
}
|
|
1146
|
+
interface ApiSponsorshipOffer {
|
|
1147
|
+
id: string;
|
|
1148
|
+
chain: string;
|
|
1149
|
+
contractAddress: string;
|
|
1150
|
+
offerId: string;
|
|
1151
|
+
author: string;
|
|
1152
|
+
nftContract: string;
|
|
1153
|
+
tokenId: string;
|
|
1154
|
+
minAmount: string;
|
|
1155
|
+
duration: number;
|
|
1156
|
+
paymentToken: string;
|
|
1157
|
+
licenseTermsUri: string;
|
|
1158
|
+
transferable: boolean;
|
|
1159
|
+
royaltyBps: number;
|
|
1160
|
+
specificSponsor: string | null;
|
|
1161
|
+
open: boolean;
|
|
1162
|
+
createdAtChain: string;
|
|
1163
|
+
updatedAt: string;
|
|
1164
|
+
}
|
|
1165
|
+
interface ApiSponsorshipBid {
|
|
1166
|
+
id: string;
|
|
1167
|
+
chain: string;
|
|
1168
|
+
contractAddress: string;
|
|
1169
|
+
offerId: string;
|
|
1170
|
+
sponsor: string;
|
|
1171
|
+
amount: string;
|
|
1172
|
+
placedAtChain: string;
|
|
1173
|
+
updatedAt: string;
|
|
1174
|
+
}
|
|
1175
|
+
interface ApiSponsorshipProposal {
|
|
1176
|
+
id: string;
|
|
1177
|
+
chain: string;
|
|
1178
|
+
contractAddress: string;
|
|
1179
|
+
proposalId: string;
|
|
1180
|
+
proposer: string;
|
|
1181
|
+
nftContract: string;
|
|
1182
|
+
tokenId: string;
|
|
1183
|
+
amount: string;
|
|
1184
|
+
duration: number;
|
|
1185
|
+
validUntil: string | null;
|
|
1186
|
+
paymentToken: string;
|
|
1187
|
+
licenseTermsUri: string;
|
|
1188
|
+
transferable: boolean;
|
|
1189
|
+
royaltyBps: number;
|
|
1190
|
+
open: boolean;
|
|
1191
|
+
accepted: boolean | null;
|
|
1192
|
+
createdAtChain: string;
|
|
1193
|
+
closedAtChain: string | null;
|
|
1194
|
+
updatedAt: string;
|
|
1195
|
+
}
|
|
1196
|
+
interface ApiSponsorshipLicense {
|
|
1197
|
+
id: string;
|
|
1198
|
+
chain: string;
|
|
1199
|
+
contractAddress: string;
|
|
1200
|
+
tokenId: string;
|
|
1201
|
+
author: string;
|
|
1202
|
+
recipient: string;
|
|
1203
|
+
assetContract: string;
|
|
1204
|
+
assetTokenId: string;
|
|
1205
|
+
expiresAt: string;
|
|
1206
|
+
transferable: boolean;
|
|
1207
|
+
royaltyBps: number;
|
|
1208
|
+
licenseTermsUri: string;
|
|
1209
|
+
offerId: string | null;
|
|
1210
|
+
proposalId: string | null;
|
|
1211
|
+
mintedAtChain: string;
|
|
1212
|
+
currentHolder?: string | null;
|
|
1213
|
+
}
|
|
1214
|
+
interface ApiSponsorshipOffersQuery {
|
|
1215
|
+
limit?: number;
|
|
1216
|
+
nftContract?: string;
|
|
1217
|
+
author?: string;
|
|
1218
|
+
owner?: string;
|
|
1219
|
+
open?: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
interface ApiSponsorshipProposalsQuery {
|
|
1222
|
+
limit?: number;
|
|
1223
|
+
nftContract?: string;
|
|
1224
|
+
proposer?: string;
|
|
1225
|
+
owner?: string;
|
|
1226
|
+
open?: boolean;
|
|
1227
|
+
}
|
|
1228
|
+
interface ApiSponsorshipLicensesQuery {
|
|
1229
|
+
limit?: number;
|
|
1230
|
+
holder?: string;
|
|
1231
|
+
author?: string;
|
|
1232
|
+
}
|
|
1233
|
+
interface ApiCollectionsListQuery {
|
|
1234
|
+
page?: number;
|
|
1235
|
+
limit?: number;
|
|
1236
|
+
owner?: string;
|
|
1237
|
+
service?: string;
|
|
1238
|
+
sort?: CollectionSort;
|
|
1239
|
+
isFeatured?: boolean;
|
|
1240
|
+
hideEmpty?: boolean;
|
|
1241
|
+
chain?: ChainFilter;
|
|
1242
|
+
}
|
|
1243
|
+
interface ApiPricingRule {
|
|
1244
|
+
actionKey: string;
|
|
1245
|
+
chain: string;
|
|
1246
|
+
service: string;
|
|
1247
|
+
credits: number;
|
|
1248
|
+
}
|
|
1249
|
+
interface ApiPricing {
|
|
1250
|
+
creditsPerUsdc: number;
|
|
1251
|
+
mdln?: {
|
|
1252
|
+
contract: string | null;
|
|
1253
|
+
tiers: {
|
|
1254
|
+
minWholeTokens: number;
|
|
1255
|
+
multiplier: number;
|
|
1256
|
+
}[];
|
|
1257
|
+
};
|
|
1258
|
+
pricing: {
|
|
1259
|
+
default: number;
|
|
1260
|
+
rules: ApiPricingRule[];
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1073
1263
|
|
|
1074
1264
|
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
1265
|
|
|
@@ -1097,6 +1287,11 @@ declare class ApiClient {
|
|
|
1097
1287
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1098
1288
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
1099
1289
|
getActiveOrdersForToken(contract: string, tokenId: string): Promise<ApiResponse<ApiOrder[]>>;
|
|
1290
|
+
/** Offers others made on the address's assets. */
|
|
1291
|
+
getReceivedOffers(address: string, opts?: {
|
|
1292
|
+
page?: number;
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
}): Promise<ApiResponse<ApiOrder[]>>;
|
|
1100
1295
|
getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
|
|
1101
1296
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1102
1297
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1144,6 +1339,14 @@ declare class ApiClient {
|
|
|
1144
1339
|
getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1145
1340
|
getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
|
|
1146
1341
|
uploadMetadata(metadata: Record<string, unknown>): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1342
|
+
/** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
|
|
1343
|
+
uploadMetadataDirectory(files: {
|
|
1344
|
+
name: string;
|
|
1345
|
+
content: unknown;
|
|
1346
|
+
}[]): Promise<{
|
|
1347
|
+
cid: string;
|
|
1348
|
+
baseUri: string;
|
|
1349
|
+
}>;
|
|
1147
1350
|
resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
|
|
1148
1351
|
uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1149
1352
|
getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
|
|
@@ -1303,8 +1506,8 @@ declare class ApiClient {
|
|
|
1303
1506
|
claimCoin(coinAddress: string, siwsToken: string): Promise<ApiCoinClaimResult>;
|
|
1304
1507
|
getCoinClaims(status?: string): Promise<ApiResponse<ApiCollectionClaim[]>>;
|
|
1305
1508
|
updateCoinProfile(contract: string, data: {
|
|
1306
|
-
image?: string;
|
|
1307
|
-
description?: string;
|
|
1509
|
+
image?: string | null;
|
|
1510
|
+
description?: string | null;
|
|
1308
1511
|
}, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
|
|
1309
1512
|
getDropCollections(opts?: {
|
|
1310
1513
|
page?: number;
|
|
@@ -1312,6 +1515,41 @@ declare class ApiClient {
|
|
|
1312
1515
|
sort?: CollectionSort;
|
|
1313
1516
|
}): Promise<ApiResponse<ApiCollection[]>>;
|
|
1314
1517
|
getDropMintStatus(collection: string, wallet: string): Promise<DropMintStatus>;
|
|
1518
|
+
getDropInfo(contract: string): Promise<ApiDropInfo | null>;
|
|
1519
|
+
getDropState(contract: string): Promise<ApiDropState>;
|
|
1520
|
+
getTicket(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1521
|
+
getTicketCount(contract: string): Promise<number>;
|
|
1522
|
+
getClubMembership(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1523
|
+
isClubMember(contract: string, tokenId: string, wallet: string): Promise<boolean>;
|
|
1524
|
+
getIpNftTokenData(contract: string, tokenId: string): Promise<ApiIpNftTokenData | null>;
|
|
1525
|
+
getPlatformStats(): Promise<ApiPlatformStats>;
|
|
1526
|
+
getTokens(query?: ApiTokensQuery): Promise<ApiResponse<ApiToken[]>>;
|
|
1527
|
+
isCreatorHidden(wallet: string): Promise<boolean>;
|
|
1528
|
+
getMyUsernameClaim(siwsToken: string): Promise<{
|
|
1529
|
+
username: string | null;
|
|
1530
|
+
claim: ApiUsernameClaim | null;
|
|
1531
|
+
}>;
|
|
1532
|
+
checkUsernameAvailability(username: string): Promise<{
|
|
1533
|
+
available: boolean;
|
|
1534
|
+
reason?: string;
|
|
1535
|
+
}>;
|
|
1536
|
+
submitUsernameClaim(username: string, siwsToken: string, notifyEmail?: string): Promise<ApiUsernameClaim>;
|
|
1537
|
+
submitReport(report: ApiSubmitReport, siwsToken: string): Promise<void>;
|
|
1538
|
+
getPricing(): Promise<ApiPricing>;
|
|
1539
|
+
listCollections(query?: ApiCollectionsListQuery): Promise<ApiResponse<ApiCollection[]>>;
|
|
1540
|
+
generateWallet(newWalletSiwsToken: string, siwsToken: string): Promise<{
|
|
1541
|
+
walletAddress: string;
|
|
1542
|
+
}>;
|
|
1543
|
+
syncCoin(coinAddress: string, owner?: string): Promise<{
|
|
1544
|
+
data: ApiCoin;
|
|
1545
|
+
}>;
|
|
1546
|
+
registerCollection(contractAddress: string): Promise<{
|
|
1547
|
+
data: ApiCollection;
|
|
1548
|
+
}>;
|
|
1549
|
+
getSponsorshipOffers(query?: ApiSponsorshipOffersQuery): Promise<ApiResponse<ApiSponsorshipOffer[]>>;
|
|
1550
|
+
getSponsorshipBids(offerId: string): Promise<ApiSponsorshipBid[]>;
|
|
1551
|
+
getSponsorshipProposals(query?: ApiSponsorshipProposalsQuery): Promise<ApiResponse<ApiSponsorshipProposal[]>>;
|
|
1552
|
+
getSponsorshipLicenses(query?: ApiSponsorshipLicensesQuery): Promise<ApiResponse<ApiSponsorshipLicense[]>>;
|
|
1315
1553
|
getRewards(address: string): Promise<ApiUserRewards>;
|
|
1316
1554
|
getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
|
|
1317
1555
|
getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
|
|
@@ -1485,4 +1723,4 @@ declare class UserFacingError extends Error {
|
|
|
1485
1723
|
constructor(message: string);
|
|
1486
1724
|
}
|
|
1487
1725
|
|
|
1488
|
-
export { type
|
|
1726
|
+
export { type ApiOrdersQuery as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiKeyStatus as P, type ApiMeta as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataSignedUrl as T, type ApiMetadataUpload as U, type ApiOrder as V, type ApiOrderConsideration as W, type ApiOrderOffer as X, type ApiOrderPrice as Y, type ApiOrderTokenMeta as Z, type ApiOrderTxHash as _, type ServiceCapability as a, type CreatePopCollectionParams as a$, type ApiPlatformStats as a0, type ApiPointEvent as a1, type ApiPortalKey as a2, type ApiPortalKeyCreated as a3, type ApiPortalMe as a4, type ApiPortalSpend as a5, type ApiPricing as a6, type ApiPricingRule as a7, type ApiPublicRemix as a8, type ApiRemixOffer as a9, type ApiTokensQuery as aA, type ApiTxSyncResult as aB, type ApiUserRewards as aC, type ApiUserWallet as aD, type ApiUsernameClaim as aE, type ApiWalletActivity as aF, type ApiWebhookCreated as aG, type ApiWebhookEndpoint as aH, type AutoRemixOfferParams as aI, type CancelOrderIntentParams as aJ, type ChainFilter as aK, type CheckoutIntentItem as aL, type ClaimConditions as aM, type CollectionServiceId as aN, type CollectionSort as aO, type CollectionTokensSort as aP, type ConfirmRemixOfferParams as aQ, type ConfirmSelfRemixParams as aR, type ConsiderationItem as aS, type CreateCheckoutIntentParams as aT, type CreateCoinIntentParams as aU, type CreateCollectionIntentParams as aV, type CreateCounterOfferIntentParams as aW, type CreateDropParams as aX, type CreateListingIntentParams as aY, type CreateMembershipParams as aZ, type CreateMintIntentParams as a_, type ApiRemixOfferPrice as aa, type ApiRemixOffersQuery as ab, type ApiReportTargetType as ac, type ApiResponse as ad, type ApiRewardsBadge as ae, type ApiRewardsBatchEntry as af, type ApiRewardsConfig as ag, type ApiRewardsLeaderboardEntry as ah, type ApiRewardsLevel as ai, type ApiSearchCollectionResult as aj, type ApiSearchCreatorResult as ak, type ApiSearchResult as al, type ApiSearchTokenResult as am, type ApiSpendByAction as an, type ApiSponsorshipBid as ao, type ApiSponsorshipLicense as ap, type ApiSponsorshipLicensesQuery as aq, type ApiSponsorshipOffer as ar, type ApiSponsorshipOffersQuery as as, type ApiSponsorshipProposal as at, type ApiSponsorshipProposalsQuery as au, type ApiSubmitReport as av, type ApiTierOnchain as aw, type ApiToken as ax, type ApiTokenBalance as ay, type ApiTokenMetadata as az, type AcceptSponsorshipProposalIntentParams as b, type CreatedOwner as b$, type CreateRemixOfferParams as b0, type CreateSponsorshipOfferIntentParams as b1, type CreateSponsorshipOfferParams as b2, type CreateSponsorshipProposalIntentParams as b3, type CreateTicketParams as b4, type CreateTierIntentParams as b5, type CreateWebhookParams as b6, type DropMintStatus as b7, type EmissionParams as b8, type EnforcementDeclaration as b9, type PopBatchEligibilityItem as bA, type PopClaimStatus as bB, type PopEventType as bC, type ProposeSponsorshipParams as bD, type RejectSponsorshipProposalIntentParams as bE, type RemixOfferStatus as bF, type ResolvedConfig as bG, type RetractSponsorshipBidIntentParams as bH, type RetryOptions as bI, type ServiceEventDeclaration as bJ, type SetSponsorshipOfferOpenIntentParams as bK, type SortOrder as bL, type TenantPlan as bM, type TierServiceId as bN, type TxResult as bO, type UpdateCollectionProfileInput as bP, UserFacingError as bQ, type WebhookEventType as bR, type WebhookStatus as bS, type WithdrawSponsorshipProposalIntentParams as bT, resolveConfig as bU, resolveFeeConfig as bV, type SealedOwner as bW, type ReceiptProviderLike as bX, type WalletExecutor as bY, type ExecutedTransaction as bZ, type PasskeyOwner as b_, type FactoryFamilyServiceId as ba, type FeeConfig as bb, FeeConfigSchema as bc, type FulfillOrderIntentParams as bd, type IPType as be, type IntentCall as bf, type IntentStatus as bg, type IntentType as bh, type IpAttribute as bi, type IpNftMetadata as bj, type LaunchCoinIntentParams as bk, type MakeOfferIntentParams as bl, MedialaneApiError as bm, type MedialaneConfig as bn, type MedialaneErrorCode as bo, type MintMembershipsParams as bp, type MintTicketsParams as bq, OPEN_LICENSES as br, type OfferItem as bs, type OpenLicense as bt, type Order as bu, type OrderDetails as bv, type OrderParameters as bw, type OrderStatus as bx, PasskeyCancelledError as by, type PlaceSponsorshipBidIntentParams as bz, type ActivityType as c, type OwnerSigner as c0, type PasskeyConfig as c1, createPasskeyOwner as c2, 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 ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
|
@@ -387,6 +387,8 @@ interface ApiCoinsQuery {
|
|
|
387
387
|
page?: number;
|
|
388
388
|
limit?: number;
|
|
389
389
|
service?: string;
|
|
390
|
+
sort?: string;
|
|
391
|
+
creator?: string;
|
|
390
392
|
}
|
|
391
393
|
interface ApiActivityPrice {
|
|
392
394
|
raw: string | null;
|
|
@@ -780,6 +782,7 @@ interface ConfirmRemixOfferParams {
|
|
|
780
782
|
}
|
|
781
783
|
interface ApiRemixOffersQuery {
|
|
782
784
|
role: "creator" | "requester";
|
|
785
|
+
status?: string;
|
|
783
786
|
page?: number;
|
|
784
787
|
limit?: number;
|
|
785
788
|
}
|
|
@@ -1070,6 +1073,193 @@ interface ApiPointEvent {
|
|
|
1070
1073
|
txHash: string | null;
|
|
1071
1074
|
createdAt: string;
|
|
1072
1075
|
}
|
|
1076
|
+
interface ApiPlatformStats {
|
|
1077
|
+
collections: number;
|
|
1078
|
+
tokens: number;
|
|
1079
|
+
sales: number;
|
|
1080
|
+
}
|
|
1081
|
+
interface ApiDropInfo {
|
|
1082
|
+
contractAddress: string;
|
|
1083
|
+
name: string | null;
|
|
1084
|
+
symbol: string | null;
|
|
1085
|
+
description: string | null;
|
|
1086
|
+
image: string | null;
|
|
1087
|
+
owner: string | null;
|
|
1088
|
+
totalMinted: number;
|
|
1089
|
+
}
|
|
1090
|
+
interface ApiDropConditions {
|
|
1091
|
+
maxSupply: string;
|
|
1092
|
+
price: string;
|
|
1093
|
+
paymentToken: string;
|
|
1094
|
+
startTime: number;
|
|
1095
|
+
endTime: number;
|
|
1096
|
+
maxPerWallet: string;
|
|
1097
|
+
}
|
|
1098
|
+
interface ApiDropState {
|
|
1099
|
+
conditions: ApiDropConditions;
|
|
1100
|
+
totalMinted: number;
|
|
1101
|
+
maxSupply: number;
|
|
1102
|
+
allowlistEnabled: boolean;
|
|
1103
|
+
paused: boolean;
|
|
1104
|
+
}
|
|
1105
|
+
/** An IP Ticket or IP Club membership tier, as read from its contract. Amounts are decimal strings. */
|
|
1106
|
+
interface ApiTierOnchain {
|
|
1107
|
+
maxSupply: string;
|
|
1108
|
+
minted: string;
|
|
1109
|
+
startTime: number | null;
|
|
1110
|
+
endTime: number | null;
|
|
1111
|
+
royaltyBps: number;
|
|
1112
|
+
}
|
|
1113
|
+
interface ApiIpNftTokenData {
|
|
1114
|
+
owner: string;
|
|
1115
|
+
metadataUri: string;
|
|
1116
|
+
originalCreator: string;
|
|
1117
|
+
registeredAt: number;
|
|
1118
|
+
}
|
|
1119
|
+
interface ApiTokensQuery {
|
|
1120
|
+
page?: number;
|
|
1121
|
+
limit?: number;
|
|
1122
|
+
sort?: string;
|
|
1123
|
+
ipType?: string;
|
|
1124
|
+
derivatives?: "allowed";
|
|
1125
|
+
}
|
|
1126
|
+
interface ApiUsernameClaim {
|
|
1127
|
+
id: string;
|
|
1128
|
+
username: string;
|
|
1129
|
+
walletAddress: string;
|
|
1130
|
+
status: "PENDING" | "APPROVED" | "REJECTED";
|
|
1131
|
+
adminNotes: string | null;
|
|
1132
|
+
reviewedAt: string | null;
|
|
1133
|
+
createdAt: string;
|
|
1134
|
+
}
|
|
1135
|
+
type ApiReportTargetType = "COLLECTION" | "TOKEN" | "CREATOR" | "COMMENT";
|
|
1136
|
+
/** `targetKey` is built from the target fields. */
|
|
1137
|
+
interface ApiSubmitReport {
|
|
1138
|
+
targetType: ApiReportTargetType;
|
|
1139
|
+
targetContract?: string;
|
|
1140
|
+
targetTokenId?: string;
|
|
1141
|
+
targetAddress?: string;
|
|
1142
|
+
targetId?: string;
|
|
1143
|
+
categories: string[];
|
|
1144
|
+
description?: string;
|
|
1145
|
+
}
|
|
1146
|
+
interface ApiSponsorshipOffer {
|
|
1147
|
+
id: string;
|
|
1148
|
+
chain: string;
|
|
1149
|
+
contractAddress: string;
|
|
1150
|
+
offerId: string;
|
|
1151
|
+
author: string;
|
|
1152
|
+
nftContract: string;
|
|
1153
|
+
tokenId: string;
|
|
1154
|
+
minAmount: string;
|
|
1155
|
+
duration: number;
|
|
1156
|
+
paymentToken: string;
|
|
1157
|
+
licenseTermsUri: string;
|
|
1158
|
+
transferable: boolean;
|
|
1159
|
+
royaltyBps: number;
|
|
1160
|
+
specificSponsor: string | null;
|
|
1161
|
+
open: boolean;
|
|
1162
|
+
createdAtChain: string;
|
|
1163
|
+
updatedAt: string;
|
|
1164
|
+
}
|
|
1165
|
+
interface ApiSponsorshipBid {
|
|
1166
|
+
id: string;
|
|
1167
|
+
chain: string;
|
|
1168
|
+
contractAddress: string;
|
|
1169
|
+
offerId: string;
|
|
1170
|
+
sponsor: string;
|
|
1171
|
+
amount: string;
|
|
1172
|
+
placedAtChain: string;
|
|
1173
|
+
updatedAt: string;
|
|
1174
|
+
}
|
|
1175
|
+
interface ApiSponsorshipProposal {
|
|
1176
|
+
id: string;
|
|
1177
|
+
chain: string;
|
|
1178
|
+
contractAddress: string;
|
|
1179
|
+
proposalId: string;
|
|
1180
|
+
proposer: string;
|
|
1181
|
+
nftContract: string;
|
|
1182
|
+
tokenId: string;
|
|
1183
|
+
amount: string;
|
|
1184
|
+
duration: number;
|
|
1185
|
+
validUntil: string | null;
|
|
1186
|
+
paymentToken: string;
|
|
1187
|
+
licenseTermsUri: string;
|
|
1188
|
+
transferable: boolean;
|
|
1189
|
+
royaltyBps: number;
|
|
1190
|
+
open: boolean;
|
|
1191
|
+
accepted: boolean | null;
|
|
1192
|
+
createdAtChain: string;
|
|
1193
|
+
closedAtChain: string | null;
|
|
1194
|
+
updatedAt: string;
|
|
1195
|
+
}
|
|
1196
|
+
interface ApiSponsorshipLicense {
|
|
1197
|
+
id: string;
|
|
1198
|
+
chain: string;
|
|
1199
|
+
contractAddress: string;
|
|
1200
|
+
tokenId: string;
|
|
1201
|
+
author: string;
|
|
1202
|
+
recipient: string;
|
|
1203
|
+
assetContract: string;
|
|
1204
|
+
assetTokenId: string;
|
|
1205
|
+
expiresAt: string;
|
|
1206
|
+
transferable: boolean;
|
|
1207
|
+
royaltyBps: number;
|
|
1208
|
+
licenseTermsUri: string;
|
|
1209
|
+
offerId: string | null;
|
|
1210
|
+
proposalId: string | null;
|
|
1211
|
+
mintedAtChain: string;
|
|
1212
|
+
currentHolder?: string | null;
|
|
1213
|
+
}
|
|
1214
|
+
interface ApiSponsorshipOffersQuery {
|
|
1215
|
+
limit?: number;
|
|
1216
|
+
nftContract?: string;
|
|
1217
|
+
author?: string;
|
|
1218
|
+
owner?: string;
|
|
1219
|
+
open?: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
interface ApiSponsorshipProposalsQuery {
|
|
1222
|
+
limit?: number;
|
|
1223
|
+
nftContract?: string;
|
|
1224
|
+
proposer?: string;
|
|
1225
|
+
owner?: string;
|
|
1226
|
+
open?: boolean;
|
|
1227
|
+
}
|
|
1228
|
+
interface ApiSponsorshipLicensesQuery {
|
|
1229
|
+
limit?: number;
|
|
1230
|
+
holder?: string;
|
|
1231
|
+
author?: string;
|
|
1232
|
+
}
|
|
1233
|
+
interface ApiCollectionsListQuery {
|
|
1234
|
+
page?: number;
|
|
1235
|
+
limit?: number;
|
|
1236
|
+
owner?: string;
|
|
1237
|
+
service?: string;
|
|
1238
|
+
sort?: CollectionSort;
|
|
1239
|
+
isFeatured?: boolean;
|
|
1240
|
+
hideEmpty?: boolean;
|
|
1241
|
+
chain?: ChainFilter;
|
|
1242
|
+
}
|
|
1243
|
+
interface ApiPricingRule {
|
|
1244
|
+
actionKey: string;
|
|
1245
|
+
chain: string;
|
|
1246
|
+
service: string;
|
|
1247
|
+
credits: number;
|
|
1248
|
+
}
|
|
1249
|
+
interface ApiPricing {
|
|
1250
|
+
creditsPerUsdc: number;
|
|
1251
|
+
mdln?: {
|
|
1252
|
+
contract: string | null;
|
|
1253
|
+
tiers: {
|
|
1254
|
+
minWholeTokens: number;
|
|
1255
|
+
multiplier: number;
|
|
1256
|
+
}[];
|
|
1257
|
+
};
|
|
1258
|
+
pricing: {
|
|
1259
|
+
default: number;
|
|
1260
|
+
rules: ApiPricingRule[];
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1073
1263
|
|
|
1074
1264
|
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
1265
|
|
|
@@ -1097,6 +1287,11 @@ declare class ApiClient {
|
|
|
1097
1287
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1098
1288
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
1099
1289
|
getActiveOrdersForToken(contract: string, tokenId: string): Promise<ApiResponse<ApiOrder[]>>;
|
|
1290
|
+
/** Offers others made on the address's assets. */
|
|
1291
|
+
getReceivedOffers(address: string, opts?: {
|
|
1292
|
+
page?: number;
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
}): Promise<ApiResponse<ApiOrder[]>>;
|
|
1100
1295
|
getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
|
|
1101
1296
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1102
1297
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1144,6 +1339,14 @@ declare class ApiClient {
|
|
|
1144
1339
|
getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1145
1340
|
getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
|
|
1146
1341
|
uploadMetadata(metadata: Record<string, unknown>): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1342
|
+
/** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
|
|
1343
|
+
uploadMetadataDirectory(files: {
|
|
1344
|
+
name: string;
|
|
1345
|
+
content: unknown;
|
|
1346
|
+
}[]): Promise<{
|
|
1347
|
+
cid: string;
|
|
1348
|
+
baseUri: string;
|
|
1349
|
+
}>;
|
|
1147
1350
|
resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
|
|
1148
1351
|
uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1149
1352
|
getMe(siwsToken?: string): Promise<ApiResponse<ApiPortalMe>>;
|
|
@@ -1303,8 +1506,8 @@ declare class ApiClient {
|
|
|
1303
1506
|
claimCoin(coinAddress: string, siwsToken: string): Promise<ApiCoinClaimResult>;
|
|
1304
1507
|
getCoinClaims(status?: string): Promise<ApiResponse<ApiCollectionClaim[]>>;
|
|
1305
1508
|
updateCoinProfile(contract: string, data: {
|
|
1306
|
-
image?: string;
|
|
1307
|
-
description?: string;
|
|
1509
|
+
image?: string | null;
|
|
1510
|
+
description?: string | null;
|
|
1308
1511
|
}, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
|
|
1309
1512
|
getDropCollections(opts?: {
|
|
1310
1513
|
page?: number;
|
|
@@ -1312,6 +1515,41 @@ declare class ApiClient {
|
|
|
1312
1515
|
sort?: CollectionSort;
|
|
1313
1516
|
}): Promise<ApiResponse<ApiCollection[]>>;
|
|
1314
1517
|
getDropMintStatus(collection: string, wallet: string): Promise<DropMintStatus>;
|
|
1518
|
+
getDropInfo(contract: string): Promise<ApiDropInfo | null>;
|
|
1519
|
+
getDropState(contract: string): Promise<ApiDropState>;
|
|
1520
|
+
getTicket(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1521
|
+
getTicketCount(contract: string): Promise<number>;
|
|
1522
|
+
getClubMembership(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1523
|
+
isClubMember(contract: string, tokenId: string, wallet: string): Promise<boolean>;
|
|
1524
|
+
getIpNftTokenData(contract: string, tokenId: string): Promise<ApiIpNftTokenData | null>;
|
|
1525
|
+
getPlatformStats(): Promise<ApiPlatformStats>;
|
|
1526
|
+
getTokens(query?: ApiTokensQuery): Promise<ApiResponse<ApiToken[]>>;
|
|
1527
|
+
isCreatorHidden(wallet: string): Promise<boolean>;
|
|
1528
|
+
getMyUsernameClaim(siwsToken: string): Promise<{
|
|
1529
|
+
username: string | null;
|
|
1530
|
+
claim: ApiUsernameClaim | null;
|
|
1531
|
+
}>;
|
|
1532
|
+
checkUsernameAvailability(username: string): Promise<{
|
|
1533
|
+
available: boolean;
|
|
1534
|
+
reason?: string;
|
|
1535
|
+
}>;
|
|
1536
|
+
submitUsernameClaim(username: string, siwsToken: string, notifyEmail?: string): Promise<ApiUsernameClaim>;
|
|
1537
|
+
submitReport(report: ApiSubmitReport, siwsToken: string): Promise<void>;
|
|
1538
|
+
getPricing(): Promise<ApiPricing>;
|
|
1539
|
+
listCollections(query?: ApiCollectionsListQuery): Promise<ApiResponse<ApiCollection[]>>;
|
|
1540
|
+
generateWallet(newWalletSiwsToken: string, siwsToken: string): Promise<{
|
|
1541
|
+
walletAddress: string;
|
|
1542
|
+
}>;
|
|
1543
|
+
syncCoin(coinAddress: string, owner?: string): Promise<{
|
|
1544
|
+
data: ApiCoin;
|
|
1545
|
+
}>;
|
|
1546
|
+
registerCollection(contractAddress: string): Promise<{
|
|
1547
|
+
data: ApiCollection;
|
|
1548
|
+
}>;
|
|
1549
|
+
getSponsorshipOffers(query?: ApiSponsorshipOffersQuery): Promise<ApiResponse<ApiSponsorshipOffer[]>>;
|
|
1550
|
+
getSponsorshipBids(offerId: string): Promise<ApiSponsorshipBid[]>;
|
|
1551
|
+
getSponsorshipProposals(query?: ApiSponsorshipProposalsQuery): Promise<ApiResponse<ApiSponsorshipProposal[]>>;
|
|
1552
|
+
getSponsorshipLicenses(query?: ApiSponsorshipLicensesQuery): Promise<ApiResponse<ApiSponsorshipLicense[]>>;
|
|
1315
1553
|
getRewards(address: string): Promise<ApiUserRewards>;
|
|
1316
1554
|
getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
|
|
1317
1555
|
getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
|
|
@@ -1485,4 +1723,4 @@ declare class UserFacingError extends Error {
|
|
|
1485
1723
|
constructor(message: string);
|
|
1486
1724
|
}
|
|
1487
1725
|
|
|
1488
|
-
export { type
|
|
1726
|
+
export { type ApiOrdersQuery as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiKeyStatus as P, type ApiMeta as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataSignedUrl as T, type ApiMetadataUpload as U, type ApiOrder as V, type ApiOrderConsideration as W, type ApiOrderOffer as X, type ApiOrderPrice as Y, type ApiOrderTokenMeta as Z, type ApiOrderTxHash as _, type ServiceCapability as a, type CreatePopCollectionParams as a$, type ApiPlatformStats as a0, type ApiPointEvent as a1, type ApiPortalKey as a2, type ApiPortalKeyCreated as a3, type ApiPortalMe as a4, type ApiPortalSpend as a5, type ApiPricing as a6, type ApiPricingRule as a7, type ApiPublicRemix as a8, type ApiRemixOffer as a9, type ApiTokensQuery as aA, type ApiTxSyncResult as aB, type ApiUserRewards as aC, type ApiUserWallet as aD, type ApiUsernameClaim as aE, type ApiWalletActivity as aF, type ApiWebhookCreated as aG, type ApiWebhookEndpoint as aH, type AutoRemixOfferParams as aI, type CancelOrderIntentParams as aJ, type ChainFilter as aK, type CheckoutIntentItem as aL, type ClaimConditions as aM, type CollectionServiceId as aN, type CollectionSort as aO, type CollectionTokensSort as aP, type ConfirmRemixOfferParams as aQ, type ConfirmSelfRemixParams as aR, type ConsiderationItem as aS, type CreateCheckoutIntentParams as aT, type CreateCoinIntentParams as aU, type CreateCollectionIntentParams as aV, type CreateCounterOfferIntentParams as aW, type CreateDropParams as aX, type CreateListingIntentParams as aY, type CreateMembershipParams as aZ, type CreateMintIntentParams as a_, type ApiRemixOfferPrice as aa, type ApiRemixOffersQuery as ab, type ApiReportTargetType as ac, type ApiResponse as ad, type ApiRewardsBadge as ae, type ApiRewardsBatchEntry as af, type ApiRewardsConfig as ag, type ApiRewardsLeaderboardEntry as ah, type ApiRewardsLevel as ai, type ApiSearchCollectionResult as aj, type ApiSearchCreatorResult as ak, type ApiSearchResult as al, type ApiSearchTokenResult as am, type ApiSpendByAction as an, type ApiSponsorshipBid as ao, type ApiSponsorshipLicense as ap, type ApiSponsorshipLicensesQuery as aq, type ApiSponsorshipOffer as ar, type ApiSponsorshipOffersQuery as as, type ApiSponsorshipProposal as at, type ApiSponsorshipProposalsQuery as au, type ApiSubmitReport as av, type ApiTierOnchain as aw, type ApiToken as ax, type ApiTokenBalance as ay, type ApiTokenMetadata as az, type AcceptSponsorshipProposalIntentParams as b, type CreatedOwner as b$, type CreateRemixOfferParams as b0, type CreateSponsorshipOfferIntentParams as b1, type CreateSponsorshipOfferParams as b2, type CreateSponsorshipProposalIntentParams as b3, type CreateTicketParams as b4, type CreateTierIntentParams as b5, type CreateWebhookParams as b6, type DropMintStatus as b7, type EmissionParams as b8, type EnforcementDeclaration as b9, type PopBatchEligibilityItem as bA, type PopClaimStatus as bB, type PopEventType as bC, type ProposeSponsorshipParams as bD, type RejectSponsorshipProposalIntentParams as bE, type RemixOfferStatus as bF, type ResolvedConfig as bG, type RetractSponsorshipBidIntentParams as bH, type RetryOptions as bI, type ServiceEventDeclaration as bJ, type SetSponsorshipOfferOpenIntentParams as bK, type SortOrder as bL, type TenantPlan as bM, type TierServiceId as bN, type TxResult as bO, type UpdateCollectionProfileInput as bP, UserFacingError as bQ, type WebhookEventType as bR, type WebhookStatus as bS, type WithdrawSponsorshipProposalIntentParams as bT, resolveConfig as bU, resolveFeeConfig as bV, type SealedOwner as bW, type ReceiptProviderLike as bX, type WalletExecutor as bY, type ExecutedTransaction as bZ, type PasskeyOwner as b_, type FactoryFamilyServiceId as ba, type FeeConfig as bb, FeeConfigSchema as bc, type FulfillOrderIntentParams as bd, type IPType as be, type IntentCall as bf, type IntentStatus as bg, type IntentType as bh, type IpAttribute as bi, type IpNftMetadata as bj, type LaunchCoinIntentParams as bk, type MakeOfferIntentParams as bl, MedialaneApiError as bm, type MedialaneConfig as bn, type MedialaneErrorCode as bo, type MintMembershipsParams as bp, type MintTicketsParams as bq, OPEN_LICENSES as br, type OfferItem as bs, type OpenLicense as bt, type Order as bu, type OrderDetails as bv, type OrderParameters as bw, type OrderStatus as bx, PasskeyCancelledError as by, type PlaceSponsorshipBidIntentParams as bz, type ActivityType as c, type OwnerSigner as c0, type PasskeyConfig as c1, createPasskeyOwner as c2, 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 ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|