@layr-labs/ecloud-sdk 0.2.1-dev → 0.2.2-dev

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.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { C as ComputeModule } from './compute-CC0R7HEu.cjs';
2
- export { d as ComputeModuleConfig, a as CreateAppOpts, L as LogsOptions, P as PRIMARY_LANGUAGES, S as SDKCreateAppOpts, c as createApp, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData, g as getAvailableTemplates, l as logs } from './compute-CC0R7HEu.cjs';
1
+ import { C as ComputeModule } from './compute-Bpjb3hYD.cjs';
2
+ export { d as ComputeModuleConfig, a as CreateAppOpts, L as LogsOptions, P as PRIMARY_LANGUAGES, S as SDKCreateAppOpts, c as createApp, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData, g as getAvailableTemplates, l as logs } from './compute-Bpjb3hYD.cjs';
3
3
  import { BillingModule } from './billing.cjs';
4
4
  export { BillingModuleConfig, createBillingModule } from './billing.cjs';
5
- import { WalletClient, Hex, Chain, PublicClient, Address } from 'viem';
6
- import { B as BillingEnvironmentConfig, H as ProductID, M as CreateSubscriptionResponse, Y as ProductSubscriptionResponse, G as GasEstimate, z as Logger, r as PreparedDeploy, w as EnvironmentConfig, v as DeployResult, s as PreparedUpgrade, A as AppId } from './index-D5oW73Dx.cjs';
7
- export { O as AlreadyActiveResponse, C as AppProfile, F as AppProfileResponse, t as AppRecord, X as CancelResponse, V as CancelSuccessResponse, J as ChainID, N as CheckoutCreatedResponse, D as DeployAppOpts, u as DeployOptions, y as DockerImageConfig, E as EstimateGasOptions, n as ExecuteDeployResult, o as ExecuteUpgradeResult, m as GasOpts, I as ImageDigestResult, L as LifecycleOpts, W as NoActiveSubscriptionResponse, x as ParsedEnvironment, Q as PaymentIssueResponse, j as PrepareDeployFromVerifiableBuildOpts, P as PrepareDeployOpts, k as PrepareUpgradeFromVerifiableBuildOpts, i as PrepareUpgradeOpts, p as PreparedDeployData, q as PreparedUpgradeData, R as Release, T as SubscribeResponse, K as SubscriptionLineItem, Z as SubscriptionOpts, S as SubscriptionStatus, U as UpgradeAppOpts, e as estimateTransactionGas, f as formatETH, g as getAllAppsByDeveloper, _ as getAppLatestReleaseBlockNumbers, $ as getBlockTimestamps, l as logVisibility } from './index-D5oW73Dx.cjs';
8
- import { L as LogVisibility, R as ResourceUsageMonitoring } from './eip7702-DeqoCP5b.cjs';
9
- export { A as AppInfo, B as AppMetrics, z as AppProfileInfo, J as AppRelease, K as AppReleaseBuild, M as AppResponse, C as CreateAppParams, S as DeployParams, F as EstimateBatchGasOptions, G as GeneratedKey, w as LogsParams, V as UpgradeParams, U as UserApiClient, O as assertValidFilePath, e as assertValidImageReference, k as assertValidPrivateKey, I as checkERC7702Delegation, E as estimateBatchGas, f as extractAppNameFromImage, y as generateNewPrivateKey, a as getAvailableEnvironments, H as getBillingEnvironmentConfig, b as getBuildType, g as getEnvironmentConfig, i as isEnvironmentAvailable, c as isMainnet, x as isSubscriptionActive, s as sanitizeString, q as sanitizeURL, r as sanitizeXURL, o as validateAppID, v as validateAppName, t as validateCreateAppParams, T as validateDeployParams, n as validateDescription, N as validateFilePath, P as validateImagePath, d as validateImageReference, h as validateInstanceTypeSKU, p as validateLogVisibility, u as validateLogsParams, j as validatePrivateKeyFormat, Q as validateResourceUsageMonitoring, l as validateURL, W as validateUpgradeParams, m as validateXURL } from './eip7702-DeqoCP5b.cjs';
5
+ import { WalletClient, PublicClient, Address, Hex } from 'viem';
6
+ import { L as LogVisibility, a7 as ResourceUsageMonitoring } from './helpers-CEvhJz7f.cjs';
7
+ export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, a9 as AppRelease, aa as AppReleaseBuild, ab as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, ag as DeployParams, P as EstimateBatchGasOptions, G as GeneratedKey, a3 as LoginRequest, a2 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, Z as SiweMessageResult, ai as UpgradeParams, U as UserApiClient, a5 as addHexPrefix, ad as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, O as checkERC7702Delegation, T as createSiweMessage, a8 as createViemClients, M as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, W as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, a4 as getChainFromID, a0 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a1 as isSessionValid, X as isSiweMessageExpired, Y as isSiweMessageNotYetValid, B as isSubscriptionActive, _ as loginToComputeApi, $ as logoutFromComputeApi, V as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, a6 as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, ah as validateDeployParams, q as validateDescription, ac as validateFilePath, ae as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, af as validateResourceUsageMonitoring, o as validateURL, aj as validateUpgradeParams, p as validateXURL } from './helpers-CEvhJz7f.cjs';
8
+ import { G as GasEstimate, ab as Logger, $ as PreparedDeploy, a6 as EnvironmentConfig, a4 as DeployResult, a0 as PreparedUpgrade, A as AppId } from './index-DeQzn_yM.cjs';
9
+ export { al as AlreadyActiveResponse, ac as AppProfile, ad as AppProfileResponse, a2 as AppRecord, a5 as BillingEnvironmentConfig, aq as CancelResponse, ao as CancelSuccessResponse, af as ChainID, ak as CheckoutCreatedResponse, ai as CreateSubscriptionOptions, aj as CreateSubscriptionResponse, N as DeployAppOpts, a3 as DeployOptions, at as DeployProgressCallback, au as DeployStep, aa as DockerImageConfig, E as EstimateGasOptions, X as ExecuteDeployResult, Y as ExecuteUpgradeResult, W as GasOpts, a9 as ImageDigestResult, a1 as LifecycleOpts, ap as NoActiveSubscriptionResponse, a8 as ParsedEnvironment, am as PaymentIssueResponse, T as PrepareDeployFromVerifiableBuildOpts, Q as PrepareDeployOpts, V as PrepareUpgradeFromVerifiableBuildOpts, R as PrepareUpgradeOpts, Z as PreparedDeployData, _ as PreparedUpgradeData, ae as ProductID, ar as ProductSubscriptionResponse, a7 as Release, av as SequentialDeployResult, an as SubscribeResponse, ah as SubscriptionLineItem, as as SubscriptionOpts, ag as SubscriptionStatus, O as UpgradeAppOpts, e as estimateTransactionGas, f as formatETH, g as getAllAppsByDeveloper, aw as getAppLatestReleaseBlockNumbers, ax as getBlockTimestamps, M as logVisibility, L as noopLogger } from './index-DeQzn_yM.cjs';
10
10
 
