@layr-labs/ecloud-sdk 0.3.4 → 0.4.0-dev.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.
@@ -1,4 +1,4 @@
1
- import { a6 as EnvironmentConfig, ag as SubscriptionStatus, a5 as BillingEnvironmentConfig, ae as ProductID, ai as CreateSubscriptionOptions, ak as CreateSubscriptionResponse, aj as GetSubscriptionOptions, as as ProductSubscriptionResponse, G as GasEstimate, ab as Logger } from './index-WDunKGVL.cjs';
1
+ import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-DD7ZLbqD.cjs';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -446,6 +446,11 @@ declare class UserApiClient {
446
446
  skus: Array<{
447
447
  sku: string;
448
448
  description: string;
449
+ vcpus?: number;
450
+ memory_mb?: number;
451
+ monthly_price_usd?: number;
452
+ hourly_price_usd?: number;
453
+ platform?: string;
449
454
  }>;
450
455
  }>;
451
456
  /**
@@ -1,4 +1,4 @@
1
- import { a6 as EnvironmentConfig, ag as SubscriptionStatus, a5 as BillingEnvironmentConfig, ae as ProductID, ai as CreateSubscriptionOptions, ak as CreateSubscriptionResponse, aj as GetSubscriptionOptions, as as ProductSubscriptionResponse, G as GasEstimate, ab as Logger } from './index-WDunKGVL.js';
1
+ import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-DD7ZLbqD.js';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -446,6 +446,11 @@ declare class UserApiClient {
446
446
  skus: Array<{
447
447
  sku: string;
448
448
  description: string;
449
+ vcpus?: number;
450
+ memory_mb?: number;
451
+ monthly_price_usd?: number;
452
+ hourly_price_usd?: number;
453
+ platform?: string;
449
454
  }>;
450
455
  }>;
451
456
  /**
@@ -132,6 +132,7 @@ interface PrepareDeployBatchOptions {
132
132
  release: Release;
133
133
  publicLogs: boolean;
134
134
  imageRef: string;
135
+ billTo?: "developer" | "app";
135
136
  }
136
137
  /**
137
138
  * Prepare deploy batch - creates executions without sending transaction
@@ -320,6 +321,17 @@ declare function getAppsByDeveloper(publicClient: PublicClient, environmentConfi
320
321
  apps: Address[];
321
322
  appConfigs: AppConfig[];
322
323
  }>;
324
+ /**
325
+ * Get billing type for an app (0 = DEFAULT, 1 = ISOLATED)
326
+ */
327
+ declare function getBillingType(publicClient: PublicClient, environmentConfig: EnvironmentConfig, app: Address): Promise<number>;
328
+ /**
329
+ * Get apps by billing account (paginated)
330
+ */
331
+ declare function getAppsByBillingAccount(publicClient: PublicClient, environmentConfig: EnvironmentConfig, account: Address, offset: bigint, limit: bigint): Promise<{
332
+ apps: Address[];
333
+ appConfigs: AppConfig[];
334
+ }>;
323
335
  /**
324
336
  * Fetch all apps by a developer by auto-pagination
325
337
  */
@@ -393,6 +405,8 @@ interface DeployAppOpts {
393
405
  instanceType: string;
394
406
  /** Log visibility setting - required */
395
407
  logVisibility: logVisibility;
408
+ /** Billing mode: developer (default) or app (isolated billing) */
409
+ billTo?: "developer" | "app";
396
410
  /** Optional gas params from estimation */
397
411
  gas?: GasEstimate;
398
412
  }
@@ -425,6 +439,12 @@ interface PrepareDeployOpts {
425
439
  logVisibility: logVisibility;
426
440
  /** Resource usage monitoring setting - optional */
427
441
  resourceUsageMonitoring?: "enable" | "disable";
442
+ /** Billing mode: developer (default) or app (isolated billing) */
443
+ billTo?: "developer" | "app";
444
+ /** Skip quota check */
445
+ skipQuotaCheck?: boolean;
446
+ /** Optional salt for deterministic app address prediction (32 bytes) */
447
+ salt?: Uint8Array | Buffer;
428
448
  }
