@alienplatform/sdk 3.3.30 → 3.3.32

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/dist.js +118 -1
  2. package/package.json +4 -4
package/dist/dist.js CHANGED
@@ -8887,9 +8887,23 @@ const ComputePoolSelectionSchema = union([object({
8887
8887
  * Do not edit manually.
8888
8888
  */
8889
8889
  /**
8890
+ * @description Deployment-time resource allocation for a container. Omitted fields use release defaults.
8891
+ */
8892
+ const ContainerResourceSelectionSchema = object({
8893
+ "cpu": number().describe("CPU allocation in vCPUs.").nullish(),
8894
+ "memory": string().describe("Memory allocation, using binary units such as Mi or Gi.").nullish()
8895
+ }).describe("Deployment-time resource allocation for a container. Omitted fields use release defaults.");
8896
+ /**
8897
+ * Generated by Kubb (https://kubb.dev/).
8898
+ * Do not edit manually.
8899
+ */
8900
+ /**
8890
8901
  * @description Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.
8891
8902
  */
8892
- const ComputeSettingsSchema = object({ "pools": optional(object({}).catchall(lazy(() => ComputePoolSelectionSchema).describe("User-selected deployment settings for one compute pool.")).describe("Selected compute choices keyed by pool ID.")) }).describe("Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.");
8903
+ const ComputeSettingsSchema = object({
8904
+ "containers": optional(object({}).catchall(lazy(() => ContainerResourceSelectionSchema).describe("Deployment-time resource allocation for a container. Omitted fields use release defaults.")).describe("Per-replica resources selected within each container's declared ranges.")),
8905
+ "pools": optional(object({}).catchall(lazy(() => ComputePoolSelectionSchema).describe("User-selected deployment settings for one compute pool.")).describe("Selected compute choices keyed by pool ID."))
8906
+ }).describe("Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.");
8893
8907
  /**
8894
8908
  * Generated by Kubb (https://kubb.dev/).
8895
8909
  * Do not edit manually.
@@ -9408,6 +9422,33 @@ const ContainerPortSchema = object({ "port": int().min(0).describe("Port number"
9408
9422
  * Do not edit manually.
9409
9423
  */
9410
9424
  /**
9425
+ * @description Allowed deployment-time resource quantities. These are choices, not autoscaling targets.
9426
+ */
9427
+ const ResourceChoiceRangeSchema = object({
9428
+ "default": string().describe("Allocation used when deployment settings omit a selection."),
9429
+ "max": string().describe("Largest permitted allocation."),
9430
+ "min": string().describe("Smallest permitted allocation.")
9431
+ }).describe("Allowed deployment-time resource quantities. These are choices, not autoscaling targets.");
9432
+ /**
9433
+ * Generated by Kubb (https://kubb.dev/).
9434
+ * Do not edit manually.
9435
+ */
9436
+ /**
9437
+ * @description Release-declared choices for each container resource dimension.
9438
+ */
9439
+ const ContainerResourceChoicesSchema = object({
9440
+ get "cpu"() {
9441
+ return union([ResourceChoiceRangeSchema, _null()]).optional();
9442
+ },
9443
+ get "memory"() {
9444
+ return union([ResourceChoiceRangeSchema, _null()]).optional();
9445
+ }
9446
+ }).describe("Release-declared choices for each container resource dimension.");
9447
+ /**
9448
+ * Generated by Kubb (https://kubb.dev/).
9449
+ * Do not edit manually.
9450
+ */
9451
+ /**
9411
9452
  * @description Security profile shared by container runtimes.
9412
9453
  */
9413
9454
  const ContainerSecurityProfileSchema = _enum(["restricted"]).describe("Security profile shared by container runtimes.");
@@ -9572,6 +9613,9 @@ object({
9572
9613
  return array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional();
9573
9614
  },
9574
9615
  "replicas": int().min(0).describe("Fixed replica count (for stateful containers or stateless without autoscaling)").nullish(),
9616
+ get "resourceChoices"() {
9617
+ return union([ContainerResourceChoicesSchema, _null()]).optional();
9618
+ },
9575
9619
  get "security"() {
9576
9620
  return union([ContainerSecuritySchema, _null()]).optional();
9577
9621
  },
@@ -9678,6 +9722,62 @@ const CustomDomainConfigSchema = object({
9678
9722
  * Generated by Kubb (https://kubb.dev/).
9679
9723
  * Do not edit manually.
9680
9724
  */
9725
+ /**
9726
+ * @description Whether matching operations run without approval.
9727
+ */
9728
+ const OperationApprovalDecisionSchema = _enum(["auto", "manual"]).describe("Whether matching operations run without approval.");
9729
+ /**
9730
+ * Generated by Kubb (https://kubb.dev/).
9731
+ * Do not edit manually.
9732
+ */
9733
+ /**
9734
+ * @description Approval rule for the operations a pattern matches.
9735
+ */
9736
+ const OperationApprovalSchema = union([lazy(() => OperationApprovalDecisionSchema), object({
9737
+ get "decision"() {
9738
+ return OperationApprovalDecisionSchema.describe("Whether matching operations run without approval.");
9739
+ },
9740
+ "maxRisk": string().describe("Highest risk tier (`read-only`, `mutating`, `destructive`) a wildcard\naccess request for these operations may cover.").nullish()
9741
+ })]).describe("Approval rule for the operations a pattern matches.");
9742
+ /**
9743
+ * Generated by Kubb (https://kubb.dev/).
9744
+ * Do not edit manually.
9745
+ */
9746
+ /**
9747
+ * @description Value of one plugin setting.
9748
+ */
9749
+ const OperationSettingValueSchema = union([
9750
+ string(),
9751
+ object({ "input": string().describe("Stack input id.") }),
9752
+ object({ "resources": array(string()).describe("Resource ids in the same stack.") }),
9753
+ object({ "env": string().describe("Environment variable name.") })
9754
+ ]).describe("Value of one plugin setting.");
9755
+ /**
9756
+ * Generated by Kubb (https://kubb.dev/).
9757
+ * Do not edit manually.
9758
+ */
9759
+ /**
9760
+ * @description Settings and approval rules for one plugin.
9761
+ */
9762
+ const PluginOperationsConfigSchema = object({
9763
+ "approval": optional(object({}).catchall(lazy(() => OperationApprovalSchema).describe("Approval rule for the operations a pattern matches.")).describe("Approval rule per operation: an operation name, or `*` for all of them.\nOperations no rule matches need approval.")),
9764
+ "settings": optional(object({}).catchall(lazy(() => OperationSettingValueSchema).describe("Value of one plugin setting.")).describe("Values for the settings the plugin's manifest declares."))
9765
+ }).describe("Settings and approval rules for one plugin.");
9766
+ /**
9767
+ * Generated by Kubb (https://kubb.dev/).
9768
+ * Do not edit manually.
9769
+ */
9770
+ /**
9771
+ * @description A published custom plugin at an exact version.
9772
+ */
9773
+ const CustomPluginOperationsConfigSchema = lazy(() => PluginOperationsConfigSchema).and(object({
9774
+ "name": string().describe("Plugin name as published."),
9775
+ "version": string().describe("Exact published version.")
9776
+ })).describe("Settings and approval rules for one plugin.").describe("A published custom plugin at an exact version.");
9777
+ /**
9778
+ * Generated by Kubb (https://kubb.dev/).
9779
+ * Do not edit manually.
9780
+ */
9681
9781
  const DaemonCodeSchema = union([object({
9682
9782
  "image": string(),
9683
9783
  "type": _enum(["image"])
@@ -11773,6 +11873,7 @@ object({
11773
11873
  * @description One bundle the Operator needs to download to reach `targetBundleHash`.\nThe manager mints a short-lived presigned GET URL per bundle — the\nOperator never holds real cloud storage credentials, mirroring the OCI\nregistry proxy\'s credential-injection pattern.
11774
11874
  */
11775
11875
  const OperationsBundleDownloadSchema = object({
11876
+ "env": optional(object({}).catchall(string()).describe("Environment the plugin process runs with: its settings, which may hold\nsecrets. Store only in encrypted state, and never log the values.")),
11776
11877
  "plugin": string().describe("Plugin name this bundle provides."),
11777
11878
  "pluginVersion": string().describe("Plugin version this bundle provides."),
11778
11879
  "url": string().describe("Presigned URL to GET the bundle ZIP from. Short-lived.")
@@ -11782,6 +11883,19 @@ const OperationsBundleDownloadSchema = object({
11782
11883
  * Do not edit manually.
11783
11884
  */
11784
11885
  /**
11886
+ * @description Operations declared by a stack, or by an Operator installed on its own.
11887
+ */
11888
+ const OperationsConfigSchema = object({
11889
+ get "custom"() {
11890
+ return array(CustomPluginOperationsConfigSchema.describe("A published custom plugin at an exact version.")).describe("Published custom plugins, pinned to exact versions.").optional();
11891
+ },
11892
+ "plugins": optional(object({}).catchall(lazy(() => PluginOperationsConfigSchema).describe("Settings and approval rules for one plugin.")).describe("Built-in plugins, by plugin name."))
11893
+ }).describe("Operations declared by a stack, or by an Operator installed on its own.");
11894
+ /**
11895
+ * Generated by Kubb (https://kubb.dev/).
11896
+ * Do not edit manually.
11897
+ */
11898
+ /**
11785
11899
  * @description A single operation the Operator currently has loaded. Opaque identifiers\nonly — no tier, description, or other plugin business logic crosses into\nthis public crate.
11786
11900
  */
11787
11901
  const ReportedOperationSchema = object({
@@ -12546,6 +12660,9 @@ object({
12546
12660
  get "inputs"() {
12547
12661
  return array(StackInputDefinitionSchema.describe("Stack input definition serialized into a release stack.")).describe("Input definitions required before setup or deployment can proceed.").optional();
12548
12662
  },
12663
+ get "operations"() {
12664
+ return union([OperationsConfigSchema, _null()]).optional();
12665
+ },
12549
12666
  get "permissions"() {
12550
12667
  return PermissionsConfigSchema.describe("Combined permissions configuration that contains both profiles and management").optional();
12551
12668
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "3.3.30",
3
+ "version": "3.3.32",
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.30",
61
- "@alienplatform/bindings": "^3.3.30",
62
- "@alienplatform/core": "^3.3.30"
60
+ "@alienplatform/ai-gateway": "^3.3.32",
61
+ "@alienplatform/bindings": "^3.3.32",
62
+ "@alienplatform/core": "^3.3.32"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",