@alienplatform/sdk 3.3.30 → 3.3.31
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/dist.js +73 -0
- package/package.json +4 -4
package/dist/dist.js
CHANGED
|
@@ -9678,6 +9678,62 @@ const CustomDomainConfigSchema = object({
|
|
|
9678
9678
|
* Generated by Kubb (https://kubb.dev/).
|
|
9679
9679
|
* Do not edit manually.
|
|
9680
9680
|
*/
|
|
9681
|
+
/**
|
|
9682
|
+
* @description Whether matching operations run without approval.
|
|
9683
|
+
*/
|
|
9684
|
+
const OperationApprovalDecisionSchema = _enum(["auto", "manual"]).describe("Whether matching operations run without approval.");
|
|
9685
|
+
/**
|
|
9686
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9687
|
+
* Do not edit manually.
|
|
9688
|
+
*/
|
|
9689
|
+
/**
|
|
9690
|
+
* @description Approval rule for the operations a pattern matches.
|
|
9691
|
+
*/
|
|
9692
|
+
const OperationApprovalSchema = union([lazy(() => OperationApprovalDecisionSchema), object({
|
|
9693
|
+
get "decision"() {
|
|
9694
|
+
return OperationApprovalDecisionSchema.describe("Whether matching operations run without approval.");
|
|
9695
|
+
},
|
|
9696
|
+
"maxRisk": string().describe("Highest risk tier (`read-only`, `mutating`, `destructive`) a wildcard\naccess request for these operations may cover.").nullish()
|
|
9697
|
+
})]).describe("Approval rule for the operations a pattern matches.");
|
|
9698
|
+
/**
|
|
9699
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9700
|
+
* Do not edit manually.
|
|
9701
|
+
*/
|
|
9702
|
+
/**
|
|
9703
|
+
* @description Value of one plugin setting.
|
|
9704
|
+
*/
|
|
9705
|
+
const OperationSettingValueSchema = union([
|
|
9706
|
+
string(),
|
|
9707
|
+
object({ "input": string().describe("Stack input id.") }),
|
|
9708
|
+
object({ "resources": array(string()).describe("Resource ids in the same stack.") }),
|
|
9709
|
+
object({ "env": string().describe("Environment variable name.") })
|
|
9710
|
+
]).describe("Value of one plugin setting.");
|
|
9711
|
+
/**
|
|
9712
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9713
|
+
* Do not edit manually.
|
|
9714
|
+
*/
|
|
9715
|
+
/**
|
|
9716
|
+
* @description Settings and approval rules for one plugin.
|
|
9717
|
+
*/
|
|
9718
|
+
const PluginOperationsConfigSchema = object({
|
|
9719
|
+
"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.")),
|
|
9720
|
+
"settings": optional(object({}).catchall(lazy(() => OperationSettingValueSchema).describe("Value of one plugin setting.")).describe("Values for the settings the plugin's manifest declares."))
|
|
9721
|
+
}).describe("Settings and approval rules for one plugin.");
|
|
9722
|
+
/**
|
|
9723
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9724
|
+
* Do not edit manually.
|
|
9725
|
+
*/
|
|
9726
|
+
/**
|
|
9727
|
+
* @description A published custom plugin at an exact version.
|
|
9728
|
+
*/
|
|
9729
|
+
const CustomPluginOperationsConfigSchema = lazy(() => PluginOperationsConfigSchema).and(object({
|
|
9730
|
+
"name": string().describe("Plugin name as published."),
|
|
9731
|
+
"version": string().describe("Exact published version.")
|
|
9732
|
+
})).describe("Settings and approval rules for one plugin.").describe("A published custom plugin at an exact version.");
|
|
9733
|
+
/**
|
|
9734
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9735
|
+
* Do not edit manually.
|
|
9736
|
+
*/
|
|
9681
9737
|
const DaemonCodeSchema = union([object({
|
|
9682
9738
|
"image": string(),
|
|
9683
9739
|
"type": _enum(["image"])
|
|
@@ -11773,6 +11829,7 @@ object({
|
|
|
11773
11829
|
* @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
11830
|
*/
|
|
11775
11831
|
const OperationsBundleDownloadSchema = object({
|
|
11832
|
+
"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
11833
|
"plugin": string().describe("Plugin name this bundle provides."),
|
|
11777
11834
|
"pluginVersion": string().describe("Plugin version this bundle provides."),
|
|
11778
11835
|
"url": string().describe("Presigned URL to GET the bundle ZIP from. Short-lived.")
|
|
@@ -11782,6 +11839,19 @@ const OperationsBundleDownloadSchema = object({
|
|
|
11782
11839
|
* Do not edit manually.
|
|
11783
11840
|
*/
|
|
11784
11841
|
/**
|
|
11842
|
+
* @description Operations declared by a stack, or by an Operator installed on its own.
|
|
11843
|
+
*/
|
|
11844
|
+
const OperationsConfigSchema = object({
|
|
11845
|
+
get "custom"() {
|
|
11846
|
+
return array(CustomPluginOperationsConfigSchema.describe("A published custom plugin at an exact version.")).describe("Published custom plugins, pinned to exact versions.").optional();
|
|
11847
|
+
},
|
|
11848
|
+
"plugins": optional(object({}).catchall(lazy(() => PluginOperationsConfigSchema).describe("Settings and approval rules for one plugin.")).describe("Built-in plugins, by plugin name."))
|
|
11849
|
+
}).describe("Operations declared by a stack, or by an Operator installed on its own.");
|
|
11850
|
+
/**
|
|
11851
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
11852
|
+
* Do not edit manually.
|
|
11853
|
+
*/
|
|
11854
|
+
/**
|
|
11785
11855
|
* @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
11856
|
*/
|
|
11787
11857
|
const ReportedOperationSchema = object({
|
|
@@ -12546,6 +12616,9 @@ object({
|
|
|
12546
12616
|
get "inputs"() {
|
|
12547
12617
|
return array(StackInputDefinitionSchema.describe("Stack input definition serialized into a release stack.")).describe("Input definitions required before setup or deployment can proceed.").optional();
|
|
12548
12618
|
},
|
|
12619
|
+
get "operations"() {
|
|
12620
|
+
return union([OperationsConfigSchema, _null()]).optional();
|
|
12621
|
+
},
|
|
12549
12622
|
get "permissions"() {
|
|
12550
12623
|
return PermissionsConfigSchema.describe("Combined permissions configuration that contains both profiles and management").optional();
|
|
12551
12624
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.31",
|
|
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.
|
|
61
|
-
"@alienplatform/bindings": "^3.3.
|
|
62
|
-
"@alienplatform/core": "^3.3.
|
|
60
|
+
"@alienplatform/ai-gateway": "^3.3.31",
|
|
61
|
+
"@alienplatform/bindings": "^3.3.31",
|
|
62
|
+
"@alienplatform/core": "^3.3.31"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsdown && tsc --emitDeclarationOnly",
|