@layr-labs/ecloud-sdk 0.4.0 → 0.4.1-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/VERSION +2 -2
- package/dist/billing.cjs +4 -1
- 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 -1
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +6 -2
- 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 +6 -2
- package/dist/browser.js.map +1 -1
- package/dist/{compute-CC55YQ_a.d.ts → compute-BurtCz2l.d.ts} +1 -1
- package/dist/{compute-BRDk7QM4.d.cts → compute-CGbWIlic.d.cts} +1 -1
- package/dist/compute.cjs +6 -2
- 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 +6 -2
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-BcoV07Me.d.ts → helpers-B3ZK7w_7.d.ts} +1 -1
- package/dist/{helpers-DdtPaQr9.d.cts → helpers-CXevm4tr.d.cts} +1 -1
- package/dist/{index-BEbhrwWl.d.cts → index-0GwdZDmQ.d.cts} +2 -0
- package/dist/{index-BEbhrwWl.d.ts → index-0GwdZDmQ.d.ts} +2 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as ComputeModule } from './compute-
|
|
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-
|
|
1
|
+
import { C as ComputeModule } from './compute-CGbWIlic.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-CGbWIlic.cjs';
|
|
3
3
|
import { BillingModule } from './billing.cjs';
|
|
4
4
|
export { BillingModuleConfig, createBillingModule } from './billing.cjs';
|
|
5
5
|
import { WalletClient, PublicClient, Address, Hex } from 'viem';
|
|
6
6
|
export { AttestClient, AttestClientConfig, JwtProvider } from './attest.cjs';
|
|
7
|
-
import { L as LogVisibility, aj as ResourceUsageMonitoring } from './helpers-
|
|
8
|
-
export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, al as AppRelease, am as AppReleaseBuild, an as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, as as DeployParams, Q as EstimateBatchGasOptions, G as GeneratedKey, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, _ as SiweMessageResult, au as UpgradeParams, U as UserApiClient, ah as addHexPrefix, ap as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, ak as createViemClients, N as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, $ as loginToComputeApi, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, at as validateDeployParams, q as validateDescription, ao as validateFilePath, aq as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, ar as validateResourceUsageMonitoring, o as validateURL, av as validateUpgradeParams, p as validateXURL } from './helpers-
|
|
9
|
-
import { G as GasEstimate, ad as Logger, a1 as PreparedDeploy, a8 as EnvironmentConfig, a6 as DeployResult, a2 as PreparedUpgrade, A as AppId } from './index-
|
|
10
|
-
export { ao as AlreadyActiveResponse, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, a7 as BillingEnvironmentConfig, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, ax as DeployStep, ac as DockerImageConfig, E as EstimateGasOptions, Z as ExecuteDeployResult, _ as ExecuteUpgradeResult, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, a3 as LifecycleOpts, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, $ as PreparedDeployData, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, R as UpgradeAppOpts, l as calculateAppID, h as estimateTransactionGas, i as formatETH, g as getAllAppsByDeveloper, az as getAppLatestReleaseBlockNumbers, f as getAppsByBillingAccount, e as getBillingType, aA as getBlockTimestamps, O as logVisibility, N as noopLogger } from './index-
|
|
7
|
+
import { L as LogVisibility, aj as ResourceUsageMonitoring } from './helpers-CXevm4tr.cjs';
|
|
8
|
+
export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, al as AppRelease, am as AppReleaseBuild, an as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, as as DeployParams, Q as EstimateBatchGasOptions, G as GeneratedKey, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, _ as SiweMessageResult, au as UpgradeParams, U as UserApiClient, ah as addHexPrefix, ap as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, ak as createViemClients, N as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, $ as loginToComputeApi, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, at as validateDeployParams, q as validateDescription, ao as validateFilePath, aq as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, ar as validateResourceUsageMonitoring, o as validateURL, av as validateUpgradeParams, p as validateXURL } from './helpers-CXevm4tr.cjs';
|
|
9
|
+
import { G as GasEstimate, ad as Logger, a1 as PreparedDeploy, a8 as EnvironmentConfig, a6 as DeployResult, a2 as PreparedUpgrade, A as AppId } from './index-0GwdZDmQ.cjs';
|
|
10
|
+
export { ao as AlreadyActiveResponse, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, a7 as BillingEnvironmentConfig, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, ax as DeployStep, ac as DockerImageConfig, E as EstimateGasOptions, Z as ExecuteDeployResult, _ as ExecuteUpgradeResult, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, a3 as LifecycleOpts, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, $ as PreparedDeployData, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, R as UpgradeAppOpts, l as calculateAppID, h as estimateTransactionGas, i as formatETH, g as getAllAppsByDeveloper, az as getAppLatestReleaseBlockNumbers, f as getAppsByBillingAccount, e as getBillingType, aA as getBlockTimestamps, O as logVisibility, N as noopLogger } from './index-0GwdZDmQ.cjs';
|
|
11
11
|
|
|
12
12
|
interface SubmitBuildRequest {
|
|
13
13
|
repoUrl: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as ComputeModule } from './compute-
|
|
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-
|
|
1
|
+
import { C as ComputeModule } from './compute-BurtCz2l.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-BurtCz2l.js';
|
|
3
3
|
import { BillingModule } from './billing.js';
|
|
4
4
|
export { BillingModuleConfig, createBillingModule } from './billing.js';
|
|
5
5
|
import { WalletClient, PublicClient, Address, Hex } from 'viem';
|
|
6
6
|
export { AttestClient, AttestClientConfig, JwtProvider } from './attest.js';
|
|
7
|
-
import { L as LogVisibility, aj as ResourceUsageMonitoring } from './helpers-
|
|
8
|
-
export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, al as AppRelease, am as AppReleaseBuild, an as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, as as DeployParams, Q as EstimateBatchGasOptions, G as GeneratedKey, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, _ as SiweMessageResult, au as UpgradeParams, U as UserApiClient, ah as addHexPrefix, ap as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, ak as createViemClients, N as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, $ as loginToComputeApi, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, at as validateDeployParams, q as validateDescription, ao as validateFilePath, aq as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, ar as validateResourceUsageMonitoring, o as validateURL, av as validateUpgradeParams, p as validateXURL } from './helpers-
|
|
9
|
-
import { G as GasEstimate, ad as Logger, a1 as PreparedDeploy, a8 as EnvironmentConfig, a6 as DeployResult, a2 as PreparedUpgrade, A as AppId } from './index-
|
|
10
|
-
export { ao as AlreadyActiveResponse, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, a7 as BillingEnvironmentConfig, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, ax as DeployStep, ac as DockerImageConfig, E as EstimateGasOptions, Z as ExecuteDeployResult, _ as ExecuteUpgradeResult, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, a3 as LifecycleOpts, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, $ as PreparedDeployData, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, R as UpgradeAppOpts, l as calculateAppID, h as estimateTransactionGas, i as formatETH, g as getAllAppsByDeveloper, az as getAppLatestReleaseBlockNumbers, f as getAppsByBillingAccount, e as getBillingType, aA as getBlockTimestamps, O as logVisibility, N as noopLogger } from './index-
|
|
7
|
+
import { L as LogVisibility, aj as ResourceUsageMonitoring } from './helpers-B3ZK7w_7.js';
|
|
8
|
+
export { F as AppInfo, I as AppMetrics, H as AppProfileInfo, al as AppRelease, am as AppReleaseBuild, an as AppResponse, K as BillingApiClient, C as ComputeApiConfig, z as CreateAppParams, as as DeployParams, Q as EstimateBatchGasOptions, G as GeneratedKey, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, a as SessionError, S as SessionInfo, b as SiweMessageParams, _ as SiweMessageResult, au as UpgradeParams, U as UserApiClient, ah as addHexPrefix, ap as assertValidFilePath, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, ak as createViemClients, N as estimateBatchGas, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, $ as loginToComputeApi, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, at as validateDeployParams, q as validateDescription, ao as validateFilePath, aq as validateImagePath, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, ar as validateResourceUsageMonitoring, o as validateURL, av as validateUpgradeParams, p as validateXURL } from './helpers-B3ZK7w_7.js';
|
|
9
|
+
import { G as GasEstimate, ad as Logger, a1 as PreparedDeploy, a8 as EnvironmentConfig, a6 as DeployResult, a2 as PreparedUpgrade, A as AppId } from './index-0GwdZDmQ.js';
|
|
10
|
+
export { ao as AlreadyActiveResponse, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, a7 as BillingEnvironmentConfig, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, ax as DeployStep, ac as DockerImageConfig, E as EstimateGasOptions, Z as ExecuteDeployResult, _ as ExecuteUpgradeResult, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, a3 as LifecycleOpts, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, $ as PreparedDeployData, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, R as UpgradeAppOpts, l as calculateAppID, h as estimateTransactionGas, i as formatETH, g as getAllAppsByDeveloper, az as getAppLatestReleaseBlockNumbers, f as getAppsByBillingAccount, e as getBillingType, aA as getBlockTimestamps, O as logVisibility, N as noopLogger } from './index-0GwdZDmQ.js';
|
|
11
11
|
|
|
12
12
|
interface SubmitBuildRequest {
|
|
13
13
|
repoUrl: string;
|
package/dist/index.js
CHANGED
|
@@ -2455,6 +2455,9 @@ async function executeBatch(options, logger = noopLogger) {
|
|
|
2455
2455
|
if (gas?.maxPriorityFeePerGas) {
|
|
2456
2456
|
txRequest.maxPriorityFeePerGas = gas.maxPriorityFeePerGas;
|
|
2457
2457
|
}
|
|
2458
|
+
if (gas?.nonce != null) {
|
|
2459
|
+
txRequest.nonce = gas.nonce;
|
|
2460
|
+
}
|
|
2458
2461
|
const hash = await walletClient.sendTransaction(txRequest);
|
|
2459
2462
|
logger.info(`Transaction sent: ${hash}`);
|
|
2460
2463
|
const receipt = await waitForReceipt(publicClient, hash, logger);
|
|
@@ -4501,6 +4504,7 @@ ${pendingMessage}`);
|
|
|
4501
4504
|
...gas?.maxPriorityFeePerGas && {
|
|
4502
4505
|
maxPriorityFeePerGas: gas.maxPriorityFeePerGas
|
|
4503
4506
|
},
|
|
4507
|
+
...gas?.nonce != null && { nonce: gas.nonce },
|
|
4504
4508
|
chain
|
|
4505
4509
|
});
|
|
4506
4510
|
logger.info(`Transaction sent: ${hash}`);
|
|
@@ -4833,7 +4837,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4833
4837
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4834
4838
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4835
4839
|
function getDefaultClientId() {
|
|
4836
|
-
const version = true ? "0.4.
|
|
4840
|
+
const version = true ? "0.4.1-dev" : "0.0.0";
|
|
4837
4841
|
return `ecloud-sdk/v${version}`;
|
|
4838
4842
|
}
|
|
4839
4843
|
var UserApiClient = class {
|
|
@@ -5681,7 +5685,7 @@ function getBillingEnvironmentConfig(build) {
|
|
|
5681
5685
|
return config;
|
|
5682
5686
|
}
|
|
5683
5687
|
function getBuildType() {
|
|
5684
|
-
const buildTimeType = true ? "
|
|
5688
|
+
const buildTimeType = true ? "dev"?.toLowerCase() : void 0;
|
|
5685
5689
|
const runtimeType = process.env.BUILD_TYPE?.toLowerCase();
|
|
5686
5690
|
const buildType = buildTimeType || runtimeType;
|
|
5687
5691
|
if (buildType === "dev") {
|