@medialane/sdk 0.76.0 → 0.78.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/index.cjs +16 -4
- 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 +16 -4
- package/dist/index.js.map +1 -1
- package/dist/{services-BhOmAkmL.d.ts → services-L8rbm-gZ.d.ts} +11 -1
- package/dist/{services-CaQGkLlb.d.cts → services-gpLj6m2X.d.cts} +11 -1
- package/dist/starknet/index.cjs +16 -4
- 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 +16 -4
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aV as ResolvedConfig, a$ as TxResult, an as CreatePopCollectionParams, ab as ClaimConditions, aj as CreateDropParams, aq as CreateTicketParams, aI as MintTicketsParams, al as CreateMembershipParams, aH as MintMembershipsParams, ap as CreateSponsorshipOfferParams, aT as ProposeSponsorshipParams, i as ApiClient, aF as MedialaneConfig, aG as MedialaneErrorCode, aN as OrderDetails, aW as ResolvedFeeConfig } from '../services-
|
|
1
|
+
import { aV as ResolvedConfig, a$ as TxResult, an as CreatePopCollectionParams, ab as ClaimConditions, aj as CreateDropParams, aq as CreateTicketParams, aI as MintTicketsParams, al as CreateMembershipParams, aH as MintMembershipsParams, ap as CreateSponsorshipOfferParams, aT as ProposeSponsorshipParams, i as ApiClient, aF as MedialaneConfig, aG as MedialaneErrorCode, aN as OrderDetails, aW as ResolvedFeeConfig } from '../services-gpLj6m2X.cjs';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-sIc3OCpo.cjs';
|
|
4
4
|
import 'zod';
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aV as ResolvedConfig, a$ as TxResult, an as CreatePopCollectionParams, ab as ClaimConditions, aj as CreateDropParams, aq as CreateTicketParams, aI as MintTicketsParams, al as CreateMembershipParams, aH as MintMembershipsParams, ap as CreateSponsorshipOfferParams, aT as ProposeSponsorshipParams, i as ApiClient, aF as MedialaneConfig, aG as MedialaneErrorCode, aN as OrderDetails, aW as ResolvedFeeConfig } from '../services-
|
|
1
|
+
import { aV as ResolvedConfig, a$ as TxResult, an as CreatePopCollectionParams, ab as ClaimConditions, aj as CreateDropParams, aq as CreateTicketParams, aI as MintTicketsParams, al as CreateMembershipParams, aH as MintMembershipsParams, ap as CreateSponsorshipOfferParams, aT as ProposeSponsorshipParams, i as ApiClient, aF as MedialaneConfig, aG as MedialaneErrorCode, aN as OrderDetails, aW as ResolvedFeeConfig } from '../services-L8rbm-gZ.js';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-sIc3OCpo.js';
|
|
4
4
|
import 'zod';
|
package/dist/starknet/index.js
CHANGED
|
@@ -565,10 +565,10 @@ var ApiClient = class {
|
|
|
565
565
|
{ method: "PATCH", body: JSON.stringify(data), headers: this.bearer(clerkToken) }
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
{
|
|
568
|
+
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
569
|
+
getWalletActivity(address, chain = "STARKNET") {
|
|
570
|
+
return this.get(
|
|
571
|
+
`/v1/wallet-activity?address=${this.addr(address)}&chain=${chain}`
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
574
|
getGatedContent(contractAddress, clerkToken) {
|
|
@@ -809,6 +809,18 @@ var ApiClient = class {
|
|
|
809
809
|
getCoin(contract) {
|
|
810
810
|
return this.get(`/v1/coins/${this.addr(contract)}`);
|
|
811
811
|
}
|
|
812
|
+
/**
|
|
813
|
+
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
814
|
+
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
815
|
+
* `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
|
|
816
|
+
*/
|
|
817
|
+
updateCoinProfile(contract, data, siwsToken) {
|
|
818
|
+
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
819
|
+
method: "PATCH",
|
|
820
|
+
body: JSON.stringify(data),
|
|
821
|
+
headers: this.bearer(siwsToken)
|
|
822
|
+
});
|
|
823
|
+
}
|
|
812
824
|
// ─── Collection Drop ────────────────────────────────────────────────────────
|
|
813
825
|
getDropCollections(opts = {}) {
|
|
814
826
|
return this.getCollections(opts.page ?? 1, opts.limit ?? 20, void 0, opts.sort, "COLLECTION_DROP");
|