@alienplatform/core 3.3.59 → 3.3.61

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/index.js CHANGED
@@ -186,6 +186,19 @@ const AiModelAvailabilitySchema = z$2.enum([
186
186
  "blocked",
187
187
  "unknown"
188
188
  ]);
189
+ // src/generated/zod/ai-quota-warning-schema.ts
190
+ /**
191
+ * Generated by Kubb (https://kubb.dev/).
192
+ * Do not edit manually.
193
+ */
194
+ /**
195
+ * @description One quota the account has set well below the cloud\'s default (under 10%).
196
+ */
197
+ const AiQuotaWarningSchema = z$2.object({
198
+ "applied": z$2.number(),
199
+ "default": z$2.number(),
200
+ "quotaName": z$2.string()
201
+ }).describe("One quota the account has set well below the cloud's default (under 10%).");
189
202
  // src/generated/zod/client-api-schema.ts
190
203
  /**
191
204
  * Generated by Kubb (https://kubb.dev/).
@@ -219,7 +232,11 @@ const AiModelAvailabilityObservationSchema = z$2.object({
219
232
  },
220
233
  "errorCode": z$2.string().nullish(),
221
234
  "publicModelId": z$2.string(),
222
- "testedAt": z$2.iso.datetime().nullish()
235
+ get "quotaWarnings"() {
236
+ return z$2.array(AiQuotaWarningSchema.describe("One quota the account has set well below the cloud's default (under 10%).")).describe("Applied quotas far below the cloud's default for this model. Empty when none were read\nor none are low.").optional();
237
+ },
238
+ "testedAt": z$2.iso.datetime().nullish(),
239
+ "throttledLastHour": z$2.int().min(0).describe("Requests the cloud throttled for this model in the last hour, from the cloud's own\nmetrics. `None` when not read; `Some(0)` is a real zero.").nullish()
223
240
  });
224
241
  // src/generated/zod/ai-availability-observation-schema.ts
225
242
  /**
@@ -391,6 +408,18 @@ const AiHeartbeatDataSchema = z$2.union([
391
408
  z$2.lazy(() => AzureFoundryAiHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["azureFoundry"]) })),
392
409
  z$2.lazy(() => ExternalAiHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["external"]) }))
393
410
  ]);
411
+ // src/generated/zod/ai-model-schema.ts
412
+ /**
413
+ * Generated by Kubb (https://kubb.dev/).
414
+ * Do not edit manually.
415
+ */
416
+ /**
417
+ * @description A model the app calls through an AI resource.
418
+ */
419
+ const AiModelSchema = z$2.object({
420
+ "id": z$2.string().describe("The model identifier as the app uses it, for example `claude-sonnet-4-6`."),
421
+ "required": z$2.optional(z$2.boolean().describe("Whether the app's main feature needs this model. A refused required model is reported\nas needing attention; it never blocks the deployment."))
422
+ }).describe("A model the app calls through an AI resource.");
394
423
  z$2.object({
395
424
  "account": z$2.string().describe("The provider account or project identifier, if applicable.").nullish(),
396
425
  "endpoint": z$2.string().describe("The provider endpoint URL, if applicable.").nullish(),
@@ -404,7 +433,12 @@ z$2.object({
404
433
  /**
405
434
  * @description Represents an AI Gateway resource that provides a unified interface to\nmanaged AI inference services across cloud providers.\n\nBYO-key external providers (OpenAI/Anthropic) are NOT declared here. Like any\nother BYO infrastructure (e.g. external Redis for `kv`), an external AI\nprovider is supplied at deploy time as an `ExternalBinding::Ai` in the\nstack\'s external-bindings map; the executor then skips the cloud controller.
406
435
  */
407
- const AiSchema = z$2.object({ "id": z$2.string().describe("Identifier for the AI resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]).\nMaximum 64 characters.") }).describe("Represents an AI Gateway resource that provides a unified interface to\nmanaged AI inference services across cloud providers.\n\nBYO-key external providers (OpenAI/Anthropic) are NOT declared here. Like any\nother BYO infrastructure (e.g. external Redis for `kv`), an external AI\nprovider is supplied at deploy time as an `ExternalBinding::Ai` in the\nstack's external-bindings map; the executor then skips the cloud controller.");
436
+ const AiSchema = z$2.object({
437
+ "id": z$2.string().describe("Identifier for the AI resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]).\nMaximum 64 characters."),
438
+ get "models"() {
439
+ return z$2.array(AiModelSchema.describe("A model the app calls through an AI resource.")).describe("The models the app calls. A deployment checks that the cloud lets it use each one.\nOmitted from the serialized stack when empty, so existing stacks do not change.").optional();
440
+ }
441
+ }).describe("Represents an AI Gateway resource that provides a unified interface to\nmanaged AI inference services across cloud providers.\n\nBYO-key external providers (OpenAI/Anthropic) are NOT declared here. Like any\nother BYO infrastructure (e.g. external Redis for `kv`), an external AI\nprovider is supplied at deploy time as an `ExternalBinding::Ai` in the\nstack's external-bindings map; the executor then skips the cloud controller.");
408
442
  // src/generated/zod/push-progress-schema.ts
409
443
  /**
410
444
  * Generated by Kubb (https://kubb.dev/).
@@ -4822,6 +4856,20 @@ const ResourceSpecSchema = z$2.object({
4822
4856
  "desired": z$2.string().describe("Desired resource allocation (used by scheduler)"),
4823
4857
  "min": z$2.string().describe("Minimum resource allocation")
4824
4858
  }).describe("Resource specification with min/desired values.");
4859
+ // src/generated/zod/workload-priority-schema.ts
4860
+ /**
4861
+ * Generated by Kubb (https://kubb.dev/).
4862
+ * Do not edit manually.
4863
+ */
4864
+ /**
4865
+ * @description Relative scheduling importance of a workload.\n\nOn Kubernetes the deployment\'s cluster administrator maps each level to a\nPriorityClass at install time. Other platforms ignore it.
4866
+ */
4867
+ const WorkloadPrioritySchema = z$2.enum([
4868
+ "critical",
4869
+ "high",
4870
+ "normal",
4871
+ "low"
4872
+ ]).describe("Relative scheduling importance of a workload.\n\nOn Kubernetes the deployment's cluster administrator maps each level to a\nPriorityClass at install time. Other platforms ignore it.");
4825
4873
  // src/generated/zod/container-schema.ts
4826
4874
  /**
4827
4875
  * Generated by Kubb (https://kubb.dev/).
@@ -4878,6 +4926,9 @@ const ContainerSchema = z$2.object({
4878
4926
  get "ports"() {
4879
4927
  return z$2.array(ContainerPortSchema.describe("Container port configuration.")).describe("Ports reachable by compute-cluster members and resources that link to this container.");
4880
4928
  },
4929
+ get "priority"() {
4930
+ return z$2.union([WorkloadPrioritySchema, z$2.null()]).optional();
4931
+ },
4881
4932
  get "publicEndpoints"() {
4882
4933
  return z$2.array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional();
4883
4934
  },
@@ -5292,6 +5343,9 @@ const DaemonSchema = z$2.object({
5292
5343
  },
5293
5344
  "permissions": z$2.string().describe("Named workload permission profile. Absent means no workload cloud identity.").nullish(),
5294
5345
  "pool": z$2.string().describe("Capacity group/pool to run on for backends that expose machine pools.").nullish(),
5346
+ get "priority"() {
5347
+ return z$2.union([WorkloadPrioritySchema, z$2.null()]).optional();
5348
+ },
5295
5349
  get "publicEndpoints"() {
5296
5350
  return z$2.array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the daemon.").optional();
5297
5351
  },
@@ -9262,6 +9316,19 @@ var AI = class extends ResourceBuilder {
9262
9316
  return "ai";
9263
9317
  }
9264
9318
  /**
9319
+ * Declares the models the app calls. A deployment checks that the cloud lets it use each
9320
+ * one; a refused `required` model is reported as needing attention and never blocks the
9321
+ * deployment.
9322
+ * @param models Model ids as the app uses them, each with a `required` flag.
9323
+ */
9324
+ models(models) {
9325
+ this._config.models = models.map((model) => ({
9326
+ id: model.id,
9327
+ required: model.required ?? false
9328
+ }));
9329
+ return this;
9330
+ }
9331
+ /**
9265
9332
  * Builds and validates the AI configuration.
9266
9333
  * @returns An immutable Resource representing the configured AI Gateway.
9267
9334
  * @throws Error if the AI configuration is invalid.
@@ -10601,6 +10668,17 @@ var Container = class extends ResourceBuilder {
10601
10668
  return this;
10602
10669
  }
10603
10670
  /**
10671
+ * Sets how important this container is relative to the deployment's other workloads.
10672
+ *
10673
+ * On Kubernetes the cluster administrator maps each level to a PriorityClass when
10674
+ * installing the Helm chart (`runtime.workloadPriority.classes`). Levels nobody mapped, and
10675
+ * every other platform, ignore it. Unset leaves the pod without a PriorityClass.
10676
+ */
10677
+ priority(level) {
10678
+ this._config.priority = level;
10679
+ return this;
10680
+ }
10681
+ /**
10604
10682
  * Links this container to another resource (Storage, Queue, KV, etc.).
10605
10683
  * @param resource The resource to link to.
10606
10684
  * @returns The Container builder instance.
@@ -10733,6 +10811,17 @@ var Daemon = class extends ResourceBuilder {
10733
10811
  return this;
10734
10812
  }
10735
10813
  /**
10814
+ * Sets how important this daemon is relative to the deployment's other workloads.
10815
+ *
10816
+ * On Kubernetes the cluster administrator maps each level to a PriorityClass when
10817
+ * installing the Helm chart (`runtime.workloadPriority.classes`). Levels nobody mapped, and
10818
+ * every other platform, ignore it. Unset leaves the pod without a PriorityClass.
10819
+ */
10820
+ priority(level) {
10821
+ this._config.priority = level;
10822
+ return this;
10823
+ }
10824
+ /**
10736
10825
  * Sets backend runtime options for trusted daemon infrastructure.
10737
10826
  *
10738
10827
  * Use this only for daemons that intentionally need host-level access, such