@medialane/sdk 0.198.0 → 0.199.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 +85 -39
- package/dist/chains-CmwjZVU7.d.cts +85 -0
- package/dist/chains-CmwjZVU7.d.ts +85 -0
- package/dist/chunk-3HPMEDYH.cjs +967 -0
- package/dist/chunk-3HPMEDYH.cjs.map +1 -0
- package/dist/{chunk-3ME5YKTW.js → chunk-5KY6P434.js} +2 -2
- package/dist/chunk-5KY6P434.js.map +1 -0
- package/dist/chunk-F7W6IWTL.js +660 -0
- package/dist/chunk-F7W6IWTL.js.map +1 -0
- package/dist/chunk-GIBIHGSV.js +916 -0
- package/dist/chunk-GIBIHGSV.js.map +1 -0
- package/dist/chunk-GV4A2WNO.js +444 -0
- package/dist/chunk-GV4A2WNO.js.map +1 -0
- package/dist/{chunk-7EYJC5CB.cjs → chunk-H2NJB3AK.cjs} +2 -2
- package/dist/chunk-H2NJB3AK.cjs.map +1 -0
- package/dist/chunk-KGAGWULG.js +932 -0
- package/dist/chunk-KGAGWULG.js.map +1 -0
- package/dist/chunk-MEJ47LC3.cjs +463 -0
- package/dist/chunk-MEJ47LC3.cjs.map +1 -0
- package/dist/chunk-W76AZ5WC.cjs +376 -0
- package/dist/chunk-W76AZ5WC.cjs.map +1 -0
- package/dist/chunk-WRBXQPRL.js +323 -0
- package/dist/chunk-WRBXQPRL.js.map +1 -0
- package/dist/chunk-ZLMIHQWM.cjs +975 -0
- package/dist/chunk-ZLMIHQWM.cjs.map +1 -0
- package/dist/chunk-ZVANOWIB.cjs +688 -0
- package/dist/chunk-ZVANOWIB.cjs.map +1 -0
- package/dist/contract/index.cjs +88 -261
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +139 -4
- package/dist/contract/index.d.ts +139 -4
- package/dist/contract/index.js +4 -220
- package/dist/contract/index.js.map +1 -1
- package/dist/evm/index.cjs +3 -3
- package/dist/evm/index.d.cts +2 -1
- package/dist/evm/index.d.ts +2 -1
- package/dist/evm/index.js +1 -1
- package/dist/fetch-Cx9Pr7-B.d.cts +3 -0
- package/dist/fetch-Cx9Pr7-B.d.ts +3 -0
- package/dist/index.cjs +177 -833
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -131
- package/dist/index.d.ts +53 -131
- package/dist/index.js +6 -659
- package/dist/index.js.map +1 -1
- package/dist/passkey-errors-Bu6I_5rn.d.ts +1041 -0
- package/dist/passkey-errors-D0XNQ3_g.d.cts +1041 -0
- package/dist/provisioning-CwRkCN8D.d.cts +14 -0
- package/dist/provisioning-CwRkCN8D.d.ts +14 -0
- package/dist/{provisioning-BUYiU8Tr.d.ts → responses-BLpM_cH_.d.cts} +40 -48
- package/dist/{provisioning-BUYiU8Tr.d.cts → responses-BLpM_cH_.d.ts} +40 -48
- package/dist/server/index.cjs +117 -0
- package/dist/server/index.cjs.map +1 -0
- package/dist/server/index.d.cts +98 -0
- package/dist/server/index.d.ts +98 -0
- package/dist/server/index.js +4 -0
- package/dist/server/index.js.map +1 -0
- package/dist/services-C9CkOsYi.d.cts +728 -0
- package/dist/services-CI62hzNf.d.ts +728 -0
- package/dist/solana/index.cjs +2 -2
- package/dist/solana/index.d.cts +2 -1
- package/dist/solana/index.d.ts +2 -1
- package/dist/solana/index.js +1 -1
- package/dist/starknet/index.cjs +898 -1729
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +98 -467
- package/dist/starknet/index.d.ts +98 -467
- package/dist/starknet/index.js +704 -1680
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +2 -2
- package/dist/stellar/index.d.cts +2 -1
- package/dist/stellar/index.d.ts +2 -1
- package/dist/stellar/index.js +1 -1
- package/dist/types-BW6ktwcT.d.ts +71 -0
- package/dist/types-BftPOVEJ.d.cts +71 -0
- package/dist/wallet/index.cjs +240 -0
- package/dist/wallet/index.cjs.map +1 -0
- package/dist/wallet/index.d.cts +319 -0
- package/dist/wallet/index.d.ts +319 -0
- package/dist/wallet/index.js +7 -0
- package/dist/wallet/index.js.map +1 -0
- package/package.json +13 -2
- package/dist/chunk-2R7XBA34.cjs +0 -1938
- package/dist/chunk-2R7XBA34.cjs.map +0 -1
- package/dist/chunk-3ME5YKTW.js.map +0 -1
- package/dist/chunk-6WVUUBFI.js +0 -1853
- package/dist/chunk-6WVUUBFI.js.map +0 -1
- package/dist/chunk-7EYJC5CB.cjs.map +0 -1
- package/dist/errors-CZm-NZK0.d.cts +0 -1754
- package/dist/errors-h6H6cj3Q.d.ts +0 -1754
- package/dist/types-DC4jNPAF.d.cts +0 -153
- package/dist/types-DC4jNPAF.d.ts +0 -153
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
export { A as
|
|
1
|
+
export { A as ActivityApi, a as AddSupplyParams, b as ApiClient, c as ApiClientOptions, B as BatchMintEditionParams, d as BearerSource, e as BusinessApi, C as ChainReadsApi, f as CoinsApi, g as CollectionsApi, h as CreateDropParams, i as CreateMembershipParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, l as CreateTicketParams, m as CreatorsApi, D as DeployCollectionParams, n as DropTerms, o as DropsApi, F as FeeConfig, p as FundingApi, G as GatedContent, I as IntentsApi, M as MedialaneApiError, q as MedialaneConfig, r as MedialaneError, s as MedialaneErrorCode, t as MetadataApi, u as MintEditionParams, v as MintMembershipsParams, w as MintTicketsParams, O as OrdersApi, P as PlatformApi, x as PortalApi, y as ProposeSponsorshipParams, z as ProvisioningResult, R as RemixApi, E as ResolvedConfig, H as ResolvedFeeConfig, J as RetryOptions, K as RewardsApi, S as SearchApi, L as SponsorshipApi, T as TokensApi, U as UserFacingError, N as resolveConfig, Q as resolveFeeConfig } from './services-C9CkOsYi.cjs';
|
|
2
|
+
import { F as FetchLike } from './fetch-Cx9Pr7-B.cjs';
|
|
3
|
+
import { S as ServiceDefinition, a as ServiceCapability } from './passkey-errors-D0XNQ3_g.cjs';
|
|
4
|
+
export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as AccountApi, d as ActivityType, e as ApiActivitiesQuery, f as ApiActivity, g as ApiActivityPrice, h as ApiAdminCollectionClaim, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, R as ApiMetadataSignedUrl, T as ApiMetadataUpload, U as ApiOrder, V as ApiOrderConsideration, W as ApiOrderOffer, X as ApiOrderPrice, Y as ApiOrderTokenMeta, Z as ApiOrderTxHash, _ as ApiOrdersQuery, $ as ApiPlatformStats, a0 as ApiPointEvent, a1 as ApiPortalKey, a2 as ApiPortalKeyCreated, a3 as ApiPortalMe, a4 as ApiPortalSpend, a5 as ApiPricing, a6 as ApiPricingRule, a7 as ApiPublicRemix, a8 as ApiRemixOffer, a9 as ApiRemixOfferPrice, aa as ApiRemixOffersQuery, ab as ApiReportTargetType, ac as ApiResponse, ad as ApiRewardsBadge, ae as ApiRewardsBatchEntry, af as ApiRewardsConfig, ag as ApiRewardsLeaderboardEntry, ah as ApiRewardsLevel, ai as ApiSearchCollectionResult, aj as ApiSearchCreatorResult, ak as ApiSearchResult, al as ApiSearchTokenResult, am as ApiSession, an as ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiSwapQuote, ax as ApiSwapQuoteRequest, ay as ApiTierOnchain, az as ApiToken, aA as ApiTokenBalance, aB as ApiTokenMetadata, aC as ApiTokensQuery, aD as ApiTxSyncResult, aE as ApiUserRewards, aF as ApiUserWallet, aG as ApiUsernameClaim, aH as ApiWalletActivity, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as CollectionServiceId, aN as CollectionSort, aO as CollectionTokensSort, aP as ConfirmRemixOfferParams, aQ as ConfirmSelfRemixParams, aR as CreateCheckoutIntentParams, aS as CreateCoinIntentParams, aT as CreateCollectionIntentParams, aU as CreateCommentIntentParams, aV as CreateCounterOfferIntentParams, aW as CreateDropClaimIntentParams, aX as CreateDropManageIntentParams, aY as CreateFundingTransferIntentParams, aZ as CreateGenesisMintIntentParams, a_ as CreateListingIntentParams, a$ as CreateMintIntentParams, b0 as CreatePopBurnIntentParams, b1 as CreatePopClaimIntentParams, b2 as CreatePopManageIntentParams, b3 as CreateRemixOfferParams, b4 as CreateSponsorshipOfferIntentParams, b5 as CreateSponsorshipProposalIntentParams, b6 as CreateSwapIntentParams, b7 as CreateTierIntentParams, b8 as CreateTransferCollectionOwnershipIntentParams, b9 as CreateTransferNftIntentParams, ba as CreateTransferTokenIntentParams, bb as CreateWalletManageIntentParams, bc as DeviceKeyMissingError, bd as DropManageAction, be as DropTermsBody, bf as EmissionParams, bg as EnforcementDeclaration, bh as FactoryFamilyServiceId, bi as FulfillOrderIntentParams, bj as IPType, bk as IntentCall, bl as IntentParamsByKind, bm as IntentStatus, bn as IntentType, bo as IpAttribute, bp as IpNftMetadata, bq as LaunchCoinIntentParams, br as MakeOfferIntentParams, bs as OPEN_LICENSES, bt as OpenLicense, bu as OrderStatus, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason, by as PlaceSponsorshipBidIntentParams, bz as PopManageAction, bA as RegisteredUser, bB as RejectSponsorshipProposalIntentParams, bC as RemixOfferStatus, bD as RetractSponsorshipBidIntentParams, bE as ServiceEventDeclaration, bF as SetSponsorshipOfferOpenIntentParams, bG as SortOrder, bH as TierServiceId, bI as UpdateCollectionProfileInput, bJ as WalletManageAction, bK as WithdrawSponsorshipProposalIntentParams } from './passkey-errors-D0XNQ3_g.cjs';
|
|
5
|
+
import { C as Chain } from './chains-CmwjZVU7.cjs';
|
|
6
|
+
export { a as CHAINS, b as ChainCoordinates, c as CoordinatesByChain, D as DEFAULT_CHAIN, E as EvmCoordinates, S as SolanaCoordinates, d as StarknetCoordinates, e as StellarCoordinates, g as getCoordinates, f as getStarknetCoordinates } from './chains-CmwjZVU7.cjs';
|
|
7
|
+
export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, AppGatewayConfig, AppSessionConfig, BackendMetadataConfig, BackendUploadResult, CappedBody, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, SiwsIdentity, createAppGateway, createAppSessionHandler, createImageProxyHandler, getBackendSignedUrl, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, readBodyWithCap, resolveSafeImageContentType, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken } from './server/index.cjs';
|
|
8
|
+
export { A as AdapterTxResult, a as AssetRef, C as CreateCollectionInput, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, V as VenueAdapter } from './types-BftPOVEJ.cjs';
|
|
5
9
|
import 'zod';
|
|
6
|
-
import './
|
|
10
|
+
import './responses-BLpM_cH_.cjs';
|
|
7
11
|
import 'starknet';
|
|
8
|
-
|
|
9
|
-
interface FeeEnv {
|
|
10
|
-
NEXT_PUBLIC_FEE_ENABLED?: string;
|
|
11
|
-
NEXT_PUBLIC_FEE_FUND_ADDRESS?: string;
|
|
12
|
-
NEXT_PUBLIC_FEE_MARKETPLACE_BPS?: string;
|
|
13
|
-
NEXT_PUBLIC_FEE_LAUNCHPAD_BPS?: string;
|
|
14
|
-
}
|
|
15
|
-
declare function resolveAppFeeConfig(env?: FeeEnv): ResolvedFeeConfig;
|
|
12
|
+
import './provisioning-CwRkCN8D.cjs';
|
|
16
13
|
|
|
17
14
|
type RunStatus = "DRAFT" | "PAID" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
18
15
|
interface RunQuoteLine {
|
|
@@ -132,10 +129,10 @@ declare class RunRequestError extends Error {
|
|
|
132
129
|
}
|
|
133
130
|
interface LaunchpadRunsClientOptions {
|
|
134
131
|
baseUrl: string;
|
|
135
|
-
fetchImpl?:
|
|
132
|
+
fetchImpl?: FetchLike;
|
|
136
133
|
}
|
|
137
134
|
declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
138
|
-
fetch:
|
|
135
|
+
fetch: FetchLike;
|
|
139
136
|
runBase: (id: string) => string;
|
|
140
137
|
runBatchBase: (id: string, index: number) => string;
|
|
141
138
|
runCollectionBase: (id: string) => string;
|
|
@@ -201,42 +198,61 @@ declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRuns
|
|
|
201
198
|
};
|
|
202
199
|
type LaunchpadRunsClient = ReturnType<typeof createLaunchpadRunsClient>;
|
|
203
200
|
|
|
201
|
+
interface OfferItem {
|
|
202
|
+
item_type: string;
|
|
203
|
+
token: string;
|
|
204
|
+
identifier_or_criteria: string;
|
|
205
|
+
amount: string;
|
|
206
|
+
}
|
|
207
|
+
interface ConsiderationItem extends OfferItem {
|
|
208
|
+
recipient: string;
|
|
209
|
+
}
|
|
210
|
+
interface OrderParameters {
|
|
211
|
+
offerer: string;
|
|
212
|
+
marketplace: string;
|
|
213
|
+
offer: OfferItem;
|
|
214
|
+
consideration: ConsiderationItem;
|
|
215
|
+
royalty_max_bps: string;
|
|
216
|
+
start_time: string;
|
|
217
|
+
end_time: string;
|
|
218
|
+
salt: string;
|
|
219
|
+
counter: string;
|
|
220
|
+
}
|
|
221
|
+
interface Order {
|
|
222
|
+
parameters: OrderParameters;
|
|
223
|
+
signature: string[];
|
|
224
|
+
}
|
|
225
|
+
interface TxResult {
|
|
226
|
+
txHash: string;
|
|
227
|
+
}
|
|
228
|
+
interface OrderDetails {
|
|
229
|
+
offerer: string;
|
|
230
|
+
offer: OfferItem;
|
|
231
|
+
consideration: ConsiderationItem;
|
|
232
|
+
royalty_max_bps: string;
|
|
233
|
+
start_time: bigint;
|
|
234
|
+
end_time: bigint;
|
|
235
|
+
order_status: string;
|
|
236
|
+
counter: string;
|
|
237
|
+
remaining_amount?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
204
240
|
declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
|
|
205
|
-
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
|
|
206
|
-
declare const STARKNET_MARKETPLACE_721_START_BLOCK: number;
|
|
207
241
|
declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
|
|
208
|
-
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
|
|
209
|
-
declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
|
|
210
242
|
declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
|
|
211
243
|
declare const STARKNET_DATA_TOKENIZATION_721_CONTRACT: `0x${string}`;
|
|
212
|
-
declare const STARKNET_COLLECTION_721_START_BLOCK: number;
|
|
213
|
-
declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
|
|
214
|
-
declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
|
|
215
244
|
declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
|
|
216
|
-
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
|
|
217
|
-
declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
|
|
218
|
-
declare const STARKNET_COLLECTION_1155_START_BLOCK: number;
|
|
219
245
|
declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
|
|
220
|
-
declare const
|
|
221
|
-
declare const STARKNET_POP_FACTORY_START_BLOCK: number | undefined;
|
|
246
|
+
declare const STARKNET_POP_FACTORY_START_BLOCK: number;
|
|
222
247
|
declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
|
|
223
|
-
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
224
248
|
declare const STARKNET_DROP_FACTORY_START_BLOCK: number;
|
|
225
249
|
declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
|
|
226
250
|
declare const STARKNET_IP_TICKETS_FACTORY_CONTRACT: `0x${string}`;
|
|
227
|
-
declare const STARKNET_IP_TICKET_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
228
251
|
declare const STARKNET_IP_CLUB_FACTORY_CONTRACT: `0x${string}`;
|
|
229
|
-
declare const STARKNET_IP_CLUB_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
230
252
|
declare const STARKNET_IP_SPONSORSHIP_CONTRACT: `0x${string}`;
|
|
231
|
-
declare const STARKNET_IP_SPONSORSHIP_CLASS_HASH: `0x${string}`;
|
|
232
253
|
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
|
|
233
|
-
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
234
|
-
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
235
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
236
|
-
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
237
254
|
declare const STARKNET_GENESIS_MINT_CONTRACT: `0x${string}`;
|
|
238
255
|
declare const STARKNET_GENESIS_NFT_URI = "ipfs://bafkreiag6wzov7migmxwx3wrtudvbx4ajrlbjopqw7uni7nn2nsxv4eykm";
|
|
239
|
-
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
240
256
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
241
257
|
readonly symbol: "USDC";
|
|
242
258
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -676,95 +692,6 @@ declare function stringifyBigInts(obj: unknown): unknown;
|
|
|
676
692
|
declare function u256ToBigInt(low: string, high: string): bigint;
|
|
677
693
|
declare function encodeU256(n: bigint): [string, string];
|
|
678
694
|
|
|
679
|
-
declare const ACCOUNT_SESSION_COOKIE = "ml_account_session";
|
|
680
|
-
interface AppGatewayConfig {
|
|
681
|
-
appId: string;
|
|
682
|
-
backendUrl: string;
|
|
683
|
-
apiKey: string | undefined;
|
|
684
|
-
appSecret?: string;
|
|
685
|
-
allow: Record<string, RegExp[]>;
|
|
686
|
-
cacheableGets?: RegExp[];
|
|
687
|
-
timeoutMs?: number;
|
|
688
|
-
fetchImpl?: typeof fetch;
|
|
689
|
-
}
|
|
690
|
-
declare function createAppGateway(config: AppGatewayConfig): (req: Request, path: string[]) => Promise<Response>;
|
|
691
|
-
|
|
692
|
-
interface AppSessionConfig {
|
|
693
|
-
appId: string;
|
|
694
|
-
backendUrl: string;
|
|
695
|
-
apiKey: string | undefined;
|
|
696
|
-
appSecret?: string;
|
|
697
|
-
fetchImpl?: typeof fetch;
|
|
698
|
-
}
|
|
699
|
-
declare function createAppSessionHandler(config: AppSessionConfig): {
|
|
700
|
-
GET(req: Request): Promise<Response>;
|
|
701
|
-
DELETE(req: Request): Promise<Response>;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
declare const ALLOWED_IMAGE_CONTENT_TYPES: Set<string>;
|
|
705
|
-
declare const MAX_IMAGE_REDIRECTS = 5;
|
|
706
|
-
declare const MAX_IMAGE_PROXY_BYTES: number;
|
|
707
|
-
declare function isPrivateHost(hostname: string): boolean;
|
|
708
|
-
declare function validateUrl(raw: string, options?: {
|
|
709
|
-
requireHttps?: boolean;
|
|
710
|
-
}): {
|
|
711
|
-
url: URL;
|
|
712
|
-
} | {
|
|
713
|
-
error: string;
|
|
714
|
-
status: number;
|
|
715
|
-
};
|
|
716
|
-
declare function isPrivateOrInsecureUrl(raw: string, requireHttps?: boolean): boolean;
|
|
717
|
-
|
|
718
|
-
interface ImageProxyConfig {
|
|
719
|
-
resolveHostname: (hostname: string) => Promise<string[]>;
|
|
720
|
-
fetchImpl?: typeof fetch;
|
|
721
|
-
userAgent?: string;
|
|
722
|
-
backend?: Pick<AppGatewayConfig, "appId" | "backendUrl" | "apiKey" | "appSecret">;
|
|
723
|
-
}
|
|
724
|
-
interface CappedBody {
|
|
725
|
-
ok: boolean;
|
|
726
|
-
body?: Uint8Array;
|
|
727
|
-
error?: string;
|
|
728
|
-
status?: number;
|
|
729
|
-
}
|
|
730
|
-
declare function readBodyWithCap(res: Response, maxBytes: number): Promise<CappedBody>;
|
|
731
|
-
declare function createImageProxyHandler(config: ImageProxyConfig): (req: Request) => Promise<Response>;
|
|
732
|
-
|
|
733
|
-
interface BackendMetadataConfig {
|
|
734
|
-
backendUrl: string;
|
|
735
|
-
apiKey: string;
|
|
736
|
-
fetchImpl?: typeof fetch;
|
|
737
|
-
}
|
|
738
|
-
interface BackendUploadResult {
|
|
739
|
-
cid: string;
|
|
740
|
-
uri: string;
|
|
741
|
-
}
|
|
742
|
-
declare function uploadJsonToBackend(config: BackendMetadataConfig, json: unknown): Promise<BackendUploadResult>;
|
|
743
|
-
declare function uploadFileToBackend(config: BackendMetadataConfig, file: File): Promise<BackendUploadResult>;
|
|
744
|
-
declare function uploadDirectoryToBackend(config: BackendMetadataConfig, files: {
|
|
745
|
-
name: string;
|
|
746
|
-
content: unknown;
|
|
747
|
-
}[]): Promise<{
|
|
748
|
-
cid: string;
|
|
749
|
-
baseUri: string;
|
|
750
|
-
}>;
|
|
751
|
-
declare function getBackendSignedUrl(config: BackendMetadataConfig, kind?: "image" | "document" | "media"): Promise<string>;
|
|
752
|
-
|
|
753
|
-
declare function isSameOrigin(req: Request): boolean;
|
|
754
|
-
|
|
755
|
-
declare function isPublicAppRoute(method: string, path: string): boolean;
|
|
756
|
-
|
|
757
|
-
declare const IDENTITY_TTL_SECONDS = 86400;
|
|
758
|
-
declare const ACCOUNT_SESSION_TTL_SECONDS: number;
|
|
759
|
-
interface SiwsIdentity {
|
|
760
|
-
address: string;
|
|
761
|
-
chain: Chain;
|
|
762
|
-
}
|
|
763
|
-
declare function issueSiwsToken(secret: string, chain: Chain, wallet: string, ttlSeconds?: number): string;
|
|
764
|
-
declare function verifySiwsToken(secret: string, raw: string): SiwsIdentity | null;
|
|
765
|
-
declare function issueAccountSessionToken(secret: string, accountId: string, ttlSeconds?: number): string;
|
|
766
|
-
declare function verifyAccountSessionToken(secret: string, raw: string): string | null;
|
|
767
|
-
|
|
768
695
|
type AssetAttribute = {
|
|
769
696
|
trait_type: string;
|
|
770
697
|
value: string;
|
|
@@ -831,11 +758,6 @@ interface RemixPolicy extends RemixPolicyInput {
|
|
|
831
758
|
}
|
|
832
759
|
declare function resolveRemixPolicy(input: RemixPolicyInput): RemixPolicy;
|
|
833
760
|
|
|
834
|
-
declare function isValidIpfsCidPath(cidPath: string): boolean;
|
|
835
|
-
declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/avif", "image/svg+xml", "video/", "audio/", "model/", "font/", "application/json", "application/octet-stream"];
|
|
836
|
-
declare function resolveSafeImageContentType(contentType: string): string;
|
|
837
|
-
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
838
|
-
|
|
839
761
|
type UploadKind = "image" | "document" | "media";
|
|
840
762
|
interface UploadLimit {
|
|
841
763
|
mimeTypes: readonly string[];
|
|
@@ -854,4 +776,4 @@ declare function uploadError(file: {
|
|
|
854
776
|
name?: string;
|
|
855
777
|
}, kind?: UploadKind): string | null;
|
|
856
778
|
|
|
857
|
-
export {
|
|
779
|
+
export { type AssetAttribute, type AssetMetadata, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, type ConsiderationItem, DEFAULT_CURRENCY, type DataTokenizationRun, FetchLike, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_UPLOAD_BYTES, type NextStep, type OfferItem, type Order, type OrderDetails, type OrderParameters, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_721_CONTRACT, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, ServiceCapability, ServiceDefinition, type ServiceId, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type TxResult, UPLOAD_LIMITS, type UploadKind, type UploadLimit, type WalletRequest, acceptFor, accountPageUrl, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, formatFileSize, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isServiceId, isTicketingRun, listServices, normalizeAddress, normalizeHash, parseAmount, profileHref, resolveRemixPolicy, shortenAddress, stringifyBigInts, u256ToBigInt, uploadError, uploadSizeError };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
export { A as
|
|
1
|
+
export { A as ActivityApi, a as AddSupplyParams, b as ApiClient, c as ApiClientOptions, B as BatchMintEditionParams, d as BearerSource, e as BusinessApi, C as ChainReadsApi, f as CoinsApi, g as CollectionsApi, h as CreateDropParams, i as CreateMembershipParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, l as CreateTicketParams, m as CreatorsApi, D as DeployCollectionParams, n as DropTerms, o as DropsApi, F as FeeConfig, p as FundingApi, G as GatedContent, I as IntentsApi, M as MedialaneApiError, q as MedialaneConfig, r as MedialaneError, s as MedialaneErrorCode, t as MetadataApi, u as MintEditionParams, v as MintMembershipsParams, w as MintTicketsParams, O as OrdersApi, P as PlatformApi, x as PortalApi, y as ProposeSponsorshipParams, z as ProvisioningResult, R as RemixApi, E as ResolvedConfig, H as ResolvedFeeConfig, J as RetryOptions, K as RewardsApi, S as SearchApi, L as SponsorshipApi, T as TokensApi, U as UserFacingError, N as resolveConfig, Q as resolveFeeConfig } from './services-CI62hzNf.js';
|
|
2
|
+
import { F as FetchLike } from './fetch-Cx9Pr7-B.js';
|
|
3
|
+
import { S as ServiceDefinition, a as ServiceCapability } from './passkey-errors-Bu6I_5rn.js';
|
|
4
|
+
export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as AccountApi, d as ActivityType, e as ApiActivitiesQuery, f as ApiActivity, g as ApiActivityPrice, h as ApiAdminCollectionClaim, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, R as ApiMetadataSignedUrl, T as ApiMetadataUpload, U as ApiOrder, V as ApiOrderConsideration, W as ApiOrderOffer, X as ApiOrderPrice, Y as ApiOrderTokenMeta, Z as ApiOrderTxHash, _ as ApiOrdersQuery, $ as ApiPlatformStats, a0 as ApiPointEvent, a1 as ApiPortalKey, a2 as ApiPortalKeyCreated, a3 as ApiPortalMe, a4 as ApiPortalSpend, a5 as ApiPricing, a6 as ApiPricingRule, a7 as ApiPublicRemix, a8 as ApiRemixOffer, a9 as ApiRemixOfferPrice, aa as ApiRemixOffersQuery, ab as ApiReportTargetType, ac as ApiResponse, ad as ApiRewardsBadge, ae as ApiRewardsBatchEntry, af as ApiRewardsConfig, ag as ApiRewardsLeaderboardEntry, ah as ApiRewardsLevel, ai as ApiSearchCollectionResult, aj as ApiSearchCreatorResult, ak as ApiSearchResult, al as ApiSearchTokenResult, am as ApiSession, an as ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiSwapQuote, ax as ApiSwapQuoteRequest, ay as ApiTierOnchain, az as ApiToken, aA as ApiTokenBalance, aB as ApiTokenMetadata, aC as ApiTokensQuery, aD as ApiTxSyncResult, aE as ApiUserRewards, aF as ApiUserWallet, aG as ApiUsernameClaim, aH as ApiWalletActivity, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as CollectionServiceId, aN as CollectionSort, aO as CollectionTokensSort, aP as ConfirmRemixOfferParams, aQ as ConfirmSelfRemixParams, aR as CreateCheckoutIntentParams, aS as CreateCoinIntentParams, aT as CreateCollectionIntentParams, aU as CreateCommentIntentParams, aV as CreateCounterOfferIntentParams, aW as CreateDropClaimIntentParams, aX as CreateDropManageIntentParams, aY as CreateFundingTransferIntentParams, aZ as CreateGenesisMintIntentParams, a_ as CreateListingIntentParams, a$ as CreateMintIntentParams, b0 as CreatePopBurnIntentParams, b1 as CreatePopClaimIntentParams, b2 as CreatePopManageIntentParams, b3 as CreateRemixOfferParams, b4 as CreateSponsorshipOfferIntentParams, b5 as CreateSponsorshipProposalIntentParams, b6 as CreateSwapIntentParams, b7 as CreateTierIntentParams, b8 as CreateTransferCollectionOwnershipIntentParams, b9 as CreateTransferNftIntentParams, ba as CreateTransferTokenIntentParams, bb as CreateWalletManageIntentParams, bc as DeviceKeyMissingError, bd as DropManageAction, be as DropTermsBody, bf as EmissionParams, bg as EnforcementDeclaration, bh as FactoryFamilyServiceId, bi as FulfillOrderIntentParams, bj as IPType, bk as IntentCall, bl as IntentParamsByKind, bm as IntentStatus, bn as IntentType, bo as IpAttribute, bp as IpNftMetadata, bq as LaunchCoinIntentParams, br as MakeOfferIntentParams, bs as OPEN_LICENSES, bt as OpenLicense, bu as OrderStatus, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason, by as PlaceSponsorshipBidIntentParams, bz as PopManageAction, bA as RegisteredUser, bB as RejectSponsorshipProposalIntentParams, bC as RemixOfferStatus, bD as RetractSponsorshipBidIntentParams, bE as ServiceEventDeclaration, bF as SetSponsorshipOfferOpenIntentParams, bG as SortOrder, bH as TierServiceId, bI as UpdateCollectionProfileInput, bJ as WalletManageAction, bK as WithdrawSponsorshipProposalIntentParams } from './passkey-errors-Bu6I_5rn.js';
|
|
5
|
+
import { C as Chain } from './chains-CmwjZVU7.js';
|
|
6
|
+
export { a as CHAINS, b as ChainCoordinates, c as CoordinatesByChain, D as DEFAULT_CHAIN, E as EvmCoordinates, S as SolanaCoordinates, d as StarknetCoordinates, e as StellarCoordinates, g as getCoordinates, f as getStarknetCoordinates } from './chains-CmwjZVU7.js';
|
|
7
|
+
export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, AppGatewayConfig, AppSessionConfig, BackendMetadataConfig, BackendUploadResult, CappedBody, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, SiwsIdentity, createAppGateway, createAppSessionHandler, createImageProxyHandler, getBackendSignedUrl, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, readBodyWithCap, resolveSafeImageContentType, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken } from './server/index.js';
|
|
8
|
+
export { A as AdapterTxResult, a as AssetRef, C as CreateCollectionInput, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, V as VenueAdapter } from './types-BW6ktwcT.js';
|
|
5
9
|
import 'zod';
|
|
6
|
-
import './
|
|
10
|
+
import './responses-BLpM_cH_.js';
|
|
7
11
|
import 'starknet';
|
|
8
|
-
|
|
9
|
-
interface FeeEnv {
|
|
10
|
-
NEXT_PUBLIC_FEE_ENABLED?: string;
|
|
11
|
-
NEXT_PUBLIC_FEE_FUND_ADDRESS?: string;
|
|
12
|
-
NEXT_PUBLIC_FEE_MARKETPLACE_BPS?: string;
|
|
13
|
-
NEXT_PUBLIC_FEE_LAUNCHPAD_BPS?: string;
|
|
14
|
-
}
|
|
15
|
-
declare function resolveAppFeeConfig(env?: FeeEnv): ResolvedFeeConfig;
|
|
12
|
+
import './provisioning-CwRkCN8D.js';
|
|
16
13
|
|
|
17
14
|
type RunStatus = "DRAFT" | "PAID" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
18
15
|
interface RunQuoteLine {
|
|
@@ -132,10 +129,10 @@ declare class RunRequestError extends Error {
|
|
|
132
129
|
}
|
|
133
130
|
interface LaunchpadRunsClientOptions {
|
|
134
131
|
baseUrl: string;
|
|
135
|
-
fetchImpl?:
|
|
132
|
+
fetchImpl?: FetchLike;
|
|
136
133
|
}
|
|
137
134
|
declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
138
|
-
fetch:
|
|
135
|
+
fetch: FetchLike;
|
|
139
136
|
runBase: (id: string) => string;
|
|
140
137
|
runBatchBase: (id: string, index: number) => string;
|
|
141
138
|
runCollectionBase: (id: string) => string;
|
|
@@ -201,42 +198,61 @@ declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRuns
|
|
|
201
198
|
};
|
|
202
199
|
type LaunchpadRunsClient = ReturnType<typeof createLaunchpadRunsClient>;
|
|
203
200
|
|
|
201
|
+
interface OfferItem {
|
|
202
|
+
item_type: string;
|
|
203
|
+
token: string;
|
|
204
|
+
identifier_or_criteria: string;
|
|
205
|
+
amount: string;
|
|
206
|
+
}
|
|
207
|
+
interface ConsiderationItem extends OfferItem {
|
|
208
|
+
recipient: string;
|
|
209
|
+
}
|
|
210
|
+
interface OrderParameters {
|
|
211
|
+
offerer: string;
|
|
212
|
+
marketplace: string;
|
|
213
|
+
offer: OfferItem;
|
|
214
|
+
consideration: ConsiderationItem;
|
|
215
|
+
royalty_max_bps: string;
|
|
216
|
+
start_time: string;
|
|
217
|
+
end_time: string;
|
|
218
|
+
salt: string;
|
|
219
|
+
counter: string;
|
|
220
|
+
}
|
|
221
|
+
interface Order {
|
|
222
|
+
parameters: OrderParameters;
|
|
223
|
+
signature: string[];
|
|
224
|
+
}
|
|
225
|
+
interface TxResult {
|
|
226
|
+
txHash: string;
|
|
227
|
+
}
|
|
228
|
+
interface OrderDetails {
|
|
229
|
+
offerer: string;
|
|
230
|
+
offer: OfferItem;
|
|
231
|
+
consideration: ConsiderationItem;
|
|
232
|
+
royalty_max_bps: string;
|
|
233
|
+
start_time: bigint;
|
|
234
|
+
end_time: bigint;
|
|
235
|
+
order_status: string;
|
|
236
|
+
counter: string;
|
|
237
|
+
remaining_amount?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
204
240
|
declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
|
|
205
|
-
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
|
|
206
|
-
declare const STARKNET_MARKETPLACE_721_START_BLOCK: number;
|
|
207
241
|
declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
|
|
208
|
-
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
|
|
209
|
-
declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
|
|
210
242
|
declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
|
|
211
243
|
declare const STARKNET_DATA_TOKENIZATION_721_CONTRACT: `0x${string}`;
|
|
212
|
-
declare const STARKNET_COLLECTION_721_START_BLOCK: number;
|
|
213
|
-
declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
|
|
214
|
-
declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
|
|
215
244
|
declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
|
|
216
|
-
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
|
|
217
|
-
declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
|
|
218
|
-
declare const STARKNET_COLLECTION_1155_START_BLOCK: number;
|
|
219
245
|
declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
|
|
220
|
-
declare const
|
|
221
|
-
declare const STARKNET_POP_FACTORY_START_BLOCK: number | undefined;
|
|
246
|
+
declare const STARKNET_POP_FACTORY_START_BLOCK: number;
|
|
222
247
|
declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
|
|
223
|
-
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
224
248
|
declare const STARKNET_DROP_FACTORY_START_BLOCK: number;
|
|
225
249
|
declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
|
|
226
250
|
declare const STARKNET_IP_TICKETS_FACTORY_CONTRACT: `0x${string}`;
|
|
227
|
-
declare const STARKNET_IP_TICKET_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
228
251
|
declare const STARKNET_IP_CLUB_FACTORY_CONTRACT: `0x${string}`;
|
|
229
|
-
declare const STARKNET_IP_CLUB_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
230
252
|
declare const STARKNET_IP_SPONSORSHIP_CONTRACT: `0x${string}`;
|
|
231
|
-
declare const STARKNET_IP_SPONSORSHIP_CLASS_HASH: `0x${string}`;
|
|
232
253
|
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
|
|
233
|
-
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
234
|
-
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
235
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
236
|
-
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
237
254
|
declare const STARKNET_GENESIS_MINT_CONTRACT: `0x${string}`;
|
|
238
255
|
declare const STARKNET_GENESIS_NFT_URI = "ipfs://bafkreiag6wzov7migmxwx3wrtudvbx4ajrlbjopqw7uni7nn2nsxv4eykm";
|
|
239
|
-
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
240
256
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
241
257
|
readonly symbol: "USDC";
|
|
242
258
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -676,95 +692,6 @@ declare function stringifyBigInts(obj: unknown): unknown;
|
|
|
676
692
|
declare function u256ToBigInt(low: string, high: string): bigint;
|
|
677
693
|
declare function encodeU256(n: bigint): [string, string];
|
|
678
694
|
|
|
679
|
-
declare const ACCOUNT_SESSION_COOKIE = "ml_account_session";
|
|
680
|
-
interface AppGatewayConfig {
|
|
681
|
-
appId: string;
|
|
682
|
-
backendUrl: string;
|
|
683
|
-
apiKey: string | undefined;
|
|
684
|
-
appSecret?: string;
|
|
685
|
-
allow: Record<string, RegExp[]>;
|
|
686
|
-
cacheableGets?: RegExp[];
|
|
687
|
-
timeoutMs?: number;
|
|
688
|
-
fetchImpl?: typeof fetch;
|
|
689
|
-
}
|
|
690
|
-
declare function createAppGateway(config: AppGatewayConfig): (req: Request, path: string[]) => Promise<Response>;
|
|
691
|
-
|
|
692
|
-
interface AppSessionConfig {
|
|
693
|
-
appId: string;
|
|
694
|
-
backendUrl: string;
|
|
695
|
-
apiKey: string | undefined;
|
|
696
|
-
appSecret?: string;
|
|
697
|
-
fetchImpl?: typeof fetch;
|
|
698
|
-
}
|
|
699
|
-
declare function createAppSessionHandler(config: AppSessionConfig): {
|
|
700
|
-
GET(req: Request): Promise<Response>;
|
|
701
|
-
DELETE(req: Request): Promise<Response>;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
declare const ALLOWED_IMAGE_CONTENT_TYPES: Set<string>;
|
|
705
|
-
declare const MAX_IMAGE_REDIRECTS = 5;
|
|
706
|
-
declare const MAX_IMAGE_PROXY_BYTES: number;
|
|
707
|
-
declare function isPrivateHost(hostname: string): boolean;
|
|
708
|
-
declare function validateUrl(raw: string, options?: {
|
|
709
|
-
requireHttps?: boolean;
|
|
710
|
-
}): {
|
|
711
|
-
url: URL;
|
|
712
|
-
} | {
|
|
713
|
-
error: string;
|
|
714
|
-
status: number;
|
|
715
|
-
};
|
|
716
|
-
declare function isPrivateOrInsecureUrl(raw: string, requireHttps?: boolean): boolean;
|
|
717
|
-
|
|
718
|
-
interface ImageProxyConfig {
|
|
719
|
-
resolveHostname: (hostname: string) => Promise<string[]>;
|
|
720
|
-
fetchImpl?: typeof fetch;
|
|
721
|
-
userAgent?: string;
|
|
722
|
-
backend?: Pick<AppGatewayConfig, "appId" | "backendUrl" | "apiKey" | "appSecret">;
|
|
723
|
-
}
|
|
724
|
-
interface CappedBody {
|
|
725
|
-
ok: boolean;
|
|
726
|
-
body?: Uint8Array;
|
|
727
|
-
error?: string;
|
|
728
|
-
status?: number;
|
|
729
|
-
}
|
|
730
|
-
declare function readBodyWithCap(res: Response, maxBytes: number): Promise<CappedBody>;
|
|
731
|
-
declare function createImageProxyHandler(config: ImageProxyConfig): (req: Request) => Promise<Response>;
|
|
732
|
-
|
|
733
|
-
interface BackendMetadataConfig {
|
|
734
|
-
backendUrl: string;
|
|
735
|
-
apiKey: string;
|
|
736
|
-
fetchImpl?: typeof fetch;
|
|
737
|
-
}
|
|
738
|
-
interface BackendUploadResult {
|
|
739
|
-
cid: string;
|
|
740
|
-
uri: string;
|
|
741
|
-
}
|
|
742
|
-
declare function uploadJsonToBackend(config: BackendMetadataConfig, json: unknown): Promise<BackendUploadResult>;
|
|
743
|
-
declare function uploadFileToBackend(config: BackendMetadataConfig, file: File): Promise<BackendUploadResult>;
|
|
744
|
-
declare function uploadDirectoryToBackend(config: BackendMetadataConfig, files: {
|
|
745
|
-
name: string;
|
|
746
|
-
content: unknown;
|
|
747
|
-
}[]): Promise<{
|
|
748
|
-
cid: string;
|
|
749
|
-
baseUri: string;
|
|
750
|
-
}>;
|
|
751
|
-
declare function getBackendSignedUrl(config: BackendMetadataConfig, kind?: "image" | "document" | "media"): Promise<string>;
|
|
752
|
-
|
|
753
|
-
declare function isSameOrigin(req: Request): boolean;
|
|
754
|
-
|
|
755
|
-
declare function isPublicAppRoute(method: string, path: string): boolean;
|
|
756
|
-
|
|
757
|
-
declare const IDENTITY_TTL_SECONDS = 86400;
|
|
758
|
-
declare const ACCOUNT_SESSION_TTL_SECONDS: number;
|
|
759
|
-
interface SiwsIdentity {
|
|
760
|
-
address: string;
|
|
761
|
-
chain: Chain;
|
|
762
|
-
}
|
|
763
|
-
declare function issueSiwsToken(secret: string, chain: Chain, wallet: string, ttlSeconds?: number): string;
|
|
764
|
-
declare function verifySiwsToken(secret: string, raw: string): SiwsIdentity | null;
|
|
765
|
-
declare function issueAccountSessionToken(secret: string, accountId: string, ttlSeconds?: number): string;
|
|
766
|
-
declare function verifyAccountSessionToken(secret: string, raw: string): string | null;
|
|
767
|
-
|
|
768
695
|
type AssetAttribute = {
|
|
769
696
|
trait_type: string;
|
|
770
697
|
value: string;
|
|
@@ -831,11 +758,6 @@ interface RemixPolicy extends RemixPolicyInput {
|
|
|
831
758
|
}
|
|
832
759
|
declare function resolveRemixPolicy(input: RemixPolicyInput): RemixPolicy;
|
|
833
760
|
|
|
834
|
-
declare function isValidIpfsCidPath(cidPath: string): boolean;
|
|
835
|
-
declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/avif", "image/svg+xml", "video/", "audio/", "model/", "font/", "application/json", "application/octet-stream"];
|
|
836
|
-
declare function resolveSafeImageContentType(contentType: string): string;
|
|
837
|
-
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
838
|
-
|
|
839
761
|
type UploadKind = "image" | "document" | "media";
|
|
840
762
|
interface UploadLimit {
|
|
841
763
|
mimeTypes: readonly string[];
|
|
@@ -854,4 +776,4 @@ declare function uploadError(file: {
|
|
|
854
776
|
name?: string;
|
|
855
777
|
}, kind?: UploadKind): string | null;
|
|
856
778
|
|
|
857
|
-
export {
|
|
779
|
+
export { type AssetAttribute, type AssetMetadata, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, type ConsiderationItem, DEFAULT_CURRENCY, type DataTokenizationRun, FetchLike, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_UPLOAD_BYTES, type NextStep, type OfferItem, type Order, type OrderDetails, type OrderParameters, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_721_CONTRACT, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, ServiceCapability, ServiceDefinition, type ServiceId, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type TxResult, UPLOAD_LIMITS, type UploadKind, type UploadLimit, type WalletRequest, acceptFor, accountPageUrl, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, formatFileSize, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isServiceId, isTicketingRun, listServices, normalizeAddress, normalizeHash, parseAmount, profileHref, resolveRemixPolicy, shortenAddress, stringifyBigInts, u256ToBigInt, uploadError, uploadSizeError };
|