@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,29 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { CustomPluginOperationsConfig, CustomPluginOperationsConfig$Outbound } from "./custompluginoperationsconfig.js";
|
|
3
|
+
import { PluginOperationsConfig, PluginOperationsConfig$Outbound } from "./pluginoperationsconfig.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations declared by a stack, or by an Operator installed on its own.
|
|
6
|
+
*/
|
|
7
|
+
export type OperationsConfig = {
|
|
8
|
+
/**
|
|
9
|
+
* Published custom plugins, pinned to exact versions.
|
|
10
|
+
*/
|
|
11
|
+
custom?: Array<CustomPluginOperationsConfig> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Built-in plugins, by plugin name.
|
|
14
|
+
*/
|
|
15
|
+
plugins?: {
|
|
16
|
+
[k: string]: PluginOperationsConfig;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type OperationsConfig$Outbound = {
|
|
21
|
+
custom?: Array<CustomPluginOperationsConfig$Outbound> | undefined;
|
|
22
|
+
plugins?: {
|
|
23
|
+
[k: string]: PluginOperationsConfig$Outbound;
|
|
24
|
+
} | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const OperationsConfig$outboundSchema: z.ZodType<OperationsConfig$Outbound, OperationsConfig>;
|
|
28
|
+
export declare function operationsConfigToJSON(operationsConfig: OperationsConfig): string;
|
|
29
|
+
//# sourceMappingURL=operationsconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsconfig.d.ts","sourceRoot":"","sources":["../../src/models/operationsconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,sBAAsB,EACtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAA;KAAE,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,qCAAqC,CAAC,GAAG,SAAS,CAAC;IAClE,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,+BAA+B,CAAA;KAAE,GAAG,SAAS,CAAC;CACxE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,gBAAgB,CAKhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { CustomPluginOperationsConfig$outboundSchema, } from "./custompluginoperationsconfig.js";
|
|
6
|
+
import { PluginOperationsConfig$outboundSchema, } from "./pluginoperationsconfig.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const OperationsConfig$outboundSchema = z.object({
|
|
9
|
+
custom: z.array(CustomPluginOperationsConfig$outboundSchema).optional(),
|
|
10
|
+
plugins: z.record(z.string(), PluginOperationsConfig$outboundSchema)
|
|
11
|
+
.optional(),
|
|
12
|
+
});
|
|
13
|
+
export function operationsConfigToJSON(operationsConfig) {
|
|
14
|
+
return JSON.stringify(OperationsConfig$outboundSchema.parse(operationsConfig));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=operationsconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsconfig.js","sourceRoot":"","sources":["../../src/models/operationsconfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAGL,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAGL,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AAsBrC,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC,QAAQ,EAAE;IACvE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,qCAAqC,CAAC;SACjE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* An environment variable of the Operator process. Only for an Operator
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* installed on its own, so secrets stay in its environment.
|
|
7
|
+
*/
|
|
8
|
+
export type OperationSettingValue3 = {
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable name.
|
|
11
|
+
*/
|
|
12
|
+
env: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Stack resources the plugin may act on, such as buckets or queues.
|
|
16
|
+
*/
|
|
17
|
+
export type OperationSettingValue2 = {
|
|
18
|
+
/**
|
|
19
|
+
* Resource ids in the same stack.
|
|
20
|
+
*/
|
|
21
|
+
resources: Array<string>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The value of a stack input.
|
|
25
|
+
*/
|
|
26
|
+
export type OperationSettingValue1 = {
|
|
27
|
+
/**
|
|
28
|
+
* Stack input id.
|
|
29
|
+
*/
|
|
30
|
+
input: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Value of one plugin setting.
|
|
34
|
+
*/
|
|
35
|
+
export type OperationSettingValueUnion = OperationSettingValue1 | OperationSettingValue2 | OperationSettingValue3 | string;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type OperationSettingValue3$Outbound = {
|
|
38
|
+
env: string;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const OperationSettingValue3$outboundSchema: z.ZodType<OperationSettingValue3$Outbound, OperationSettingValue3>;
|
|
42
|
+
export declare function operationSettingValue3ToJSON(operationSettingValue3: OperationSettingValue3): string;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type OperationSettingValue2$Outbound = {
|
|
45
|
+
resources: Array<string>;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const OperationSettingValue2$outboundSchema: z.ZodType<OperationSettingValue2$Outbound, OperationSettingValue2>;
|
|
49
|
+
export declare function operationSettingValue2ToJSON(operationSettingValue2: OperationSettingValue2): string;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type OperationSettingValue1$Outbound = {
|
|
52
|
+
input: string;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const OperationSettingValue1$outboundSchema: z.ZodType<OperationSettingValue1$Outbound, OperationSettingValue1>;
|
|
56
|
+
export declare function operationSettingValue1ToJSON(operationSettingValue1: OperationSettingValue1): string;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type OperationSettingValueUnion$Outbound = OperationSettingValue1$Outbound | OperationSettingValue2$Outbound | OperationSettingValue3$Outbound | string;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const OperationSettingValueUnion$outboundSchema: z.ZodType<OperationSettingValueUnion$Outbound, OperationSettingValueUnion>;
|
|
61
|
+
export declare function operationSettingValueUnionToJSON(operationSettingValueUnion: OperationSettingValueUnion): string;
|
|
62
|
+
//# sourceMappingURL=operationsettingvalueunion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsettingvalueunion.d.ts","sourceRoot":"","sources":["../../src/models/operationsettingvalueunion.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,sBAAsB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,MAAM,CAAC;AAEX,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,sBAAsB,CAGtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,sBAAsB,CAGtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,sBAAsB,CAGtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAC3C,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,MAAM,CAAC;AAEX,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,0BAA0B,CAM1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export const OperationSettingValue3$outboundSchema = z.object({
|
|
7
|
+
env: z.string(),
|
|
8
|
+
});
|
|
9
|
+
export function operationSettingValue3ToJSON(operationSettingValue3) {
|
|
10
|
+
return JSON.stringify(OperationSettingValue3$outboundSchema.parse(operationSettingValue3));
|
|
11
|
+
}
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const OperationSettingValue2$outboundSchema = z.object({
|
|
14
|
+
resources: z.array(z.string()),
|
|
15
|
+
});
|
|
16
|
+
export function operationSettingValue2ToJSON(operationSettingValue2) {
|
|
17
|
+
return JSON.stringify(OperationSettingValue2$outboundSchema.parse(operationSettingValue2));
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const OperationSettingValue1$outboundSchema = z.object({
|
|
21
|
+
input: z.string(),
|
|
22
|
+
});
|
|
23
|
+
export function operationSettingValue1ToJSON(operationSettingValue1) {
|
|
24
|
+
return JSON.stringify(OperationSettingValue1$outboundSchema.parse(operationSettingValue1));
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const OperationSettingValueUnion$outboundSchema = z.union([
|
|
28
|
+
z.lazy(() => OperationSettingValue1$outboundSchema),
|
|
29
|
+
z.lazy(() => OperationSettingValue2$outboundSchema),
|
|
30
|
+
z.lazy(() => OperationSettingValue3$outboundSchema),
|
|
31
|
+
z.string(),
|
|
32
|
+
]);
|
|
33
|
+
export function operationSettingValueUnionToJSON(operationSettingValueUnion) {
|
|
34
|
+
return JSON.stringify(OperationSettingValueUnion$outboundSchema.parse(operationSettingValueUnion));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=operationsettingvalueunion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsettingvalueunion.js","sourceRoot":"","sources":["../../src/models/operationsettingvalueunion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAiD5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAOD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAOD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;IACnD,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;IACnD,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;IACnD,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OperationApprovalUnion, OperationApprovalUnion$Outbound } from "./operationapprovalunion.js";
|
|
3
|
+
import { OperationSettingValueUnion, OperationSettingValueUnion$Outbound } from "./operationsettingvalueunion.js";
|
|
4
|
+
/**
|
|
5
|
+
* Settings and approval rules for one plugin.
|
|
6
|
+
*/
|
|
7
|
+
export type PluginOperationsConfig = {
|
|
8
|
+
/**
|
|
9
|
+
* Approval rule per operation: an operation name, or `*` for all of them.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Operations no rule matches need approval.
|
|
13
|
+
*/
|
|
14
|
+
approval?: {
|
|
15
|
+
[k: string]: OperationApprovalUnion;
|
|
16
|
+
} | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Values for the settings the plugin's manifest declares.
|
|
19
|
+
*/
|
|
20
|
+
settings?: {
|
|
21
|
+
[k: string]: OperationSettingValueUnion;
|
|
22
|
+
} | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type PluginOperationsConfig$Outbound = {
|
|
26
|
+
approval?: {
|
|
27
|
+
[k: string]: OperationApprovalUnion$Outbound;
|
|
28
|
+
} | undefined;
|
|
29
|
+
settings?: {
|
|
30
|
+
[k: string]: OperationSettingValueUnion$Outbound;
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const PluginOperationsConfig$outboundSchema: z.ZodType<PluginOperationsConfig$Outbound, PluginOperationsConfig>;
|
|
35
|
+
export declare function pluginOperationsConfigToJSON(pluginOperationsConfig: PluginOperationsConfig): string;
|
|
36
|
+
//# sourceMappingURL=pluginoperationsconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginoperationsconfig.d.ts","sourceRoot":"","sources":["../../src/models/pluginoperationsconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B,EAC1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAA;KAAE,GAAG,SAAS,CAAC;CACpE,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,+BAA+B,CAAA;KAAE,GAAG,SAAS,CAAC;IACxE,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,mCAAmC,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,sBAAsB,CAMtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { OperationApprovalUnion$outboundSchema, } from "./operationapprovalunion.js";
|
|
6
|
+
import { OperationSettingValueUnion$outboundSchema, } from "./operationsettingvalueunion.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const PluginOperationsConfig$outboundSchema = z.object({
|
|
9
|
+
approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
|
|
10
|
+
.optional(),
|
|
11
|
+
settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
|
|
12
|
+
.optional(),
|
|
13
|
+
});
|
|
14
|
+
export function pluginOperationsConfigToJSON(pluginOperationsConfig) {
|
|
15
|
+
return JSON.stringify(PluginOperationsConfig$outboundSchema.parse(pluginOperationsConfig));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=pluginoperationsconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginoperationsconfig.js","sourceRoot":"","sources":["../../src/models/pluginoperationsconfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAGL,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AAyBzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,qCAAqC,CAAC;SAClE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,yCAAyC,CAAC;SACtE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/manager-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.32",
|
|
4
4
|
"author": "Alien Software, Inc. <hi@alien.dev>",
|
|
5
5
|
"homepage": "https://alien.dev",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
|
-
"directory": "client-sdks/manager/typescript",
|
|
9
8
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/alienplatform/alien.git"
|
|
9
|
+
"url": "https://github.com/alienplatform/alien.git",
|
|
10
|
+
"directory": "client-sdks/manager/typescript"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "./esm/index.js",
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "3.3.
|
|
61
|
+
sdkVersion: "3.3.32",
|
|
62
62
|
genVersion: "2.788.15",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 3.3.
|
|
64
|
+
"speakeasy-sdk/typescript 3.3.32 2.788.15 1.0.0 @alienplatform/manager-api",
|
|
65
65
|
} as const;
|
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
ObservedInventoryBatch$Outbound,
|
|
24
24
|
ObservedInventoryBatch$outboundSchema,
|
|
25
25
|
} from "./observedinventorybatch.js";
|
|
26
|
+
import {
|
|
27
|
+
OperationsConfig,
|
|
28
|
+
OperationsConfig$Outbound,
|
|
29
|
+
OperationsConfig$outboundSchema,
|
|
30
|
+
} from "./operationsconfig.js";
|
|
26
31
|
import {
|
|
27
32
|
OperationsReport,
|
|
28
33
|
OperationsReport$Outbound,
|
|
@@ -77,6 +82,7 @@ export type AgentSyncRequest = {
|
|
|
77
82
|
* Absent for older Operators. This report has no secret values.
|
|
78
83
|
*/
|
|
79
84
|
dynamicContainers?: Array<DynamicContainerReport> | null | undefined;
|
|
85
|
+
operationsConfig?: OperationsConfig | null | undefined;
|
|
80
86
|
operatorImage?: OperatorImageReport | null | undefined;
|
|
81
87
|
};
|
|
82
88
|
|
|
@@ -95,6 +101,7 @@ export type AgentSyncRequest$Outbound = {
|
|
|
95
101
|
supportsTunnels?: boolean | undefined;
|
|
96
102
|
application?: ObservedApplicationReport$Outbound | null | undefined;
|
|
97
103
|
dynamicContainers?: Array<DynamicContainerReport$Outbound> | null | undefined;
|
|
104
|
+
operationsConfig?: OperationsConfig$Outbound | null | undefined;
|
|
98
105
|
operatorImage?: OperatorImageReport$Outbound | null | undefined;
|
|
99
106
|
};
|
|
100
107
|
|
|
@@ -118,6 +125,7 @@ export const AgentSyncRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
application: z.nullable(ObservedApplicationReport$outboundSchema).optional(),
|
|
119
126
|
dynamicContainers: z.nullable(z.array(DynamicContainerReport$outboundSchema))
|
|
120
127
|
.optional(),
|
|
128
|
+
operationsConfig: z.nullable(OperationsConfig$outboundSchema).optional(),
|
|
121
129
|
operatorImage: z.nullable(OperatorImageReport$outboundSchema).optional(),
|
|
122
130
|
});
|
|
123
131
|
|
|
@@ -11,6 +11,12 @@ import {
|
|
|
11
11
|
ComputePoolSelection$Outbound,
|
|
12
12
|
ComputePoolSelection$outboundSchema,
|
|
13
13
|
} from "./computepoolselection.js";
|
|
14
|
+
import {
|
|
15
|
+
ContainerResourceSelection,
|
|
16
|
+
ContainerResourceSelection$inboundSchema,
|
|
17
|
+
ContainerResourceSelection$Outbound,
|
|
18
|
+
ContainerResourceSelection$outboundSchema,
|
|
19
|
+
} from "./containerresourceselection.js";
|
|
14
20
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
15
21
|
|
|
16
22
|
/**
|
|
@@ -23,6 +29,10 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
23
29
|
* provider machine type and selected machine counts.
|
|
24
30
|
*/
|
|
25
31
|
export type ComputeSettings = {
|
|
32
|
+
/**
|
|
33
|
+
* Per-replica resources selected within each container's declared ranges.
|
|
34
|
+
*/
|
|
35
|
+
containers?: { [k: string]: ContainerResourceSelection } | undefined;
|
|
26
36
|
/**
|
|
27
37
|
* Selected compute choices keyed by pool ID.
|
|
28
38
|
*/
|
|
@@ -34,10 +44,13 @@ export const ComputeSettings$inboundSchema: z.ZodType<
|
|
|
34
44
|
ComputeSettings,
|
|
35
45
|
unknown
|
|
36
46
|
> = z.object({
|
|
47
|
+
containers: z.record(z.string(), ContainerResourceSelection$inboundSchema)
|
|
48
|
+
.optional(),
|
|
37
49
|
pools: z.record(z.string(), ComputePoolSelection$inboundSchema).optional(),
|
|
38
50
|
});
|
|
39
51
|
/** @internal */
|
|
40
52
|
export type ComputeSettings$Outbound = {
|
|
53
|
+
containers?: { [k: string]: ContainerResourceSelection$Outbound } | undefined;
|
|
41
54
|
pools?: { [k: string]: ComputePoolSelection$Outbound } | undefined;
|
|
42
55
|
};
|
|
43
56
|
|
|
@@ -46,6 +59,8 @@ export const ComputeSettings$outboundSchema: z.ZodType<
|
|
|
46
59
|
ComputeSettings$Outbound,
|
|
47
60
|
ComputeSettings
|
|
48
61
|
> = z.object({
|
|
62
|
+
containers: z.record(z.string(), ContainerResourceSelection$outboundSchema)
|
|
63
|
+
.optional(),
|
|
49
64
|
pools: z.record(z.string(), ComputePoolSelection$outboundSchema).optional(),
|
|
50
65
|
});
|
|
51
66
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Deployment-time resource allocation for a container. Omitted fields use release defaults.
|
|
12
|
+
*/
|
|
13
|
+
export type ContainerResourceSelection = {
|
|
14
|
+
/**
|
|
15
|
+
* CPU allocation in vCPUs.
|
|
16
|
+
*/
|
|
17
|
+
cpu?: number | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Memory allocation, using binary units such as Mi or Gi.
|
|
20
|
+
*/
|
|
21
|
+
memory?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ContainerResourceSelection$inboundSchema: z.ZodType<
|
|
26
|
+
ContainerResourceSelection,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
cpu: z.nullable(z.number()).optional(),
|
|
30
|
+
memory: z.nullable(z.string()).optional(),
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type ContainerResourceSelection$Outbound = {
|
|
34
|
+
cpu?: number | null | undefined;
|
|
35
|
+
memory?: string | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ContainerResourceSelection$outboundSchema: z.ZodType<
|
|
40
|
+
ContainerResourceSelection$Outbound,
|
|
41
|
+
ContainerResourceSelection
|
|
42
|
+
> = z.object({
|
|
43
|
+
cpu: z.nullable(z.number()).optional(),
|
|
44
|
+
memory: z.nullable(z.string()).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function containerResourceSelectionToJSON(
|
|
48
|
+
containerResourceSelection: ContainerResourceSelection,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
ContainerResourceSelection$outboundSchema.parse(containerResourceSelection),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export function containerResourceSelectionFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<ContainerResourceSelection, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => ContainerResourceSelection$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'ContainerResourceSelection' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* A published custom plugin at an exact version.
|
|
19
|
+
*/
|
|
20
|
+
export type CustomPluginOperationsConfig = {
|
|
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
|
+
* Plugin name as published.
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Exact published version.
|
|
38
|
+
*/
|
|
39
|
+
version: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type CustomPluginOperationsConfig$Outbound = {
|
|
44
|
+
approval?: { [k: string]: OperationApprovalUnion$Outbound } | undefined;
|
|
45
|
+
settings?: { [k: string]: OperationSettingValueUnion$Outbound } | undefined;
|
|
46
|
+
name: string;
|
|
47
|
+
version: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CustomPluginOperationsConfig$outboundSchema: z.ZodType<
|
|
52
|
+
CustomPluginOperationsConfig$Outbound,
|
|
53
|
+
CustomPluginOperationsConfig
|
|
54
|
+
> = z.object({
|
|
55
|
+
approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
|
|
56
|
+
.optional(),
|
|
57
|
+
settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
|
|
58
|
+
.optional(),
|
|
59
|
+
name: z.string(),
|
|
60
|
+
version: z.string(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function customPluginOperationsConfigToJSON(
|
|
64
|
+
customPluginOperationsConfig: CustomPluginOperationsConfig,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
CustomPluginOperationsConfig$outboundSchema.parse(
|
|
68
|
+
customPluginOperationsConfig,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -73,6 +73,7 @@ export * from "./computepoolselection.js";
|
|
|
73
73
|
export * from "./computesettings.js";
|
|
74
74
|
export * from "./containerheartbeatdata.js";
|
|
75
75
|
export * from "./containerimageidentity.js";
|
|
76
|
+
export * from "./containerresourceselection.js";
|
|
76
77
|
export * from "./creatabletokentype.js";
|
|
77
78
|
export * from "./createcommandrequest.js";
|
|
78
79
|
export * from "./createcommandresponse.js";
|
|
@@ -86,6 +87,7 @@ export * from "./createtokenrequest.js";
|
|
|
86
87
|
export * from "./createtokenresponse.js";
|
|
87
88
|
export * from "./customcertificateconfig.js";
|
|
88
89
|
export * from "./customdomainconfig.js";
|
|
90
|
+
export * from "./custompluginoperationsconfig.js";
|
|
89
91
|
export * from "./daemonheartbeatdata.js";
|
|
90
92
|
export * from "./deletedeploymentaction.js";
|
|
91
93
|
export * from "./deletedeploymentrequest.js";
|
|
@@ -194,13 +196,18 @@ export * from "./observedcounts.js";
|
|
|
194
196
|
export * from "./observedhealth.js";
|
|
195
197
|
export * from "./observedinventorybatch.js";
|
|
196
198
|
export * from "./observedresourcesample.js";
|
|
199
|
+
export * from "./operationapprovaldecision.js";
|
|
200
|
+
export * from "./operationapprovalunion.js";
|
|
197
201
|
export * from "./operationsbundledownload.js";
|
|
202
|
+
export * from "./operationsconfig.js";
|
|
203
|
+
export * from "./operationsettingvalueunion.js";
|
|
198
204
|
export * from "./operationsreport.js";
|
|
199
205
|
export * from "./operatorcapabilityreport.js";
|
|
200
206
|
export * from "./operatorcapabilitystate.js";
|
|
201
207
|
export * from "./operatorimagereport.js";
|
|
202
208
|
export * from "./operatorimagesource.js";
|
|
203
209
|
export * from "./platformenum.js";
|
|
210
|
+
export * from "./pluginoperationsconfig.js";
|
|
204
211
|
export * from "./postgresheartbeatdata.js";
|
|
205
212
|
export * from "./postgresheartbeatstatus.js";
|
|
206
213
|
export * from "./presignedoperation.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Whether matching operations run without approval.
|
|
10
|
+
*/
|
|
11
|
+
export const OperationApprovalDecision = {
|
|
12
|
+
Auto: "auto",
|
|
13
|
+
Manual: "manual",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Whether matching operations run without approval.
|
|
17
|
+
*/
|
|
18
|
+
export type OperationApprovalDecision = ClosedEnum<
|
|
19
|
+
typeof OperationApprovalDecision
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const OperationApprovalDecision$outboundSchema: z.ZodEnum<
|
|
24
|
+
typeof OperationApprovalDecision
|
|
25
|
+
> = z.enum(OperationApprovalDecision);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
OperationApprovalDecision,
|
|
8
|
+
OperationApprovalDecision$outboundSchema,
|
|
9
|
+
} from "./operationapprovaldecision.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A decision plus the highest risk tier a wildcard access request may cover.
|
|
13
|
+
*/
|
|
14
|
+
export type OperationApproval = {
|
|
15
|
+
/**
|
|
16
|
+
* Whether matching operations run without approval.
|
|
17
|
+
*/
|
|
18
|
+
decision: OperationApprovalDecision;
|
|
19
|
+
/**
|
|
20
|
+
* Highest risk tier (`read-only`, `mutating`, `destructive`) a wildcard
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* access request for these operations may cover.
|
|
24
|
+
*/
|
|
25
|
+
maxRisk?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Approval rule for the operations a pattern matches.
|
|
30
|
+
*/
|
|
31
|
+
export type OperationApprovalUnion =
|
|
32
|
+
| OperationApproval
|
|
33
|
+
| OperationApprovalDecision;
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type OperationApproval$Outbound = {
|
|
37
|
+
decision: string;
|
|
38
|
+
maxRisk?: string | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const OperationApproval$outboundSchema: z.ZodType<
|
|
43
|
+
OperationApproval$Outbound,
|
|
44
|
+
OperationApproval
|
|
45
|
+
> = z.object({
|
|
46
|
+
decision: OperationApprovalDecision$outboundSchema,
|
|
47
|
+
maxRisk: z.nullable(z.string()).optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function operationApprovalToJSON(
|
|
51
|
+
operationApproval: OperationApproval,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
OperationApproval$outboundSchema.parse(operationApproval),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type OperationApprovalUnion$Outbound =
|
|
60
|
+
| OperationApproval$Outbound
|
|
61
|
+
| string;
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const OperationApprovalUnion$outboundSchema: z.ZodType<
|
|
65
|
+
OperationApprovalUnion$Outbound,
|
|
66
|
+
OperationApprovalUnion
|
|
67
|
+
> = z.union([
|
|
68
|
+
z.lazy(() => OperationApproval$outboundSchema),
|
|
69
|
+
OperationApprovalDecision$outboundSchema,
|
|
70
|
+
]);
|
|
71
|
+
|
|
72
|
+
export function operationApprovalUnionToJSON(
|
|
73
|
+
operationApprovalUnion: OperationApprovalUnion,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
OperationApprovalUnion$outboundSchema.parse(operationApprovalUnion),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -16,6 +16,13 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
16
16
|
* registry proxy's credential-injection pattern.
|
|
17
17
|
*/
|
|
18
18
|
export type OperationsBundleDownload = {
|
|
19
|
+
/**
|
|
20
|
+
* Environment the plugin process runs with: its settings, which may hold
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* secrets. Store only in encrypted state, and never log the values.
|
|
24
|
+
*/
|
|
25
|
+
env?: { [k: string]: string } | undefined;
|
|
19
26
|
/**
|
|
20
27
|
* Plugin name this bundle provides.
|
|
21
28
|
*/
|
|
@@ -35,6 +42,7 @@ export const OperationsBundleDownload$inboundSchema: z.ZodType<
|
|
|
35
42
|
OperationsBundleDownload,
|
|
36
43
|
unknown
|
|
37
44
|
> = z.object({
|
|
45
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
38
46
|
plugin: z.string(),
|
|
39
47
|
pluginVersion: z.string(),
|
|
40
48
|
url: z.string(),
|