@medialane/sdk 0.153.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 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
- - Tenant portal: API keys, webhooks, usage
29
+ - Portal: API keys, credits, usage
30
30
  - ERC-1155 multi-holder ownership via `token.balances`
31
31
 
32
32
  **IP Metadata Types**
@@ -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;
@@ -196,10 +192,6 @@ type SortOrder = "price_asc" | "price_desc" | "recent";
196
192
  type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
197
193
  type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
198
194
  type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
199
- type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
200
- type WebhookStatus = "ACTIVE" | "DISABLED";
201
- type ApiKeyStatus = "ACTIVE" | "REVOKED";
202
- type TenantPlan = "FREE" | "PREMIUM";
203
195
  interface ApiMeta {
204
196
  page: number;
205
197
  limit: number;
@@ -799,7 +791,6 @@ interface ApiMetadataUpload {
799
791
  interface ApiPortalMe {
800
792
  id: string;
801
793
  accountId: string;
802
- plan: TenantPlan;
803
794
  status: string;
804
795
  creditBalance: number;
805
796
  }
@@ -807,7 +798,6 @@ interface ApiPortalKey {
807
798
  id: string;
808
799
  prefix: string;
809
800
  label: string | null;
810
- status: ApiKeyStatus;
811
801
  lastUsedAt: string | null;
812
802
  createdAt: string;
813
803
  }
@@ -868,21 +858,6 @@ interface ApiPortalSpend {
868
858
  credited: number;
869
859
  drift: number;
870
860
  }
871
- interface ApiWebhookEndpoint {
872
- id: string;
873
- url: string;
874
- events: WebhookEventType[];
875
- status: WebhookStatus;
876
- createdAt: string;
877
- }
878
- interface ApiWebhookCreated extends ApiWebhookEndpoint {
879
- secret: string;
880
- }
881
- interface CreateWebhookParams {
882
- url: string;
883
- events: WebhookEventType[];
884
- label?: string;
885
- }
886
861
  interface ApiCollectionProfile {
887
862
  contractAddress: string;
888
863
  chain: string;
@@ -1271,13 +1246,12 @@ declare class ApiClient {
1271
1246
  private readonly chain;
1272
1247
  private readonly baseHeaders;
1273
1248
  private readonly retryOptions;
1274
- constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain, appSource?: string);
1249
+ constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain);
1275
1250
  private addr;
1276
1251
  private request;
1277
1252
  private get;
1278
1253
  private post;
1279
1254
  private patch;
1280
- private del;
1281
1255
  private bearer;
1282
1256
  private asSubject;
1283
1257
  getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
@@ -1348,7 +1322,6 @@ declare class ApiClient {
1348
1322
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1349
1323
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1350
1324
  id: string;
1351
- status: string;
1352
1325
  }>>;
1353
1326
  getCreditHistory(siwsToken?: string): Promise<ApiResponse<ApiCreditPayment[]>>;
1354
1327
  getSpend(siwsToken?: string): Promise<ApiResponse<ApiPortalSpend>>;
@@ -1374,12 +1347,6 @@ declare class ApiClient {
1374
1347
  cancelFunding(id: string, siwsToken?: string): Promise<ApiResponse<{
1375
1348
  status: string;
1376
1349
  }>>;
1377
- getWebhooks(): Promise<ApiResponse<ApiWebhookEndpoint[]>>;
1378
- createWebhook(params: CreateWebhookParams): Promise<ApiResponse<ApiWebhookCreated>>;
1379
- deleteWebhook(id: string): Promise<ApiResponse<{
1380
- id: string;
1381
- status: string;
1382
- }>>;
1383
1350
  claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
1384
1351
  verified: boolean;
1385
1352
  collection?: ApiCollection;
@@ -1714,4 +1681,4 @@ declare class UserFacingError extends Error {
1714
1681
  constructor(message: string);
1715
1682
  }
1716
1683
 
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 };
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 };
@@ -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;
@@ -196,10 +192,6 @@ type SortOrder = "price_asc" | "price_desc" | "recent";
196
192
  type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
197
193
  type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
198
194
  type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
199
- type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER";
200
- type WebhookStatus = "ACTIVE" | "DISABLED";
201
- type ApiKeyStatus = "ACTIVE" | "REVOKED";
202
- type TenantPlan = "FREE" | "PREMIUM";
203
195
  interface ApiMeta {
204
196
  page: number;
205
197
  limit: number;
@@ -799,7 +791,6 @@ interface ApiMetadataUpload {
799
791
  interface ApiPortalMe {
800
792
  id: string;
801
793
  accountId: string;
802
- plan: TenantPlan;
803
794
  status: string;
804
795
  creditBalance: number;
805
796
  }
@@ -807,7 +798,6 @@ interface ApiPortalKey {
807
798
  id: string;
808
799
  prefix: string;
809
800
  label: string | null;
810
- status: ApiKeyStatus;
811
801
  lastUsedAt: string | null;
812
802
  createdAt: string;
813
803
  }
@@ -868,21 +858,6 @@ interface ApiPortalSpend {
868
858
  credited: number;
869
859
  drift: number;
870
860
  }
871
- interface ApiWebhookEndpoint {
872
- id: string;
873
- url: string;
874
- events: WebhookEventType[];
875
- status: WebhookStatus;
876
- createdAt: string;
877
- }
878
- interface ApiWebhookCreated extends ApiWebhookEndpoint {
879
- secret: string;
880
- }
881
- interface CreateWebhookParams {
882
- url: string;
883
- events: WebhookEventType[];
884
- label?: string;
885
- }
886
861
  interface ApiCollectionProfile {
887
862
  contractAddress: string;
888
863
  chain: string;
@@ -1271,13 +1246,12 @@ declare class ApiClient {
1271
1246
  private readonly chain;
1272
1247
  private readonly baseHeaders;
1273
1248
  private readonly retryOptions;
1274
- constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain, appSource?: string);
1249
+ constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain);
1275
1250
  private addr;
1276
1251
  private request;
1277
1252
  private get;
1278
1253
  private post;
1279
1254
  private patch;
1280
- private del;
1281
1255
  private bearer;
1282
1256
  private asSubject;
1283
1257
  getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
@@ -1348,7 +1322,6 @@ declare class ApiClient {
1348
1322
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1349
1323
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1350
1324
  id: string;
1351
- status: string;
1352
1325
  }>>;
1353
1326
  getCreditHistory(siwsToken?: string): Promise<ApiResponse<ApiCreditPayment[]>>;
1354
1327
  getSpend(siwsToken?: string): Promise<ApiResponse<ApiPortalSpend>>;
@@ -1374,12 +1347,6 @@ declare class ApiClient {
1374
1347
  cancelFunding(id: string, siwsToken?: string): Promise<ApiResponse<{
1375
1348
  status: string;
1376
1349
  }>>;
1377
- getWebhooks(): Promise<ApiResponse<ApiWebhookEndpoint[]>>;
1378
- createWebhook(params: CreateWebhookParams): Promise<ApiResponse<ApiWebhookCreated>>;
1379
- deleteWebhook(id: string): Promise<ApiResponse<{
1380
- id: string;
1381
- status: string;
1382
- }>>;
1383
1350
  claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{
1384
1351
  verified: boolean;
1385
1352
  collection?: ApiCollection;
@@ -1714,4 +1681,4 @@ declare class UserFacingError extends Error {
1714
1681
  constructor(message: string);
1715
1682
  }
1716
1683
 
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 };
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
@@ -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) {
@@ -352,9 +347,6 @@ var ApiClient = class {
352
347
  patch(path, body) {
353
348
  return this.request(path, { method: "PATCH", body: JSON.stringify(body) });
354
349
  }
355
- del(path) {
356
- return this.request(path, { method: "DELETE" });
357
- }
358
350
  bearer(siwsToken) {
359
351
  return { Authorization: `Bearer ${siwsToken}` };
360
352
  }
@@ -646,17 +638,6 @@ var ApiClient = class {
646
638
  headers: this.asSubject(siwsToken)
647
639
  });
648
640
  }
649
- getWebhooks() {
650
- return this.get("/v1/portal/webhooks");
651
- }
652
- createWebhook(params) {
653
- return this.post("/v1/portal/webhooks", params);
654
- }
655
- deleteWebhook(id) {
656
- return this.del(
657
- `/v1/portal/webhooks/${id}`
658
- );
659
- }
660
641
  async claimCollection(contractAddress, walletAddress, siwsToken) {
661
642
  return this.request("/v1/collections/claim", {
662
643
  method: "POST",