@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 +0 -1
- package/dist/{errors-DQRDzDiT.d.cts → errors-BfiX06G4.d.cts} +2 -9
- package/dist/{errors-dgfLd7nS.d.ts → errors-CKO_JGDP.d.ts} +2 -9
- package/dist/index.cjs +2 -7
- 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 +2 -7
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +5 -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 +5 -14
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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
|
|
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"
|
|
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) {
|