@universal-everything/sdk-core 1.3.0-dev.f9f0a74 → 1.4.0-dev.108455a

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 CHANGED
@@ -290,6 +290,28 @@ type SubscriptionMember = {
290
290
  /** Added by a client sync rather than by hand. */
291
291
  auto: boolean;
292
292
  attachedAt: string;
293
+ /**
294
+ * The networks the relayer holds the profile on (whoever holds it), with
295
+ * each row's deploy status, ascending by chain. Empty ⇒ no row anywhere.
296
+ */
297
+ chains: Array<{
298
+ chainId: number;
299
+ status: ProfileStatus;
300
+ }>;
301
+ };
302
+ /** One network of `GET /v1/chains` — the relayer's public catalog. */
303
+ type PublicChain = {
304
+ chainId: number;
305
+ name: string;
306
+ kind: "mainnet" | "testnet";
307
+ /** Operator kill-switch; a disabled chain is never sponsorable. */
308
+ enabled: boolean;
309
+ /** The backend wallet can sponsor gas right now. */
310
+ funded: boolean;
311
+ /** Public default RPC for browser read-only calls. */
312
+ rpcUrl: string;
313
+ /** Network icon (https or `data:` URL); null ⇒ show initials. */
314
+ iconUrl: string | null;
293
315
  };
294
316
  /**
295
317
  * One entry of `GET /v1/subscriptions`: a subscription of the caller's account
@@ -725,6 +747,14 @@ declare class WalletKitClient {
725
747
  audience?: "user" | "dev";
726
748
  store?: BillingStore;
727
749
  }): Promise<Catalog>;
750
+ /**
751
+ * The relayer's networks with their kind, icon and sponsorability (public;
752
+ * no auth needed). Clients draw networks from this instead of their own
753
+ * lists.
754
+ */
755
+ listChains(): Promise<{
756
+ chains: PublicChain[];
757
+ }>;
728
758
  /**
729
759
  * Every subscription of the caller's account, live ones first — what the
730
760
  * dashboard's account / subscription dropdown renders.
@@ -832,4 +862,4 @@ declare class IdentityError extends Error {
832
862
  constructor(code: IdentityErrorCode, message: string);
833
863
  }
834
864
 
835
- 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 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 };
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 };
package/dist/index.js CHANGED
@@ -184,6 +184,14 @@ var WalletKitClient = class {
184
184
  const qs = query.toString();
185
185
  return this.#request("GET", `/v1/billing/catalog${qs ? `?${qs}` : ""}`);
186
186
  }
187
+ /**
188
+ * The relayer's networks with their kind, icon and sponsorability (public;
189
+ * no auth needed). Clients draw networks from this instead of their own
190
+ * lists.
191
+ */
192
+ async listChains() {
193
+ return this.#request("GET", "/v1/chains");
194
+ }
187
195
  /**
188
196
  * Every subscription of the caller's account, live ones first — what the
189
197
  * dashboard's account / subscription dropdown renders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universal-everything/sdk-core",
3
- "version": "1.3.0-dev.f9f0a74",
3
+ "version": "1.4.0-dev.108455a",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/universal-everything/universal-relayer.git",