@layr-labs/ecloud-sdk 1.0.0-devep8 → 1.0.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.
@@ -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;
@@ -618,9 +627,28 @@ interface EnvironmentConfig {
618
627
  usdcCreditsAddress?: Address;
619
628
  baseUsdcCreditsAddress?: Address;
620
629
  baseRPCURL?: string;
621
- platformEnv: string;
622
- appBaseDomain: string;
623
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;
624
652
  interface Release {
625
653
  rmsRelease: {
626
654
  artifacts: Array<{
@@ -631,6 +659,7 @@ interface Release {
631
659
  };
632
660
  publicEnv: Uint8Array;
633
661
  encryptedEnv: Uint8Array;
662
+ containerPolicy?: ContainerPolicy;
634
663
  }
635
664
  interface ParsedEnvironment {
636
665
  public: Record<string, string>;
@@ -795,5 +824,38 @@ interface SequentialDeployResult {
795
824
  setPublicLogs?: Hex;
796
825
  };
797
826
  }
827
+ interface AdminCoupon {
828
+ id: string;
829
+ amountCents: number;
830
+ active: boolean;
831
+ redeemedBy: string;
832
+ redeemedAt: string | null;
833
+ createdBy: string;
834
+ createdAt: string;
835
+ }
836
+ interface CreateCouponResponse {
837
+ coupon: AdminCoupon;
838
+ }
839
+ interface ListCouponsResponse {
840
+ coupons: AdminCoupon[];
841
+ total: number;
842
+ }
843
+ interface GetCouponResponse {
844
+ coupon: AdminCoupon;
845
+ }
846
+ interface AdminUser {
847
+ id: string;
848
+ address: string;
849
+ createdAt: string;
850
+ }
851
+ interface AddAdminResponse {
852
+ admin: AdminUser;
853
+ }
854
+ interface ListAdminsResponse {
855
+ admins: AdminUser[];
856
+ }
857
+ interface RedeemCouponResponse {
858
+ amountCents: number;
859
+ }
798
860
 
799
- export { type ProductID as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, type EnvironmentConfig as E, type IsDelegatedOptions as F, type GasEstimate as G, type Logger as H, type ImageDigestResult as I, type PaymentIssueResponse as J, type PaymentMethod as K, type LifecycleOpts as L, type PaymentMethodsResponse as M, type NoActiveSubscriptionResponse as N, type PrepareDeployBatchOptions as O, type ParsedEnvironment as P, type PrepareDeployFromVerifiableBuildOpts as Q, type PrepareDeployOpts as R, type PrepareUpgradeBatchOptions as S, type PrepareUpgradeFromVerifiableBuildOpts as T, type PrepareUpgradeOpts as U, type PreparedDeploy as V, type PreparedDeployBatch as W, type PreparedDeployData as X, type PreparedUpgrade as Y, type PreparedUpgradeBatch as Z, type PreparedUpgradeData as _, type AlreadyActiveResponse as a, type ProductSubscriptionResponse as a0, type Release as a1, type SendTransactionOptions as a2, type SequentialDeployResult as a3, type SubscribeResponse as a4, type SubscriptionLineItem as a5, type SubscriptionOpts as a6, type SubscriptionStatus as a7, type SuspendOptions as a8, type UndelegateOptions as a9, undelegate as aA, upgradeApp as aB, getAppLatestReleaseBlockNumbers as aC, getBlockTimestamps as aD, type UpgradeAppOptions as aa, type UpgradeAppOpts as ab, calculateAppID as ac, deployApp as ad, estimateTransactionGas as ae, executeDeployBatch as af, executeDeployBatched as ag, executeDeploySequential as ah, executeUpgradeBatch as ai, formatETH as aj, getActiveAppCount as ak, getAllAppsByDeveloper as al, getAppsByBillingAccount as am, getAppsByCreator as an, getAppsByDeveloper as ao, getBillingType as ap, getMaxActiveAppsPerUser as aq, isDelegated as ar, type logVisibility as as, noopLogger as at, prepareDeployBatch as au, prepareUpgradeBatch as av, sendAndWaitForTransaction as aw, supportsEIP5792 as ax, supportsEIP7702 as ay, suspend as az, type AppConfig as b, type AppProfile as c, type AppProfileResponse as d, type AppRecord as e, type BillingEnvironmentConfig as f, type CancelResponse as g, type CancelSuccessResponse as h, type ChainID as i, type CheckoutCreatedResponse as j, type CreateSubscriptionOptions as k, type CreateSubscriptionResponse as l, type CreditPurchaseResponse as m, type DeployAppOpts as n, type DeployOptions as o, type DeployProgressCallback as p, type DeployResult as q, type DeployStep as r, type DockerImageConfig as s, type EstimateGasOptions as t, type ExecuteDeployBatchedOptions as u, type ExecuteDeployResult as v, type ExecuteDeploySequentialOptions as w, type ExecuteUpgradeResult as x, type GasOpts as y, type GetSubscriptionOptions 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 };