@alienplatform/manager-api 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.
Files changed (131) 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/bindingvalueoptionstringunion.d.ts +39 -0
  44. package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
  45. package/esm/models/bindingvalueoptionstringunion.js +39 -0
  46. package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
  47. package/esm/models/bindingvaluestringunion.d.ts +39 -0
  48. package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
  49. package/esm/models/bindingvaluestringunion.js +39 -0
  50. package/esm/models/bindingvaluestringunion.js.map +1 -0
  51. package/esm/models/bindingvalueu16union.d.ts +39 -0
  52. package/esm/models/bindingvalueu16union.d.ts.map +1 -0
  53. package/esm/models/bindingvalueu16union.js +31 -0
  54. package/esm/models/bindingvalueu16union.js.map +1 -0
  55. package/esm/models/bindingvalueu8union.d.ts +39 -0
  56. package/esm/models/bindingvalueu8union.d.ts.map +1 -0
  57. package/esm/models/bindingvalueu8union.js +31 -0
  58. package/esm/models/bindingvalueu8union.js.map +1 -0
  59. package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
  60. package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
  61. package/esm/models/bindingvaluevecstringunion.js +39 -0
  62. package/esm/models/bindingvaluevecstringunion.js.map +1 -0
  63. package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
  64. package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
  65. package/esm/models/deploymentacquireunavailablereason.js +25 -0
  66. package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
  67. package/esm/models/externalbindingunion.d.ts +1414 -0
  68. package/esm/models/externalbindingunion.d.ts.map +1 -0
  69. package/esm/models/externalbindingunion.js +1075 -0
  70. package/esm/models/externalbindingunion.js.map +1 -0
  71. package/esm/models/externalpostgressslmode.d.ts +28 -0
  72. package/esm/models/externalpostgressslmode.d.ts.map +1 -0
  73. package/esm/models/externalpostgressslmode.js +21 -0
  74. package/esm/models/externalpostgressslmode.js.map +1 -0
  75. package/esm/models/index.d.ts +10 -0
  76. package/esm/models/index.d.ts.map +1 -1
  77. package/esm/models/index.js +10 -0
  78. package/esm/models/index.js.map +1 -1
  79. package/esm/models/secretreference.d.ts +22 -0
  80. package/esm/models/secretreference.d.ts.map +1 -0
  81. package/esm/models/secretreference.js +22 -0
  82. package/esm/models/secretreference.js.map +1 -0
  83. package/esm/models/stacksettings.d.ts +7 -27
  84. package/esm/models/stacksettings.d.ts.map +1 -1
  85. package/esm/models/stacksettings.js +3 -14
  86. package/esm/models/stacksettings.js.map +1 -1
  87. package/esm/models/unacquireddeployment.d.ts +24 -0
  88. package/esm/models/unacquireddeployment.d.ts.map +1 -0
  89. package/esm/models/unacquireddeployment.js +16 -0
  90. package/esm/models/unacquireddeployment.js.map +1 -0
  91. package/esm/sdk/commands.d.ts +3 -3
  92. package/esm/sdk/commands.d.ts.map +1 -1
  93. package/esm/sdk/commands.js +6 -6
  94. package/esm/sdk/commands.js.map +1 -1
  95. package/esm/sdk/deployments.d.ts +5 -5
  96. package/esm/sdk/deployments.d.ts.map +1 -1
  97. package/esm/sdk/deployments.js +10 -10
  98. package/esm/sdk/deployments.js.map +1 -1
  99. package/esm/sdk/releases.d.ts +1 -1
  100. package/esm/sdk/releases.d.ts.map +1 -1
  101. package/esm/sdk/releases.js +2 -2
  102. package/esm/sdk/releases.js.map +1 -1
  103. package/examples/package-lock.json +1 -1
  104. package/jsr.json +1 -1
  105. package/package.json +3 -3
  106. package/src/funcs/commandsStoreCommandPayload.ts +13 -4
  107. package/src/funcs/commandsSubmitResponse.ts +13 -4
  108. package/src/funcs/commandsUploadComplete.ts +12 -4
  109. package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
  110. package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
  111. package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
  112. package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
  113. package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
  114. package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
  115. package/src/lib/config.ts +2 -2
  116. package/src/models/acquireresponse.ts +12 -0
  117. package/src/models/bindingvalueoptionstringunion.ts +116 -0
  118. package/src/models/bindingvaluestringunion.ts +111 -0
  119. package/src/models/bindingvalueu16union.ts +101 -0
  120. package/src/models/bindingvalueu8union.ts +97 -0
  121. package/src/models/bindingvaluevecstringunion.ts +114 -0
  122. package/src/models/deploymentacquireunavailablereason.ts +41 -0
  123. package/src/models/externalbindingunion.ts +3068 -0
  124. package/src/models/externalpostgressslmode.ts +39 -0
  125. package/src/models/index.ts +10 -0
  126. package/src/models/secretreference.ts +54 -0
  127. package/src/models/stacksettings.ts +17 -55
  128. package/src/models/unacquireddeployment.ts +51 -0
  129. package/src/sdk/commands.ts +12 -6
  130. package/src/sdk/deployments.ts +20 -10
  131. package/src/sdk/releases.ts +4 -2
