@alienplatform/manager-api 3.3.43 → 3.3.45

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 (41) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/externalbindingunion.d.ts +30 -5
  4. package/esm/models/externalbindingunion.d.ts.map +1 -1
  5. package/esm/models/externalbindingunion.js +48 -2
  6. package/esm/models/externalbindingunion.js.map +1 -1
  7. package/esm/models/externalpasswordsecretkeyref.d.ts +21 -0
  8. package/esm/models/externalpasswordsecretkeyref.d.ts.map +1 -0
  9. package/esm/models/externalpasswordsecretkeyref.js +21 -0
  10. package/esm/models/externalpasswordsecretkeyref.js.map +1 -0
  11. package/esm/models/externalpasswordsecretref.d.ts +21 -0
  12. package/esm/models/externalpasswordsecretref.d.ts.map +1 -0
  13. package/esm/models/externalpasswordsecretref.js +21 -0
  14. package/esm/models/externalpasswordsecretref.js.map +1 -0
  15. package/esm/models/index.d.ts +2 -0
  16. package/esm/models/index.d.ts.map +1 -1
  17. package/esm/models/index.js +2 -0
  18. package/esm/models/index.js.map +1 -1
  19. package/esm/models/kubernetesexposuresettings.d.ts +33 -2
  20. package/esm/models/kubernetesexposuresettings.d.ts.map +1 -1
  21. package/esm/models/kubernetesexposuresettings.js +22 -0
  22. package/esm/models/kubernetesexposuresettings.js.map +1 -1
  23. package/esm/models/stacksettings.d.ts +8 -0
  24. package/esm/models/stacksettings.d.ts.map +1 -1
  25. package/esm/models/stacksettings.js +2 -0
  26. package/esm/models/stacksettings.js.map +1 -1
  27. package/esm/models/statusreport.d.ts +11 -0
  28. package/esm/models/statusreport.d.ts.map +1 -1
  29. package/esm/models/statusreport.js +3 -0
  30. package/esm/models/statusreport.js.map +1 -1
  31. package/examples/package-lock.json +1 -1
  32. package/jsr.json +1 -1
  33. package/package.json +1 -1
  34. package/src/lib/config.ts +2 -2
  35. package/src/models/externalbindingunion.ts +115 -7
  36. package/src/models/externalpasswordsecretkeyref.ts +60 -0
  37. package/src/models/externalpasswordsecretref.ts +58 -0
  38. package/src/models/index.ts +2 -0
  39. package/src/models/kubernetesexposuresettings.ts +79 -2
  40. package/src/models/stacksettings.ts +10 -0
  41. package/src/models/statusreport.ts +17 -0
