@alienplatform/sdk 3.3.60 → 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.
Files changed (2) hide show
  1. package/dist/registry.js +53 -2
  2. package/package.json +4 -4
package/dist/registry.js CHANGED
@@ -5480,6 +5480,18 @@ const AiModelAvailabilitySchema = _enum([
5480
5480
  * Do not edit manually.
5481
5481
  */
5482
5482
  /**
5483
+ * @description One quota the account has set well below the cloud\'s default (under 10%).
5484
+ */
5485
+ const AiQuotaWarningSchema = object({
5486
+ "applied": number(),
5487
+ "default": number(),
5488
+ "quotaName": string()
5489
+ }).describe("One quota the account has set well below the cloud's default (under 10%).");
5490
+ /**
5491
+ * Generated by Kubb (https://kubb.dev/).
5492
+ * Do not edit manually.
5493
+ */
5494
+ /**
5483
5495
  * @description A public API accepted from an application client.
5484
5496
  */
5485
5497
  const ClientApiSchema = _enum([
@@ -5506,7 +5518,11 @@ const AiModelAvailabilityObservationSchema = object({
5506
5518
  },
5507
5519
  "errorCode": string().nullish(),
5508
5520
  "publicModelId": string(),
5509
- "testedAt": datetime().nullish()
5521
+ get "quotaWarnings"() {
5522
+ return 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();
5523
+ },
5524
+ "testedAt": datetime().nullish(),
5525
+ "throttledLastHour": 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()
5510
5526
  });
5511
5527
  /**
5512
5528
  * Generated by Kubb (https://kubb.dev/).
@@ -5666,12 +5682,28 @@ const AiHeartbeatDataSchema = union([
5666
5682
  lazy(() => AzureFoundryAiHeartbeatDataSchema).and(object({ "backend": _enum(["azureFoundry"]) })),
5667
5683
  lazy(() => ExternalAiHeartbeatDataSchema).and(object({ "backend": _enum(["external"]) }))
5668
5684
  ]);
5685
+ /**
5686
+ * Generated by Kubb (https://kubb.dev/).
5687
+ * Do not edit manually.
5688
+ */
5689
+ /**
5690
+ * @description A model the app calls through an AI resource.
5691
+ */
5692
+ const AiModelSchema = object({
5693
+ "id": string().describe("The model identifier as the app uses it, for example `claude-sonnet-4-6`."),
5694
+ "required": optional(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."))
5695
+ }).describe("A model the app calls through an AI resource.");
5669
5696
  object({
5670
5697
  "account": string().describe("The provider account or project identifier, if applicable.").nullish(),
5671
5698
  "endpoint": string().describe("The provider endpoint URL, if applicable.").nullish(),
5672
5699
  "provider": string().describe("The AI provider name (e.g., \"bedrock\", \"vertex\", \"foundry\", \"external\").")
5673
5700
  }).describe("Outputs generated by a successfully provisioned AI Gateway resource.");
5674
- object({ "id": 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.");
5701
+ object({
5702
+ "id": string().describe("Identifier for the AI resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]).\nMaximum 64 characters."),
5703
+ get "models"() {
5704
+ return 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();
5705
+ }
5706
+ }).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.");
5675
5707
  /**
5676
5708
  * Generated by Kubb (https://kubb.dev/).
5677
5709
  * Do not edit manually.
@@ -9581,6 +9613,19 @@ const ResourceSpecSchema = object({
9581
9613
  "desired": string().describe("Desired resource allocation (used by scheduler)"),
9582
9614
  "min": string().describe("Minimum resource allocation")
9583
9615
  }).describe("Resource specification with min/desired values.");
9616
+ /**
9617
+ * Generated by Kubb (https://kubb.dev/).
9618
+ * Do not edit manually.
9619
+ */
9620
+ /**
9621
+ * @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.
9622
+ */
9623
+ const WorkloadPrioritySchema = _enum([
9624
+ "critical",
9625
+ "high",
9626
+ "normal",
9627
+ "low"
9628
+ ]).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.");
9584
9629
  object({
9585
9630
  get "autoscaling"() {
9586
9631
  return union([ContainerAutoscalingSchema, _null()]).optional();
@@ -9629,6 +9674,9 @@ object({
9629
9674
  get "ports"() {
9630
9675
  return array(ContainerPortSchema.describe("Container port configuration.")).describe("Ports reachable by compute-cluster members and resources that link to this container.");
9631
9676
  },
9677
+ get "priority"() {
9678
+ return union([WorkloadPrioritySchema, _null()]).optional();
9679
+ },
9632
9680
  get "publicEndpoints"() {
9633
9681
  return array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional();
9634
9682
  },
@@ -9997,6 +10045,9 @@ object({
9997
10045
  },
9998
10046
  "permissions": string().describe("Named workload permission profile. Absent means no workload cloud identity.").nullish(),
9999
10047
  "pool": string().describe("Capacity group/pool to run on for backends that expose machine pools.").nullish(),
10048
+ get "priority"() {
10049
+ return union([WorkloadPrioritySchema, _null()]).optional();
10050
+ },
10000
10051
  get "publicEndpoints"() {
10001
10052
  return array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the daemon.").optional();
10002
10053
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "3.3.60",
3
+ "version": "3.3.61",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -57,9 +57,9 @@
57
57
  "nice-grpc": "^2.1.11",
58
58
  "nice-grpc-common": "^2.0.2",
59
59
  "zod": "^4.5.2",
60
- "@alienplatform/ai-gateway": "^3.3.60",
61
- "@alienplatform/bindings": "^3.3.60",
62
- "@alienplatform/core": "^3.3.60"
60
+ "@alienplatform/ai-gateway": "^3.3.61",
61
+ "@alienplatform/bindings": "^3.3.61",
62
+ "@alienplatform/core": "^3.3.61"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",