@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.
- package/dist/billing.cjs +4 -3
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +1 -1
- package/dist/billing.d.ts +1 -1
- package/dist/billing.js +4 -3
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +168 -4
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +4 -4
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +166 -4
- package/dist/browser.js.map +1 -1
- package/dist/{compute-D0TNHHmD.d.ts → compute-DccJLbtV.d.cts} +6 -1
- package/dist/{compute-6WmcUluf.d.cts → compute-DlilmZYC.d.ts} +6 -1
- package/dist/compute.cjs +206 -18
- package/dist/compute.cjs.map +1 -1
- package/dist/compute.d.cts +2 -2
- package/dist/compute.d.ts +2 -2
- package/dist/compute.js +210 -19
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-D0Mn-6TI.d.cts → helpers-BNeMZYcY.d.cts} +6 -1
- package/dist/{helpers-Dn6fECtP.d.ts → helpers-D_AbDeP4.d.ts} +6 -1
- package/dist/{index-WDunKGVL.d.cts → index-DD7ZLbqD.d.cts} +24 -1
- package/dist/{index-WDunKGVL.d.ts → index-DD7ZLbqD.d.ts} +24 -1
- package/dist/index.cjs +305 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -7
- package/dist/index.d.ts +159 -7
- package/dist/index.js +304 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tools/kms-client-linux-amd64 +0 -0
- package/VERSION +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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
|
|
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
|
|
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 };
|