@medialane/sdk 0.154.0 → 0.155.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/README.md +1 -1
- package/dist/{errors-CKO_JGDP.d.ts → errors-BKaHnCOI.d.ts} +1 -27
- package/dist/{errors-BfiX06G4.d.cts → errors-CAKnNI3N.d.cts} +1 -27
- package/dist/index.cjs +0 -14
- 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 +0 -14
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +0 -14
- 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 +0 -14
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ The Medialane SDK provides a unified interface for interacting with the Medialan
|
|
|
26
26
|
- Full-text search across the marketplace
|
|
27
27
|
- Intent-based transaction orchestration
|
|
28
28
|
- Upload metadata and files to IPFS (Pinata)
|
|
29
|
-
-
|
|
29
|
+
- Portal: API keys, credits, usage
|
|
30
30
|
- ERC-1155 multi-holder ownership via `token.balances`
|
|
31
31
|
|
|
32
32
|
**IP Metadata Types**
|
|
@@ -192,9 +192,6 @@ type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
|
192
192
|
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
193
193
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
194
194
|
type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
|
|
195
|
-
type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
|
|
196
|
-
type WebhookStatus = "ACTIVE" | "DISABLED";
|
|
197
|
-
type TenantPlan = "FREE" | "PREMIUM";
|
|
198
195
|
interface ApiMeta {
|
|
199
196
|
page: number;
|
|
200
197
|
limit: number;
|
|
@@ -794,7 +791,6 @@ interface ApiMetadataUpload {
|
|
|
794
791
|
interface ApiPortalMe {
|
|
795
792
|
id: string;
|
|
796
793
|
accountId: string;
|
|
797
|
-
plan: TenantPlan;
|
|
798
794
|
status: string;
|
|
799
795
|
creditBalance: number;
|
|
800
796
|
}
|
|
@@ -862,21 +858,6 @@ interface ApiPortalSpend {
|
|
|
862
858
|
credited: number;
|
|
863
859
|
drift: number;
|
|
864
860
|
}
|
|
865
|
-
interface ApiWebhookEndpoint {
|
|
866
|
-
id: string;
|
|
867
|
-
url: string;
|
|
868
|
-
events: WebhookEventType[];
|
|
869
|
-
status: WebhookStatus;
|
|
870
|
-
createdAt: string;
|
|
871
|
-
}
|
|
872
|
-
interface ApiWebhookCreated extends ApiWebhookEndpoint {
|
|
873
|
-
secret: string;
|
|
874
|
-
}
|
|
875
|
-
interface CreateWebhookParams {
|
|
876
|
-
url: string;
|
|
877
|
-
events: WebhookEventType[];
|
|
878
|
-
label?: string;
|
|
879
|
-
}
|
|
880
861
|
interface ApiCollectionProfile {
|
|
881
862
|
contractAddress: string;
|
|
882
863
|
chain: string;
|
|
@@ -1271,7 +1252,6 @@ declare class ApiClient {
|
|
|
1271
1252
|
private get;
|
|
1272
1253
|
private post;
|
|
1273
1254
|
private patch;
|
|
1274
|
-
private del;
|
|
1275
1255
|
private bearer;
|
|
1276
1256
|
private asSubject;
|
|
1277
1257
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
@@ -1367,12 +1347,6 @@ declare class ApiClient {
|
|
|
1367
1347
|
cancelFunding(id: string, siwsToken?: string): Promise<ApiResponse<{
|
|
1368
1348
|
status: string;
|
|
1369
1349
|
}>>;
|
|
1370
|
-
getWebhooks(): Promise<ApiResponse<ApiWebhookEndpoint[]>>;
|
|
1371
|
-
createWebhook(params: CreateWebhookParams): Promise<ApiResponse<ApiWebhookCreated>>;
|
|
1372
|
-
deleteWebhook(id: string): Promise<ApiResponse<{
|
|
1373
|
-
id: string;
|
|
1374
|
-
status: string;
|
|
1375
|
-
}>>;
|
|
1376
1350
|
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1377
1351
|
verified: boolean;
|
|
1378
1352
|
collection?: ApiCollection;
|
|
@@ -1707,4 +1681,4 @@ declare class UserFacingError extends Error {
|
|
|
1707
1681
|
constructor(message: string);
|
|
1708
1682
|
}
|
|
1709
1683
|
|
|
1710
|
-
export { type ApiPlatformStats 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 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
|
|
1684
|
+
export { type ApiPlatformStats 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 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 ApiPricing as a5, type ApiPricingRule as a6, type ApiPublicRemix as a7, type ApiRemixOffer as a8, type ApiRemixOfferPrice as a9, type ApiTxSyncResult as aA, type ApiUserRewards as aB, type ApiUserWallet as aC, type ApiUsernameClaim as aD, type ApiWalletActivity 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 ApiRemixOffersQuery as aa, type ApiReportTargetType as ab, type ApiResponse as ac, type ApiRewardsBadge as ad, type ApiRewardsBatchEntry as ae, type ApiRewardsConfig as af, type ApiRewardsLeaderboardEntry as ag, type ApiRewardsLevel as ah, type ApiSearchCollectionResult as ai, type ApiSearchCreatorResult as aj, type ApiSearchResult as ak, type ApiSearchTokenResult as al, type ApiSpendByAction as am, type ApiSponsorshipBid as an, type ApiSponsorshipLicense as ao, type ApiSponsorshipLicensesQuery as ap, type ApiSponsorshipOffer as aq, type ApiSponsorshipOffersQuery as ar, type ApiSponsorshipProposal as as, type ApiSponsorshipProposalsQuery as at, type ApiSubmitReport as au, type ApiTierOnchain as av, type ApiToken as aw, type ApiTokenBalance as ax, type ApiTokenMetadata as ay, type ApiTokensQuery as az, type AcceptSponsorshipProposalIntentParams as b, parseRecoveryKey as b$, type CreateSponsorshipProposalIntentParams as b0, type CreateTicketParams as b1, type CreateTierIntentParams as b2, type DropMintStatus as b3, type EmissionParams as b4, type EnforcementDeclaration as b5, type FactoryFamilyServiceId as b6, type FeeConfig as b7, FeeConfigSchema as b8, type FulfillOrderIntentParams as b9, type RejectSponsorshipProposalIntentParams as bA, type RemixOfferStatus as bB, type ResolvedConfig as bC, type RetractSponsorshipBidIntentParams as bD, type RetryOptions as bE, type ServiceEventDeclaration as bF, type SetSponsorshipOfferOpenIntentParams as bG, type SortOrder as bH, type TierServiceId as bI, type TxResult as bJ, type UpdateCollectionProfileInput as bK, UserFacingError as bL, type WithdrawSponsorshipProposalIntentParams as bM, resolveConfig as bN, resolveFeeConfig as bO, type SealedOwner as bP, type ReceiptProviderLike as bQ, type WalletExecutor as bR, type ExecutedTransaction as bS, type PasskeyOwner as bT, type CreatedOwner as bU, InvalidRecoveryKeyError as bV, type OwnerSigner as bW, type PasskeyConfig as bX, type RecoveryKey as bY, createPasskeyOwner as bZ, encodeRecoveryKey as b_, type IPType as ba, type IntentCall as bb, type IntentStatus as bc, type IntentType as bd, type IpAttribute as be, type IpNftMetadata as bf, type LaunchCoinIntentParams as bg, type MakeOfferIntentParams as bh, MedialaneApiError as bi, type MedialaneConfig as bj, type MedialaneErrorCode as bk, type MintMembershipsParams as bl, type MintTicketsParams as bm, OPEN_LICENSES as bn, type OfferItem as bo, type OpenLicense as bp, type Order as bq, type OrderDetails as br, type OrderParameters as bs, type OrderStatus as bt, PasskeyCancelledError as bu, type PlaceSponsorshipBidIntentParams as bv, type PopBatchEligibilityItem as bw, type PopClaimStatus as bx, type PopEventType as by, type ProposeSponsorshipParams 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 ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
|
@@ -192,9 +192,6 @@ type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
|
192
192
|
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
193
193
|
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
194
194
|
type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
|
|
195
|
-
type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
|
|
196
|
-
type WebhookStatus = "ACTIVE" | "DISABLED";
|
|
197
|
-
type TenantPlan = "FREE" | "PREMIUM";
|
|
198
195
|
interface ApiMeta {
|
|
199
196
|
page: number;
|
|
200
197
|
limit: number;
|
|
@@ -794,7 +791,6 @@ interface ApiMetadataUpload {
|
|
|
794
791
|
interface ApiPortalMe {
|
|
795
792
|
id: string;
|
|
796
793
|
accountId: string;
|
|
797
|
-
plan: TenantPlan;
|
|
798
794
|
status: string;
|
|
799
795
|
creditBalance: number;
|
|
800
796
|
}
|
|
@@ -862,21 +858,6 @@ interface ApiPortalSpend {
|
|
|
862
858
|
credited: number;
|
|
863
859
|
drift: number;
|
|
864
860
|
}
|
|
865
|
-
interface ApiWebhookEndpoint {
|
|
866
|
-
id: string;
|
|
867
|
-
url: string;
|
|
868
|
-
events: WebhookEventType[];
|
|
869
|
-
status: WebhookStatus;
|
|
870
|
-
createdAt: string;
|
|
871
|
-
}
|
|
872
|
-
interface ApiWebhookCreated extends ApiWebhookEndpoint {
|
|
873
|
-
secret: string;
|
|
874
|
-
}
|
|
875
|
-
interface CreateWebhookParams {
|
|
876
|
-
url: string;
|
|
877
|
-
events: WebhookEventType[];
|
|
878
|
-
label?: string;
|
|
879
|
-
}
|
|
880
861
|
interface ApiCollectionProfile {
|
|
881
862
|
contractAddress: string;
|
|
882
863
|
chain: string;
|
|
@@ -1271,7 +1252,6 @@ declare class ApiClient {
|
|
|
1271
1252
|
private get;
|
|
1272
1253
|
private post;
|
|
1273
1254
|
private patch;
|
|
1274
|
-
private del;
|
|
1275
1255
|
private bearer;
|
|
1276
1256
|
private asSubject;
|
|
1277
1257
|
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
@@ -1367,12 +1347,6 @@ declare class ApiClient {
|
|
|
1367
1347
|
cancelFunding(id: string, siwsToken?: string): Promise<ApiResponse<{
|
|
1368
1348
|
status: string;
|
|
1369
1349
|
}>>;
|
|
1370
|
-
getWebhooks(): Promise<ApiResponse<ApiWebhookEndpoint[]>>;
|
|
1371
|
-
createWebhook(params: CreateWebhookParams): Promise<ApiResponse<ApiWebhookCreated>>;
|
|
1372
|
-
deleteWebhook(id: string): Promise<ApiResponse<{
|
|
1373
|
-
id: string;
|
|
1374
|
-
status: string;
|
|
1375
|
-
}>>;
|
|
1376
1350
|
claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
|
|
1377
1351
|
verified: boolean;
|
|
1378
1352
|
collection?: ApiCollection;
|
|
@@ -1707,4 +1681,4 @@ declare class UserFacingError extends Error {
|
|
|
1707
1681
|
constructor(message: string);
|
|
1708
1682
|
}
|
|
1709
1683
|
|
|
1710
|
-
export { type ApiPlatformStats 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 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
|
|
1684
|
+
export { type ApiPlatformStats 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 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 ApiPricing as a5, type ApiPricingRule as a6, type ApiPublicRemix as a7, type ApiRemixOffer as a8, type ApiRemixOfferPrice as a9, type ApiTxSyncResult as aA, type ApiUserRewards as aB, type ApiUserWallet as aC, type ApiUsernameClaim as aD, type ApiWalletActivity 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 ApiRemixOffersQuery as aa, type ApiReportTargetType as ab, type ApiResponse as ac, type ApiRewardsBadge as ad, type ApiRewardsBatchEntry as ae, type ApiRewardsConfig as af, type ApiRewardsLeaderboardEntry as ag, type ApiRewardsLevel as ah, type ApiSearchCollectionResult as ai, type ApiSearchCreatorResult as aj, type ApiSearchResult as ak, type ApiSearchTokenResult as al, type ApiSpendByAction as am, type ApiSponsorshipBid as an, type ApiSponsorshipLicense as ao, type ApiSponsorshipLicensesQuery as ap, type ApiSponsorshipOffer as aq, type ApiSponsorshipOffersQuery as ar, type ApiSponsorshipProposal as as, type ApiSponsorshipProposalsQuery as at, type ApiSubmitReport as au, type ApiTierOnchain as av, type ApiToken as aw, type ApiTokenBalance as ax, type ApiTokenMetadata as ay, type ApiTokensQuery as az, type AcceptSponsorshipProposalIntentParams as b, parseRecoveryKey as b$, type CreateSponsorshipProposalIntentParams as b0, type CreateTicketParams as b1, type CreateTierIntentParams as b2, type DropMintStatus as b3, type EmissionParams as b4, type EnforcementDeclaration as b5, type FactoryFamilyServiceId as b6, type FeeConfig as b7, FeeConfigSchema as b8, type FulfillOrderIntentParams as b9, type RejectSponsorshipProposalIntentParams as bA, type RemixOfferStatus as bB, type ResolvedConfig as bC, type RetractSponsorshipBidIntentParams as bD, type RetryOptions as bE, type ServiceEventDeclaration as bF, type SetSponsorshipOfferOpenIntentParams as bG, type SortOrder as bH, type TierServiceId as bI, type TxResult as bJ, type UpdateCollectionProfileInput as bK, UserFacingError as bL, type WithdrawSponsorshipProposalIntentParams as bM, resolveConfig as bN, resolveFeeConfig as bO, type SealedOwner as bP, type ReceiptProviderLike as bQ, type WalletExecutor as bR, type ExecutedTransaction as bS, type PasskeyOwner as bT, type CreatedOwner as bU, InvalidRecoveryKeyError as bV, type OwnerSigner as bW, type PasskeyConfig as bX, type RecoveryKey as bY, createPasskeyOwner as bZ, encodeRecoveryKey as b_, type IPType as ba, type IntentCall as bb, type IntentStatus as bc, type IntentType as bd, type IpAttribute as be, type IpNftMetadata as bf, type LaunchCoinIntentParams as bg, type MakeOfferIntentParams as bh, MedialaneApiError as bi, type MedialaneConfig as bj, type MedialaneErrorCode as bk, type MintMembershipsParams as bl, type MintTicketsParams as bm, OPEN_LICENSES as bn, type OfferItem as bo, type OpenLicense as bp, type Order as bq, type OrderDetails as br, type OrderParameters as bs, type OrderStatus as bt, PasskeyCancelledError as bu, type PlaceSponsorshipBidIntentParams as bv, type PopBatchEligibilityItem as bw, type PopClaimStatus as bx, type PopEventType as by, type ProposeSponsorshipParams 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 ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
package/dist/index.cjs
CHANGED
|
@@ -347,9 +347,6 @@ var ApiClient = class {
|
|
|
347
347
|
patch(path, body) {
|
|
348
348
|
return this.request(path, { method: "PATCH", body: JSON.stringify(body) });
|
|
349
349
|
}
|
|
350
|
-
del(path) {
|
|
351
|
-
return this.request(path, { method: "DELETE" });
|
|
352
|
-
}
|
|
353
350
|
bearer(siwsToken) {
|
|
354
351
|
return { Authorization: `Bearer ${siwsToken}` };
|
|
355
352
|
}
|
|
@@ -641,17 +638,6 @@ var ApiClient = class {
|
|
|
641
638
|
headers: this.asSubject(siwsToken)
|
|
642
639
|
});
|
|
643
640
|
}
|
|
644
|
-
getWebhooks() {
|
|
645
|
-
return this.get("/v1/portal/webhooks");
|
|
646
|
-
}
|
|
647
|
-
createWebhook(params) {
|
|
648
|
-
return this.post("/v1/portal/webhooks", params);
|
|
649
|
-
}
|
|
650
|
-
deleteWebhook(id) {
|
|
651
|
-
return this.del(
|
|
652
|
-
`/v1/portal/webhooks/${id}`
|
|
653
|
-
);
|
|
654
|
-
}
|
|
655
641
|
async claimCollection(contractAddress, walletAddress, siwsToken) {
|
|
656
642
|
return this.request("/v1/collections/claim", {
|
|
657
643
|
method: "POST",
|