@medialane/sdk 0.85.3 → 0.85.5
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 +58 -61
- 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 +58 -61
- package/dist/index.js.map +1 -1
- package/dist/{services-14BcGiDF.d.ts → services-hDpCpw3d.d.ts} +41 -42
- package/dist/{services-Yy1coqTe.d.cts → services-xJvXhXQi.d.cts} +41 -42
- package/dist/starknet/index.cjs +58 -61
- 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 +58 -61
- 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>>;
|
|
@@ -1211,7 +1213,9 @@ declare class ApiClient {
|
|
|
1211
1213
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1212
1214
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
1213
1215
|
getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
|
|
1214
|
-
getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string, chain?: ChainFilter
|
|
1216
|
+
getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string, chain?: ChainFilter,
|
|
1217
|
+
/** Token standard filter — single value or comma-separated list (e.g. "ERC721,ERC1155"). */
|
|
1218
|
+
standard?: string): Promise<ApiResponse<ApiCollection[]>>;
|
|
1215
1219
|
getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
|
|
1216
1220
|
getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
|
|
1217
1221
|
getCollectionTokens(contract: string, page?: number, limit?: number, sort?: CollectionTokensSort): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1250,10 +1254,10 @@ declare class ApiClient {
|
|
|
1250
1254
|
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1251
1255
|
/**
|
|
1252
1256
|
* 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
|
|
1257
|
+
* to a buyer's active bid. siwsToken is optional — the endpoint authenticates
|
|
1258
|
+
* via the tenant API key; pass a SIWS token only if your backend requires it.
|
|
1255
1259
|
*/
|
|
1256
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams,
|
|
1260
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1257
1261
|
/**
|
|
1258
1262
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
1259
1263
|
* `sellerAddress` (seller view) — at least one is required.
|
|
@@ -1279,9 +1283,9 @@ declare class ApiClient {
|
|
|
1279
1283
|
}>>;
|
|
1280
1284
|
/**
|
|
1281
1285
|
* Path 1: On-chain auto claim. Sends both x-api-key (tenant auth) and
|
|
1282
|
-
* Authorization: Bearer (
|
|
1286
|
+
* Authorization: Bearer (SIWS token) simultaneously.
|
|
1283
1287
|
*/
|
|
1284
|
-
claimCollection(contractAddress: string, walletAddress: string,
|
|
1288
|
+
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1285
1289
|
verified: boolean;
|
|
1286
1290
|
collection?: ApiCollection;
|
|
1287
1291
|
reason?: string;
|
|
@@ -1309,12 +1313,12 @@ declare class ApiClient {
|
|
|
1309
1313
|
completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
|
|
1310
1314
|
getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
|
|
1311
1315
|
/**
|
|
1312
|
-
* Update collection profile. Requires
|
|
1316
|
+
* Update collection profile. Requires SIWS token for ownership check.
|
|
1313
1317
|
*/
|
|
1314
|
-
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>,
|
|
1318
|
+
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
|
|
1315
1319
|
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
1316
1320
|
getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
|
|
1317
|
-
getGatedContent(contractAddress: string,
|
|
1321
|
+
getGatedContent(contractAddress: string, siwsToken: string): Promise<{
|
|
1318
1322
|
title: string;
|
|
1319
1323
|
url: string;
|
|
1320
1324
|
type: string;
|
|
@@ -1329,31 +1333,26 @@ declare class ApiClient {
|
|
|
1329
1333
|
/** Resolve a username slug to a creator profile (public). */
|
|
1330
1334
|
getCreatorByUsername(username: string): Promise<ApiCreatorProfile | null>;
|
|
1331
1335
|
/**
|
|
1332
|
-
* Update creator profile. Requires
|
|
1336
|
+
* Update creator profile. Requires SIWS token; wallet must match authenticated user.
|
|
1333
1337
|
*/
|
|
1334
|
-
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>,
|
|
1338
|
+
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>, siwsToken: string): Promise<ApiCreatorProfile>;
|
|
1335
1339
|
/** Check if a collection slug is available (public, no auth). */
|
|
1336
1340
|
checkCollectionSlugAvailability(slug: string): Promise<{
|
|
1337
1341
|
available: boolean;
|
|
1338
1342
|
reason?: string;
|
|
1339
1343
|
}>;
|
|
1340
|
-
/** Submit a slug claim for a collection. Requires
|
|
1341
|
-
submitCollectionSlugClaim(contractAddress: string, slug: string,
|
|
1344
|
+
/** Submit a slug claim for a collection. Requires SIWS token — caller must be the collection owner. */
|
|
1345
|
+
submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken: string, notifyEmail?: string): Promise<{
|
|
1342
1346
|
claim: ApiCollectionSlugClaim;
|
|
1343
1347
|
}>;
|
|
1344
|
-
/** Returns all slug claims submitted by the authenticated wallet. Requires
|
|
1345
|
-
getMyCollectionSlugClaims(
|
|
1348
|
+
/** Returns all slug claims submitted by the authenticated wallet. Requires SIWS token. */
|
|
1349
|
+
getMyCollectionSlugClaims(siwsToken: string): Promise<{
|
|
1346
1350
|
claims: ApiCollectionSlugClaim[];
|
|
1347
1351
|
}>;
|
|
1348
1352
|
/** Resolve a collection slug to a full collection. Returns null if not found. */
|
|
1349
1353
|
getCollectionBySlug(slug: string): Promise<ApiCollection | null>;
|
|
1350
1354
|
/**
|
|
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).
|
|
1355
|
+
* Frictionless wallet registration. Tenant API key only (no SIWS token required).
|
|
1357
1356
|
* Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
|
|
1358
1357
|
* UNKNOWN walletType rows when a more specific value is supplied.
|
|
1359
1358
|
*/
|
|
@@ -1371,7 +1370,7 @@ declare class ApiClient {
|
|
|
1371
1370
|
appSource: ApiAppSource;
|
|
1372
1371
|
createdAt: string;
|
|
1373
1372
|
}>;
|
|
1374
|
-
upsertMyWallet(
|
|
1373
|
+
upsertMyWallet(siwsToken: string, options?: {
|
|
1375
1374
|
walletType?: string;
|
|
1376
1375
|
appSource?: ApiAppSource;
|
|
1377
1376
|
chain?: ApiChain;
|
|
@@ -1384,9 +1383,9 @@ declare class ApiClient {
|
|
|
1384
1383
|
/**
|
|
1385
1384
|
* Get the authenticated user's stored wallet address from the backend DB.
|
|
1386
1385
|
* Returns null if the user has not completed onboarding yet.
|
|
1387
|
-
* Requires
|
|
1386
|
+
* Requires SIWS token; no tenant API key needed.
|
|
1388
1387
|
*/
|
|
1389
|
-
getMyWallet(
|
|
1388
|
+
getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
|
|
1390
1389
|
/**
|
|
1391
1390
|
* Get public remixes of a token (open to everyone).
|
|
1392
1391
|
*/
|
|
@@ -1395,40 +1394,40 @@ declare class ApiClient {
|
|
|
1395
1394
|
limit?: number;
|
|
1396
1395
|
}): Promise<ApiResponse<ApiPublicRemix[]>>;
|
|
1397
1396
|
/**
|
|
1398
|
-
* Submit a custom remix offer for a token. Requires
|
|
1397
|
+
* Submit a custom remix offer for a token. Requires SIWS token.
|
|
1399
1398
|
*/
|
|
1400
|
-
submitRemixOffer(params: CreateRemixOfferParams,
|
|
1399
|
+
submitRemixOffer(params: CreateRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1401
1400
|
/**
|
|
1402
|
-
* Submit an auto remix offer for a token with an open license. Requires
|
|
1401
|
+
* Submit an auto remix offer for a token with an open license. Requires SIWS token.
|
|
1403
1402
|
*/
|
|
1404
|
-
submitAutoRemixOffer(params: AutoRemixOfferParams,
|
|
1403
|
+
submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1405
1404
|
/**
|
|
1406
|
-
* Record a self-remix (owner remixing their own token). Requires
|
|
1405
|
+
* Record a self-remix (owner remixing their own token). Requires SIWS token.
|
|
1407
1406
|
*/
|
|
1408
|
-
confirmSelfRemix(params: ConfirmSelfRemixParams,
|
|
1407
|
+
confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1409
1408
|
/**
|
|
1410
|
-
* List remix offers by role. Requires
|
|
1409
|
+
* List remix offers by role. Requires SIWS token.
|
|
1411
1410
|
* role="creator" — offers where you are the original creator.
|
|
1412
1411
|
* role="requester" — offers you made.
|
|
1413
1412
|
*/
|
|
1414
|
-
getRemixOffers(query: ApiRemixOffersQuery,
|
|
1413
|
+
getRemixOffers(query: ApiRemixOffersQuery, siwsToken: string): Promise<ApiResponse<ApiRemixOffer[]>>;
|
|
1415
1414
|
/**
|
|
1416
|
-
* Get a single remix offer.
|
|
1415
|
+
* Get a single remix offer. SIWS token optional (price/currency hidden for non-participants).
|
|
1417
1416
|
*/
|
|
1418
|
-
getRemixOffer(id: string,
|
|
1417
|
+
getRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1419
1418
|
/**
|
|
1420
|
-
* Creator approves a remix offer (authorises the requester to mint). Requires
|
|
1419
|
+
* Creator approves a remix offer (authorises the requester to mint). Requires SIWS token.
|
|
1421
1420
|
*/
|
|
1422
|
-
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams,
|
|
1421
|
+
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1423
1422
|
/**
|
|
1424
|
-
* Creator rejects a remix offer. Requires
|
|
1423
|
+
* Creator rejects a remix offer. Requires SIWS token.
|
|
1425
1424
|
*/
|
|
1426
|
-
rejectRemixOffer(id: string,
|
|
1425
|
+
rejectRemixOffer(id: string, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1427
1426
|
/**
|
|
1428
1427
|
* Requester extends the expiry of a pending remix offer by 1–30 days.
|
|
1429
|
-
* Requires
|
|
1428
|
+
* Requires SIWS token.
|
|
1430
1429
|
*/
|
|
1431
|
-
extendRemixOffer(id: string, days: number,
|
|
1430
|
+
extendRemixOffer(id: string, days: number, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1432
1431
|
getPopCollections(opts?: {
|
|
1433
1432
|
page?: number;
|
|
1434
1433
|
limit?: number;
|
|
@@ -1443,7 +1442,7 @@ declare class ApiClient {
|
|
|
1443
1442
|
/**
|
|
1444
1443
|
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1445
1444
|
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1446
|
-
* `siwsToken` is the caller's SIWS
|
|
1445
|
+
* `siwsToken` is the caller's SIWS bearer token for `identityAuth`.
|
|
1447
1446
|
*/
|
|
1448
1447
|
updateCoinProfile(contract: string, data: {
|
|
1449
1448
|
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>>;
|
|
@@ -1211,7 +1213,9 @@ declare class ApiClient {
|
|
|
1211
1213
|
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1212
1214
|
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
1213
1215
|
getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
|
|
1214
|
-
getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string, chain?: ChainFilter
|
|
1216
|
+
getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string, chain?: ChainFilter,
|
|
1217
|
+
/** Token standard filter — single value or comma-separated list (e.g. "ERC721,ERC1155"). */
|
|
1218
|
+
standard?: string): Promise<ApiResponse<ApiCollection[]>>;
|
|
1215
1219
|
getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
|
|
1216
1220
|
getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
|
|
1217
1221
|
getCollectionTokens(contract: string, page?: number, limit?: number, sort?: CollectionTokensSort): Promise<ApiResponse<ApiToken[]>>;
|
|
@@ -1250,10 +1254,10 @@ declare class ApiClient {
|
|
|
1250
1254
|
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1251
1255
|
/**
|
|
1252
1256
|
* 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
|
|
1257
|
+
* to a buyer's active bid. siwsToken is optional — the endpoint authenticates
|
|
1258
|
+
* via the tenant API key; pass a SIWS token only if your backend requires it.
|
|
1255
1259
|
*/
|
|
1256
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams,
|
|
1260
|
+
createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1257
1261
|
/**
|
|
1258
1262
|
* Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
|
|
1259
1263
|
* `sellerAddress` (seller view) — at least one is required.
|
|
@@ -1279,9 +1283,9 @@ declare class ApiClient {
|
|
|
1279
1283
|
}>>;
|
|
1280
1284
|
/**
|
|
1281
1285
|
* Path 1: On-chain auto claim. Sends both x-api-key (tenant auth) and
|
|
1282
|
-
* Authorization: Bearer (
|
|
1286
|
+
* Authorization: Bearer (SIWS token) simultaneously.
|
|
1283
1287
|
*/
|
|
1284
|
-
claimCollection(contractAddress: string, walletAddress: string,
|
|
1288
|
+
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1285
1289
|
verified: boolean;
|
|
1286
1290
|
collection?: ApiCollection;
|
|
1287
1291
|
reason?: string;
|
|
@@ -1309,12 +1313,12 @@ declare class ApiClient {
|
|
|
1309
1313
|
completeBusinessProvisioning(id: string): Promise<ApiResponse<ApiBusinessProvisioning>>;
|
|
1310
1314
|
getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
|
|
1311
1315
|
/**
|
|
1312
|
-
* Update collection profile. Requires
|
|
1316
|
+
* Update collection profile. Requires SIWS token for ownership check.
|
|
1313
1317
|
*/
|
|
1314
|
-
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>,
|
|
1318
|
+
updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, siwsToken: string): Promise<ApiCollectionProfile>;
|
|
1315
1319
|
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
1316
1320
|
getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
|
|
1317
|
-
getGatedContent(contractAddress: string,
|
|
1321
|
+
getGatedContent(contractAddress: string, siwsToken: string): Promise<{
|
|
1318
1322
|
title: string;
|
|
1319
1323
|
url: string;
|
|
1320
1324
|
type: string;
|
|
@@ -1329,31 +1333,26 @@ declare class ApiClient {
|
|
|
1329
1333
|
/** Resolve a username slug to a creator profile (public). */
|
|
1330
1334
|
getCreatorByUsername(username: string): Promise<ApiCreatorProfile | null>;
|
|
1331
1335
|
/**
|
|
1332
|
-
* Update creator profile. Requires
|
|
1336
|
+
* Update creator profile. Requires SIWS token; wallet must match authenticated user.
|
|
1333
1337
|
*/
|
|
1334
|
-
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>,
|
|
1338
|
+
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>, siwsToken: string): Promise<ApiCreatorProfile>;
|
|
1335
1339
|
/** Check if a collection slug is available (public, no auth). */
|
|
1336
1340
|
checkCollectionSlugAvailability(slug: string): Promise<{
|
|
1337
1341
|
available: boolean;
|
|
1338
1342
|
reason?: string;
|
|
1339
1343
|
}>;
|
|
1340
|
-
/** Submit a slug claim for a collection. Requires
|
|
1341
|
-
submitCollectionSlugClaim(contractAddress: string, slug: string,
|
|
1344
|
+
/** Submit a slug claim for a collection. Requires SIWS token — caller must be the collection owner. */
|
|
1345
|
+
submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken: string, notifyEmail?: string): Promise<{
|
|
1342
1346
|
claim: ApiCollectionSlugClaim;
|
|
1343
1347
|
}>;
|
|
1344
|
-
/** Returns all slug claims submitted by the authenticated wallet. Requires
|
|
1345
|
-
getMyCollectionSlugClaims(
|
|
1348
|
+
/** Returns all slug claims submitted by the authenticated wallet. Requires SIWS token. */
|
|
1349
|
+
getMyCollectionSlugClaims(siwsToken: string): Promise<{
|
|
1346
1350
|
claims: ApiCollectionSlugClaim[];
|
|
1347
1351
|
}>;
|
|
1348
1352
|
/** Resolve a collection slug to a full collection. Returns null if not found. */
|
|
1349
1353
|
getCollectionBySlug(slug: string): Promise<ApiCollection | null>;
|
|
1350
1354
|
/**
|
|
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).
|
|
1355
|
+
* Frictionless wallet registration. Tenant API key only (no SIWS token required).
|
|
1357
1356
|
* Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
|
|
1358
1357
|
* UNKNOWN walletType rows when a more specific value is supplied.
|
|
1359
1358
|
*/
|
|
@@ -1371,7 +1370,7 @@ declare class ApiClient {
|
|
|
1371
1370
|
appSource: ApiAppSource;
|
|
1372
1371
|
createdAt: string;
|
|
1373
1372
|
}>;
|
|
1374
|
-
upsertMyWallet(
|
|
1373
|
+
upsertMyWallet(siwsToken: string, options?: {
|
|
1375
1374
|
walletType?: string;
|
|
1376
1375
|
appSource?: ApiAppSource;
|
|
1377
1376
|
chain?: ApiChain;
|
|
@@ -1384,9 +1383,9 @@ declare class ApiClient {
|
|
|
1384
1383
|
/**
|
|
1385
1384
|
* Get the authenticated user's stored wallet address from the backend DB.
|
|
1386
1385
|
* Returns null if the user has not completed onboarding yet.
|
|
1387
|
-
* Requires
|
|
1386
|
+
* Requires SIWS token; no tenant API key needed.
|
|
1388
1387
|
*/
|
|
1389
|
-
getMyWallet(
|
|
1388
|
+
getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
|
|
1390
1389
|
/**
|
|
1391
1390
|
* Get public remixes of a token (open to everyone).
|
|
1392
1391
|
*/
|
|
@@ -1395,40 +1394,40 @@ declare class ApiClient {
|
|
|
1395
1394
|
limit?: number;
|
|
1396
1395
|
}): Promise<ApiResponse<ApiPublicRemix[]>>;
|
|
1397
1396
|
/**
|
|
1398
|
-
* Submit a custom remix offer for a token. Requires
|
|
1397
|
+
* Submit a custom remix offer for a token. Requires SIWS token.
|
|
1399
1398
|
*/
|
|
1400
|
-
submitRemixOffer(params: CreateRemixOfferParams,
|
|
1399
|
+
submitRemixOffer(params: CreateRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1401
1400
|
/**
|
|
1402
|
-
* Submit an auto remix offer for a token with an open license. Requires
|
|
1401
|
+
* Submit an auto remix offer for a token with an open license. Requires SIWS token.
|
|
1403
1402
|
*/
|
|
1404
|
-
submitAutoRemixOffer(params: AutoRemixOfferParams,
|
|
1403
|
+
submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1405
1404
|
/**
|
|
1406
|
-
* Record a self-remix (owner remixing their own token). Requires
|
|
1405
|
+
* Record a self-remix (owner remixing their own token). Requires SIWS token.
|
|
1407
1406
|
*/
|
|
1408
|
-
confirmSelfRemix(params: ConfirmSelfRemixParams,
|
|
1407
|
+
confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1409
1408
|
/**
|
|
1410
|
-
* List remix offers by role. Requires
|
|
1409
|
+
* List remix offers by role. Requires SIWS token.
|
|
1411
1410
|
* role="creator" — offers where you are the original creator.
|
|
1412
1411
|
* role="requester" — offers you made.
|
|
1413
1412
|
*/
|
|
1414
|
-
getRemixOffers(query: ApiRemixOffersQuery,
|
|
1413
|
+
getRemixOffers(query: ApiRemixOffersQuery, siwsToken: string): Promise<ApiResponse<ApiRemixOffer[]>>;
|
|
1415
1414
|
/**
|
|
1416
|
-
* Get a single remix offer.
|
|
1415
|
+
* Get a single remix offer. SIWS token optional (price/currency hidden for non-participants).
|
|
1417
1416
|
*/
|
|
1418
|
-
getRemixOffer(id: string,
|
|
1417
|
+
getRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1419
1418
|
/**
|
|
1420
|
-
* Creator approves a remix offer (authorises the requester to mint). Requires
|
|
1419
|
+
* Creator approves a remix offer (authorises the requester to mint). Requires SIWS token.
|
|
1421
1420
|
*/
|
|
1422
|
-
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams,
|
|
1421
|
+
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1423
1422
|
/**
|
|
1424
|
-
* Creator rejects a remix offer. Requires
|
|
1423
|
+
* Creator rejects a remix offer. Requires SIWS token.
|
|
1425
1424
|
*/
|
|
1426
|
-
rejectRemixOffer(id: string,
|
|
1425
|
+
rejectRemixOffer(id: string, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1427
1426
|
/**
|
|
1428
1427
|
* Requester extends the expiry of a pending remix offer by 1–30 days.
|
|
1429
|
-
* Requires
|
|
1428
|
+
* Requires SIWS token.
|
|
1430
1429
|
*/
|
|
1431
|
-
extendRemixOffer(id: string, days: number,
|
|
1430
|
+
extendRemixOffer(id: string, days: number, siwsToken: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1432
1431
|
getPopCollections(opts?: {
|
|
1433
1432
|
page?: number;
|
|
1434
1433
|
limit?: number;
|
|
@@ -1443,7 +1442,7 @@ declare class ApiClient {
|
|
|
1443
1442
|
/**
|
|
1444
1443
|
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1445
1444
|
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1446
|
-
* `siwsToken` is the caller's SIWS
|
|
1445
|
+
* `siwsToken` is the caller's SIWS bearer token for `identityAuth`.
|
|
1447
1446
|
*/
|
|
1448
1447
|
updateCoinProfile(contract: string, data: {
|
|
1449
1448
|
image?: string;
|