@layr-labs/ecloud-sdk 1.0.0-dev.5 → 1.0.0-dev.7

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 { E as EnvironmentConfig, af as SubscriptionStatus, i as BillingEnvironmentConfig, a6 as ProductID, o as CreateSubscriptionOptions, p as CreateSubscriptionResponse, K as GetSubscriptionOptions, a7 as ProductSubscriptionResponse, V as PaymentMethodsResponse, q as CreditPurchaseResponse, n as CreateCouponResponse, P as ListCouponsResponse, J as GetCouponResponse, a as AddAdminResponse, O as ListAdminsResponse, a8 as RedeemCouponResponse, H as GasEstimate, Q as Logger } from './index-CLhRJNai.js';
1
+ import { F as EnvironmentConfig, aj as SubscriptionStatus, j as BillingEnvironmentConfig, aa as ProductID, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, O as GetSubscriptionOptions, ab as ProductSubscriptionResponse, Z as PaymentMethodsResponse, s as CreditPurchaseResponse, p as CreateCouponResponse, T as ListCouponsResponse, N as GetCouponResponse, a as AddAdminResponse, S as ListAdminsResponse, ac as RedeemCouponResponse, L as GasEstimate, U as Logger } from './index-BVnxNfqb.js';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { E as EnvironmentConfig, af as SubscriptionStatus, i as BillingEnvironmentConfig, a6 as ProductID, o as CreateSubscriptionOptions, p as CreateSubscriptionResponse, K as GetSubscriptionOptions, a7 as ProductSubscriptionResponse, V as PaymentMethodsResponse, q as CreditPurchaseResponse, n as CreateCouponResponse, P as ListCouponsResponse, J as GetCouponResponse, a as AddAdminResponse, O as ListAdminsResponse, a8 as RedeemCouponResponse, H as GasEstimate, Q as Logger } from './index-CLhRJNai.cjs';
1
+ import { F as EnvironmentConfig, aj as SubscriptionStatus, j as BillingEnvironmentConfig, aa as ProductID, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, O as GetSubscriptionOptions, ab as ProductSubscriptionResponse, Z as PaymentMethodsResponse, s as CreditPurchaseResponse, p as CreateCouponResponse, T as ListCouponsResponse, N as GetCouponResponse, a as AddAdminResponse, S as ListAdminsResponse, ac as RedeemCouponResponse, L as GasEstimate, U as Logger } from './index-BVnxNfqb.cjs';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -604,11 +604,20 @@ interface DeployResult {
604
604
  /** Transaction hash */
605
605
  txHash: Hex;
606
606
  }
