@layr-labs/ecloud-sdk 1.0.0-dev.7 → 1.0.0-dev.8
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.map +1 -1
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +3 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +3 -2
- package/dist/browser.d.ts +3 -2
- package/dist/browser.js +3 -2
- package/dist/browser.js.map +1 -1
- package/dist/compute-B-V7Dbj9.d.cts +465 -0
- package/dist/compute-BJ_sqrKn.d.ts +465 -0
- package/dist/compute.cjs +236 -45
- package/dist/compute.cjs.map +1 -1
- package/dist/compute.d.cts +2 -1
- package/dist/compute.d.ts +2 -1
- package/dist/compute.js +224 -33
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-BSorDsUi.d.ts → helpers-CkcuSkNM.d.ts} +2 -166
- package/dist/{helpers-Dcp_0i_r.d.cts → helpers-fmu7es2L.d.cts} +2 -166
- package/dist/index.cjs +247 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -242
- package/dist/index.d.ts +50 -242
- package/dist/index.js +228 -33
- package/dist/index.js.map +1 -1
- package/dist/validation-D3yIUF-Z.d.cts +167 -0
- package/dist/validation-D3yIUF-Z.d.ts +167 -0
- package/package.json +1 -1
- package/dist/compute-BqouWhdQ.d.ts +0 -194
- package/dist/compute-DwReciJz.d.cts +0 -194
package/dist/browser.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { A as AppId } from './index-BVnxNfqb.cjs';
|
|
2
2
|
export { a as AddAdminResponse, b as AdminCoupon, c as AdminUser, d as AlreadyActiveResponse, e as AppConfig, f as AppControllerAbiVersion, g as AppProfile, h as AppProfileResponse, i as AppRecord, B as BatchedDeployResult, j as BillingEnvironmentConfig, C as CalculateAppIDOptions, k as CancelResponse, l as CancelSuccessResponse, m as ChainID, n as CheckoutCreatedResponse, o as ContainerPolicy, p as CreateCouponResponse, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, s as CreditPurchaseResponse, D as DeployAppOptions, t as DeployAppOpts, u as DeployOptions, v as DeployProgressCallback, w as DeployResult, x as DeployStep, y as DockerImageConfig, E as EMPTY_CONTAINER_POLICY, z as EnvVar, F as EnvironmentConfig, G as EstimateGasOptions, H as ExecuteDeployBatchedOptions, I as ExecuteDeployResult, J as ExecuteDeploySequentialOptions, K as ExecuteUpgradeResult, L as GasEstimate, M as GasOpts, N as GetCouponResponse, O as GetSubscriptionOptions, P as ImageDigestResult, Q as IsDelegatedOptions, R as LifecycleOpts, S as ListAdminsResponse, T as ListCouponsResponse, U as Logger, V as NoActiveSubscriptionResponse, W as ParsedEnvironment, X as PaymentIssueResponse, Y as PaymentMethod, Z as PaymentMethodsResponse, _ as PrepareDeployBatchOptions, $ as PrepareDeployFromVerifiableBuildOpts, a0 as PrepareDeployOpts, a1 as PrepareUpgradeBatchOptions, a2 as PrepareUpgradeFromVerifiableBuildOpts, a3 as PrepareUpgradeOpts, a4 as PreparedDeploy, a5 as PreparedDeployBatch, a6 as PreparedDeployData, a7 as PreparedUpgrade, a8 as PreparedUpgradeBatch, a9 as PreparedUpgradeData, aa as ProductID, ab as ProductSubscriptionResponse, ac as RedeemCouponResponse, ad as Release, ae as SendTransactionOptions, af as SequentialDeployResult, ag as SubscribeResponse, ah as SubscriptionLineItem, ai as SubscriptionOpts, aj as SubscriptionStatus, ak as SuspendOptions, al as UndelegateOptions, am as UpgradeAppOptions, an as UpgradeAppOpts, ao as calculateAppID, ap as deployApp, aq as estimateTransactionGas, ar as executeDeployBatch, as as executeDeployBatched, at as executeDeploySequential, au as executeUpgradeBatch, av as formatETH, aw as getActiveAppCount, ax as getAllAppsByDeveloper, ay as getAppsByBillingAccount, az as getAppsByCreator, aA as getAppsByDeveloper, aB as getBillingType, aC as getMaxActiveAppsPerUser, aD as isDelegated, aE as logVisibility, aF as noopLogger, aG as prepareDeployBatch, aH as prepareUpgradeBatch, aI as sendAndWaitForTransaction, aJ as supportsEIP5792, aK as supportsEIP7702, aL as suspend, aM as undelegate, aN as upgradeApp } from './index-BVnxNfqb.cjs';
|
|
3
|
-
import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-
|
|
4
|
-
export { A as AppInfo, c as AppInfoResponse, d as AppMetrics, e as AppProfileInfo, B as BillingApiClient, f as BillingApiClientOptions, g as BillingApiConfig, h as BillingLoginRequest, i as BillingLoginResult, j as BillingSessionError, k as BillingSessionInfo,
|
|
3
|
+
import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-fmu7es2L.cjs';
|
|
4
|
+
export { A as AppInfo, c as AppInfoResponse, d as AppMetrics, e as AppProfileInfo, B as BillingApiClient, f as BillingApiClientOptions, g as BillingApiConfig, h as BillingLoginRequest, i as BillingLoginResult, j as BillingSessionError, k as BillingSessionInfo, E as EstimateBatchGasOptions, l as ExecuteBatchOptions, m as Execution, G as GeneratedKey, L as LoginRequest, n as LoginResult, o as SiweMessageResult, U as UserApiClient, p as UserApiClientOptions, q as addHexPrefix, r as checkERC7702Delegation, s as createSiweMessage, t as estimateBatchGas, u as executeBatch, v as generateNewPrivateKey, w as generateNonce, x as getAvailableEnvironments, y as getBillingApiSession, z as getBillingEnvironmentConfig, D as getBuildType, F as getChainFromID, H as getComputeApiSession, I as getEnvironmentConfig, J as isBillingSessionValid, K as isEnvironmentAvailable, M as isMainnet, N as isSessionValid, O as isSiweMessageExpired, P as isSiweMessageNotYetValid, Q as isSubscriptionActive, R as loginToBillingApi, T as loginToBothApis, V as loginToComputeApi, W as logoutFromBillingApi, X as logoutFromBothApis, Y as logoutFromComputeApi, Z as parseSiweMessage, _ as stripHexPrefix } from './helpers-fmu7es2L.cjs';
|
|
5
|
+
export { C as CreateAppParams, L as LogVisibility, a as LogsParams, b as assertValidImageReference, c as assertValidPrivateKey, e as extractAppNameFromImage, s as sanitizeString, d as sanitizeURL, f as sanitizeXURL, v as validateAppID, g as validateAppName, h as validateCreateAppParams, i as validateDescription, j as validateImageReference, k as validateInstanceTypeSKU, l as validateLogVisibility, m as validateLogsParams, n as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './validation-D3yIUF-Z.cjs';
|
|
5
6
|
import { WalletClient, Address, Hex } from 'viem';
|
|
6
7
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
7
8
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { A as AppId } from './index-BVnxNfqb.js';
|
|
2
2
|
export { a as AddAdminResponse, b as AdminCoupon, c as AdminUser, d as AlreadyActiveResponse, e as AppConfig, f as AppControllerAbiVersion, g as AppProfile, h as AppProfileResponse, i as AppRecord, B as BatchedDeployResult, j as BillingEnvironmentConfig, C as CalculateAppIDOptions, k as CancelResponse, l as CancelSuccessResponse, m as ChainID, n as CheckoutCreatedResponse, o as ContainerPolicy, p as CreateCouponResponse, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, s as CreditPurchaseResponse, D as DeployAppOptions, t as DeployAppOpts, u as DeployOptions, v as DeployProgressCallback, w as DeployResult, x as DeployStep, y as DockerImageConfig, E as EMPTY_CONTAINER_POLICY, z as EnvVar, F as EnvironmentConfig, G as EstimateGasOptions, H as ExecuteDeployBatchedOptions, I as ExecuteDeployResult, J as ExecuteDeploySequentialOptions, K as ExecuteUpgradeResult, L as GasEstimate, M as GasOpts, N as GetCouponResponse, O as GetSubscriptionOptions, P as ImageDigestResult, Q as IsDelegatedOptions, R as LifecycleOpts, S as ListAdminsResponse, T as ListCouponsResponse, U as Logger, V as NoActiveSubscriptionResponse, W as ParsedEnvironment, X as PaymentIssueResponse, Y as PaymentMethod, Z as PaymentMethodsResponse, _ as PrepareDeployBatchOptions, $ as PrepareDeployFromVerifiableBuildOpts, a0 as PrepareDeployOpts, a1 as PrepareUpgradeBatchOptions, a2 as PrepareUpgradeFromVerifiableBuildOpts, a3 as PrepareUpgradeOpts, a4 as PreparedDeploy, a5 as PreparedDeployBatch, a6 as PreparedDeployData, a7 as PreparedUpgrade, a8 as PreparedUpgradeBatch, a9 as PreparedUpgradeData, aa as ProductID, ab as ProductSubscriptionResponse, ac as RedeemCouponResponse, ad as Release, ae as SendTransactionOptions, af as SequentialDeployResult, ag as SubscribeResponse, ah as SubscriptionLineItem, ai as SubscriptionOpts, aj as SubscriptionStatus, ak as SuspendOptions, al as UndelegateOptions, am as UpgradeAppOptions, an as UpgradeAppOpts, ao as calculateAppID, ap as deployApp, aq as estimateTransactionGas, ar as executeDeployBatch, as as executeDeployBatched, at as executeDeploySequential, au as executeUpgradeBatch, av as formatETH, aw as getActiveAppCount, ax as getAllAppsByDeveloper, ay as getAppsByBillingAccount, az as getAppsByCreator, aA as getAppsByDeveloper, aB as getBillingType, aC as getMaxActiveAppsPerUser, aD as isDelegated, aE as logVisibility, aF as noopLogger, aG as prepareDeployBatch, aH as prepareUpgradeBatch, aI as sendAndWaitForTransaction, aJ as supportsEIP5792, aK as supportsEIP7702, aL as suspend, aM as undelegate, aN as upgradeApp } from './index-BVnxNfqb.js';
|
|
3
|
-
import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-
|
|
4
|
-
export { A as AppInfo, c as AppInfoResponse, d as AppMetrics, e as AppProfileInfo, B as BillingApiClient, f as BillingApiClientOptions, g as BillingApiConfig, h as BillingLoginRequest, i as BillingLoginResult, j as BillingSessionError, k as BillingSessionInfo,
|
|
3
|
+
import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-CkcuSkNM.js';
|
|
4
|
+
export { A as AppInfo, c as AppInfoResponse, d as AppMetrics, e as AppProfileInfo, B as BillingApiClient, f as BillingApiClientOptions, g as BillingApiConfig, h as BillingLoginRequest, i as BillingLoginResult, j as BillingSessionError, k as BillingSessionInfo, E as EstimateBatchGasOptions, l as ExecuteBatchOptions, m as Execution, G as GeneratedKey, L as LoginRequest, n as LoginResult, o as SiweMessageResult, U as UserApiClient, p as UserApiClientOptions, q as addHexPrefix, r as checkERC7702Delegation, s as createSiweMessage, t as estimateBatchGas, u as executeBatch, v as generateNewPrivateKey, w as generateNonce, x as getAvailableEnvironments, y as getBillingApiSession, z as getBillingEnvironmentConfig, D as getBuildType, F as getChainFromID, H as getComputeApiSession, I as getEnvironmentConfig, J as isBillingSessionValid, K as isEnvironmentAvailable, M as isMainnet, N as isSessionValid, O as isSiweMessageExpired, P as isSiweMessageNotYetValid, Q as isSubscriptionActive, R as loginToBillingApi, T as loginToBothApis, V as loginToComputeApi, W as logoutFromBillingApi, X as logoutFromBothApis, Y as logoutFromComputeApi, Z as parseSiweMessage, _ as stripHexPrefix } from './helpers-CkcuSkNM.js';
|
|
5
|
+
export { C as CreateAppParams, L as LogVisibility, a as LogsParams, b as assertValidImageReference, c as assertValidPrivateKey, e as extractAppNameFromImage, s as sanitizeString, d as sanitizeURL, f as sanitizeXURL, v as validateAppID, g as validateAppName, h as validateCreateAppParams, i as validateDescription, j as validateImageReference, k as validateInstanceTypeSKU, l as validateLogVisibility, m as validateLogsParams, n as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './validation-D3yIUF-Z.js';
|
|
5
6
|
import { WalletClient, Address, Hex } from 'viem';
|
|
6
7
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
7
8
|
|
package/dist/browser.js
CHANGED
|
@@ -598,6 +598,7 @@ import axios from "axios";
|
|
|
598
598
|
var MAX_RETRIES = 5;
|
|
599
599
|
var INITIAL_BACKOFF_MS = 1e3;
|
|
600
600
|
var MAX_BACKOFF_MS = 3e4;
|
|
601
|
+
var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
601
602
|
function sleep(ms) {
|
|
602
603
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
603
604
|
}
|
|
@@ -617,7 +618,7 @@ async function requestWithRetry(config) {
|
|
|
617
618
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
|
618
619
|
const res = await axios({ ...config, validateStatus: () => true });
|
|
619
620
|
lastResponse = res;
|
|
620
|
-
if (res.status
|
|
621
|
+
if (!RETRYABLE_STATUSES.has(res.status)) {
|
|
621
622
|
return res;
|
|
622
623
|
}
|
|
623
624
|
if (attempt < MAX_RETRIES) {
|
|
@@ -646,7 +647,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
646
647
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
647
648
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
648
649
|
function getDefaultClientId() {
|
|
649
|
-
const version = true ? "1.0.0-dev.
|
|
650
|
+
const version = true ? "1.0.0-dev.8" : "0.0.0";
|
|
650
651
|
return `ecloud-sdk/v${version}`;
|
|
651
652
|
}
|
|
652
653
|
var UserApiClient = class {
|