@alienplatform/manager-api 3.3.31 → 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.
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/agentsyncrequest.d.ts +3 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +2 -0
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/computesettings.d.ts +10 -0
- package/esm/models/computesettings.d.ts.map +1 -1
- package/esm/models/computesettings.js +5 -0
- package/esm/models/computesettings.js.map +1 -1
- package/esm/models/containerresourceselection.d.ts +28 -0
- package/esm/models/containerresourceselection.d.ts.map +1 -0
- package/esm/models/containerresourceselection.js +22 -0
- package/esm/models/containerresourceselection.js.map +1 -0
- package/esm/models/custompluginoperationsconfig.d.ts +46 -0
- package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/custompluginoperationsconfig.js +19 -0
- package/esm/models/custompluginoperationsconfig.js.map +1 -0
- package/esm/models/index.d.ts +7 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +7 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/operationapprovaldecision.d.ts +16 -0
- package/esm/models/operationapprovaldecision.d.ts.map +1 -0
- package/esm/models/operationapprovaldecision.js +14 -0
- package/esm/models/operationapprovaldecision.js.map +1 -0
- package/esm/models/operationapprovalunion.d.ts +36 -0
- package/esm/models/operationapprovalunion.d.ts.map +1 -0
- package/esm/models/operationapprovalunion.js +22 -0
- package/esm/models/operationapprovalunion.js.map +1 -0
- package/esm/models/operationsbundledownload.d.ts +9 -0
- package/esm/models/operationsbundledownload.d.ts.map +1 -1
- package/esm/models/operationsbundledownload.js +1 -0
- package/esm/models/operationsbundledownload.js.map +1 -1
- package/esm/models/operationsconfig.d.ts +29 -0
- package/esm/models/operationsconfig.d.ts.map +1 -0
- package/esm/models/operationsconfig.js +16 -0
- package/esm/models/operationsconfig.js.map +1 -0
- package/esm/models/operationsettingvalueunion.d.ts +62 -0
- package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
- package/esm/models/operationsettingvalueunion.js +36 -0
- package/esm/models/operationsettingvalueunion.js.map +1 -0
- package/esm/models/pluginoperationsconfig.d.ts +36 -0
- package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/pluginoperationsconfig.js +17 -0
- package/esm/models/pluginoperationsconfig.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/lib/config.ts +2 -2
- package/src/models/agentsyncrequest.ts +8 -0
- package/src/models/computesettings.ts +15 -0
- package/src/models/containerresourceselection.ts +62 -0
- package/src/models/custompluginoperationsconfig.ts +71 -0
- package/src/models/index.ts +7 -0
- package/src/models/operationapprovaldecision.ts +25 -0
- package/src/models/operationapprovalunion.ts +78 -0
- package/src/models/operationsbundledownload.ts +8 -0
- package/src/models/operationsconfig.ts +53 -0
- package/src/models/operationsettingvalueunion.ts +136 -0
- package/src/models/pluginoperationsconfig.ts +57 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
CustomPluginOperationsConfig,
|
|
8
|
+
CustomPluginOperationsConfig$Outbound,
|
|
9
|
+
CustomPluginOperationsConfig$outboundSchema,
|
|
10
|
+
} from "./custompluginoperationsconfig.js";
|
|
11
|
+
import {
|
|
12
|
+
PluginOperationsConfig,
|
|
13
|
+
PluginOperationsConfig$Outbound,
|
|
14
|
+
PluginOperationsConfig$outboundSchema,
|
|
15
|
+
} from "./pluginoperationsconfig.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Operations declared by a stack, or by an Operator installed on its own.
|
|
19
|
+
*/
|
|
20
|
+
export type OperationsConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* Published custom plugins, pinned to exact versions.
|
|
23
|
+
*/
|
|
24
|
+
custom?: Array<CustomPluginOperationsConfig> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Built-in plugins, by plugin name.
|
|
27
|
+
*/
|
|
28
|
+
plugins?: { [k: string]: PluginOperationsConfig } | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type OperationsConfig$Outbound = {
|
|
33
|
+
custom?: Array<CustomPluginOperationsConfig$Outbound> | undefined;
|
|
34
|
+
plugins?: { [k: string]: PluginOperationsConfig$Outbound } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const OperationsConfig$outboundSchema: z.ZodType<
|
|
39
|
+
OperationsConfig$Outbound,
|
|
40
|
+
OperationsConfig
|
|
41
|
+
> = z.object({
|
|
42
|
+
custom: z.array(CustomPluginOperationsConfig$outboundSchema).optional(),
|
|
43
|
+
plugins: z.record(z.string(), PluginOperationsConfig$outboundSchema)
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function operationsConfigToJSON(
|
|
48
|
+
operationsConfig: OperationsConfig,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
OperationsConfig$outboundSchema.parse(operationsConfig),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* An environment variable of the Operator process. Only for an Operator
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* installed on its own, so secrets stay in its environment.
|
|
12
|
+
*/
|
|
13
|
+
export type OperationSettingValue3 = {
|
|
14
|
+
/**
|
|
15
|
+
* Environment variable name.
|
|
16
|
+
*/
|
|
17
|
+
env: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Stack resources the plugin may act on, such as buckets or queues.
|
|
22
|
+
*/
|
|
23
|
+
export type OperationSettingValue2 = {
|
|
24
|
+
/**
|
|
25
|
+
* Resource ids in the same stack.
|
|
26
|
+
*/
|
|
27
|
+
resources: Array<string>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The value of a stack input.
|
|
32
|
+
*/
|
|
33
|
+
export type OperationSettingValue1 = {
|
|
34
|
+
/**
|
|
35
|
+
* Stack input id.
|
|
36
|
+
*/
|
|
37
|
+
input: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Value of one plugin setting.
|
|
42
|
+
*/
|
|
43
|
+
export type OperationSettingValueUnion =
|
|
44
|
+
| OperationSettingValue1
|
|
45
|
+
| OperationSettingValue2
|
|
46
|
+
| OperationSettingValue3
|
|
47
|
+
| string;
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type OperationSettingValue3$Outbound = {
|
|
51
|
+
env: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const OperationSettingValue3$outboundSchema: z.ZodType<
|
|
56
|
+
OperationSettingValue3$Outbound,
|
|
57
|
+
OperationSettingValue3
|
|
58
|
+
> = z.object({
|
|
59
|
+
env: z.string(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function operationSettingValue3ToJSON(
|
|
63
|
+
operationSettingValue3: OperationSettingValue3,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
OperationSettingValue3$outboundSchema.parse(operationSettingValue3),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type OperationSettingValue2$Outbound = {
|
|
72
|
+
resources: Array<string>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const OperationSettingValue2$outboundSchema: z.ZodType<
|
|
77
|
+
OperationSettingValue2$Outbound,
|
|
78
|
+
OperationSettingValue2
|
|
79
|
+
> = z.object({
|
|
80
|
+
resources: z.array(z.string()),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export function operationSettingValue2ToJSON(
|
|
84
|
+
operationSettingValue2: OperationSettingValue2,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
OperationSettingValue2$outboundSchema.parse(operationSettingValue2),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type OperationSettingValue1$Outbound = {
|
|
93
|
+
input: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const OperationSettingValue1$outboundSchema: z.ZodType<
|
|
98
|
+
OperationSettingValue1$Outbound,
|
|
99
|
+
OperationSettingValue1
|
|
100
|
+
> = z.object({
|
|
101
|
+
input: z.string(),
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export function operationSettingValue1ToJSON(
|
|
105
|
+
operationSettingValue1: OperationSettingValue1,
|
|
106
|
+
): string {
|
|
107
|
+
return JSON.stringify(
|
|
108
|
+
OperationSettingValue1$outboundSchema.parse(operationSettingValue1),
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export type OperationSettingValueUnion$Outbound =
|
|
114
|
+
| OperationSettingValue1$Outbound
|
|
115
|
+
| OperationSettingValue2$Outbound
|
|
116
|
+
| OperationSettingValue3$Outbound
|
|
117
|
+
| string;
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const OperationSettingValueUnion$outboundSchema: z.ZodType<
|
|
121
|
+
OperationSettingValueUnion$Outbound,
|
|
122
|
+
OperationSettingValueUnion
|
|
123
|
+
> = z.union([
|
|
124
|
+
z.lazy(() => OperationSettingValue1$outboundSchema),
|
|
125
|
+
z.lazy(() => OperationSettingValue2$outboundSchema),
|
|
126
|
+
z.lazy(() => OperationSettingValue3$outboundSchema),
|
|
127
|
+
z.string(),
|
|
128
|
+
]);
|
|
129
|
+
|
|
130
|
+
export function operationSettingValueUnionToJSON(
|
|
131
|
+
operationSettingValueUnion: OperationSettingValueUnion,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
OperationSettingValueUnion$outboundSchema.parse(operationSettingValueUnion),
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
OperationApprovalUnion,
|
|
8
|
+
OperationApprovalUnion$Outbound,
|
|
9
|
+
OperationApprovalUnion$outboundSchema,
|
|
10
|
+
} from "./operationapprovalunion.js";
|
|
11
|
+
import {
|
|
12
|
+
OperationSettingValueUnion,
|
|
13
|
+
OperationSettingValueUnion$Outbound,
|
|
14
|
+
OperationSettingValueUnion$outboundSchema,
|
|
15
|
+
} from "./operationsettingvalueunion.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Settings and approval rules for one plugin.
|
|
19
|
+
*/
|
|
20
|
+
export type PluginOperationsConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* Approval rule per operation: an operation name, or `*` for all of them.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Operations no rule matches need approval.
|
|
26
|
+
*/
|
|
27
|
+
approval?: { [k: string]: OperationApprovalUnion } | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Values for the settings the plugin's manifest declares.
|
|
30
|
+
*/
|
|
31
|
+
settings?: { [k: string]: OperationSettingValueUnion } | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type PluginOperationsConfig$Outbound = {
|
|
36
|
+
approval?: { [k: string]: OperationApprovalUnion$Outbound } | undefined;
|
|
37
|
+
settings?: { [k: string]: OperationSettingValueUnion$Outbound } | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const PluginOperationsConfig$outboundSchema: z.ZodType<
|
|
42
|
+
PluginOperationsConfig$Outbound,
|
|
43
|
+
PluginOperationsConfig
|
|
44
|
+
> = z.object({
|
|
45
|
+
approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
|
|
46
|
+
.optional(),
|
|
47
|
+
settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
|
|
48
|
+
.optional(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function pluginOperationsConfigToJSON(
|
|
52
|
+
pluginOperationsConfig: PluginOperationsConfig,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
PluginOperationsConfig$outboundSchema.parse(pluginOperationsConfig),
|
|
56
|
+
);
|
|
57
|
+
}
|