429
449
  /** Options for prepareUpgrade */
430
450
  interface PrepareUpgradeOpts {
@@ -457,6 +477,8 @@ interface PrepareDeployFromVerifiableBuildOpts {
457
477
  logVisibility: logVisibility;
458
478
  /** Resource usage monitoring setting - optional */
459
479
  resourceUsageMonitoring?: "enable" | "disable";
480
+ /** Billing mode: developer (default) or app (isolated billing) */
481
+ billTo?: "developer" | "app";
460
482
  }
461
483
  /** Options for prepareUpgradeFromVerifiableBuild */
462
484
  interface PrepareUpgradeFromVerifiableBuildOpts {
@@ -590,6 +612,7 @@ interface EnvironmentConfig {
590
612
  kmsServerURL: string;
591
613
  userApiServerURL: string;
592
614
  defaultRPCURL: string;
615
+ usdcCreditsAddress?: Address;
593
616
  }
594
617
  interface Release {
595
618
  rmsRelease: {
@@ -750,4 +773,4 @@ interface SequentialDeployResult {
750
773
  };
751
774
  }
752
775
 
753
- export { type PreparedDeploy as $, type AppId as A, type SuspendOptions as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, type EstimateGasOptions as E, type UndelegateOptions as F, type GasEstimate as G, type ExecuteDeploySequentialOptions as H, type IsDelegatedOptions as I, type ExecuteDeployBatchedOptions as J, type BatchedDeployResult as K, noopLogger as L, type logVisibility as M, type DeployAppOpts as N, type UpgradeAppOpts as O, type PrepareDeployBatchOptions as P, type PrepareDeployOpts as Q, type PrepareUpgradeOpts as R, type SendTransactionOptions as S, type PrepareDeployFromVerifiableBuildOpts as T, type UpgradeAppOptions as U, type PrepareUpgradeFromVerifiableBuildOpts as V, type GasOpts as W, type ExecuteDeployResult as X, type ExecuteUpgradeResult as Y, type PreparedDeployData as Z, type PreparedUpgradeData as _, getAppsByCreator as a, type PreparedUpgrade as a0, type LifecycleOpts as a1, type AppRecord as a2, type DeployOptions as a3, type DeployResult as a4, type BillingEnvironmentConfig as a5, type EnvironmentConfig as a6, type Release as a7, type ParsedEnvironment as a8, type ImageDigestResult as a9, type DockerImageConfig as aa, type Logger as ab, type AppProfile as ac, type AppProfileResponse as ad, type ProductID as ae, type ChainID as af, type SubscriptionStatus as ag, type SubscriptionLineItem as ah, type CreateSubscriptionOptions as ai, type GetSubscriptionOptions as aj, type CreateSubscriptionResponse as ak, type CheckoutCreatedResponse as al, type AlreadyActiveResponse as am, type PaymentIssueResponse as an, type SubscribeResponse as ao, type CancelSuccessResponse as ap, type NoActiveSubscriptionResponse as aq, type CancelResponse as ar, type ProductSubscriptionResponse as as, type SubscriptionOpts as at, type DeployProgressCallback as au, type DeployStep as av, type SequentialDeployResult as aw, getAppLatestReleaseBlockNumbers as ax, getBlockTimestamps as ay, getAppsByDeveloper as b, getActiveAppCount as c, getMaxActiveAppsPerUser as d, estimateTransactionGas as e, formatETH as f, getAllAppsByDeveloper as g, executeDeployBatch as h, deployApp as i, calculateAppID as j, executeDeploySequential as k, executeDeployBatched as l, supportsEIP5792 as m, prepareUpgradeBatch as n, executeUpgradeBatch as o, prepareDeployBatch as p, sendAndWaitForTransaction as q, isDelegated as r, supportsEIP7702 as s, suspend as t, upgradeApp as u, undelegate as v, type AppConfig as w, type PrepareUpgradeBatchOptions as x, type PreparedDeployBatch as y, type PreparedUpgradeBatch as z };
776
+ export { type PreparedDeployData as $, type AppId as A, type PreparedDeployBatch as B, type PreparedUpgradeBatch as C, type DeployAppOptions as D, type EstimateGasOptions as E, type CalculateAppIDOptions as F, type GasEstimate as G, type SuspendOptions as H, type UndelegateOptions as I, type IsDelegatedOptions as J, type ExecuteDeploySequentialOptions as K, type ExecuteDeployBatchedOptions as L, type BatchedDeployResult as M, noopLogger as N, type logVisibility as O, type PrepareDeployBatchOptions as P, type DeployAppOpts as Q, type UpgradeAppOpts as R, type SendTransactionOptions as S, type PrepareDeployOpts as T, type UpgradeAppOptions as U, type PrepareUpgradeOpts as V, type PrepareDeployFromVerifiableBuildOpts as W, type PrepareUpgradeFromVerifiableBuildOpts as X, type GasOpts as Y, type ExecuteDeployResult as Z, type ExecuteUpgradeResult as _, getAppsByCreator as a, type PreparedUpgradeData as a0, type PreparedDeploy as a1, type PreparedUpgrade as a2, type LifecycleOpts as a3, type AppRecord as a4, type DeployOptions as a5, type DeployResult as a6, type BillingEnvironmentConfig as a7, type EnvironmentConfig as a8, type Release as a9, getBlockTimestamps as aA, type ParsedEnvironment as aa, type ImageDigestResult as ab, type DockerImageConfig as ac, type Logger as ad, type AppProfile as ae, type AppProfileResponse as af, type ProductID as ag, type ChainID as ah, type SubscriptionStatus as ai, type SubscriptionLineItem as aj, type CreateSubscriptionOptions as ak, type GetSubscriptionOptions as al, type CreateSubscriptionResponse as am, type CheckoutCreatedResponse as an, type AlreadyActiveResponse as ao, type PaymentIssueResponse as ap, type SubscribeResponse as aq, type CancelSuccessResponse as ar, type NoActiveSubscriptionResponse as as, type CancelResponse as at, type ProductSubscriptionResponse as au, type SubscriptionOpts as av, type DeployProgressCallback as aw, type DeployStep as ax, type SequentialDeployResult as ay, getAppLatestReleaseBlockNumbers as az, getAppsByDeveloper as b, getActiveAppCount as c, getMaxActiveAppsPerUser as d, getBillingType as e, getAppsByBillingAccount as f, getAllAppsByDeveloper as g, estimateTransactionGas as h, formatETH as i, executeDeployBatch as j, deployApp as k, calculateAppID as l, executeDeploySequential as m, executeDeployBatched as n, supportsEIP5792 as o, prepareDeployBatch as p, prepareUpgradeBatch as q, executeUpgradeBatch as r, supportsEIP7702 as s, sendAndWaitForTransaction as t, upgradeApp as u, isDelegated as v, suspend as w, undelegate as x, type AppConfig as y, type PrepareUpgradeBatchOptions as z };
@@ -132,6 +132,7 @@ interface PrepareDeployBatchOptions {
132
132
  release: Release;
133
133
  publicLogs: boolean;
134
134
  imageRef: string;
135
+ billTo?: "developer" | "app";
135
136
  }
136
137
  /**
137
138
  * Prepare deploy batch - creates executions without sending transaction
@@ -320,6 +321,17 @@ declare function getAppsByDeveloper(publicClient: PublicClient, environmentConfi
320
321
  apps: Address[];
321
322
  appConfigs: AppConfig[];
322
323
  }>;
324
+ /**
325
+ * Get billing type for an app (0 = DEFAULT, 1 = ISOLATED)
326
+ */
327
+ declare function getBillingType(publicClient: PublicClient, environmentConfig: EnvironmentConfig, app: Address): Promise<number>;
328
+ /**
329
+ * Get apps by billing account (paginated)
330
+ */
331
+ declare function getAppsByBillingAccount(publicClient: PublicClient, environmentConfig: EnvironmentConfig, account: Address, offset: bigint, limit: bigint): Promise<{
332
+ apps: Address[];
333
+ appConfigs: AppConfig[];
334
+ }>;
323
335
  /**
324
336
  * Fetch all apps by a developer by auto-pagination
325
337
  */
@@ -393,6 +405,8 @@ interface DeployAppOpts {
393
405
  instanceType: string;
394
406
  /** Log visibility setting - required */
395
407
  logVisibility: logVisibility;
408
+ /** Billing mode: developer (default) or app (isolated billing) */
409
+ billTo?: "developer" | "app";
396
410
  /** Optional gas params from estimation */
397
411
  gas?: GasEstimate;
398
412
  }
@@ -425,6 +439,12 @@ interface PrepareDeployOpts {
425
439
  logVisibility: logVisibility;
426
440
  /** Resource usage monitoring setting - optional */
427
441
  resourceUsageMonitoring?: "enable" | "disable";
442
+ /** Billing mode: developer (default) or app (isolated billing) */
443
+ billTo?: "developer" | "app";
444
+ /** Skip quota check */
445
+ skipQuotaCheck?: boolean;
446
+ /** Optional salt for deterministic app address prediction (32 bytes) */
447
+ salt?: Uint8Array | Buffer;
428
448
  }
429
449
  /** Options for prepareUpgrade */
430
450
  interface PrepareUpgradeOpts {
@@ -457,6 +477,8 @@ interface PrepareDeployFromVerifiableBuildOpts {
457
477
  logVisibility: logVisibility;
458
478
  /** Resource usage monitoring setting - optional */
459
479
  resourceUsageMonitoring?: "enable" | "disable";
480
+ /** Billing mode: developer (default) or app (isolated billing) */
481
+ billTo?: "developer" | "app";
460
482
  }
461
483
  /** Options for prepareUpgradeFromVerifiableBuild */
462
484
  interface PrepareUpgradeFromVerifiableBuildOpts {
@@ -590,6 +612,7 @@ interface EnvironmentConfig {
590
612
  kmsServerURL: string;
591
613
  userApiServerURL: string;
592
614
  defaultRPCURL: string;
615
+ usdcCreditsAddress?: Address;
593
616
  }
594
617
  interface Release {
595
618
  rmsRelease: {
@@ -750,4 +773,4 @@ interface SequentialDeployResult {
750
773
  };
751
774
  }
752
775
 
753
- export { type PreparedDeploy as $, type AppId as A, type SuspendOptions as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, type EstimateGasOptions as E, type UndelegateOptions as F, type GasEstimate as G, type ExecuteDeploySequentialOptions as H, type IsDelegatedOptions as I, type ExecuteDeployBatchedOptions as J, type BatchedDeployResult as K, noopLogger as L, type logVisibility as M, type DeployAppOpts as N, type UpgradeAppOpts as O, type PrepareDeployBatchOptions as P, type PrepareDeployOpts as Q, type PrepareUpgradeOpts as R, type SendTransactionOptions as S, type PrepareDeployFromVerifiableBuildOpts as T, type UpgradeAppOptions as U, type PrepareUpgradeFromVerifiableBuildOpts as V, type GasOpts as W, type ExecuteDeployResult as X, type ExecuteUpgradeResult as Y, type PreparedDeployData as Z, type PreparedUpgradeData as _, getAppsByCreator as a, type PreparedUpgrade as a0, type LifecycleOpts as a1, type AppRecord as a2, type DeployOptions as a3, type DeployResult as a4, type BillingEnvironmentConfig as a5, type EnvironmentConfig as a6, type Release as a7, type ParsedEnvironment as a8, type ImageDigestResult as a9, type DockerImageConfig as aa, type Logger as ab, type AppProfile as ac, type AppProfileResponse as ad, type ProductID as ae, type ChainID as af, type SubscriptionStatus as ag, type SubscriptionLineItem as ah, type CreateSubscriptionOptions as ai, type GetSubscriptionOptions as aj, type CreateSubscriptionResponse as ak, type CheckoutCreatedResponse as al, type AlreadyActiveResponse as am, type PaymentIssueResponse as an, type SubscribeResponse as ao, type CancelSuccessResponse as ap, type NoActiveSubscriptionResponse as aq, type CancelResponse as ar, type ProductSubscriptionResponse as as, type SubscriptionOpts as at, type DeployProgressCallback as au, type DeployStep as av, type SequentialDeployResult as aw, getAppLatestReleaseBlockNumbers as ax, getBlockTimestamps as ay, getAppsByDeveloper as b, getActiveAppCount as c, getMaxActiveAppsPerUser as d, estimateTransactionGas as e, formatETH as f, getAllAppsByDeveloper as g, executeDeployBatch as h, deployApp as i, calculateAppID as j, executeDeploySequential as k, executeDeployBatched as l, supportsEIP5792 as m, prepareUpgradeBatch as n, executeUpgradeBatch as o, prepareDeployBatch as p, sendAndWaitForTransaction as q, isDelegated as r, supportsEIP7702 as s, suspend as t, upgradeApp as u, undelegate as v, type AppConfig as w, type PrepareUpgradeBatchOptions as x, type PreparedDeployBatch as y, type PreparedUpgradeBatch as z };
776
+ export { type PreparedDeployData as $, type AppId as A, type PreparedDeployBatch as B, type PreparedUpgradeBatch as C, type DeployAppOptions as D, type EstimateGasOptions as E, type CalculateAppIDOptions as F, type GasEstimate as G, type SuspendOptions as H, type UndelegateOptions as I, type IsDelegatedOptions as J, type ExecuteDeploySequentialOptions as K, type ExecuteDeployBatchedOptions as L, type BatchedDeployResult as M, noopLogger as N, type logVisibility as O, type PrepareDeployBatchOptions as P, type DeployAppOpts as Q, type UpgradeAppOpts as R, type SendTransactionOptions as S, type PrepareDeployOpts as T, type UpgradeAppOptions as U, type PrepareUpgradeOpts as V, type PrepareDeployFromVerifiableBuildOpts as W, type PrepareUpgradeFromVerifiableBuildOpts as X, type GasOpts as Y, type ExecuteDeployResult as Z, type ExecuteUpgradeResult as _, getAppsByCreator as a, type PreparedUpgradeData as a0, type PreparedDeploy as a1, type PreparedUpgrade as a2, type LifecycleOpts as a3, type AppRecord as a4, type DeployOptions as a5, type DeployResult as a6, type BillingEnvironmentConfig as a7, type EnvironmentConfig as a8, type Release as a9, getBlockTimestamps as aA, type ParsedEnvironment as aa, type ImageDigestResult as ab, type DockerImageConfig as ac, type Logger as ad, type AppProfile as ae, type AppProfileResponse as af, type ProductID as ag, type ChainID as ah, type SubscriptionStatus as ai, type SubscriptionLineItem as aj, type CreateSubscriptionOptions as ak, type GetSubscriptionOptions as al, type CreateSubscriptionResponse as am, type CheckoutCreatedResponse as an, type AlreadyActiveResponse as ao, type PaymentIssueResponse as ap, type SubscribeResponse as aq, type CancelSuccessResponse as ar, type NoActiveSubscriptionResponse as as, type CancelResponse as at, type ProductSubscriptionResponse as au, type SubscriptionOpts as av, type DeployProgressCallback as aw, type DeployStep as ax, type SequentialDeployResult as ay, getAppLatestReleaseBlockNumbers as az, getAppsByDeveloper as b, getActiveAppCount as c, getMaxActiveAppsPerUser as d, getBillingType as e, getAppsByBillingAccount as f, getAllAppsByDeveloper as g, estimateTransactionGas as h, formatETH as i, executeDeployBatch as j, deployApp as k, calculateAppID as l, executeDeploySequential as m, executeDeployBatched as n, supportsEIP5792 as o, prepareDeployBatch as p, prepareUpgradeBatch as q, executeUpgradeBatch as r, supportsEIP7702 as s, sendAndWaitForTransaction as t, upgradeApp as u, isDelegated as v, suspend as w, undelegate as x, type AppConfig as y, type PrepareUpgradeBatchOptions as z };