@alienplatform/manager-api 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 (181) hide show
  1. package/esm/funcs/commandsStoreCommandPayload.d.ts +2 -2
  2. package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
  3. package/esm/funcs/commandsStoreCommandPayload.js +8 -4
  4. package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
  5. package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
  6. package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
  7. package/esm/funcs/commandsSubmitResponse.js +8 -4
  8. package/esm/funcs/commandsSubmitResponse.js.map +1 -1
  9. package/esm/funcs/commandsUploadComplete.d.ts +1 -2
  10. package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
  11. package/esm/funcs/commandsUploadComplete.js +8 -4
  12. package/esm/funcs/commandsUploadComplete.js.map +1 -1
  13. package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
  14. package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
  15. package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
  16. package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
  17. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
  18. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
  19. package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
  20. package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
  21. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
  22. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
  23. package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
  24. package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
  25. package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
  26. package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
  27. package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
  28. package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
  29. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
  30. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
  31. package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
  32. package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
  33. package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
  34. package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
  35. package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
  36. package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/models/acquireresponse.d.ts +8 -0
  40. package/esm/models/acquireresponse.d.ts.map +1 -1
  41. package/esm/models/acquireresponse.js +2 -0
  42. package/esm/models/acquireresponse.js.map +1 -1
  43. package/esm/models/agentsyncrequest.d.ts +3 -0
  44. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  45. package/esm/models/agentsyncrequest.js +2 -0
  46. package/esm/models/agentsyncrequest.js.map +1 -1
  47. package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
  48. package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
  49. package/esm/models/bindingvalueoptionstringunion.js +39 -0
  50. package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
  51. package/esm/models/bindingvaluestringunion.d.ts +39 -0
  52. package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
  53. package/esm/models/bindingvaluestringunion.js +39 -0
  54. package/esm/models/bindingvaluestringunion.js.map +1 -0
  55. package/esm/models/bindingvalueu16union.d.ts +39 -0
  56. package/esm/models/bindingvalueu16union.d.ts.map +1 -0
  57. package/esm/models/bindingvalueu16union.js +31 -0
  58. package/esm/models/bindingvalueu16union.js.map +1 -0
  59. package/esm/models/bindingvalueu8union.d.ts +39 -0
  60. package/esm/models/bindingvalueu8union.d.ts.map +1 -0
  61. package/esm/models/bindingvalueu8union.js +31 -0
  62. package/esm/models/bindingvalueu8union.js.map +1 -0
  63. package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
  64. package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
  65. package/esm/models/bindingvaluevecstringunion.js +39 -0
  66. package/esm/models/bindingvaluevecstringunion.js.map +1 -0
  67. package/esm/models/computesettings.d.ts +10 -0
  68. package/esm/models/computesettings.d.ts.map +1 -1
  69. package/esm/models/computesettings.js +5 -0
  70. package/esm/models/computesettings.js.map +1 -1
  71. package/esm/models/containerresourceselection.d.ts +28 -0
  72. package/esm/models/containerresourceselection.d.ts.map +1 -0
  73. package/esm/models/containerresourceselection.js +22 -0
  74. package/esm/models/containerresourceselection.js.map +1 -0
  75. package/esm/models/custompluginoperationsconfig.d.ts +46 -0
  76. package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
  77. package/esm/models/custompluginoperationsconfig.js +19 -0
  78. package/esm/models/custompluginoperationsconfig.js.map +1 -0
  79. package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
  80. package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
  81. package/esm/models/deploymentacquireunavailablereason.js +25 -0
  82. package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
  83. package/esm/models/externalbindingunion.d.ts +1414 -0
  84. package/esm/models/externalbindingunion.d.ts.map +1 -0
  85. package/esm/models/externalbindingunion.js +1075 -0
  86. package/esm/models/externalbindingunion.js.map +1 -0
  87. package/esm/models/externalpostgressslmode.d.ts +28 -0
  88. package/esm/models/externalpostgressslmode.d.ts.map +1 -0
  89. package/esm/models/externalpostgressslmode.js +21 -0
  90. package/esm/models/externalpostgressslmode.js.map +1 -0
  91. package/esm/models/index.d.ts +17 -0
  92. package/esm/models/index.d.ts.map +1 -1
  93. package/esm/models/index.js +17 -0
  94. package/esm/models/index.js.map +1 -1
  95. package/esm/models/operationapprovaldecision.d.ts +16 -0
  96. package/esm/models/operationapprovaldecision.d.ts.map +1 -0
  97. package/esm/models/operationapprovaldecision.js +14 -0
  98. package/esm/models/operationapprovaldecision.js.map +1 -0
  99. package/esm/models/operationapprovalunion.d.ts +36 -0
  100. package/esm/models/operationapprovalunion.d.ts.map +1 -0
  101. package/esm/models/operationapprovalunion.js +22 -0
  102. package/esm/models/operationapprovalunion.js.map +1 -0
  103. package/esm/models/operationsbundledownload.d.ts +9 -0
  104. package/esm/models/operationsbundledownload.d.ts.map +1 -1
  105. package/esm/models/operationsbundledownload.js +1 -0
  106. package/esm/models/operationsbundledownload.js.map +1 -1
  107. package/esm/models/operationsconfig.d.ts +29 -0
  108. package/esm/models/operationsconfig.d.ts.map +1 -0
  109. package/esm/models/operationsconfig.js +16 -0
  110. package/esm/models/operationsconfig.js.map +1 -0
  111. package/esm/models/operationsettingvalueunion.d.ts +62 -0
  112. package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
  113. package/esm/models/operationsettingvalueunion.js +36 -0
  114. package/esm/models/operationsettingvalueunion.js.map +1 -0
  115. package/esm/models/pluginoperationsconfig.d.ts +36 -0
  116. package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
  117. package/esm/models/pluginoperationsconfig.js +17 -0
  118. package/esm/models/pluginoperationsconfig.js.map +1 -0
  119. package/esm/models/secretreference.d.ts +22 -0
  120. package/esm/models/secretreference.d.ts.map +1 -0
  121. package/esm/models/secretreference.js +22 -0
  122. package/esm/models/secretreference.js.map +1 -0
  123. package/esm/models/stacksettings.d.ts +7 -27
  124. package/esm/models/stacksettings.d.ts.map +1 -1
  125. package/esm/models/stacksettings.js +3 -14
  126. package/esm/models/stacksettings.js.map +1 -1
  127. package/esm/models/unacquireddeployment.d.ts +24 -0
  128. package/esm/models/unacquireddeployment.d.ts.map +1 -0
  129. package/esm/models/unacquireddeployment.js +16 -0
  130. package/esm/models/unacquireddeployment.js.map +1 -0
  131. package/esm/sdk/commands.d.ts +3 -3
  132. package/esm/sdk/commands.d.ts.map +1 -1
  133. package/esm/sdk/commands.js +6 -6
  134. package/esm/sdk/commands.js.map +1 -1
  135. package/esm/sdk/deployments.d.ts +5 -5
  136. package/esm/sdk/deployments.d.ts.map +1 -1
  137. package/esm/sdk/deployments.js +10 -10
  138. package/esm/sdk/deployments.js.map +1 -1
  139. package/esm/sdk/releases.d.ts +1 -1
  140. package/esm/sdk/releases.d.ts.map +1 -1
  141. package/esm/sdk/releases.js +2 -2
  142. package/esm/sdk/releases.js.map +1 -1
  143. package/examples/package-lock.json +1 -1
  144. package/jsr.json +1 -1
  145. package/package.json +3 -3
  146. package/src/funcs/commandsStoreCommandPayload.ts +13 -4
  147. package/src/funcs/commandsSubmitResponse.ts +13 -4
  148. package/src/funcs/commandsUploadComplete.ts +12 -4
  149. package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
  150. package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
  151. package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
  152. package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
  153. package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
  154. package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
  155. package/src/lib/config.ts +2 -2
  156. package/src/models/acquireresponse.ts +12 -0
  157. package/src/models/agentsyncrequest.ts +8 -0
  158. package/src/models/bindingvalueoptionstringunion.ts +116 -0
  159. package/src/models/bindingvaluestringunion.ts +111 -0
  160. package/src/models/bindingvalueu16union.ts +101 -0
  161. package/src/models/bindingvalueu8union.ts +97 -0
  162. package/src/models/bindingvaluevecstringunion.ts +114 -0
  163. package/src/models/computesettings.ts +15 -0
  164. package/src/models/containerresourceselection.ts +62 -0
  165. package/src/models/custompluginoperationsconfig.ts +71 -0
  166. package/src/models/deploymentacquireunavailablereason.ts +41 -0
  167. package/src/models/externalbindingunion.ts +3068 -0
  168. package/src/models/externalpostgressslmode.ts +39 -0
  169. package/src/models/index.ts +17 -0
  170. package/src/models/operationapprovaldecision.ts +25 -0
  171. package/src/models/operationapprovalunion.ts +78 -0
  172. package/src/models/operationsbundledownload.ts +8 -0
  173. package/src/models/operationsconfig.ts +53 -0
  174. package/src/models/operationsettingvalueunion.ts +136 -0
  175. package/src/models/pluginoperationsconfig.ts +57 -0
  176. package/src/models/secretreference.ts +54 -0
  177. package/src/models/stacksettings.ts +17 -55
  178. package/src/models/unacquireddeployment.ts +51 -0
  179. package/src/sdk/commands.ts +12 -6
  180. package/src/sdk/deployments.ts +20 -10
  181. package/src/sdk/releases.ts +4 -2