607
+ /**
608
+ * On-chain AppController ABI version for an environment.
609
+ * - "v1.4": 3-field Release struct (sepolia, mainnet-alpha)
610
+ * - "v1.5": 4-field Release struct with containerPolicy (sepolia-dev)
611
+ * Omitted defaults to the latest ("v1.5") in the contract caller.
612
+ */
613
+ type AppControllerAbiVersion = "v1.4" | "v1.5";
607
614
  interface EnvironmentConfig {
608
615
  name: string;
609
616
  build: "dev" | "prod";
610
617
  chainID: bigint;
611
618
  appControllerAddress: Address;
619
+ /** Deployed AppController ABI version; selects Release encoding. Defaults to v1.5 when omitted. */
620
+ releaseAbiVersion?: AppControllerAbiVersion;
612
621
  permissionControllerAddress: string;
613
622
  erc7702DelegatorAddress: string;
614
623
  kmsServerURL: string;
@@ -619,6 +628,27 @@ interface EnvironmentConfig {
619
628
  baseUsdcCreditsAddress?: Address;
620
629
  baseRPCURL?: string;
621
630
  }
631
+ interface EnvVar {
632
+ key: string;
633
+ value: string;
634
+ }
635
+ /**
636
+ * Container runtime policy attached to a release (AppController v1.5.0+).
637
+ *
638
+ * Added to the on-chain `Release` struct in eigenx-contracts (KMS-006). All
639
+ * fields are optional knobs over the container's entrypoint/runtime; an empty
640
+ * policy (see EMPTY_CONTAINER_POLICY) preserves the image's own
641
+ * CMD/ENTRYPOINT/env.
642
+ */
643
+ interface ContainerPolicy {
644
+ args: string[];
645
+ cmdOverride: string[];
646
+ env: EnvVar[];
647
+ envOverride: EnvVar[];
648
+ restartPolicy: string;
649
+ }
650
+ /** An empty ContainerPolicy — defers entirely to the image defaults. */
651
+ declare const EMPTY_CONTAINER_POLICY: ContainerPolicy;
622
652
  interface Release {
623
653
  rmsRelease: {
624
654
  artifacts: Array<{
@@ -629,6 +659,7 @@ interface Release {
629
659
  };
630
660
  publicEnv: Uint8Array;
631
661
  encryptedEnv: Uint8Array;
662
+ containerPolicy?: ContainerPolicy;
632
663
  }
633
664
  interface ParsedEnvironment {
634
665
  public: Record<string, string>;
@@ -827,4 +858,4 @@ interface RedeemCouponResponse {
827
858
  amountCents: number;
828
859
  }
829
860
 
830
- export { type PrepareUpgradeOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, type EnvironmentConfig as E, type ExecuteDeploySequentialOptions as F, type ExecuteUpgradeResult as G, type GasEstimate as H, type GasOpts as I, type GetCouponResponse as J, type GetSubscriptionOptions as K, type ImageDigestResult as L, type IsDelegatedOptions as M, type LifecycleOpts as N, type ListAdminsResponse as O, type ListCouponsResponse as P, type Logger as Q, type NoActiveSubscriptionResponse as R, type ParsedEnvironment as S, type PaymentIssueResponse as T, type PaymentMethod as U, type PaymentMethodsResponse as V, type PrepareDeployBatchOptions as W, type PrepareDeployFromVerifiableBuildOpts as X, type PrepareDeployOpts as Y, type PrepareUpgradeBatchOptions as Z, type PrepareUpgradeFromVerifiableBuildOpts as _, type AddAdminResponse as a, type PreparedDeploy as a0, type PreparedDeployBatch as a1, type PreparedDeployData as a2, type PreparedUpgrade as a3, type PreparedUpgradeBatch as a4, type PreparedUpgradeData as a5, type ProductID as a6, type ProductSubscriptionResponse as a7, type RedeemCouponResponse as a8, type Release as a9, type logVisibility as aA, noopLogger as aB, prepareDeployBatch as aC, prepareUpgradeBatch as aD, sendAndWaitForTransaction as aE, supportsEIP5792 as aF, supportsEIP7702 as aG, suspend as aH, undelegate as aI, upgradeApp as aJ, getAppLatestReleaseBlockNumbers as aK, getBlockTimestamps as aL, type SendTransactionOptions as aa, type SequentialDeployResult as ab, type SubscribeResponse as ac, type SubscriptionLineItem as ad, type SubscriptionOpts as ae, type SubscriptionStatus as af, type SuspendOptions as ag, type UndelegateOptions as ah, type UpgradeAppOptions as ai, type UpgradeAppOpts as aj, calculateAppID as ak, deployApp as al, estimateTransactionGas as am, executeDeployBatch as an, executeDeployBatched as ao, executeDeploySequential as ap, executeUpgradeBatch as aq, formatETH as ar, getActiveAppCount as as, getAllAppsByDeveloper as at, getAppsByBillingAccount as au, getAppsByCreator as av, getAppsByDeveloper as aw, getBillingType as ax, getMaxActiveAppsPerUser as ay, isDelegated as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppProfile as f, type AppProfileResponse as g, type AppRecord as h, type BillingEnvironmentConfig as i, type CancelResponse as j, type CancelSuccessResponse as k, type ChainID as l, type CheckoutCreatedResponse as m, type CreateCouponResponse as n, type CreateSubscriptionOptions as o, type CreateSubscriptionResponse as p, type CreditPurchaseResponse as q, type DeployAppOpts as r, type DeployOptions as s, type DeployProgressCallback as t, type DeployResult as u, type DeployStep as v, type DockerImageConfig as w, type EstimateGasOptions as x, type ExecuteDeployBatchedOptions as y, type ExecuteDeployResult as z };
861
+ export { type PrepareDeployFromVerifiableBuildOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, EMPTY_CONTAINER_POLICY as E, type EnvironmentConfig as F, type EstimateGasOptions as G, type ExecuteDeployBatchedOptions as H, type ExecuteDeployResult as I, type ExecuteDeploySequentialOptions as J, type ExecuteUpgradeResult as K, type GasEstimate as L, type GasOpts as M, type GetCouponResponse as N, type GetSubscriptionOptions as O, type ImageDigestResult as P, type IsDelegatedOptions as Q, type LifecycleOpts as R, type ListAdminsResponse as S, type ListCouponsResponse as T, type Logger as U, type NoActiveSubscriptionResponse as V, type ParsedEnvironment as W, type PaymentIssueResponse as X, type PaymentMethod as Y, type PaymentMethodsResponse as Z, type PrepareDeployBatchOptions as _, type AddAdminResponse as a, type PrepareDeployOpts as a0, type PrepareUpgradeBatchOptions as a1, type PrepareUpgradeFromVerifiableBuildOpts as a2, type PrepareUpgradeOpts as a3, type PreparedDeploy as a4, type PreparedDeployBatch as a5, type PreparedDeployData as a6, type PreparedUpgrade as a7, type PreparedUpgradeBatch as a8, type PreparedUpgradeData as a9, getAppsByDeveloper as aA, getBillingType as aB, getMaxActiveAppsPerUser as aC, isDelegated as aD, type logVisibility as aE, noopLogger as aF, prepareDeployBatch as aG, prepareUpgradeBatch as aH, sendAndWaitForTransaction as aI, supportsEIP5792 as aJ, supportsEIP7702 as aK, suspend as aL, undelegate as aM, upgradeApp as aN, getAppLatestReleaseBlockNumbers as aO, getBlockTimestamps as aP, type ProductID as aa, type ProductSubscriptionResponse as ab, type RedeemCouponResponse as ac, type Release as ad, type SendTransactionOptions as ae, type SequentialDeployResult as af, type SubscribeResponse as ag, type SubscriptionLineItem as ah, type SubscriptionOpts as ai, type SubscriptionStatus as aj, type SuspendOptions as ak, type UndelegateOptions as al, type UpgradeAppOptions as am, type UpgradeAppOpts as an, calculateAppID as ao, deployApp as ap, estimateTransactionGas as aq, executeDeployBatch as ar, executeDeployBatched as as, executeDeploySequential as at, executeUpgradeBatch as au, formatETH as av, getActiveAppCount as aw, getAllAppsByDeveloper as ax, getAppsByBillingAccount as ay, getAppsByCreator as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppControllerAbiVersion as f, type AppProfile as g, type AppProfileResponse as h, type AppRecord as i, type BillingEnvironmentConfig as j, type CancelResponse as k, type CancelSuccessResponse as l, type ChainID as m, type CheckoutCreatedResponse as n, type ContainerPolicy as o, type CreateCouponResponse as p, type CreateSubscriptionOptions as q, type CreateSubscriptionResponse as r, type CreditPurchaseResponse as s, type DeployAppOpts as t, type DeployOptions as u, type DeployProgressCallback as v, type DeployResult as w, type DeployStep as x, type DockerImageConfig as y, type EnvVar as z };
@@ -604,11 +604,20 @@ interface DeployResult {
604
604
  /** Transaction hash */
605
605
  txHash: Hex;
606
606
  }
607
+ /**
608
+ * On-chain AppController ABI version for an environment.
609
+ * - "v1.4": 3-field Release struct (sepolia, mainnet-alpha)
610
+ * - "v1.5": 4-field Release struct with containerPolicy (sepolia-dev)
611
+ * Omitted defaults to the latest ("v1.5") in the contract caller.
612
+ */
613
+ type AppControllerAbiVersion = "v1.4" | "v1.5";
607
614
  interface EnvironmentConfig {
608
615
  name: string;
609
616
  build: "dev" | "prod";
610
617
  chainID: bigint;
611
618
  appControllerAddress: Address;
619
+ /** Deployed AppController ABI version; selects Release encoding. Defaults to v1.5 when omitted. */
620
+ releaseAbiVersion?: AppControllerAbiVersion;
612
621
  permissionControllerAddress: string;
613
622
  erc7702DelegatorAddress: string;
614
623
  kmsServerURL: string;
@@ -619,6 +628,27 @@ interface EnvironmentConfig {
619
628
  baseUsdcCreditsAddress?: Address;
620
629
  baseRPCURL?: string;
621
630
  }
631
+ interface EnvVar {
632
+ key: string;
633
+ value: string;
634
+ }
635
+ /**
636
+ * Container runtime policy attached to a release (AppController v1.5.0+).
637
+ *
638
+ * Added to the on-chain `Release` struct in eigenx-contracts (KMS-006). All
639
+ * fields are optional knobs over the container's entrypoint/runtime; an empty
640
+ * policy (see EMPTY_CONTAINER_POLICY) preserves the image's own
641
+ * CMD/ENTRYPOINT/env.
642
+ */
643
+ interface ContainerPolicy {
644
+ args: string[];
645
+ cmdOverride: string[];
646
+ env: EnvVar[];
647
+ envOverride: EnvVar[];
648
+ restartPolicy: string;
649
+ }
650
+ /** An empty ContainerPolicy — defers entirely to the image defaults. */
651
+ declare const EMPTY_CONTAINER_POLICY: ContainerPolicy;
622
652
  interface Release {
623
653
  rmsRelease: {
624
654
  artifacts: Array<{
@@ -629,6 +659,7 @@ interface Release {
629
659
  };
630
660
  publicEnv: Uint8Array;
631
661
  encryptedEnv: Uint8Array;
662
+ containerPolicy?: ContainerPolicy;
632
663
  }
633
664
  interface ParsedEnvironment {
634
665
  public: Record<string, string>;
@@ -827,4 +858,4 @@ interface RedeemCouponResponse {
827
858
  amountCents: number;
828
859
  }
829
860
 
830
- export { type PrepareUpgradeOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, type EnvironmentConfig as E, type ExecuteDeploySequentialOptions as F, type ExecuteUpgradeResult as G, type GasEstimate as H, type GasOpts as I, type GetCouponResponse as J, type GetSubscriptionOptions as K, type ImageDigestResult as L, type IsDelegatedOptions as M, type LifecycleOpts as N, type ListAdminsResponse as O, type ListCouponsResponse as P, type Logger as Q, type NoActiveSubscriptionResponse as R, type ParsedEnvironment as S, type PaymentIssueResponse as T, type PaymentMethod as U, type PaymentMethodsResponse as V, type PrepareDeployBatchOptions as W, type PrepareDeployFromVerifiableBuildOpts as X, type PrepareDeployOpts as Y, type PrepareUpgradeBatchOptions as Z, type PrepareUpgradeFromVerifiableBuildOpts as _, type AddAdminResponse as a, type PreparedDeploy as a0, type PreparedDeployBatch as a1, type PreparedDeployData as a2, type PreparedUpgrade as a3, type PreparedUpgradeBatch as a4, type PreparedUpgradeData as a5, type ProductID as a6, type ProductSubscriptionResponse as a7, type RedeemCouponResponse as a8, type Release as a9, type logVisibility as aA, noopLogger as aB, prepareDeployBatch as aC, prepareUpgradeBatch as aD, sendAndWaitForTransaction as aE, supportsEIP5792 as aF, supportsEIP7702 as aG, suspend as aH, undelegate as aI, upgradeApp as aJ, getAppLatestReleaseBlockNumbers as aK, getBlockTimestamps as aL, type SendTransactionOptions as aa, type SequentialDeployResult as ab, type SubscribeResponse as ac, type SubscriptionLineItem as ad, type SubscriptionOpts as ae, type SubscriptionStatus as af, type SuspendOptions as ag, type UndelegateOptions as ah, type UpgradeAppOptions as ai, type UpgradeAppOpts as aj, calculateAppID as ak, deployApp as al, estimateTransactionGas as am, executeDeployBatch as an, executeDeployBatched as ao, executeDeploySequential as ap, executeUpgradeBatch as aq, formatETH as ar, getActiveAppCount as as, getAllAppsByDeveloper as at, getAppsByBillingAccount as au, getAppsByCreator as av, getAppsByDeveloper as aw, getBillingType as ax, getMaxActiveAppsPerUser as ay, isDelegated as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppProfile as f, type AppProfileResponse as g, type AppRecord as h, type BillingEnvironmentConfig as i, type CancelResponse as j, type CancelSuccessResponse as k, type ChainID as l, type CheckoutCreatedResponse as m, type CreateCouponResponse as n, type CreateSubscriptionOptions as o, type CreateSubscriptionResponse as p, type CreditPurchaseResponse as q, type DeployAppOpts as r, type DeployOptions as s, type DeployProgressCallback as t, type DeployResult as u, type DeployStep as v, type DockerImageConfig as w, type EstimateGasOptions as x, type ExecuteDeployBatchedOptions as y, type ExecuteDeployResult as z };
861
+ export { type PrepareDeployFromVerifiableBuildOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, EMPTY_CONTAINER_POLICY as E, type EnvironmentConfig as F, type EstimateGasOptions as G, type ExecuteDeployBatchedOptions as H, type ExecuteDeployResult as I, type ExecuteDeploySequentialOptions as J, type ExecuteUpgradeResult as K, type GasEstimate as L, type GasOpts as M, type GetCouponResponse as N, type GetSubscriptionOptions as O, type ImageDigestResult as P, type IsDelegatedOptions as Q, type LifecycleOpts as R, type ListAdminsResponse as S, type ListCouponsResponse as T, type Logger as U, type NoActiveSubscriptionResponse as V, type ParsedEnvironment as W, type PaymentIssueResponse as X, type PaymentMethod as Y, type PaymentMethodsResponse as Z, type PrepareDeployBatchOptions as _, type AddAdminResponse as a, type PrepareDeployOpts as a0, type PrepareUpgradeBatchOptions as a1, type PrepareUpgradeFromVerifiableBuildOpts as a2, type PrepareUpgradeOpts as a3, type PreparedDeploy as a4, type PreparedDeployBatch as a5, type PreparedDeployData as a6, type PreparedUpgrade as a7, type PreparedUpgradeBatch as a8, type PreparedUpgradeData as a9, getAppsByDeveloper as aA, getBillingType as aB, getMaxActiveAppsPerUser as aC, isDelegated as aD, type logVisibility as aE, noopLogger as aF, prepareDeployBatch as aG, prepareUpgradeBatch as aH, sendAndWaitForTransaction as aI, supportsEIP5792 as aJ, supportsEIP7702 as aK, suspend as aL, undelegate as aM, upgradeApp as aN, getAppLatestReleaseBlockNumbers as aO, getBlockTimestamps as aP, type ProductID as aa, type ProductSubscriptionResponse as ab, type RedeemCouponResponse as ac, type Release as ad, type SendTransactionOptions as ae, type SequentialDeployResult as af, type SubscribeResponse as ag, type SubscriptionLineItem as ah, type SubscriptionOpts as ai, type SubscriptionStatus as aj, type SuspendOptions as ak, type UndelegateOptions as al, type UpgradeAppOptions as am, type UpgradeAppOpts as an, calculateAppID as ao, deployApp as ap, estimateTransactionGas as aq, executeDeployBatch as ar, executeDeployBatched as as, executeDeploySequential as at, executeUpgradeBatch as au, formatETH as av, getActiveAppCount as aw, getAllAppsByDeveloper as ax, getAppsByBillingAccount as ay, getAppsByCreator as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppControllerAbiVersion as f, type AppProfile as g, type AppProfileResponse as h, type AppRecord as i, type BillingEnvironmentConfig as j, type CancelResponse as k, type CancelSuccessResponse as l, type ChainID as m, type CheckoutCreatedResponse as n, type ContainerPolicy as o, type CreateCouponResponse as p, type CreateSubscriptionOptions as q, type CreateSubscriptionResponse as r, type CreditPurchaseResponse as s, type DeployAppOpts as t, type DeployOptions as u, type DeployProgressCallback as v, type DeployResult as w, type DeployStep as x, type DockerImageConfig as y, type EnvVar as z };