@medialane/sdk 0.153.0 → 0.154.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 CHANGED
@@ -510,7 +510,6 @@ without reaching a reader.
510
510
  | `rpcUrl` | `string` | the chain's registry `rpcUrl` | JSON-RPC URL override |
511
511
  | `backendUrl` | `string` | (none) | Medialane API base URL (required for `.api.*`) |
512
512
  | `apiKey` | `string` | (none) | API key from [Medialane Portal](https://portal.medialane.io) |
513
- | `appSource` | `string` | (none) | The registered name of your app (upper case, for example `MEDIALANE_IO`). Sent as `x-app-source` on every request, so sign-ups and sign-ins are recorded under your app |
514
513
  | `marketplace721Contract` | `string` | Mainnet default | ERC-721 marketplace protocol override |
515
514
  | `marketplaceContract` | `string` | Mainnet default | Legacy alias for `marketplace721Contract` |
516
515
  | `marketplace1155Contract` | `string` | Mainnet default | ERC-1155 marketplace protocol override |
@@ -42,7 +42,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
42
42
  rpcUrl: z.ZodOptional<z.ZodString>;
43
43
  backendUrl: z.ZodOptional<z.ZodString>;
44
44
  apiKey: z.ZodOptional<z.ZodString>;
45
- appSource: z.ZodOptional<z.ZodString>;
46
45
  marketplace721Contract: z.ZodOptional<z.ZodString>;
47
46
  marketplaceContract: z.ZodOptional<z.ZodString>;
48
47
  marketplace1155Contract: z.ZodOptional<z.ZodString>;
@@ -86,7 +85,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
86
85
  rpcUrl?: string | undefined;
87
86
  backendUrl?: string | undefined;
88
87
  apiKey?: string | undefined;
89
- appSource?: string | undefined;
90
88
  marketplace721Contract?: string | undefined;
91
89
  marketplaceContract?: string | undefined;
92
90
  marketplace1155Contract?: string | undefined;
@@ -110,7 +108,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
110
108
  chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN" | undefined;
111
109
  backendUrl?: string | undefined;
112
110
  apiKey?: string | undefined;
113
- appSource?: string | undefined;
114
111
  marketplace721Contract?: string | undefined;
115
112
  marketplaceContract?: string | undefined;
116
113
  marketplace1155Contract?: string | undefined;
@@ -136,7 +133,6 @@ interface ResolvedConfig {
136
133
  rpcUrl: string;
137
134
  backendUrl: string | undefined;
138
135
  apiKey: string | undefined;
139
- appSource: string | undefined;
140
136
  marketplace721Contract: string;
141
137
  marketplaceContract: string;
142
138
  marketplace1155Contract: string;
@@ -198,7 +194,6 @@ type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_OR
198
194
  type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
199
195
  type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
200
196
  type WebhookStatus = "ACTIVE" | "DISABLED";
201
- type ApiKeyStatus = "ACTIVE" | "REVOKED";
202
197
  type TenantPlan = "FREE" | "PREMIUM";
203
198
  interface ApiMeta {
204
199
  page: number;
@@ -807,7 +802,6 @@ interface ApiPortalKey {
807
802
  id: string;
808
803
  prefix: string;
809
804
  label: string | null;
810
- status: ApiKeyStatus;
811
805
  lastUsedAt: string | null;
812
806
  createdAt: string;
813
807
  }
@@ -1271,7 +1265,7 @@ declare class ApiClient {
1271
1265
  private readonly chain;
1272
1266
  private readonly baseHeaders;
1273
1267
  private readonly retryOptions;
1274
- constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain, appSource?: string);
1268
+ constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain);
1275
1269
  private addr;
1276
1270
  private request;
1277
1271
  private get;
@@ -1348,7 +1342,6 @@ declare class ApiClient {
1348
1342
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1349
1343
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1350
1344
  id: string;
1351
- status: string;
1352
1345
  }>>;
1353
1346
  getCreditHistory(siwsToken?: string): Promise<ApiResponse<ApiCreditPayment[]>>;
1354
1347
  getSpend(siwsToken?: string): Promise<ApiResponse<ApiPortalSpend>>;
@@ -1714,4 +1707,4 @@ declare class UserFacingError extends Error {
1714
1707
  constructor(message: string);
1715
1708
  }
1716
1709
 
1717
- 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, InvalidRecoveryKeyError as c0, type OwnerSigner as c1, type PasskeyConfig as c2, type RecoveryKey as c3, createPasskeyOwner as c4, encodeRecoveryKey as c5, parseRecoveryKey as c6, 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 };
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 CreateRemixOfferParams 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 ApiWebhookCreated as aF, type ApiWebhookEndpoint as aG, type AutoRemixOfferParams as aH, type CancelOrderIntentParams as aI, type ChainFilter as aJ, type CheckoutIntentItem as aK, type ClaimConditions as aL, type CollectionServiceId as aM, type CollectionSort as aN, type CollectionTokensSort as aO, type ConfirmRemixOfferParams as aP, type ConfirmSelfRemixParams as aQ, type ConsiderationItem as aR, type CreateCheckoutIntentParams as aS, type CreateCoinIntentParams as aT, type CreateCollectionIntentParams as aU, type CreateCounterOfferIntentParams as aV, type CreateDropParams as aW, type CreateListingIntentParams as aX, type CreateMembershipParams as aY, type CreateMintIntentParams as aZ, type CreatePopCollectionParams 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, InvalidRecoveryKeyError as b$, type CreateSponsorshipOfferIntentParams as b0, type CreateSponsorshipOfferParams as b1, type CreateSponsorshipProposalIntentParams as b2, type CreateTicketParams as b3, type CreateTierIntentParams as b4, type CreateWebhookParams as b5, type DropMintStatus as b6, type EmissionParams as b7, type EnforcementDeclaration as b8, type FactoryFamilyServiceId as b9, type PopClaimStatus as bA, type PopEventType as bB, type ProposeSponsorshipParams as bC, type RejectSponsorshipProposalIntentParams as bD, type RemixOfferStatus as bE, type ResolvedConfig as bF, type RetractSponsorshipBidIntentParams as bG, type RetryOptions as bH, type ServiceEventDeclaration as bI, type SetSponsorshipOfferOpenIntentParams as bJ, type SortOrder as bK, type TenantPlan as bL, type TierServiceId as bM, type TxResult as bN, type UpdateCollectionProfileInput as bO, UserFacingError as bP, type WebhookEventType as bQ, type WebhookStatus as bR, type WithdrawSponsorshipProposalIntentParams as bS, resolveConfig as bT, resolveFeeConfig as bU, type SealedOwner as bV, type ReceiptProviderLike as bW, type WalletExecutor as bX, type ExecutedTransaction as bY, type PasskeyOwner as bZ, type CreatedOwner as b_, type FeeConfig as ba, FeeConfigSchema as bb, type FulfillOrderIntentParams as bc, type IPType as bd, type IntentCall as be, type IntentStatus as bf, type IntentType as bg, type IpAttribute as bh, type IpNftMetadata as bi, type LaunchCoinIntentParams as bj, type MakeOfferIntentParams as bk, MedialaneApiError as bl, type MedialaneConfig as bm, type MedialaneErrorCode as bn, type MintMembershipsParams as bo, type MintTicketsParams as bp, OPEN_LICENSES as bq, type OfferItem as br, type OpenLicense as bs, type Order as bt, type OrderDetails as bu, type OrderParameters as bv, type OrderStatus as bw, PasskeyCancelledError as bx, type PlaceSponsorshipBidIntentParams as by, type PopBatchEligibilityItem as bz, type ActivityType as c, type OwnerSigner as c0, type PasskeyConfig as c1, type RecoveryKey as c2, createPasskeyOwner as c3, encodeRecoveryKey as c4, parseRecoveryKey as c5, 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 };
@@ -42,7 +42,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
42
42
  rpcUrl: z.ZodOptional<z.ZodString>;