@@ -0,0 +1,60 @@
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
+ export type ExternalPasswordSecretKeyRef = {
17
+ /**
18
+ * Reference to a Kubernetes Secret
19
+ */
20
+ secretKeyRef: SecretReference;
21
+ };
22
+
23
+ /** @internal */
24
+ export const ExternalPasswordSecretKeyRef$inboundSchema: z.ZodType<
25
+ ExternalPasswordSecretKeyRef,
26
+ unknown
27
+ > = z.object({
28
+ secretKeyRef: SecretReference$inboundSchema,
29
+ });
30
+ /** @internal */
31
+ export type ExternalPasswordSecretKeyRef$Outbound = {
32
+ secretKeyRef: SecretReference$Outbound;
33
+ };
34
+
35
+ /** @internal */
36
+ export const ExternalPasswordSecretKeyRef$outboundSchema: z.ZodType<
37
+ ExternalPasswordSecretKeyRef$Outbound,
38
+ ExternalPasswordSecretKeyRef
39
+ > = z.object({
40
+ secretKeyRef: SecretReference$outboundSchema,
41
+ });
42
+
43
+ export function externalPasswordSecretKeyRefToJSON(
44
+ externalPasswordSecretKeyRef: ExternalPasswordSecretKeyRef,
45
+ ): string {
46
+ return JSON.stringify(
47
+ ExternalPasswordSecretKeyRef$outboundSchema.parse(
48
+ externalPasswordSecretKeyRef,
49
+ ),
50
+ );
51
+ }
52
+ export function externalPasswordSecretKeyRefFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<ExternalPasswordSecretKeyRef, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => ExternalPasswordSecretKeyRef$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'ExternalPasswordSecretKeyRef' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,58 @@
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
+ export type ExternalPasswordSecretRef = {
17
+ /**
18
+ * Reference to a Kubernetes Secret
19
+ */
20
+ secretRef: SecretReference;
21
+ };
22
+
23
+ /** @internal */
24
+ export const ExternalPasswordSecretRef$inboundSchema: z.ZodType<
25
+ ExternalPasswordSecretRef,
26
+ unknown
27
+ > = z.object({
28
+ secretRef: SecretReference$inboundSchema,
29
+ });
30
+ /** @internal */
31
+ export type ExternalPasswordSecretRef$Outbound = {
32
+ secretRef: SecretReference$Outbound;
33
+ };
34
+
35
+ /** @internal */
36
+ export const ExternalPasswordSecretRef$outboundSchema: z.ZodType<
37
+ ExternalPasswordSecretRef$Outbound,
38
+ ExternalPasswordSecretRef
39
+ > = z.object({
40
+ secretRef: SecretReference$outboundSchema,
41
+ });
42
+
43
+ export function externalPasswordSecretRefToJSON(
44
+ externalPasswordSecretRef: ExternalPasswordSecretRef,
45
+ ): string {
46
+ return JSON.stringify(
47
+ ExternalPasswordSecretRef$outboundSchema.parse(externalPasswordSecretRef),
48
+ );
49
+ }
50
+ export function externalPasswordSecretRefFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<ExternalPasswordSecretRef, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => ExternalPasswordSecretRef$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'ExternalPasswordSecretRef' from JSON`,
57
+ );
58
+ }
@@ -104,6 +104,8 @@ export * from "./environmentvariabletype.js";
104
104
  export * from "./executionclaim.js";
105
105
  export * from "./exposeprotocol.js";
106
106
  export * from "./externalbindingunion.js";
107
+ export * from "./externalpasswordsecretkeyref.js";
108
+ export * from "./externalpasswordsecretref.js";
107
109
  export * from "./externalpostgressslmode.js";
108
110
  export * from "./failuredomainselection.js";
109
111
  export * from "./gcpcloudkmskeyheartbeatdata.js";
@@ -19,6 +19,25 @@ import {
19
19
  KubernetesRouteProfile$outboundSchema,
20
20
  } from "./kubernetesrouteprofile.js";
21
21
 
22
+ /**
23
+ * Give each named public endpoint a hostname below a customer-owned base domain.
24
+ */
25
+ export type KubernetesExposureSettingsCustomBaseDomain = {
26
+ /**
27
+ * DNS name without a wildcard or URL scheme, for example `app.example.com`.
28
+ */
29
+ baseDomain: string;
30
+ /**
31
+ * Certificate publication or reference mode for Kubernetes public endpoints.
32
+ */
33
+ certificate: KubernetesCertificateMode;
34
+ mode: "customBaseDomain";
35
+ /**
36
+ * Kubernetes route API selected for public endpoints.
37
+ */
38
+ route: KubernetesRouteProfile;
39
+ };
40
+
22
41
  /**
23
42
  * Use a customer hostname and customer-owned certificate reference.
24
43
  */
@@ -66,7 +85,62 @@ export type KubernetesExposureSettingsDisabled = {
66
85
  export type KubernetesExposureSettings =
67
86
  | KubernetesExposureSettingsDisabled
68
87
  | KubernetesExposureSettingsGenerated
69
- | KubernetesExposureSettingsCustom;
88
+ | KubernetesExposureSettingsCustom
89
+ | KubernetesExposureSettingsCustomBaseDomain;
90
+
91
+ /** @internal */
92
+ export const KubernetesExposureSettingsCustomBaseDomain$inboundSchema:
93
+ z.ZodType<KubernetesExposureSettingsCustomBaseDomain, unknown> = z.object({
94
+ baseDomain: z.string(),
95
+ certificate: KubernetesCertificateMode$inboundSchema,
96
+ mode: z.literal("customBaseDomain"),
97
+ route: KubernetesRouteProfile$inboundSchema,
98
+ });
99
+ /** @internal */
100
+ export type KubernetesExposureSettingsCustomBaseDomain$Outbound = {
101
+ baseDomain: string;
102
+ certificate: KubernetesCertificateMode$Outbound;
103
+ mode: "customBaseDomain";
104
+ route: KubernetesRouteProfile$Outbound;
105
+ };
106
+
107
+ /** @internal */
108
+ export const KubernetesExposureSettingsCustomBaseDomain$outboundSchema:
109
+ z.ZodType<
110
+ KubernetesExposureSettingsCustomBaseDomain$Outbound,
111
+ KubernetesExposureSettingsCustomBaseDomain
112
+ > = z.object({
113
+ baseDomain: z.string(),
114
+ certificate: KubernetesCertificateMode$outboundSchema,
115
+ mode: z.literal("customBaseDomain"),
116
+ route: KubernetesRouteProfile$outboundSchema,
117
+ });
118
+
119
+ export function kubernetesExposureSettingsCustomBaseDomainToJSON(
120
+ kubernetesExposureSettingsCustomBaseDomain:
121
+ KubernetesExposureSettingsCustomBaseDomain,
122
+ ): string {
123
+ return JSON.stringify(
124
+ KubernetesExposureSettingsCustomBaseDomain$outboundSchema.parse(
125
+ kubernetesExposureSettingsCustomBaseDomain,
126
+ ),
127
+ );
128
+ }
129
+ export function kubernetesExposureSettingsCustomBaseDomainFromJSON(
130
+ jsonString: string,
131
+ ): SafeParseResult<
132
+ KubernetesExposureSettingsCustomBaseDomain,
133
+ SDKValidationError
134
+ > {
135
+ return safeParse(
136
+ jsonString,
137
+ (x) =>
138
+ KubernetesExposureSettingsCustomBaseDomain$inboundSchema.parse(
139
+ JSON.parse(x),
140
+ ),
141
+ `Failed to parse 'KubernetesExposureSettingsCustomBaseDomain' from JSON`,
142
+ );
143
+ }
70
144
 
71
145
  /** @internal */
72
146
  export const KubernetesExposureSettingsCustom$inboundSchema: z.ZodType<
@@ -210,12 +284,14 @@ export const KubernetesExposureSettings$inboundSchema: z.ZodType<
210
284
  z.lazy(() => KubernetesExposureSettingsDisabled$inboundSchema),
211
285
  z.lazy(() => KubernetesExposureSettingsGenerated$inboundSchema),
212
286
  z.lazy(() => KubernetesExposureSettingsCustom$inboundSchema),
287
+ z.lazy(() => KubernetesExposureSettingsCustomBaseDomain$inboundSchema),
213
288
  ]);
214
289
  /** @internal */
215
290
  export type KubernetesExposureSettings$Outbound =
216
291
  | KubernetesExposureSettingsDisabled$Outbound
217
292
  | KubernetesExposureSettingsGenerated$Outbound
218
- | KubernetesExposureSettingsCustom$Outbound;
293
+ | KubernetesExposureSettingsCustom$Outbound
294
+ | KubernetesExposureSettingsCustomBaseDomain$Outbound;
219
295
 
220
296
  /** @internal */
221
297
  export const KubernetesExposureSettings$outboundSchema: z.ZodType<
@@ -225,6 +301,7 @@ export const KubernetesExposureSettings$outboundSchema: z.ZodType<
225
301
  z.lazy(() => KubernetesExposureSettingsDisabled$outboundSchema),
226
302
  z.lazy(() => KubernetesExposureSettingsGenerated$outboundSchema),
227
303
  z.lazy(() => KubernetesExposureSettingsCustom$outboundSchema),
304
+ z.lazy(() => KubernetesExposureSettingsCustomBaseDomain$outboundSchema),
228
305
  ]);
229
306
 
230
307
  export function kubernetesExposureSettingsToJSON(
@@ -80,6 +80,13 @@ import {
80
80
  * is platform-derived (from the Manager's ServiceAccount).
81
81
  */
82
82
  export type StackSettings = {
83
+ /**
84
+ * Deliver Kubernetes updates and reports as carried bundles instead of a live connection.
85
+ *
86
+ * @remarks
87
+ * The Operator still executes deployments with the pull model.
88
+ */
89
+ airgapped?: boolean | undefined;
83
90
  compute?: ComputeSettings | null | undefined;
84
91
  /**
85
92
  * Deployment model: how updates are delivered to the remote environment.
@@ -132,6 +139,7 @@ export type StackSettings = {
132
139
  /** @internal */
133
140
  export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
134
141
  .object({
142
+ airgapped: z.boolean().optional(),
135
143
  compute: z.nullable(ComputeSettings$inboundSchema).optional(),
136
144
  deploymentModel: DeploymentModel$inboundSchema.optional(),
137
145
  domains: z.nullable(DomainSettings$inboundSchema).optional(),
@@ -152,6 +160,7 @@ export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
152
160
  });
153
161
  /** @internal */
154
162
  export type StackSettings$Outbound = {
163
+ airgapped?: boolean | undefined;
155
164
  compute?: ComputeSettings$Outbound | null | undefined;
156
165
  deploymentModel?: string | undefined;
157
166
  domains?: DomainSettings$Outbound | null | undefined;
@@ -175,6 +184,7 @@ export const StackSettings$outboundSchema: z.ZodType<
175
184
  StackSettings$Outbound,
176
185
  StackSettings
177
186
  > = z.object({
187
+ airgapped: z.boolean().optional(),
178
188
  compute: z.nullable(ComputeSettings$outboundSchema).optional(),
179
189
  deploymentModel: DeploymentModel$outboundSchema.optional(),
180
190
  domains: z.nullable(DomainSettings$outboundSchema).optional(),
@@ -8,8 +8,17 @@ import {
8
8
  ReportedTelemetry$Outbound,
9
9
  ReportedTelemetry$outboundSchema,
10
10
  } from "./reportedtelemetry.js";
11
+ import {
12
+ ResourceHeartbeat,
13
+ ResourceHeartbeat$Outbound,
14
+ ResourceHeartbeat$outboundSchema,
15
+ } from "./resourceheartbeat.js";
11
16
 
12
17
  export type StatusReport = {
18
+ /**
19
+ * Resource observations captured by the Operator alongside this state.
20
+ */
21
+ heartbeats?: Array<ResourceHeartbeat> | undefined;
13
22
  /**
14
23
  * Deployment state as the environment's Operator last recorded it.
15
24
  */
@@ -18,12 +27,18 @@ export type StatusReport = {
18
27
  * Telemetry the Operator buffered, as the OTLP batches it received.
19
28
  */
20
29
  telemetry?: Array<ReportedTelemetry> | undefined;
30
+ /**
31
+ * Site clock time when the report was written. Older clients omit it.
32
+ */
33
+ writtenAt?: Date | null | undefined;
21
34
  };
22
35
 
23
36
  /** @internal */
24
37
  export type StatusReport$Outbound = {
38
+ heartbeats?: Array<ResourceHeartbeat$Outbound> | undefined;
25
39
  state: { [k: string]: any };
26
40
  telemetry?: Array<ReportedTelemetry$Outbound> | undefined;
41
+ writtenAt?: string | null | undefined;
27
42
  };
28
43
 
29
44
  /** @internal */
@@ -31,8 +46,10 @@ export const StatusReport$outboundSchema: z.ZodType<
31
46
  StatusReport$Outbound,
32
47
  StatusReport
33
48
  > = z.object({
49
+ heartbeats: z.array(ResourceHeartbeat$outboundSchema).optional(),
34
50
  state: z.record(z.string(), z.any()),
35
51
  telemetry: z.array(ReportedTelemetry$outboundSchema).optional(),
52
+ writtenAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
36
53
  });
37
54
 
38
55
  export function statusReportToJSON(statusReport: StatusReport): string {