11
11
  interface SubmitBuildRequest {
12
12
  repoUrl: string;
@@ -144,86 +144,6 @@ interface BuildModule {
144
144
  }
145
145
  declare function createBuildModule(config: BuildModuleConfig): BuildModule;
146
146
 
147
- /**
148
- * General utility helpers
149
- */
150
-
151
- /**
152
- * Get a viem Chain object from a chain ID.
153
- * Supports mainnet (1) and sepolia (11155111), defaults to the fallback chain for unknown chains.
154
- */
155
- declare function getChainFromID(chainID: bigint, fallback?: Chain): Chain;
156
- /**
157
- * Create viem clients from a private key
158
- *
159
- * This is a convenience helper for CLI and server applications that have direct
160
- * access to a private key. For browser applications using external wallets (MetaMask, etc.),
161
- * create the WalletClient directly using viem's createWalletClient with a custom transport.
162
- *
163
- * @example
164
- * // CLI usage with private key
165
- * const { walletClient, publicClient } = createClients({
166
- * privateKey: '0x...',
167
- * rpcUrl: 'https://sepolia.infura.io/v3/...',
168
- * chainId: 11155111n
169
- * });
170
- *
171
- * @example
172
- * // Browser usage with external wallet (create clients directly)
173
- * const walletClient = createWalletClient({
174
- * chain: sepolia,
175
- * transport: custom(window.ethereum!)
176
- * });
177
- * const publicClient = createPublicClient({
178
- * chain: sepolia,
179
- * transport: custom(window.ethereum!)
180
- * });
181
- */
182
- declare function createClients(options: {
183
- privateKey: string | Hex;
184
- rpcUrl: string;
185
- chainId: bigint;
186
- }): {
187
- walletClient: WalletClient;
188
- publicClient: PublicClient;
189
- };
190
- /**
191
- * Ensure hex string has 0x prefix
192
- */
193
- declare function addHexPrefix(value: string): Hex;
194
- /**
195
- * Remove 0x prefix from hex string if present
196
- */
197
- declare function stripHexPrefix(value: string): string;
198
-
199
- /**
200
- * BillingAPI Client to manage product subscriptions
201
- * Standalone client - does not depend on chain infrastructure
202
- *
203
- * Accepts viem's WalletClient which abstracts over both local accounts
204
- * (privateKeyToAccount) and external signers (MetaMask, etc.).
205
- */
206
-
207
- /**
208
- * BillingAPI Client for managing product subscriptions.
209
- */
210
- declare class BillingApiClient {
211
- private readonly config;
212
- private readonly walletClient;
213
- constructor(config: BillingEnvironmentConfig, walletClient: WalletClient);
214
- /**
215
- * Get the address of the connected wallet
216
- */
217
- get address(): Address;
218
- createSubscription(productId?: ProductID): Promise<CreateSubscriptionResponse>;
219
- getSubscription(productId?: ProductID): Promise<ProductSubscriptionResponse>;
220
- cancelSubscription(productId?: ProductID): Promise<void>;
221
- /**
222
- * Make an authenticated request to the billing API
223
- */
224
- private makeAuthenticatedRequest;
225
- }
226
-
227
147
  /**
228
148
  * Main deploy function
229
149
  *
@@ -866,4 +786,4 @@ interface ECloudClient {
866
786
  }
867
787
  declare function createECloudClient(cfg: ClientConfig): ECloudClient;
868
788
 
869
- export { type AppEnvironment, AppId, AuthRequiredError, BUILD_STATUS, BadRequestError, BillingApiClient, BillingEnvironmentConfig, BillingModule, type Build, BuildError, BuildFailedError, type BuildModule, type BuildModuleConfig, type BuildProgress, type BuildStatus, type ClientConfig, ComputeModule, ConflictError, CreateSubscriptionResponse, DeployResult, type ECloudClient, type Environment, EnvironmentConfig, ForbiddenError, GasEstimate, type LegacyKey, type LogChunk, LogVisibility, Logger, type Metric, type MetricsContext, NoopClient, NotFoundError, PostHogClient, type PrepareDeployResult, type PrepareUpgradeResult, PreparedDeploy, PreparedUpgrade, type PrivateKeySource, ProductID, ProductSubscriptionResponse, ResourceUsageMonitoring, type SDKDeployOptions, type SDKUpgradeOptions, type StoredKey, type SubmitBuildRequest, type SubmitBuildResponse, type TelemetryClient, type TelemetryClientOptions, type TelemetryWrapperOptions, TimeoutError, type VerifyProvenanceFailure, type VerifyProvenanceResult, type VerifyProvenanceSuccess, addHexPrefix, addMetric, addMetricWithDimensions, createAppEnvironment, createBuildModule, createECloudClient, createMetricsContext, createTelemetryClient, createClients as createViemClients, deleteLegacyPrivateKey, deletePrivateKey, emitMetrics, executeDeploy, executeUpgrade, fetchTemplateCatalog, getAddressFromPrivateKey, getCategoryDescriptions, getChainFromID, getCurrentInstanceType, getLegacyKeys, getLegacyPrivateKey, getPostHogAPIKey, getPostHogEndpoint, getPrivateKey, getPrivateKeyWithSource, getTemplate, isNoopClient, keyExists, listStoredKeys, prepareDeploy, prepareDeployFromVerifiableBuild, prepareUpgrade, prepareUpgradeFromVerifiableBuild, requirePrivateKey, storePrivateKey, stripHexPrefix, validatePrivateKey, watchDeployment, watchUpgrade, withSDKTelemetry };
789
+ export { type AppEnvironment, AppId, AuthRequiredError, BUILD_STATUS, BadRequestError, BillingModule, type Build, BuildError, BuildFailedError, type BuildModule, type BuildModuleConfig, type BuildProgress, type BuildStatus, type ClientConfig, ComputeModule, ConflictError, DeployResult, type ECloudClient, type Environment, EnvironmentConfig, ForbiddenError, GasEstimate, type LegacyKey, type LogChunk, LogVisibility, Logger, type Metric, type MetricsContext, NoopClient, NotFoundError, PostHogClient, type PrepareDeployResult, type PrepareUpgradeResult, PreparedDeploy, PreparedUpgrade, type PrivateKeySource, ResourceUsageMonitoring, type SDKDeployOptions, type SDKUpgradeOptions, type StoredKey, type SubmitBuildRequest, type SubmitBuildResponse, type TelemetryClient, type TelemetryClientOptions, type TelemetryWrapperOptions, TimeoutError, type VerifyProvenanceFailure, type VerifyProvenanceResult, type VerifyProvenanceSuccess, addMetric, addMetricWithDimensions, createAppEnvironment, createBuildModule, createECloudClient, createMetricsContext, createTelemetryClient, deleteLegacyPrivateKey, deletePrivateKey, emitMetrics, executeDeploy, executeUpgrade, fetchTemplateCatalog, getAddressFromPrivateKey, getCategoryDescriptions, getCurrentInstanceType, getLegacyKeys, getLegacyPrivateKey, getPostHogAPIKey, getPostHogEndpoint, getPrivateKey, getPrivateKeyWithSource, getTemplate, isNoopClient, keyExists, listStoredKeys, prepareDeploy, prepareDeployFromVerifiableBuild, prepareUpgrade, prepareUpgradeFromVerifiableBuild, requirePrivateKey, storePrivateKey, validatePrivateKey, watchDeployment, watchUpgrade, withSDKTelemetry };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { C as ComputeModule } from './compute-B85ikS78.js';
2
- export { d as ComputeModuleConfig, a as CreateAppOpts, L as LogsOptions, P as PRIMARY_LANGUAGES, S as SDKCreateAppOpts, c as createApp, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData, g as getAvailableTemplates, l as logs } from './compute-B85ikS78.js';
1
+ import { C as ComputeModule } from './compute-BYhSs8en.js';
2
+ export { d as ComputeModuleConfig, a as CreateAppOpts, L as LogsOptions, P as PRIMARY_LANGUAGES, S as SDKCreateAppOpts, c as createApp, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData, g as getAvailableTemplates, l as logs } from './compute-BYhSs8en.js';
3
3
  import { BillingModule } from './billing.js';
4
4
  export { BillingModuleConfig, createBillingModule } from './billing.js';
5
- import { WalletClient, Hex, Chain, PublicClient, Address } from 'viem';
6
- import { B as BillingEnvironmentConfig, H as ProductID, M as CreateSubscriptionResponse, Y as ProductSubscriptionResponse, G as GasEstimate, z as Logger, r as PreparedDeploy, w as EnvironmentConfig, v as DeployResult, s as PreparedUpgrade, A as AppId } from './index-D5oW73Dx.js';
7
- export { O as AlreadyActiveResponse, C as AppProfile, F as AppProfileResponse, t as AppRecord, X as CancelResponse, V as CancelSuccessResponse, J as ChainID, N as CheckoutCreatedResponse, D as DeployAppOpts, u as DeployOptions, y as DockerImageConfig, E as EstimateGasOptions, n as ExecuteDeployResult, o as ExecuteUpgradeResult, m as GasOpts, I as ImageDigestResult, L as LifecycleOpts, W as NoActiveSubscriptionResponse, x as ParsedEnvironment, Q as PaymentIssueResponse, j as PrepareDeployFromVerifiableBuildOpts, P as PrepareDeployOpts, k as PrepareUpgradeFromVerifiableBuildOpts, i as PrepareUpgradeOpts, p as PreparedDeployData, q as PreparedUpgradeData, R as Release, T as SubscribeResponse, K as SubscriptionLineItem, Z as SubscriptionOpts, S as SubscriptionStatus, U as UpgradeAppOpts, e as estimateTransactionGas, f as formatETH, g as getAllAppsByDeveloper, _ as getAppLatestReleaseBlockNumbers, $ as getBlockTimestamps, l as logVisibility } from './index-D5oW73Dx.js';
8
- import { L as LogVisibility, R as ResourceUsageMonitoring } from './eip7702-CXCYfOnk.js';
9
- export { A as AppInfo, B as AppMetrics, z as AppProfileInfo, J as AppRelease, K as AppReleaseBuild, M as AppResponse, C as CreateAppParams, S as DeployParams, F as EstimateBatchGasOptions, G as GeneratedKey, w as LogsParams, V as UpgradeParams, U as UserApiClient, O as assertValidFilePath, e as assertValidImageReference, k as assertValidPrivateKey, I as checkERC7702Delegation, E as estimateBatchGas, f as extractAppNameFromImage, y as generateNewPrivateKey, a as getAvailableEnvironments, H as getBillingEnvironmentConfig, b as getBuildType, g as getEnvironmentConfig, i as isEnvironmentAvailable, c as isMainnet, x as isSubscriptionActive, s as sanitizeString, q as sanitizeURL, r as sanitizeXURL, o as validateAppID, v as validateAppName, t as validateCreateAppParams, T as validateDeployParams, n as validateDescription, N as validateFilePath, P as validateImagePath, d as validateImageReference, h as validateInstanceTypeSKU, p as validateLogVisibility, u as validateLogsParams, j as validatePrivateKeyFormat, Q as validateResourceUsageMonitoring, l as validateURL, W as validateUpgradeParams, m as validateXURL } from './eip7702-CXCYfOnk.js';
5
+ import { WalletClient, PublicClient, Address, Hex } from 'viem';
6
+ import { L as LogVisibility, a7 as ResourceUsageMonitoring } from './helpers-CQuBwQnu.js';
7
+ export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, a9 as AppRelease, aa as AppReleaseBuild, ab as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, ag as DeployParams, P as EstimateBatchGasOptions, G as GeneratedKey, a3 as LoginRequest, a2 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, Z as SiweMessageResult, ai as UpgradeParams, U as UserApiClient, a5 as addHexPrefix, ad as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, O as checkERC7702Delegation, T as createSiweMessage, a8 as createViemClients, M as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, W as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, a4 as getChainFromID, a0 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a1 as isSessionValid, X as isSiweMessageExpired, Y as isSiweMessageNotYetValid, B as isSubscriptionActive, _ as loginToComputeApi, $ as logoutFromComputeApi, V as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, a6 as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, ah as validateDeployParams, q as validateDescription, ac as validateFilePath, ae as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, af as validateResourceUsageMonitoring, o as validateURL, aj as validateUpgradeParams, p as validateXURL } from './helpers-CQuBwQnu.js';
8
+ import { G as GasEstimate, ab as Logger, $ as PreparedDeploy, a6 as EnvironmentConfig, a4 as DeployResult, a0 as PreparedUpgrade, A as AppId } from './index-DeQzn_yM.js';
9
+ export { al as AlreadyActiveResponse, ac as AppProfile, ad as AppProfileResponse, a2 as AppRecord, a5 as BillingEnvironmentConfig, aq as CancelResponse, ao as CancelSuccessResponse, af as ChainID, ak as CheckoutCreatedResponse, ai as CreateSubscriptionOptions, aj as CreateSubscriptionResponse, N as DeployAppOpts, a3 as DeployOptions, at as DeployProgressCallback, au as DeployStep, aa as DockerImageConfig, E as EstimateGasOptions, X as ExecuteDeployResult, Y as ExecuteUpgradeResult, W as GasOpts, a9 as ImageDigestResult, a1 as LifecycleOpts, ap as NoActiveSubscriptionResponse, a8 as ParsedEnvironment, am as PaymentIssueResponse, T as PrepareDeployFromVerifiableBuildOpts, Q as PrepareDeployOpts, V as PrepareUpgradeFromVerifiableBuildOpts, R as PrepareUpgradeOpts, Z as PreparedDeployData, _ as PreparedUpgradeData, ae as ProductID, ar as ProductSubscriptionResponse, a7 as Release, av as SequentialDeployResult, an as SubscribeResponse, ah as SubscriptionLineItem, as as SubscriptionOpts, ag as SubscriptionStatus, O as UpgradeAppOpts, e as estimateTransactionGas, f as formatETH, g as getAllAppsByDeveloper, aw as getAppLatestReleaseBlockNumbers, ax as getBlockTimestamps, M as logVisibility, L as noopLogger } from './index-DeQzn_yM.js';
10
10
 
11
11
  interface SubmitBuildRequest {
12
12
  repoUrl: string;
@@ -144,86 +144,6 @@ interface BuildModule {
144
144
  }
145
145
  declare function createBuildModule(config: BuildModuleConfig): BuildModule;
146
146
 
147
- /**
148
- * General utility helpers
149
- */
150
-
151
- /**
152
- * Get a viem Chain object from a chain ID.
153
- * Supports mainnet (1) and sepolia (11155111), defaults to the fallback chain for unknown chains.
154
- */
155
- declare function getChainFromID(chainID: bigint, fallback?: Chain): Chain;
156
- /**
157
- * Create viem clients from a private key
158
- *
159
- * This is a convenience helper for CLI and server applications that have direct
160
- * access to a private key. For browser applications using external wallets (MetaMask, etc.),
161
- * create the WalletClient directly using viem's createWalletClient with a custom transport.
162
- *
163
- * @example
164
- * // CLI usage with private key
165
- * const { walletClient, publicClient } = createClients({
166
- * privateKey: '0x...',
167
- * rpcUrl: 'https://sepolia.infura.io/v3/...',
168
- * chainId: 11155111n
169
- * });
170
- *
171
- * @example
172
- * // Browser usage with external wallet (create clients directly)
173
- * const walletClient = createWalletClient({
174
- * chain: sepolia,
175
- * transport: custom(window.ethereum!)
176
- * });
177
- * const publicClient = createPublicClient({
178
- * chain: sepolia,
179
- * transport: custom(window.ethereum!)
180
- * });
181
- */
182
- declare function createClients(options: {
183
- privateKey: string | Hex;
184
- rpcUrl: string;
185
- chainId: bigint;
186
- }): {
187
- walletClient: WalletClient;
188
- publicClient: PublicClient;
189
- };
190
- /**
191
- * Ensure hex string has 0x prefix
192
- */
193
- declare function addHexPrefix(value: string): Hex;
194
- /**
195
- * Remove 0x prefix from hex string if present
196
- */
197
- declare function stripHexPrefix(value: string): string;
198
-
199
- /**
200
- * BillingAPI Client to manage product subscriptions
201
- * Standalone client - does not depend on chain infrastructure
202
- *
203
- * Accepts viem's WalletClient which abstracts over both local accounts
204
- * (privateKeyToAccount) and external signers (MetaMask, etc.).
205
- */
206
-
207
- /**
208
- * BillingAPI Client for managing product subscriptions.
209
- */
210
- declare class BillingApiClient {
211
- private readonly config;
212
- private readonly walletClient;
213
- constructor(config: BillingEnvironmentConfig, walletClient: WalletClient);
214
- /**
215
- * Get the address of the connected wallet
216
- */
217
- get address(): Address;
218
- createSubscription(productId?: ProductID): Promise<CreateSubscriptionResponse>;
219
- getSubscription(productId?: ProductID): Promise<ProductSubscriptionResponse>;
220
- cancelSubscription(productId?: ProductID): Promise<void>;
221
- /**
222
- * Make an authenticated request to the billing API
223
- */
224
- private makeAuthenticatedRequest;
225
- }
226
-
227
147
  /**
228
148
  * Main deploy function
229
149
  *
@@ -866,4 +786,4 @@ interface ECloudClient {
866
786
  }
867
787
  declare function createECloudClient(cfg: ClientConfig): ECloudClient;
868
788
 
869
- export { type AppEnvironment, AppId, AuthRequiredError, BUILD_STATUS, BadRequestError, BillingApiClient, BillingEnvironmentConfig, BillingModule, type Build, BuildError, BuildFailedError, type BuildModule, type BuildModuleConfig, type BuildProgress, type BuildStatus, type ClientConfig, ComputeModule, ConflictError, CreateSubscriptionResponse, DeployResult, type ECloudClient, type Environment, EnvironmentConfig, ForbiddenError, GasEstimate, type LegacyKey, type LogChunk, LogVisibility, Logger, type Metric, type MetricsContext, NoopClient, NotFoundError, PostHogClient, type PrepareDeployResult, type PrepareUpgradeResult, PreparedDeploy, PreparedUpgrade, type PrivateKeySource, ProductID, ProductSubscriptionResponse, ResourceUsageMonitoring, type SDKDeployOptions, type SDKUpgradeOptions, type StoredKey, type SubmitBuildRequest, type SubmitBuildResponse, type TelemetryClient, type TelemetryClientOptions, type TelemetryWrapperOptions, TimeoutError, type VerifyProvenanceFailure, type VerifyProvenanceResult, type VerifyProvenanceSuccess, addHexPrefix, addMetric, addMetricWithDimensions, createAppEnvironment, createBuildModule, createECloudClient, createMetricsContext, createTelemetryClient, createClients as createViemClients, deleteLegacyPrivateKey, deletePrivateKey, emitMetrics, executeDeploy, executeUpgrade, fetchTemplateCatalog, getAddressFromPrivateKey, getCategoryDescriptions, getChainFromID, getCurrentInstanceType, getLegacyKeys, getLegacyPrivateKey, getPostHogAPIKey, getPostHogEndpoint, getPrivateKey, getPrivateKeyWithSource, getTemplate, isNoopClient, keyExists, listStoredKeys, prepareDeploy, prepareDeployFromVerifiableBuild, prepareUpgrade, prepareUpgradeFromVerifiableBuild, requirePrivateKey, storePrivateKey, stripHexPrefix, validatePrivateKey, watchDeployment, watchUpgrade, withSDKTelemetry };
789
+ export { type AppEnvironment, AppId, AuthRequiredError, BUILD_STATUS, BadRequestError, BillingModule, type Build, BuildError, BuildFailedError, type BuildModule, type BuildModuleConfig, type BuildProgress, type BuildStatus, type ClientConfig, ComputeModule, ConflictError, DeployResult, type ECloudClient, type Environment, EnvironmentConfig, ForbiddenError, GasEstimate, type LegacyKey, type LogChunk, LogVisibility, Logger, type Metric, type MetricsContext, NoopClient, NotFoundError, PostHogClient, type PrepareDeployResult, type PrepareUpgradeResult, PreparedDeploy, PreparedUpgrade, type PrivateKeySource, ResourceUsageMonitoring, type SDKDeployOptions, type SDKUpgradeOptions, type StoredKey, type SubmitBuildRequest, type SubmitBuildResponse, type TelemetryClient, type TelemetryClientOptions, type TelemetryWrapperOptions, TimeoutError, type VerifyProvenanceFailure, type VerifyProvenanceResult, type VerifyProvenanceSuccess, addMetric, addMetricWithDimensions, createAppEnvironment, createBuildModule, createECloudClient, createMetricsContext, createTelemetryClient, deleteLegacyPrivateKey, deletePrivateKey, emitMetrics, executeDeploy, executeUpgrade, fetchTemplateCatalog, getAddressFromPrivateKey, getCategoryDescriptions, getCurrentInstanceType, getLegacyKeys, getLegacyPrivateKey, getPostHogAPIKey, getPostHogEndpoint, getPrivateKey, getPrivateKeyWithSource, getTemplate, isNoopClient, keyExists, listStoredKeys, prepareDeploy, prepareDeployFromVerifiableBuild, prepareUpgrade, prepareUpgradeFromVerifiableBuild, requirePrivateKey, storePrivateKey, validatePrivateKey, watchDeployment, watchUpgrade, withSDKTelemetry };