@@ -10,9 +10,20 @@ import {
10
10
  AcquiredDeploymentResponse$inboundSchema,
11
11
  } from "./acquireddeploymentresponse.js";
12
12
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
13
+ import {
14
+ UnacquiredDeployment,
15
+ UnacquiredDeployment$inboundSchema,
16
+ } from "./unacquireddeployment.js";
13
17
 
14
18
  export type AcquireResponse = {
15
19
  deployments: Array<AcquiredDeploymentResponse>;
20
+ /**
21
+ * Bounded reasons for explicitly requested deployments that were not acquired.
22
+ *
23
+ * @remarks
24
+ * Empty for discovery-style batch acquisition.
25
+ */
26
+ notAcquired?: Array<UnacquiredDeployment> | undefined;
16
27
  };
17
28
 
18
29
  /** @internal */
@@ -21,6 +32,7 @@ export const AcquireResponse$inboundSchema: z.ZodType<
21
32
  unknown
22
33
  > = z.object({
23
34
  deployments: z.array(AcquiredDeploymentResponse$inboundSchema),
35
+ notAcquired: z.array(UnacquiredDeployment$inboundSchema).optional(),
24
36
  });
25
37
 
26
38
  export function acquireResponseFromJSON(
@@ -0,0 +1,116 @@
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 BindingValueOptionString = {
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 BindingValueOptionStringUnion =
33
+ | BindingValueOptionString
34
+ | string
35
+ | any;
36
+
37
+ /** @internal */
38
+ export const BindingValueOptionString$inboundSchema: z.ZodType<
39
+ BindingValueOptionString,
40
+ unknown
41
+ > = z.object({
42
+ secretRef: SecretReference$inboundSchema,
43
+ });
44
+ /** @internal */
45
+ export type BindingValueOptionString$Outbound = {
46
+ secretRef: SecretReference$Outbound;
47
+ };
48
+
49
+ /** @internal */
50
+ export const BindingValueOptionString$outboundSchema: z.ZodType<
51
+ BindingValueOptionString$Outbound,
52
+ BindingValueOptionString
53
+ > = z.object({
54
+ secretRef: SecretReference$outboundSchema,
55
+ });
56
+
57
+ export function bindingValueOptionStringToJSON(
58
+ bindingValueOptionString: BindingValueOptionString,
59
+ ): string {
60
+ return JSON.stringify(
61
+ BindingValueOptionString$outboundSchema.parse(bindingValueOptionString),
62
+ );
63
+ }
64
+ export function bindingValueOptionStringFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<BindingValueOptionString, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => BindingValueOptionString$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'BindingValueOptionString' from JSON`,
71
+ );
72
+ }
73
+
74
+ /** @internal */
75
+ export const BindingValueOptionStringUnion$inboundSchema: z.ZodType<
76
+ BindingValueOptionStringUnion,
77
+ unknown
78
+ > = z.union([
79
+ z.lazy(() => BindingValueOptionString$inboundSchema),
80
+ z.string(),
81
+ z.any(),
82
+ ]);
83
+ /** @internal */
84
+ export type BindingValueOptionStringUnion$Outbound =
85
+ | BindingValueOptionString$Outbound
86
+ | string
87
+ | any;
88
+
89
+ /** @internal */
90
+ export const BindingValueOptionStringUnion$outboundSchema: z.ZodType<
91
+ BindingValueOptionStringUnion$Outbound,
92
+ BindingValueOptionStringUnion
93
+ > = z.union([
94
+ z.lazy(() => BindingValueOptionString$outboundSchema),
95
+ z.string(),
96
+ z.any(),
97
+ ]);
98
+
99
+ export function bindingValueOptionStringUnionToJSON(
100
+ bindingValueOptionStringUnion: BindingValueOptionStringUnion,
101
+ ): string {
102
+ return JSON.stringify(
103
+ BindingValueOptionStringUnion$outboundSchema.parse(
104
+ bindingValueOptionStringUnion,
105
+ ),
106
+ );
107
+ }
108
+ export function bindingValueOptionStringUnionFromJSON(
109
+ jsonString: string,
110
+ ): SafeParseResult<BindingValueOptionStringUnion, SDKValidationError> {
111
+ return safeParse(
112
+ jsonString,
113
+ (x) => BindingValueOptionStringUnion$inboundSchema.parse(JSON.parse(x)),
114
+ `Failed to parse 'BindingValueOptionStringUnion' from JSON`,
115
+ );
116
+ }
@@ -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
+ }
@@ -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);