@astrogate/sdk 0.3.0 → 0.4.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.
@@ -236,7 +236,7 @@ export declare function createManagement(options: ManagementOptions): {
236
236
  }>;
237
237
  get: (project: string, environment: string, signal?: AbortSignal) => Promise<{
238
238
  id: string;
239
- state: "pending" | "starting" | "ready" | "stopped" | "failed";
239
+ state: "pending" | "starting" | "ready" | "sleeping" | "stopped" | "failed";
240
240
  sourceRevision: string;
241
241
  url: string;
242
242
  operationId: string;
@@ -36,7 +36,7 @@ function domainRegistration(value) {
36
36
  return object(value) && ["id", "domain", "challengeName", "challengeValue"].every(key => typeof value[key] === "string") && Number.isSafeInteger(value.revision) && (value.state === "pending" || value.state === "verified");
37
37
  }
38
38
  function workspace(value) {
39
- return object(value) && ["id", "sourceRevision", "url", "operationId"].every(key => typeof value[key] === "string") && typeof value.state === "string" && ["pending", "starting", "ready", "stopped", "failed"].includes(value.state);
39
+ return object(value) && ["id", "sourceRevision", "url", "operationId"].every(key => typeof value[key] === "string") && typeof value.state === "string" && ["pending", "starting", "ready", "sleeping", "stopped", "failed"].includes(value.state);
40
40
  }
41
41
  function deploymentState(value) {
42
42
  return (object(value) &&
package/dist/operator.js CHANGED
@@ -12,7 +12,7 @@ function catalogEntry(value) {
12
12
  function environmentTopology(value) {
13
13
  if (!object(value) || typeof value.cell !== "string" || !Number.isSafeInteger(value.epoch) || typeof value.fresh !== "boolean" || typeof value.observedAt !== "string" || typeof value.validUntil !== "string" || !Number.isFinite(Date.parse(value.observedAt)) || !Number.isFinite(Date.parse(value.validUntil)))
14
14
  return false;
15
- return Array.isArray(value.hosts) && value.hosts.every(host => object(host) && typeof host.ready === "boolean" && ["name", "providerId", "architecture", "operatingSystem", "kubeletVersion", "containerRuntimeVersion"].every(key => typeof host[key] === "string")) && Array.isArray(value.targets) && value.targets.every(target => object(target) && typeof target.ready === "boolean" && ["name", "node", "service"].every(key => typeof target[key] === "string"));
15
+ return Array.isArray(value.hosts) && value.hosts.every(host => object(host) && typeof host.ready === "boolean" && ["name", "providerId", "architecture", "operatingSystem", "kubeletVersion", "containerRuntimeVersion"].every(key => typeof host[key] === "string")) && Array.isArray(value.targets) && value.targets.every(target => object(target) && typeof target.ready === "boolean" && ["name", "node", "service"].every(key => typeof target[key] === "string") && (target.kind === undefined || target.kind === "instance" || target.kind === "managed_endpoint") && (target.providerId === undefined || typeof target.providerId === "string") && (target.kind !== "managed_endpoint" || target.node === "" && typeof target.providerId === "string" && target.providerId.length > 0));
16
16
  }
17
17
  export function createOperator(options) {
18
18
  const endpoint = managementAuthority(options);
@@ -1317,7 +1317,7 @@ export interface components {
1317
1317
  Workspace: {
1318
1318
  id: string;
1319
1319
  /** @enum {string} */
1320
- state: "pending" | "starting" | "ready" | "stopped" | "failed";
1320
+ state: "pending" | "starting" | "ready" | "sleeping" | "stopped" | "failed";
1321
1321
  sourceRevision: string;
1322
1322
  url: string;
1323
1323
  operationId: string;
@@ -1348,8 +1348,12 @@ export interface components {
1348
1348
  location: string;
1349
1349
  /** @description Exact optional recovery location, or empty for no standby. */
1350
1350
  standbyLocation: string;
1351
- /** @enum {string} */
1352
- runtimeMode: "onDemand" | "alwaysOn";
1351
+ /**
1352
+ * @description Ordinary applications default to onDemand. Select alwaysOn explicitly to keep a warm replica; the registered capacity profile owns idle and wake budgets.
1353
+ * @default onDemand
1354
+ * @enum {string}
1355
+ */
1356
+ runtimeMode?: "onDemand" | "alwaysOn";
1353
1357
  };
1354
1358
  ChangePlacement: {
1355
1359
  /** Format: int64 */
@@ -1663,6 +1667,9 @@ export interface components {
1663
1667
  node: string;
1664
1668
  service: string;
1665
1669
  ready: boolean;
1670
+ /** @enum {string} */
1671
+ kind?: "instance" | "managed_endpoint";
1672
+ providerId?: string;
1666
1673
  };
1667
1674
  EnvironmentTopology: {
1668
1675
  cell: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrogate/sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Scoped Astrogate application and infrastructure clients",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
package/release.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrogate/sdk",
3
- "version": "0.3.0",
4
- "sourceRevision": "2e9b8e88b8e903876ab1af4f29cab939965b02c4",
3
+ "version": "0.4.0",
4
+ "sourceRevision": "18fc8826ba5b26680853f803e210fe809209fcb2",
5
5
  "cleanSource": true,
6
6
  "sdkLockSHA256": "18c62b4e44914fefcd3a06c72121bac03545170d6a77d9d6333dfab276382990",
7
7
  "nativeLockSHA256": "747051f0cdb1b0c493967c480c1bef111cde7661cdf66eb2d132803c11bd8d3a",