@medialane/sdk 0.85.3 → 0.85.4
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/README.md +15 -15
- package/dist/index.cjs +56 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +56 -60
- package/dist/index.js.map +1 -1
- package/dist/{services-14BcGiDF.d.ts → services-CovenF1m.d.ts} +38 -41
- package/dist/{services-Yy1coqTe.d.cts → services-D8saJqJw.d.cts} +38 -41
- package/dist/starknet/index.cjs +56 -60
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +56 -60
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -512,6 +512,8 @@ interface ApiActivity {
|
|
|
512
512
|
interface ApiActivitiesQuery {
|
|
513
513
|
chain?: ChainFilter;
|
|
514
514
|
type?: ActivityType;
|
|
515
|
+
/** Scope the feed to one collection's contract address instead of the global/per-address feed. */
|
|
516
|
+
contract?: string;
|
|
515
517
|
page?: number;
|
|
516
518
|
limit?: number;
|
|
517
519
|
}
|
|
@@ -1202,7 +1204,7 @@ declare class ApiClient {
|
|
|
1202
1204
|
private post;
|
|
1203
1205
|
private patch;
|
|
1204
1206
|
private del;
|
|
1205
|
-
/** Bearer header for
|
|
1207
|
+
/** Bearer header for SIWS-token-authenticated routes. */
|
|
1206
1208
|
private bearer;
|
|
1207
1209
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1208
1210
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
@@ -1250,10 +1252,10 @@ declare class ApiClient {
|
|
|
1250
1252
|
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1251
1253
|
/**
|
|
1252
1254
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1253
|
-
* to a buyer's active bid.
|
|
1254
|
-
* via the tenant API key; pass a
|
|
1255
|
+
* to a buyer's active bid. siwsToken is optional — the endpoint authenticates
|
|
1256
|
+
* via the tenant API key; pass a SIWS token only if your backend requires it.
|
|
1255
1257
|
*/
|
|
1256
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams,
|
|
1258
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1257
1259
|
/**
|
|
1258
1260
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
1259
1261
|
* `sellerAddress` (seller view) — at least one is required.
|
|
@@ -1279,9 +1281,9 @@ declare class ApiClient {
|
|
|
1279
1281
|
}>>;
|
|
1280
1282
|
/**
|
|
1281
1283
|
* Path 1: On-chain auto claim. Sends both x-api-key (tenant auth) and
|
|
1282
|
-
* Authorization: Bearer (
|
|
1284
|
+
* Authorization: Bearer (SIWS token) simultaneously.
|
|
1283
1285
|
*/
|
|
1284
|
-
claimCollection(contractAddress: string, walletAddress: string,
|
|
1286
|
+
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1285
1287
|
verified: boolean;
|
|
1286
1288
|
collection?: ApiCollection;
|
|
1287
1289
|
reason?: string;
|
|
@@ -1309,12 +1311,12 @@ declare class ApiClient {
|
|
|
1309
1311
|
completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
|
|
1310
1312
|
getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
|
|
1311
1313
|
/**
|
|
1312
|
-
* Update collection profile. Requires
|
|
1314
|
+
* Update collection profile. Requires SIWS token for ownership check.
|
|
1313
1315
|
*/
|
|
1314
|
-
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>,
|
|
1316
|
+
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
|
|
1315
1317
|
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
1316
1318
|
getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
|
|
1317
|
-
getGatedContent(contractAddress: string,
|
|
1319
|
+
getGatedContent(contractAddress: string, siwsToken: string): Promise<{
|
|
1318
1320
|
title: string;
|
|
1319
1321
|
url: string;
|
|
1320
1322
|
type: string;
|
|
@@ -1329,31 +1331,26 @@ declare class ApiClient {
|
|
|
1329
1331
|
/** Resolve a username slug to a creator profile (public). */
|
|
1330
1332
|
getCreatorByUsername(username: string): Promise<ApiCreatorProfile | null>;
|
|
1331
1333
|
/**
|
|
1332
|
-
* Update creator profile. Requires
|
|
1334
|
+
* Update creator profile. Requires SIWS token; wallet must match authenticated user.
|
|
1333
1335
|
*/
|
|
1334
|
-
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>,
|
|
1336
|
+
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>, siwsToken: string): Promise<ApiCreatorProfile>;
|
|
1335
1337
|
/** Check if a collection slug is available (public, no auth). */
|
|
1336
1338
|
checkCollectionSlugAvailability(slug: string): Promise<{
|
|
1337
1339
|
available: boolean;
|
|
1338
1340
|
reason?: string;
|
|
1339
1341
|
}>;
|
|
1340
|
-
/** Submit a slug claim for a collection. Requires
|
|
1341
|
-
submitCollectionSlugClaim(contractAddress: string, slug: string,
|
|
1342
|
+
/** Submit a slug claim for a collection. Requires SIWS token — caller must be the collection owner. */
|
|
1343
|
+
submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken: string, notifyEmail?: string): Promise<{
|
|
1342
1344
|
claim: ApiCollectionSlugClaim;
|
|
1343
1345
|
}>;
|
|
1344
|
-
/** Returns all slug claims submitted by the authenticated wallet. Requires
|
|
1345
|
-
getMyCollectionSlugClaims(
|
|
1346
|
+
/** Returns all slug claims submitted by the authenticated wallet. Requires SIWS token. */
|
|
1347
|
+
getMyCollectionSlugClaims(siwsToken: string): Promise<{
|
|
1346
1348
|
claims: ApiCollectionSlugClaim[];
|
|
1347
1349
|
}>;
|
|
1348
1350
|
/** Resolve a collection slug to a full collection. Returns null if not found. */
|
|
1349
1351
|
getCollectionBySlug(slug: string): Promise<ApiCollection | null>;
|
|
1350
1352
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* Call after onboarding when ChipiPay confirms the wallet address.
|
|
1353
|
-
* Requires Clerk JWT; no tenant API key needed.
|
|
1354
|
-
*/
|
|
1355
|
-
/**
|
|
1356
|
-
* Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
|
|
1353
|
+
* Frictionless wallet registration. Tenant API key only (no SIWS token required).
|
|
1357
1354
|
* Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
|
|
1358
1355
|
* UNKNOWN walletType rows when a more specific value is supplied.
|
|
1359
1356
|
*/
|
|
@@ -1371,7 +1368,7 @@ declare class ApiClient {
|
|
|
1371
1368
|
appSource: ApiAppSource;
|
|
1372
1369
|
createdAt: string;
|
|
1373
1370
|
}>;
|
|
1374
|
-
upsertMyWallet(
|
|
1371
|
+
upsertMyWallet(siwsToken: string, options?: {
|
|
1375
1372
|
walletType?: string;
|
|
1376
1373
|
appSource?: ApiAppSource;
|
|
1377
1374
|
chain?: ApiChain;
|
|
@@ -1384,9 +1381,9 @@ declare class ApiClient {
|
|
|
1384
1381
|
/**
|
|
1385
1382
|
* Get the authenticated user's stored wallet address from the backend DB.
|
|
1386
1383
|
* Returns null if the user has not completed onboarding yet.
|
|
1387
|
-
* Requires
|
|
1384
|
+
* Requires SIWS token; no tenant API key needed.
|
|
1388
1385
|
*/
|
|
1389
|
-
getMyWallet(
|
|
1386
|
+
getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
|
|
1390
1387
|
/**
|
|
1391
1388
|
* Get public remixes of a token (open to everyone).
|
|
1392
1389
|
*/
|
|
@@ -1395,40 +1392,40 @@ declare class ApiClient {
|
|
|
1395
1392
|
limit?: number;
|
|
1396
1393
|
}): Promise<ApiResponse<ApiPublicRemix[]>>;
|
|
1397
1394
|
/**
|
|
1398
|
-
* Submit a custom remix offer for a token. Requires
|
|
1395
|
+
* Submit a custom remix offer for a token. Requires SIWS token.
|
|
1399
1396
|
*/
|
|
1400
|
-
submitRemixOffer(params: CreateRemixOfferParams,
|
|
1397
|
+
submitRemixOffer(params: CreateRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1401
1398
|
/**
|
|
1402
|
-
* Submit an auto remix offer for a token with an open license. Requires
|
|
1399
|
+
* Submit an auto remix offer for a token with an open license. Requires SIWS token.
|
|
1403
1400
|
*/
|
|
1404
|
-
submitAutoRemixOffer(params: AutoRemixOfferParams,
|
|
1401
|
+
submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1405
1402
|
/**
|
|
1406
|
-
* Record a self-remix (owner remixing their own token). Requires
|
|
1403
|
+
* Record a self-remix (owner remixing their own token). Requires SIWS token.
|
|
1407
1404
|
*/
|
|
1408
|
-
confirmSelfRemix(params: ConfirmSelfRemixParams,
|
|
1405
|
+
confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1409
1406
|
/**
|
|
1410
|
-
* List remix offers by role. Requires
|
|
1407
|
+
* List remix offers by role. Requires SIWS token.
|
|
1411
1408
|
* role="creator" — offers where you are the original creator.
|
|
1412
1409
|
* role="requester" — offers you made.
|
|
1413
1410
|
*/
|
|
1414
|
-
getRemixOffers(query: ApiRemixOffersQuery,
|
|
1411
|
+
getRemixOffers(query: ApiRemixOffersQuery, siwsToken: string): Promise<ApiResponse<ApiRemixOffer[]>>;
|
|
1415
1412
|
/**
|
|
1416
|
-
* Get a single remix offer.
|
|
1413
|
+
* Get a single remix offer. SIWS token optional (price/currency hidden for non-participants).
|
|
1417
1414
|
*/
|
|
1418
|
-
getRemixOffer(id: string,
|
|
1415
|
+
getRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1419
1416
|
/**
|
|
1420
|
-
* Creator approves a remix offer (authorises the requester to mint). Requires
|
|
1417
|
+
* Creator approves a remix offer (authorises the requester to mint). Requires SIWS token.
|
|
1421
1418
|
*/
|
|
1422
|
-
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams,
|
|
1419
|
+
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1423
1420
|
/**
|
|
1424
|
-
* Creator rejects a remix offer. Requires
|
|
1421
|
+
* Creator rejects a remix offer. Requires SIWS token.
|
|
1425
1422
|
*/
|
|
1426
|
-
rejectRemixOffer(id: string,
|
|
1423
|
+
rejectRemixOffer(id: string, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1427
1424
|
/**
|
|
1428
1425
|
* Requester extends the expiry of a pending remix offer by 1–30 days.
|
|
1429
|
-
* Requires
|
|
1426
|
+
* Requires SIWS token.
|
|
1430
1427
|
*/
|
|
1431
|
-
extendRemixOffer(id: string, days: number,
|
|
1428
|
+
extendRemixOffer(id: string, days: number, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1432
1429
|
getPopCollections(opts?: {
|
|
1433
1430
|
page?: number;
|
|
1434
1431
|
limit?: number;
|
|
@@ -1443,7 +1440,7 @@ declare class ApiClient {
|
|
|
1443
1440
|
/**
|
|
1444
1441
|
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1445
1442
|
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1446
|
-
* `siwsToken` is the caller's SIWS
|
|
1443
|
+
* `siwsToken` is the caller's SIWS bearer token for `identityAuth`.
|
|
1447
1444
|
*/
|
|
1448
1445
|
updateCoinProfile(contract: string, data: {
|
|
1449
1446
|
image?: string;
|
|
@@ -512,6 +512,8 @@ interface ApiActivity {
|
|
|
512
512
|
interface ApiActivitiesQuery {
|
|
513
513
|
chain?: ChainFilter;
|
|
514
514
|
type?: ActivityType;
|
|
515
|
+
/** Scope the feed to one collection's contract address instead of the global/per-address feed. */
|
|
516
|
+
contract?: string;
|
|
515
517
|
page?: number;
|
|
516
518
|
limit?: number;
|
|
517
519
|
}
|
|
@@ -1202,7 +1204,7 @@ declare class ApiClient {
|
|
|
1202
1204
|
private post;
|
|
1203
1205
|
private patch;
|
|
1204
1206
|
private del;
|
|
1205
|
-
/** Bearer header for
|
|
1207
|
+
/** Bearer header for SIWS-token-authenticated routes. */
|
|
1206
1208
|
private bearer;
|
|
1207
1209
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1208
1210
|
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
@@ -1250,10 +1252,10 @@ declare class ApiClient {
|
|
|
1250
1252
|
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1251
1253
|
/**
|
|
1252
1254
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1253
|
-
* to a buyer's active bid.
|
|
1254
|
-
* via the tenant API key; pass a
|
|
1255
|
+
* to a buyer's active bid. siwsToken is optional — the endpoint authenticates
|
|
1256
|
+
* via the tenant API key; pass a SIWS token only if your backend requires it.
|
|
1255
1257
|
*/
|
|
1256
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams,
|
|
1258
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1257
1259
|
/**
|
|
1258
1260
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
1259
1261
|
* `sellerAddress` (seller view) — at least one is required.
|
|
@@ -1279,9 +1281,9 @@ declare class ApiClient {
|
|
|
1279
1281
|
}>>;
|
|
1280
1282
|
/**
|
|
1281
1283
|
* Path 1: On-chain auto claim. Sends both x-api-key (tenant auth) and
|
|
1282
|
-
* Authorization: Bearer (
|
|
1284
|
+
* Authorization: Bearer (SIWS token) simultaneously.
|
|
1283
1285
|
*/
|
|
1284
|
-
claimCollection(contractAddress: string, walletAddress: string,
|
|
1286
|
+
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1285
1287
|
verified: boolean;
|
|
1286
1288
|
collection?: ApiCollection;
|
|
1287
1289
|
reason?: string;
|
|
@@ -1309,12 +1311,12 @@ declare class ApiClient {
|
|
|
1309
1311
|
completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
|
|
1310
1312
|
getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
|
|
1311
1313
|
/**
|
|
1312
|
-
* Update collection profile. Requires
|
|
1314
|
+
* Update collection profile. Requires SIWS token for ownership check.
|
|
1313
1315
|
*/
|
|
1314
|
-
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>,
|
|
1316
|
+
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
|
|
1315
1317
|
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
1316
1318
|
getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
|
|
1317
|
-
getGatedContent(contractAddress: string,
|
|
1319
|
+
getGatedContent(contractAddress: string, siwsToken: string): Promise<{
|
|
1318
1320
|
title: string;
|
|
1319
1321
|
url: string;
|
|
1320
1322
|
type: string;
|
|
@@ -1329,31 +1331,26 @@ declare class ApiClient {
|
|
|
1329
1331
|
/** Resolve a username slug to a creator profile (public). */
|
|
1330
1332
|
getCreatorByUsername(username: string): Promise<ApiCreatorProfile | null>;
|
|
1331
1333
|
/**
|
|
1332
|
-
* Update creator profile. Requires
|
|
1334
|
+
* Update creator profile. Requires SIWS token; wallet must match authenticated user.
|
|
1333
1335
|
*/
|
|
1334
|
-
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>,
|
|
1336
|
+
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>, siwsToken: string): Promise<ApiCreatorProfile>;
|
|
1335
1337
|
/** Check if a collection slug is available (public, no auth). */
|
|
1336
1338
|
checkCollectionSlugAvailability(slug: string): Promise<{
|
|
1337
1339
|
available: boolean;
|
|
1338
1340
|
reason?: string;
|
|
1339
1341
|
}>;
|
|
1340
|
-
/** Submit a slug claim for a collection. Requires
|
|
1341
|
-
submitCollectionSlugClaim(contractAddress: string, slug: string,
|
|
1342
|
+
/** Submit a slug claim for a collection. Requires SIWS token — caller must be the collection owner. */
|
|
1343
|
+
submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken: string, notifyEmail?: string): Promise<{
|
|
1342
1344
|
claim: ApiCollectionSlugClaim;
|
|
1343
1345
|
}>;
|
|
1344
|
-
/** Returns all slug claims submitted by the authenticated wallet. Requires
|
|
1345
|
-
getMyCollectionSlugClaims(
|
|
1346
|
+
/** Returns all slug claims submitted by the authenticated wallet. Requires SIWS token. */
|
|
1347
|
+
getMyCollectionSlugClaims(siwsToken: string): Promise<{
|
|
1346
1348
|
claims: ApiCollectionSlugClaim[];
|
|
1347
1349
|
}>;
|
|
1348
1350
|
/** Resolve a collection slug to a full collection. Returns null if not found. */
|
|
1349
1351
|
getCollectionBySlug(slug: string): Promise<ApiCollection | null>;
|
|
1350
1352
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* Call after onboarding when ChipiPay confirms the wallet address.
|
|
1353
|
-
* Requires Clerk JWT; no tenant API key needed.
|
|
1354
|
-
*/
|
|
1355
|
-
/**
|
|
1356
|
-
* Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
|
|
1353
|
+
* Frictionless wallet registration. Tenant API key only (no SIWS token required).
|
|
1357
1354
|
* Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
|
|
1358
1355
|
* UNKNOWN walletType rows when a more specific value is supplied.
|
|
1359
1356
|
*/
|
|
@@ -1371,7 +1368,7 @@ declare class ApiClient {
|
|
|
1371
1368
|
appSource: ApiAppSource;
|
|
1372
1369
|
createdAt: string;
|
|
1373
1370
|
}>;
|
|
1374
|
-
upsertMyWallet(
|
|
1371
|
+
upsertMyWallet(siwsToken: string, options?: {
|
|
1375
1372
|
walletType?: string;
|
|
1376
1373
|
appSource?: ApiAppSource;
|
|
1377
1374
|
chain?: ApiChain;
|
|
@@ -1384,9 +1381,9 @@ declare class ApiClient {
|
|
|
1384
1381
|
/**
|
|
1385
1382
|
* Get the authenticated user's stored wallet address from the backend DB.
|
|
1386
1383
|
* Returns null if the user has not completed onboarding yet.
|
|
1387
|
-
* Requires
|
|
1384
|
+
* Requires SIWS token; no tenant API key needed.
|
|
1388
1385
|
*/
|
|
1389
|
-
getMyWallet(
|
|
1386
|
+
getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
|
|
1390
1387
|
/**
|
|
1391
1388
|
* Get public remixes of a token (open to everyone).
|
|
1392
1389
|
*/
|
|
@@ -1395,40 +1392,40 @@ declare class ApiClient {
|
|
|
1395
1392
|
limit?: number;
|
|
1396
1393
|
}): Promise<ApiResponse<ApiPublicRemix[]>>;
|
|
1397
1394
|
/**
|
|
1398
|
-
* Submit a custom remix offer for a token. Requires
|
|
1395
|
+
* Submit a custom remix offer for a token. Requires SIWS token.
|
|
1399
1396
|
*/
|
|
1400
|
-
submitRemixOffer(params: CreateRemixOfferParams,
|
|
1397
|
+
submitRemixOffer(params: CreateRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1401
1398
|
/**
|
|
1402
|
-
* Submit an auto remix offer for a token with an open license. Requires
|
|
1399
|
+
* Submit an auto remix offer for a token with an open license. Requires SIWS token.
|
|
1403
1400
|
*/
|
|
1404
|
-
submitAutoRemixOffer(params: AutoRemixOfferParams,
|
|
1401
|
+
submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1405
1402
|
/**
|
|
1406
|
-
* Record a self-remix (owner remixing their own token). Requires
|
|
1403
|
+
* Record a self-remix (owner remixing their own token). Requires SIWS token.
|
|
1407
1404
|
*/
|
|
1408
|
-
confirmSelfRemix(params: ConfirmSelfRemixParams,
|
|
1405
|
+
confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1409
1406
|
/**
|
|
1410
|
-
* List remix offers by role. Requires
|
|
1407
|
+
* List remix offers by role. Requires SIWS token.
|
|
1411
1408
|
* role="creator" — offers where you are the original creator.
|
|
1412
1409
|
* role="requester" — offers you made.
|
|
1413
1410
|
*/
|
|
1414
|
-
getRemixOffers(query: ApiRemixOffersQuery,
|
|
1411
|
+
getRemixOffers(query: ApiRemixOffersQuery, siwsToken: string): Promise<ApiResponse<ApiRemixOffer[]>>;
|
|
1415
1412
|
/**
|
|
1416
|
-
* Get a single remix offer.
|
|
1413
|
+
* Get a single remix offer. SIWS token optional (price/currency hidden for non-participants).
|
|
1417
1414
|
*/
|
|
1418
|
-
getRemixOffer(id: string,
|
|
1415
|
+
getRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1419
1416
|
/**
|
|
1420
|
-
* Creator approves a remix offer (authorises the requester to mint). Requires
|
|
1417
|
+
* Creator approves a remix offer (authorises the requester to mint). Requires SIWS token.
|
|
1421
1418
|
*/
|
|
1422
|
-
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams,
|
|
1419
|
+
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1423
1420
|
/**
|
|
1424
|
-
* Creator rejects a remix offer. Requires
|
|
1421
|
+
* Creator rejects a remix offer. Requires SIWS token.
|
|
1425
1422
|
*/
|
|
1426
|
-
rejectRemixOffer(id: string,
|
|
1423
|
+
rejectRemixOffer(id: string, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1427
1424
|
/**
|
|
1428
1425
|
* Requester extends the expiry of a pending remix offer by 1–30 days.
|
|
1429
|
-
* Requires
|
|
1426
|
+
* Requires SIWS token.
|
|
1430
1427
|
*/
|
|
1431
|
-
extendRemixOffer(id: string, days: number,
|
|
1428
|
+
extendRemixOffer(id: string, days: number, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1432
1429
|
getPopCollections(opts?: {
|
|
1433
1430
|
page?: number;
|
|
1434
1431
|
limit?: number;
|
|
@@ -1443,7 +1440,7 @@ declare class ApiClient {
|
|
|
1443
1440
|
/**
|
|
1444
1441
|
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1445
1442
|
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1446
|
-
* `siwsToken` is the caller's SIWS
|
|
1443
|
+
* `siwsToken` is the caller's SIWS bearer token for `identityAuth`.
|
|
1447
1444
|
*/
|
|
1448
1445
|
updateCoinProfile(contract: string, data: {
|
|
1449
1446
|
image?: string;
|