@universal-everything/sdk-core 1.4.0-dev.a174474 → 1.4.0-dev.bc00ab4
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 +52 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -397,12 +397,60 @@ type ProfileWithChains = {
|
|
|
397
397
|
extend: ExtendVerdict;
|
|
398
398
|
chains: ChainStatus[];
|
|
399
399
|
};
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
/** One network kind's quota (`GET /v1/quota` → `kinds`). */
|
|
401
|
+
type KindQuota = {
|
|
402
|
+
/** Whole percent of this kind's monthly credits left (0–100); null = no allowance. */
|
|
403
|
+
percentRemaining: number | null;
|
|
404
|
+
/** When the monthly credits refill (ISO, first of next month UTC). */
|
|
405
|
+
resetsAt: string;
|
|
406
|
+
/** Profiles of this kind vs the cap. The cap only limits creating new ones. */
|
|
407
|
+
profiles?: {
|
|
408
|
+
used: number;
|
|
409
|
+
cap: number;
|
|
410
|
+
};
|
|
411
|
+
/** Cross-chain tickets of this kind: used vs cap. Tickets don't renew monthly. */
|
|
412
|
+
crossChain?: {
|
|
413
|
+
used: number;
|
|
414
|
+
cap: number;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
/** Gas on one chain, rendered from its kind's credits (legacy shape). */
|
|
418
|
+
type QuotaChain = {
|
|
419
|
+
chainId: number;
|
|
402
420
|
periodStart: string;
|
|
403
421
|
includedRemaining: string;
|
|
422
|
+
includedPerPeriod: string;
|
|
404
423
|
topupRemaining: string;
|
|
405
|
-
|
|
424
|
+
totalRemaining: string;
|
|
425
|
+
/** False for a chain the account holds a profile on but its plan doesn't fund. */
|
|
426
|
+
funded: boolean;
|
|
427
|
+
reason?: "tier_chain_not_allowed" | "chain_disabled";
|
|
428
|
+
note?: string;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* `GET /v1/quota`. Credits are split into a mainnet and a testnet pool
|
|
432
|
+
* (`kinds`); `credits` is the mainnet pool, and `chains` renders each chain
|
|
433
|
+
* from its own kind's pool.
|
|
434
|
+
*/
|
|
435
|
+
type QuotaSnapshot = {
|
|
436
|
+
tier: string;
|
|
437
|
+
period: string;
|
|
438
|
+
kinds: {
|
|
439
|
+
mainnet: KindQuota;
|
|
440
|
+
testnet: KindQuota;
|
|
441
|
+
};
|
|
442
|
+
credits: {
|
|
443
|
+
remaining: string;
|
|
444
|
+
tierRemaining: string;
|
|
445
|
+
perPeriod: string;
|
|
446
|
+
};
|
|
447
|
+
allowedChains: Array<{
|
|
448
|
+
chainId: number;
|
|
449
|
+
name: string;
|
|
450
|
+
kind: "mainnet" | "testnet";
|
|
451
|
+
sponsored: true;
|
|
452
|
+
}>;
|
|
453
|
+
chains: QuotaChain[];
|
|
406
454
|
};
|
|
407
455
|
/**
|
|
408
456
|
* A paid subscription snapshot (from `GET /v1/billing/subscription`).
|
|
@@ -862,4 +910,4 @@ declare class IdentityError extends Error {
|
|
|
862
910
|
constructor(code: IdentityErrorCode, message: string);
|
|
863
911
|
}
|
|
864
912
|
|
|
865
|
-
export { type AddSubscriptionProfileResult, type BillingStore, type Catalog, type CatalogDefaultPrice, type CatalogPlan, type CatalogProduct, type ChainStatus, type CheckoutSession, type ControlProof, type ControllerSummary, type CoveredBy, type DeployProfileInput, type DeployProfileMultiChainResponse, type DeployProfileResponse, type DeployProfileSingleChainResponse, type DeployQueueStatus, type ExportCompleteResponse, type ExportRequestInput, type ExportRequestResponse, type ExportedKey, type ExtendVerdict, type ExtendVerdictReason, 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 Me, type NonceResponse, type OpContext, type OpenCheckoutInput, type Profile, type ProfileStatus, type ProfileWithChains, type PublicChain, type QuotaSnapshot, type RelaySponsoredInput, type RelaySponsoredResponse, type SignLsp25Input, type SignLsp25Response, type SignMessageResponse, type SignTransactionInput, type SignTransactionResponse, type SignTxRequest, type StoreTransactionResult, type Subject, type SubscriptionMember, type SubscriptionResponse, type SubscriptionSnapshot, type SubscriptionSummary, TIER_ERROR_CODES, TierError, type VerifiedToken, type VerifyOptions, type Wallet, type WalletInfo, WalletKitClient, type WalletKitClientConfig, WalletKitError, createWalletKitClient };
|
|
913
|
+
export { type AddSubscriptionProfileResult, type BillingStore, type Catalog, type CatalogDefaultPrice, type CatalogPlan, type CatalogProduct, type ChainStatus, type CheckoutSession, type ControlProof, type ControllerSummary, type CoveredBy, type DeployProfileInput, type DeployProfileMultiChainResponse, type DeployProfileResponse, type DeployProfileSingleChainResponse, type DeployQueueStatus, type ExportCompleteResponse, type ExportRequestInput, type ExportRequestResponse, type ExportedKey, type ExtendVerdict, type ExtendVerdictReason, 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 KindQuota, type Me, type NonceResponse, type OpContext, type OpenCheckoutInput, type Profile, type ProfileStatus, type ProfileWithChains, type PublicChain, type QuotaChain, type QuotaSnapshot, type RelaySponsoredInput, type RelaySponsoredResponse, type SignLsp25Input, type SignLsp25Response, type SignMessageResponse, type SignTransactionInput, type SignTransactionResponse, type SignTxRequest, type StoreTransactionResult, type Subject, type SubscriptionMember, type SubscriptionResponse, type SubscriptionSnapshot, type SubscriptionSummary, TIER_ERROR_CODES, TierError, type VerifiedToken, type VerifyOptions, type Wallet, type WalletInfo, WalletKitClient, type WalletKitClientConfig, WalletKitError, createWalletKitClient };
|