@@ -0,0 +1,111 @@
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
+ import {
10
+ SecretReference,
11
+ SecretReference$inboundSchema,
12
+ SecretReference$Outbound,
13
+ SecretReference$outboundSchema,
14
+ } from "./secretreference.js";
15
+
16
+ /**
17
+ * A Kubernetes Secret reference (must come before Expression)
18
+ */
19
+ export type BindingValueString = {
20
+ /**
21
+ * Reference to a Kubernetes Secret
22
+ */
23
+ secretRef: SecretReference;
24
+ };
25
+
26
+ /**
27
+ * Represents a value that can be either a concrete value, a template expression,
28
+ *
29
+ * @remarks
30
+ * or a reference to a Kubernetes Secret
31
+ */
32
+ export type BindingValueStringUnion = BindingValueString | string | any;
33
+
34
+ /** @internal */
35
+ export const BindingValueString$inboundSchema: z.ZodType<
36
+ BindingValueString,
37
+ unknown
38
+ > = z.object({
39
+ secretRef: SecretReference$inboundSchema,
40
+ });
41
+ /** @internal */
42
+ export type BindingValueString$Outbound = {
43
+ secretRef: SecretReference$Outbound;
44
+ };
45
+
46
+ /** @internal */
47
+ export const BindingValueString$outboundSchema: z.ZodType<
48
+ BindingValueString$Outbound,
49
+ BindingValueString
50
+ > = z.object({
51
+ secretRef: SecretReference$outboundSchema,
52
+ });
53
+
54
+ export function bindingValueStringToJSON(
55
+ bindingValueString: BindingValueString,
56
+ ): string {
57
+ return JSON.stringify(
58
+ BindingValueString$outboundSchema.parse(bindingValueString),
59
+ );
60
+ }
61
+ export function bindingValueStringFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<BindingValueString, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => BindingValueString$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'BindingValueString' from JSON`,
68
+ );
69
+ }
70
+
71
+ /** @internal */
72
+ export const BindingValueStringUnion$inboundSchema: z.ZodType<
73
+ BindingValueStringUnion,
74
+ unknown
75
+ > = z.union([
76
+ z.lazy(() => BindingValueString$inboundSchema),
77
+ z.string(),
78
+ z.any(),
79
+ ]);
80
+ /** @internal */
81
+ export type BindingValueStringUnion$Outbound =
82
+ | BindingValueString$Outbound
83
+ | string
84
+ | any;
85
+
86
+ /** @internal */
87
+ export const BindingValueStringUnion$outboundSchema: z.ZodType<
88
+ BindingValueStringUnion$Outbound,
89
+ BindingValueStringUnion
90
+ > = z.union([
91
+ z.lazy(() => BindingValueString$outboundSchema),
92
+ z.string(),
93
+ z.any(),
94
+ ]);
95
+
96
+ export function bindingValueStringUnionToJSON(
97
+ bindingValueStringUnion: BindingValueStringUnion,
98
+ ): string {
99
+ return JSON.stringify(
100
+ BindingValueStringUnion$outboundSchema.parse(bindingValueStringUnion),
101
+ );
102
+ }
103
+ export function bindingValueStringUnionFromJSON(
104
+ jsonString: string,
105
+ ): SafeParseResult<BindingValueStringUnion, SDKValidationError> {
106
+ return safeParse(
107
+ jsonString,
108
+ (x) => BindingValueStringUnion$inboundSchema.parse(JSON.parse(x)),
109
+ `Failed to parse 'BindingValueStringUnion' from JSON`,
110
+ );
111
+ }
@@ -0,0 +1,101 @@
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
+ import {
10
+ SecretReference,
11
+ SecretReference$inboundSchema,
12
+ SecretReference$Outbound,
13
+ SecretReference$outboundSchema,
14
+ } from "./secretreference.js";
15
+
16
+ /**
17
+ * A Kubernetes Secret reference (must come before Expression)
18
+ */
19
+ export type BindingValueU16 = {
20
+ /**
21
+ * Reference to a Kubernetes Secret
22
+ */
23
+ secretRef: SecretReference;
24
+ };
25
+
26
+ /**
27
+ * Represents a value that can be either a concrete value, a template expression,
28
+ *
29
+ * @remarks
30
+ * or a reference to a Kubernetes Secret
31
+ */
32
+ export type BindingValueU16Union = BindingValueU16 | number | any;
33
+
34
+ /** @internal */
35
+ export const BindingValueU16$inboundSchema: z.ZodType<
36
+ BindingValueU16,
37
+ unknown
38
+ > = z.object({
39
+ secretRef: SecretReference$inboundSchema,
40
+ });
41
+ /** @internal */
42
+ export type BindingValueU16$Outbound = {
43
+ secretRef: SecretReference$Outbound;
44
+ };
45
+
46
+ /** @internal */
47
+ export const BindingValueU16$outboundSchema: z.ZodType<
48
+ BindingValueU16$Outbound,
49
+ BindingValueU16
50
+ > = z.object({
51
+ secretRef: SecretReference$outboundSchema,
52
+ });
53
+
54
+ export function bindingValueU16ToJSON(
55
+ bindingValueU16: BindingValueU16,
56
+ ): string {
57
+ return JSON.stringify(BindingValueU16$outboundSchema.parse(bindingValueU16));
58
+ }
59
+ export function bindingValueU16FromJSON(
60
+ jsonString: string,
61
+ ): SafeParseResult<BindingValueU16, SDKValidationError> {
62
+ return safeParse(
63
+ jsonString,
64
+ (x) => BindingValueU16$inboundSchema.parse(JSON.parse(x)),
65
+ `Failed to parse 'BindingValueU16' from JSON`,
66
+ );
67
+ }
68
+
69
+ /** @internal */
70
+ export const BindingValueU16Union$inboundSchema: z.ZodType<
71
+ BindingValueU16Union,
72
+ unknown
73
+ > = z.union([z.lazy(() => BindingValueU16$inboundSchema), z.int(), z.any()]);
74
+ /** @internal */
75
+ export type BindingValueU16Union$Outbound =
76
+ | BindingValueU16$Outbound
77
+ | number
78
+ | any;
79
+
80
+ /** @internal */
81
+ export const BindingValueU16Union$outboundSchema: z.ZodType<
82
+ BindingValueU16Union$Outbound,
83
+ BindingValueU16Union
84
+ > = z.union([z.lazy(() => BindingValueU16$outboundSchema), z.int(), z.any()]);
85
+
86
+ export function bindingValueU16UnionToJSON(
87
+ bindingValueU16Union: BindingValueU16Union,
88
+ ): string {
89
+ return JSON.stringify(
90
+ BindingValueU16Union$outboundSchema.parse(bindingValueU16Union),
91
+ );
92
+ }
93
+ export function bindingValueU16UnionFromJSON(
94
+ jsonString: string,
95
+ ): SafeParseResult<BindingValueU16Union, SDKValidationError> {
96
+ return safeParse(
97
+ jsonString,
98
+ (x) => BindingValueU16Union$inboundSchema.parse(JSON.parse(x)),
99
+ `Failed to parse 'BindingValueU16Union' from JSON`,
100
+ );
101
+ }
@@ -0,0 +1,97 @@
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
+ import {
10
+ SecretReference,
11
+ SecretReference$inboundSchema,
12
+ SecretReference$Outbound,
13
+ SecretReference$outboundSchema,
14
+ } from "./secretreference.js";
15
+
16
+ /**
17
+ * A Kubernetes Secret reference (must come before Expression)
18
+ */
19
+ export type BindingValueU8 = {
20
+ /**
21
+ * Reference to a Kubernetes Secret
22
+ */
23
+ secretRef: SecretReference;
24
+ };
25
+
26
+ /**
27
+ * Represents a value that can be either a concrete value, a template expression,
28
+ *
29
+ * @remarks
30
+ * or a reference to a Kubernetes Secret
31
+ */
32
+ export type BindingValueU8Union = BindingValueU8 | number | any;
33
+
34
+ /** @internal */
35
+ export const BindingValueU8$inboundSchema: z.ZodType<BindingValueU8, unknown> =
36
+ z.object({
37
+ secretRef: SecretReference$inboundSchema,
38
+ });
39
+ /** @internal */
40
+ export type BindingValueU8$Outbound = {
41
+ secretRef: SecretReference$Outbound;
42
+ };
43
+
44
+ /** @internal */
45
+ export const BindingValueU8$outboundSchema: z.ZodType<
46
+ BindingValueU8$Outbound,
47
+ BindingValueU8
48
+ > = z.object({
49
+ secretRef: SecretReference$outboundSchema,
50
+ });
51
+
52
+ export function bindingValueU8ToJSON(bindingValueU8: BindingValueU8): string {
53
+ return JSON.stringify(BindingValueU8$outboundSchema.parse(bindingValueU8));
54
+ }
55
+ export function bindingValueU8FromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<BindingValueU8, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => BindingValueU8$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'BindingValueU8' from JSON`,
62
+ );
63
+ }
64
+
65
+ /** @internal */
66
+ export const BindingValueU8Union$inboundSchema: z.ZodType<
67
+ BindingValueU8Union,
68
+ unknown
69
+ > = z.union([z.lazy(() => BindingValueU8$inboundSchema), z.int(), z.any()]);
70
+ /** @internal */
71
+ export type BindingValueU8Union$Outbound =
72
+ | BindingValueU8$Outbound
73
+ | number
74
+ | any;
75
+
76
+ /** @internal */
77
+ export const BindingValueU8Union$outboundSchema: z.ZodType<
78
+ BindingValueU8Union$Outbound,
79
+ BindingValueU8Union
80
+ > = z.union([z.lazy(() => BindingValueU8$outboundSchema), z.int(), z.any()]);
81
+
82
+ export function bindingValueU8UnionToJSON(
83
+ bindingValueU8Union: BindingValueU8Union,
84
+ ): string {
85
+ return JSON.stringify(
86
+ BindingValueU8Union$outboundSchema.parse(bindingValueU8Union),
87
+ );
88
+ }
89
+ export function bindingValueU8UnionFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<BindingValueU8Union, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) => BindingValueU8Union$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'BindingValueU8Union' from JSON`,
96
+ );
97
+ }
@@ -0,0 +1,114 @@
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
+ import {
10
+ SecretReference,
11
+ SecretReference$inboundSchema,
12
+ SecretReference$Outbound,
13
+ SecretReference$outboundSchema,
14
+ } from "./secretreference.js";
15
+
16
+ /**
17
+ * A Kubernetes Secret reference (must come before Expression)
18
+ */
19
+ export type BindingValueVecString = {
20
+ /**
21
+ * Reference to a Kubernetes Secret
22
+ */
23
+ secretRef: SecretReference;
24
+ };
25
+
26
+ /**
27
+ * Represents a value that can be either a concrete value, a template expression,
28
+ *
29
+ * @remarks
30
+ * or a reference to a Kubernetes Secret
31
+ */
32
+ export type BindingValueVecStringUnion =
33
+ | BindingValueVecString
34
+ | Array<string>
35
+ | any;
36
+
37
+ /** @internal */
38
+ export const BindingValueVecString$inboundSchema: z.ZodType<
39
+ BindingValueVecString,
40
+ unknown
41
+ > = z.object({
42
+ secretRef: SecretReference$inboundSchema,
43
+ });
44
+ /** @internal */
45
+ export type BindingValueVecString$Outbound = {
46
+ secretRef: SecretReference$Outbound;
47
+ };
48
+
49
+ /** @internal */
50
+ export const BindingValueVecString$outboundSchema: z.ZodType<
51
+ BindingValueVecString$Outbound,
52
+ BindingValueVecString
53
+ > = z.object({
54
+ secretRef: SecretReference$outboundSchema,
55
+ });
56
+
57
+ export function bindingValueVecStringToJSON(
58
+ bindingValueVecString: BindingValueVecString,
59
+ ): string {
60
+ return JSON.stringify(
61
+ BindingValueVecString$outboundSchema.parse(bindingValueVecString),
62
+ );
63
+ }
64
+ export function bindingValueVecStringFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<BindingValueVecString, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => BindingValueVecString$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'BindingValueVecString' from JSON`,
71
+ );
72
+ }
73
+
74
+ /** @internal */
75
+ export const BindingValueVecStringUnion$inboundSchema: z.ZodType<
76
+ BindingValueVecStringUnion,
77
+ unknown
78
+ > = z.union([
79
+ z.lazy(() => BindingValueVecString$inboundSchema),
80
+ z.array(z.string()),
81
+ z.any(),
82
+ ]);
83
+ /** @internal */
84
+ export type BindingValueVecStringUnion$Outbound =
85
+ | BindingValueVecString$Outbound
86
+ | Array<string>
87
+ | any;
88
+
89
+ /** @internal */
90
+ export const BindingValueVecStringUnion$outboundSchema: z.ZodType<
91
+ BindingValueVecStringUnion$Outbound,
92
+ BindingValueVecStringUnion
93
+ > = z.union([
94
+ z.lazy(() => BindingValueVecString$outboundSchema),
95
+ z.array(z.string()),
96
+ z.any(),
97
+ ]);
98
+
99
+ export function bindingValueVecStringUnionToJSON(
100
+ bindingValueVecStringUnion: BindingValueVecStringUnion,
101
+ ): string {
102
+ return JSON.stringify(
103
+ BindingValueVecStringUnion$outboundSchema.parse(bindingValueVecStringUnion),
104
+ );
105
+ }
106
+ export function bindingValueVecStringUnionFromJSON(
107
+ jsonString: string,
108
+ ): SafeParseResult<BindingValueVecStringUnion, SDKValidationError> {
109
+ return safeParse(
110
+ jsonString,
111
+ (x) => BindingValueVecStringUnion$inboundSchema.parse(JSON.parse(x)),
112
+ `Failed to parse 'BindingValueVecStringUnion' from JSON`,
113
+ );
114
+ }
@@ -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
+ }
@@ -0,0 +1,41 @@
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
+ * Why an explicitly requested deployment was not acquired.
10
+ *
11
+ * @remarks
12
+ *
13
+ * These reasons are intentionally bounded and do not identify the session
14
+ * that owns a competing lease.
15
+ */
16
+ export const DeploymentAcquireUnavailableReason = {
17
+ Contended: "contended",
18
+ Deferred: "deferred",
19
+ StatusMismatch: "statusMismatch",
20
+ DeploymentModelMismatch: "deploymentModelMismatch",
21
+ PlatformMismatch: "platformMismatch",
22
+ SetupMethodMismatch: "setupMethodMismatch",
23
+ AcquireModeMismatch: "acquireModeMismatch",
24
+ LimitReached: "limitReached",
25
+ } as const;
26
+ /**
27
+ * Why an explicitly requested deployment was not acquired.
28
+ *
29
+ * @remarks
30
+ *
31
+ * These reasons are intentionally bounded and do not identify the session
32
+ * that owns a competing lease.
33
+ */
34
+ export type DeploymentAcquireUnavailableReason = ClosedEnum<
35
+ typeof DeploymentAcquireUnavailableReason
36
+ >;
37
+
38
+ /** @internal */
39
+ export const DeploymentAcquireUnavailableReason$inboundSchema: z.ZodEnum<
40
+ typeof DeploymentAcquireUnavailableReason
41
+ > = z.enum(DeploymentAcquireUnavailableReason);