@universal-everything/sdk-core 1.1.0-dev.cb0ab05 → 1.1.0-dev.cd43d65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -1
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -313,6 +313,11 @@ type NonceResponse = {
|
|
|
313
313
|
nonce: string;
|
|
314
314
|
issuedAt: string;
|
|
315
315
|
};
|
|
316
|
+
/** `POST /v1/ipfs/upload-token` — a short-lived bearer for the IPFS upload service. */
|
|
317
|
+
type IpfsUploadTokenResponse = {
|
|
318
|
+
token: string;
|
|
319
|
+
expiresAt: string;
|
|
320
|
+
};
|
|
316
321
|
type DeployProfileBase = {
|
|
317
322
|
chainId: number;
|
|
318
323
|
label?: string | null;
|
|
@@ -482,6 +487,14 @@ declare class WalletKitClient {
|
|
|
482
487
|
* bind an A1 control proof for an external-controller {@link deployProfile}.
|
|
483
488
|
*/
|
|
484
489
|
getNonce(): Promise<NonceResponse>;
|
|
490
|
+
/**
|
|
491
|
+
* Mint a short-lived (~120s) HS256 token for the IPFS upload service
|
|
492
|
+
* (`POST /v1/ipfs/upload-token`, authenticated). Fetch one per upload:
|
|
493
|
+
* the token is meant to expire within the service's 600s window (which the
|
|
494
|
+
* service does not enforce today — see the relayer's routes/ipfs.ts). 503
|
|
495
|
+
* when the relayer has no upload secret configured.
|
|
496
|
+
*/
|
|
497
|
+
getIpfsUploadToken(): Promise<IpfsUploadTokenResponse>;
|
|
485
498
|
importProfile(input: {
|
|
486
499
|
address: Hex;
|
|
487
500
|
chainId: number;
|
|
@@ -546,4 +559,4 @@ declare class IdentityError extends Error {
|
|
|
546
559
|
constructor(code: IdentityErrorCode, message: string);
|
|
547
560
|
}
|
|
548
561
|
|
|
549
|
-
export { type ChainStatus, type CheckoutSession, type ControlProof, type ControllerSummary, type DeployProfileInput, type DeployProfileMultiChainResponse, type DeployProfileResponse, type DeployProfileSingleChainResponse, type DeployQueueStatus, type ExportCompleteResponse, type ExportRequestInput, type ExportRequestResponse, type ExportedKey, type FreeDefaultSnapshot, type Hex, IdentityError, type IdentityErrorCode, type IdentityProvider, type ImportBeginResponse, type ImportCompleteInput, type ImportCompleteResponse, KeyCustodyError, type KeyCustodyErrorCode, type KeyCustodyOpContext, type KeyCustodyProvider, type NonceResponse, type OpContext, type OpenCheckoutInput, type Profile, type ProfileStatus, type ProfileWithChains, type QuotaSnapshot, type RelaySponsoredInput, type RelaySponsoredResponse, type SignLsp25Input, type SignLsp25Response, type SignMessageResponse, type SignTransactionInput, type SignTransactionResponse, type SignTxRequest, type Subject, type SubscriptionResponse, type SubscriptionSnapshot, TIER_ERROR_CODES, TierError, type VerifiedToken, type VerifyOptions, type Wallet, type WalletInfo, WalletKitClient, type WalletKitClientConfig, WalletKitError, createWalletKitClient };
|
|
562
|
+
export { type ChainStatus, type CheckoutSession, type ControlProof, type ControllerSummary, type DeployProfileInput, type DeployProfileMultiChainResponse, type DeployProfileResponse, type DeployProfileSingleChainResponse, type DeployQueueStatus, type ExportCompleteResponse, type ExportRequestInput, type ExportRequestResponse, type ExportedKey, type FreeDefaultSnapshot, type Hex, IdentityError, type IdentityErrorCode, type IdentityProvider, type ImportBeginResponse, type ImportCompleteInput, type ImportCompleteResponse, type IpfsUploadTokenResponse, KeyCustodyError, type KeyCustodyErrorCode, type KeyCustodyOpContext, type KeyCustodyProvider, type NonceResponse, type OpContext, type OpenCheckoutInput, type Profile, type ProfileStatus, type ProfileWithChains, type QuotaSnapshot, type RelaySponsoredInput, type RelaySponsoredResponse, type SignLsp25Input, type SignLsp25Response, type SignMessageResponse, type SignTransactionInput, type SignTransactionResponse, type SignTxRequest, type Subject, type SubscriptionResponse, type SubscriptionSnapshot, TIER_ERROR_CODES, TierError, type VerifiedToken, type VerifyOptions, type Wallet, type WalletInfo, WalletKitClient, type WalletKitClientConfig, WalletKitError, createWalletKitClient };
|
package/dist/index.js
CHANGED
|
@@ -121,6 +121,16 @@ var WalletKitClient = class {
|
|
|
121
121
|
async getNonce() {
|
|
122
122
|
return this.#request("POST", "/v1/auth/nonce");
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Mint a short-lived (~120s) HS256 token for the IPFS upload service
|
|
126
|
+
* (`POST /v1/ipfs/upload-token`, authenticated). Fetch one per upload:
|
|
127
|
+
* the token is meant to expire within the service's 600s window (which the
|
|
128
|
+
* service does not enforce today — see the relayer's routes/ipfs.ts). 503
|
|
129
|
+
* when the relayer has no upload secret configured.
|
|
130
|
+
*/
|
|
131
|
+
async getIpfsUploadToken() {
|
|
132
|
+
return this.#request("POST", "/v1/ipfs/upload-token");
|
|
133
|
+
}
|
|
124
134
|
async importProfile(input) {
|
|
125
135
|
return this.#request("POST", "/v1/profiles/import", input);
|
|
126
136
|
}
|