43
43
  backendUrl: z.ZodOptional<z.ZodString>;
44
44
  apiKey: z.ZodOptional<z.ZodString>;
45
- appSource: z.ZodOptional<z.ZodString>;
46
45
  marketplace721Contract: z.ZodOptional<z.ZodString>;
47
46
  marketplaceContract: z.ZodOptional<z.ZodString>;
48
47
  marketplace1155Contract: z.ZodOptional<z.ZodString>;
@@ -86,7 +85,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
86
85
  rpcUrl?: string | undefined;
87
86
  backendUrl?: string | undefined;
88
87
  apiKey?: string | undefined;
89
- appSource?: string | undefined;
90
88
  marketplace721Contract?: string | undefined;
91
89
  marketplaceContract?: string | undefined;
92
90
  marketplace1155Contract?: string | undefined;
@@ -110,7 +108,6 @@ declare const MedialaneConfigSchema: z.ZodObject<{
110
108
  chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN" | undefined;
111
109
  backendUrl?: string | undefined;
112
110
  apiKey?: string | undefined;
113
- appSource?: string | undefined;
114
111
  marketplace721Contract?: string | undefined;
115
112
  marketplaceContract?: string | undefined;
116
113
  marketplace1155Contract?: string | undefined;
@@ -136,7 +133,6 @@ interface ResolvedConfig {
136
133
  rpcUrl: string;
137
134
  backendUrl: string | undefined;
138
135
  apiKey: string | undefined;
139
- appSource: string | undefined;
140
136
  marketplace721Contract: string;
141
137
  marketplaceContract: string;
142
138
  marketplace1155Contract: string;
@@ -198,7 +194,6 @@ type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_OR
198
194
  type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
199
195
  type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
200
196
  type WebhookStatus = "ACTIVE" | "DISABLED";
201
- type ApiKeyStatus = "ACTIVE" | "REVOKED";
202
197
  type TenantPlan = "FREE" | "PREMIUM";
203
198
  interface ApiMeta {
204
199
  page: number;
@@ -807,7 +802,6 @@ interface ApiPortalKey {
807
802
  id: string;
808
803
  prefix: string;
809
804
  label: string | null;
810
- status: ApiKeyStatus;
811
805
  lastUsedAt: string | null;
812
806
  createdAt: string;
813
807
  }
@@ -1271,7 +1265,7 @@ declare class ApiClient {
1271
1265
  private readonly chain;
1272
1266
  private readonly baseHeaders;
1273
1267
  private readonly retryOptions;
1274
- constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain, appSource?: string);
1268
+ constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain);
1275
1269
  private addr;
1276
1270
  private request;
1277
1271
  private get;
@@ -1348,7 +1342,6 @@ declare class ApiClient {
1348
1342
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1349
1343
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1350
1344
  id: string;
1351
- status: string;
1352
1345
  }>>;
1353
1346
  getCreditHistory(siwsToken?: string): Promise<ApiResponse<ApiCreditPayment[]>>;
1354
1347
  getSpend(siwsToken?: string): Promise<ApiResponse<ApiPortalSpend>>;
@@ -1714,4 +1707,4 @@ declare class UserFacingError extends Error {
1714
1707
  constructor(message: string);
1715
1708
  }
1716
1709
 
1717
- 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, InvalidRecoveryKeyError as c0, type OwnerSigner as c1, type PasskeyConfig as c2, type RecoveryKey as c3, createPasskeyOwner as c4, encodeRecoveryKey as c5, parseRecoveryKey as c6, 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 };
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 CreateRemixOfferParams 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 ApiWebhookCreated as aF, type ApiWebhookEndpoint as aG, type AutoRemixOfferParams as aH, type CancelOrderIntentParams as aI, type ChainFilter as aJ, type CheckoutIntentItem as aK, type ClaimConditions as aL, type CollectionServiceId as aM, type CollectionSort as aN, type CollectionTokensSort as aO, type ConfirmRemixOfferParams as aP, type ConfirmSelfRemixParams as aQ, type ConsiderationItem as aR, type CreateCheckoutIntentParams as aS, type CreateCoinIntentParams as aT, type CreateCollectionIntentParams as aU, type CreateCounterOfferIntentParams as aV, type CreateDropParams as aW, type CreateListingIntentParams as aX, type CreateMembershipParams as aY, type CreateMintIntentParams as aZ, type CreatePopCollectionParams 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, InvalidRecoveryKeyError as b$, type CreateSponsorshipOfferIntentParams as b0, type CreateSponsorshipOfferParams as b1, type CreateSponsorshipProposalIntentParams as b2, type CreateTicketParams as b3, type CreateTierIntentParams as b4, type CreateWebhookParams as b5, type DropMintStatus as b6, type EmissionParams as b7, type EnforcementDeclaration as b8, type FactoryFamilyServiceId as b9, type PopClaimStatus as bA, type PopEventType as bB, type ProposeSponsorshipParams as bC, type RejectSponsorshipProposalIntentParams as bD, type RemixOfferStatus as bE, type ResolvedConfig as bF, type RetractSponsorshipBidIntentParams as bG, type RetryOptions as bH, type ServiceEventDeclaration as bI, type SetSponsorshipOfferOpenIntentParams as bJ, type SortOrder as bK, type TenantPlan as bL, type TierServiceId as bM, type TxResult as bN, type UpdateCollectionProfileInput as bO, UserFacingError as bP, type WebhookEventType as bQ, type WebhookStatus as bR, type WithdrawSponsorshipProposalIntentParams as bS, resolveConfig as bT, resolveFeeConfig as bU, type SealedOwner as bV, type ReceiptProviderLike as bW, type WalletExecutor as bX, type ExecutedTransaction as bY, type PasskeyOwner as bZ, type CreatedOwner as b_, type FeeConfig as ba, FeeConfigSchema as bb, type FulfillOrderIntentParams as bc, type IPType as bd, type IntentCall as be, type IntentStatus as bf, type IntentType as bg, type IpAttribute as bh, type IpNftMetadata as bi, type LaunchCoinIntentParams as bj, type MakeOfferIntentParams as bk, MedialaneApiError as bl, type MedialaneConfig as bm, type MedialaneErrorCode as bn, type MintMembershipsParams as bo, type MintTicketsParams as bp, OPEN_LICENSES as bq, type OfferItem as br, type OpenLicense as bs, type Order as bt, type OrderDetails as bu, type OrderParameters as bv, type OrderStatus as bw, PasskeyCancelledError as bx, type PlaceSponsorshipBidIntentParams as by, type PopBatchEligibilityItem as bz, type ActivityType as c, type OwnerSigner as c0, type PasskeyConfig as c1, type RecoveryKey as c2, createPasskeyOwner as c3, encodeRecoveryKey as c4, parseRecoveryKey as c5, 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
@@ -107,7 +107,6 @@ var MedialaneConfigSchema = zod.z.object({
107
107
  rpcUrl: zod.z.string().url().optional(),
108
108
  backendUrl: zod.z.string().url().optional(),
109
109
  apiKey: zod.z.string().optional(),
110
- appSource: zod.z.string().regex(/^[A-Z][A-Z0-9_]*$/).optional(),
111
110
  marketplace721Contract: zod.z.string().optional(),
112
111
  marketplaceContract: zod.z.string().optional(),
113
112
  marketplace1155Contract: zod.z.string().optional(),
@@ -132,7 +131,6 @@ function resolveConfig(raw) {
132
131
  rpcUrl: parsed.rpcUrl ?? coords.rpcUrl,
133
132
  backendUrl: parsed.backendUrl,
134
133
  apiKey: parsed.apiKey,
135
- appSource: parsed.appSource,
136
134
  marketplace721Contract,
137
135
  marketplaceContract: marketplace721Contract,
138
136
  marketplace1155Contract: parsed.marketplace1155Contract ?? sn.marketplace1155,
@@ -295,13 +293,10 @@ function parseRetryAfter(value) {
295
293
  return void 0;
296
294
  }
297
295
  var ApiClient = class {
298
- constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET", appSource) {
296
+ constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET") {
299
297
  this.baseUrl = baseUrl;
300
298
  this.chain = chain;
301
- this.baseHeaders = {
302
- ...apiKey ? { "x-api-key": apiKey } : {},
303
- ...appSource ? { "x-app-source": appSource } : {}
304
- };
299
+ this.baseHeaders = apiKey ? { "x-api-key": apiKey } : {};
305
300
  this.retryOptions = retryOptions;
306
301
  }
307
302
  addr(a) {