@alienplatform/manager-api 1.10.7 → 1.11.0

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 (120) hide show
  1. package/README.md +4 -4
  2. package/esm/lib/config.d.ts +2 -2
  3. package/esm/lib/config.js +2 -2
  4. package/esm/models/agentsyncrequest.d.ts +14 -0
  5. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  6. package/esm/models/agentsyncrequest.js +8 -0
  7. package/esm/models/agentsyncrequest.js.map +1 -1
  8. package/esm/models/computecapacitygroupstatus.d.ts +3 -0
  9. package/esm/models/computecapacitygroupstatus.d.ts.map +1 -1
  10. package/esm/models/computecapacitygroupstatus.js +2 -0
  11. package/esm/models/computecapacitygroupstatus.js.map +1 -1
  12. package/esm/models/computeclusterheartbeatdata.d.ts +29 -2
  13. package/esm/models/computeclusterheartbeatdata.d.ts.map +1 -1
  14. package/esm/models/computeclusterheartbeatdata.js +17 -0
  15. package/esm/models/computeclusterheartbeatdata.js.map +1 -1
  16. package/esm/models/computedrainblocker.d.ts +20 -0
  17. package/esm/models/computedrainblocker.d.ts.map +1 -0
  18. package/esm/models/computedrainblocker.js +16 -0
  19. package/esm/models/computedrainblocker.js.map +1 -0
  20. package/esm/models/computedrainprogress.d.ts +30 -0
  21. package/esm/models/computedrainprogress.d.ts.map +1 -0
  22. package/esm/models/computedrainprogress.js +22 -0
  23. package/esm/models/computedrainprogress.js.map +1 -0
  24. package/esm/models/computedrainprogressstatus.d.ts +11 -0
  25. package/esm/models/computedrainprogressstatus.d.ts.map +1 -0
  26. package/esm/models/computedrainprogressstatus.js +12 -0
  27. package/esm/models/computedrainprogressstatus.js.map +1 -0
  28. package/esm/models/daemonheartbeatdata.d.ts +50 -10
  29. package/esm/models/daemonheartbeatdata.d.ts.map +1 -1
  30. package/esm/models/daemonheartbeatdata.js +27 -4
  31. package/esm/models/daemonheartbeatdata.js.map +1 -1
  32. package/esm/models/index.d.ts +10 -0
  33. package/esm/models/index.d.ts.map +1 -1
  34. package/esm/models/index.js +10 -0
  35. package/esm/models/index.js.map +1 -1
  36. package/esm/models/initializerequest.d.ts +17 -0
  37. package/esm/models/initializerequest.d.ts.map +1 -1
  38. package/esm/models/initializerequest.js +4 -0
  39. package/esm/models/initializerequest.js.map +1 -1
  40. package/esm/models/machinescomputemachinestatus.d.ts +43 -0
  41. package/esm/models/machinescomputemachinestatus.d.ts.map +1 -0
  42. package/esm/models/machinescomputemachinestatus.js +28 -0
  43. package/esm/models/machinescomputemachinestatus.js.map +1 -0
  44. package/esm/models/networkheartbeatdata.d.ts +2 -0
  45. package/esm/models/networkheartbeatdata.d.ts.map +1 -1
  46. package/esm/models/networkheartbeatdata.js +1 -0
  47. package/esm/models/networkheartbeatdata.js.map +1 -1
  48. package/esm/models/networksettings.d.ts +11 -0
  49. package/esm/models/networksettings.d.ts.map +1 -1
  50. package/esm/models/networksettings.js +4 -0
  51. package/esm/models/networksettings.js.map +1 -1
  52. package/esm/models/observedinventorybatch.d.ts +49 -0
  53. package/esm/models/observedinventorybatch.d.ts.map +1 -0
  54. package/esm/models/observedinventorybatch.js +21 -0
  55. package/esm/models/observedinventorybatch.js.map +1 -0
  56. package/esm/models/observedresourcesample.d.ts +79 -0
  57. package/esm/models/observedresourcesample.d.ts.map +1 -0
  58. package/esm/models/observedresourcesample.js +36 -0
  59. package/esm/models/observedresourcesample.js.map +1 -0
  60. package/esm/models/operatorcapabilityreport.d.ts +29 -0
  61. package/esm/models/operatorcapabilityreport.d.ts.map +1 -0
  62. package/esm/models/operatorcapabilityreport.js +15 -0
  63. package/esm/models/operatorcapabilityreport.js.map +1 -0
  64. package/esm/models/operatorcapabilitystate.d.ts +17 -0
  65. package/esm/models/operatorcapabilitystate.d.ts.map +1 -0
  66. package/esm/models/operatorcapabilitystate.js +15 -0
  67. package/esm/models/operatorcapabilitystate.js.map +1 -0
  68. package/esm/models/platformenum.d.ts +1 -0
  69. package/esm/models/platformenum.d.ts.map +1 -1
  70. package/esm/models/platformenum.js +1 -0
  71. package/esm/models/platformenum.js.map +1 -1
  72. package/esm/models/postgresheartbeatdata.d.ts +108 -0
  73. package/esm/models/postgresheartbeatdata.d.ts.map +1 -0
  74. package/esm/models/postgresheartbeatdata.js +63 -0
  75. package/esm/models/postgresheartbeatdata.js.map +1 -0
  76. package/esm/models/postgresheartbeatstatus.d.ts +25 -0
  77. package/esm/models/postgresheartbeatstatus.d.ts.map +1 -0
  78. package/esm/models/postgresheartbeatstatus.js +20 -0
  79. package/esm/models/postgresheartbeatstatus.js.map +1 -0
  80. package/esm/models/reconcilerequest.d.ts +10 -2
  81. package/esm/models/reconcilerequest.d.ts.map +1 -1
  82. package/esm/models/reconcilerequest.js +7 -1
  83. package/esm/models/reconcilerequest.js.map +1 -1
  84. package/esm/models/resourceheartbeat.d.ts +6 -0
  85. package/esm/models/resourceheartbeat.d.ts.map +1 -1
  86. package/esm/models/resourceheartbeat.js.map +1 -1
  87. package/esm/models/resourceheartbeatdata.d.ts +15 -2
  88. package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
  89. package/esm/models/resourceheartbeatdata.js +10 -0
  90. package/esm/models/resourceheartbeatdata.js.map +1 -1
  91. package/esm/models/stackbyplatform.d.ts +2 -0
  92. package/esm/models/stackbyplatform.d.ts.map +1 -1
  93. package/esm/models/stackbyplatform.js +2 -0
  94. package/esm/models/stackbyplatform.js.map +1 -1
  95. package/jsr.json +1 -1
  96. package/package.json +1 -1
  97. package/src/lib/config.ts +2 -2
  98. package/src/models/agentsyncrequest.ts +31 -0
  99. package/src/models/computecapacitygroupstatus.ts +8 -0
  100. package/src/models/computeclusterheartbeatdata.ts +59 -0
  101. package/src/models/computedrainblocker.ts +42 -0
  102. package/src/models/computedrainprogress.ts +63 -0
  103. package/src/models/computedrainprogressstatus.ts +20 -0
  104. package/src/models/daemonheartbeatdata.ts +87 -12
  105. package/src/models/index.ts +10 -0
  106. package/src/models/initializerequest.ts +21 -0
  107. package/src/models/machinescomputemachinestatus.ts +82 -0
  108. package/src/models/networkheartbeatdata.ts +3 -0
  109. package/src/models/networksettings.ts +15 -0
  110. package/src/models/observedinventorybatch.ts +80 -0
  111. package/src/models/observedresourcesample.ts +126 -0
  112. package/src/models/operatorcapabilityreport.ts +52 -0
  113. package/src/models/operatorcapabilitystate.ts +26 -0
  114. package/src/models/platformenum.ts +1 -0
  115. package/src/models/postgresheartbeatdata.ts +226 -0
  116. package/src/models/postgresheartbeatstatus.ts +58 -0
  117. package/src/models/reconcilerequest.ts +23 -3
  118. package/src/models/resourceheartbeat.ts +6 -0
  119. package/src/models/resourceheartbeatdata.ts +38 -0
  120. package/src/models/stackbyplatform.ts +4 -0
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ OperatorCapabilityState,
8
+ OperatorCapabilityState$outboundSchema,
9
+ } from "./operatorcapabilitystate.js";
10
+
11
+ /**
12
+ * Report-only Operator capability status.
13
+ */
14
+ export type OperatorCapabilityReport = {
15
+ /**
16
+ * Optional human-readable detail from the Operator.
17
+ */
18
+ detail?: string | null | undefined;
19
+ /**
20
+ * Stable capability key, such as `k8s-workloads` or `logs`.
21
+ */
22
+ key: string;
23
+ /**
24
+ * State of an Operator capability as observed inside the environment.
25
+ */
26
+ state: OperatorCapabilityState;
27
+ };
28
+
29
+ /** @internal */
30
+ export type OperatorCapabilityReport$Outbound = {
31
+ detail?: string | null | undefined;
32
+ key: string;
33
+ state: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const OperatorCapabilityReport$outboundSchema: z.ZodType<
38
+ OperatorCapabilityReport$Outbound,
39
+ OperatorCapabilityReport
40
+ > = z.object({
41
+ detail: z.nullable(z.string()).optional(),
42
+ key: z.string(),
43
+ state: OperatorCapabilityState$outboundSchema,
44
+ });
45
+
46
+ export function operatorCapabilityReportToJSON(
47
+ operatorCapabilityReport: OperatorCapabilityReport,
48
+ ): string {
49
+ return JSON.stringify(
50
+ OperatorCapabilityReport$outboundSchema.parse(operatorCapabilityReport),
51
+ );
52
+ }
@@ -0,0 +1,26 @@
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
+ * State of an Operator capability as observed inside the environment.
10
+ */
11
+ export const OperatorCapabilityState = {
12
+ Granted: "granted",
13
+ Denied: "denied",
14
+ Unavailable: "unavailable",
15
+ } as const;
16
+ /**
17
+ * State of an Operator capability as observed inside the environment.
18
+ */
19
+ export type OperatorCapabilityState = ClosedEnum<
20
+ typeof OperatorCapabilityState
21
+ >;
22
+
23
+ /** @internal */
24
+ export const OperatorCapabilityState$outboundSchema: z.ZodEnum<
25
+ typeof OperatorCapabilityState
26
+ > = z.enum(OperatorCapabilityState);
@@ -13,6 +13,7 @@ export const PlatformEnum = {
13
13
  Gcp: "gcp",
14
14
  Azure: "azure",
15
15
  Kubernetes: "kubernetes",
16
+ Machines: "machines",
16
17
  Local: "local",
17
18
  Test: "test",
18
19
  } as const;
@@ -0,0 +1,226 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ PostgresHeartbeatStatus,
8
+ PostgresHeartbeatStatus$Outbound,
9
+ PostgresHeartbeatStatus$outboundSchema,
10
+ } from "./postgresheartbeatstatus.js";
11
+
12
+ /**
13
+ * Local embedded Postgres backend.
14
+ */
15
+ export type PostgresHeartbeatDataLocal = {
16
+ name: string;
17
+ port?: number | null | undefined;
18
+ processRunning: boolean;
19
+ status: PostgresHeartbeatStatus;
20
+ version: string;
21
+ backend: "local";
22
+ };
23
+
24
+ /**
25
+ * Azure Flexible Server backend.
26
+ */
27
+ export type PostgresHeartbeatDataFlexibleServer = {
28
+ serverName: string;
29
+ state?: string | null | undefined;
30
+ status: PostgresHeartbeatStatus;
31
+ version?: string | null | undefined;
32
+ backend: "flexibleServer";
33
+ };
34
+
35
+ /**
36
+ * GCP Cloud SQL backend.
37
+ */
38
+ export type PostgresHeartbeatDataCloudSQL = {
39
+ databaseVersion?: string | null | undefined;
40
+ instanceName: string;
41
+ state?: string | null | undefined;
42
+ status: PostgresHeartbeatStatus;
43
+ backend: "cloudSql";
44
+ };
45
+
46
+ /**
47
+ * AWS Aurora Serverless v2 backend.
48
+ */
49
+ export type PostgresHeartbeatDataAurora = {
50
+ clusterIdentifier: string;
51
+ endpoint?: string | null | undefined;
52
+ engineVersion?: string | null | undefined;
53
+ /**
54
+ * True when a `minCapacity: 0` instance has not reached 0 ACU over the observation
55
+ *
56
+ * @remarks
57
+ * window — it is silently paying always-on prices (auto-pause verification).
58
+ */
59
+ neverPauses: boolean;
60
+ /**
61
+ * Latest sampled `ServerlessDatabaseCapacity` (ACU).
62
+ */
63
+ serverlessCapacity?: number | null | undefined;
64
+ status: PostgresHeartbeatStatus;
65
+ backend: "aurora";
66
+ };
67
+
68
+ export type PostgresHeartbeatData =
69
+ | PostgresHeartbeatDataAurora
70
+ | PostgresHeartbeatDataCloudSQL
71
+ | PostgresHeartbeatDataFlexibleServer
72
+ | PostgresHeartbeatDataLocal;
73
+
74
+ /** @internal */
75
+ export type PostgresHeartbeatDataLocal$Outbound = {
76
+ name: string;
77
+ port?: number | null | undefined;
78
+ processRunning: boolean;
79
+ status: PostgresHeartbeatStatus$Outbound;
80
+ version: string;
81
+ backend: "local";
82
+ };
83
+
84
+ /** @internal */
85
+ export const PostgresHeartbeatDataLocal$outboundSchema: z.ZodType<
86
+ PostgresHeartbeatDataLocal$Outbound,
87
+ PostgresHeartbeatDataLocal
88
+ > = z.object({
89
+ name: z.string(),
90
+ port: z.nullable(z.int()).optional(),
91
+ processRunning: z.boolean(),
92
+ status: PostgresHeartbeatStatus$outboundSchema,
93
+ version: z.string(),
94
+ backend: z.literal("local"),
95
+ });
96
+
97
+ export function postgresHeartbeatDataLocalToJSON(
98
+ postgresHeartbeatDataLocal: PostgresHeartbeatDataLocal,
99
+ ): string {
100
+ return JSON.stringify(
101
+ PostgresHeartbeatDataLocal$outboundSchema.parse(postgresHeartbeatDataLocal),
102
+ );
103
+ }
104
+
105
+ /** @internal */
106
+ export type PostgresHeartbeatDataFlexibleServer$Outbound = {
107
+ serverName: string;
108
+ state?: string | null | undefined;
109
+ status: PostgresHeartbeatStatus$Outbound;
110
+ version?: string | null | undefined;
111
+ backend: "flexibleServer";
112
+ };
113
+
114
+ /** @internal */
115
+ export const PostgresHeartbeatDataFlexibleServer$outboundSchema: z.ZodType<
116
+ PostgresHeartbeatDataFlexibleServer$Outbound,
117
+ PostgresHeartbeatDataFlexibleServer
118
+ > = z.object({
119
+ serverName: z.string(),
120
+ state: z.nullable(z.string()).optional(),
121
+ status: PostgresHeartbeatStatus$outboundSchema,
122
+ version: z.nullable(z.string()).optional(),
123
+ backend: z.literal("flexibleServer"),
124
+ });
125
+
126
+ export function postgresHeartbeatDataFlexibleServerToJSON(
127
+ postgresHeartbeatDataFlexibleServer: PostgresHeartbeatDataFlexibleServer,
128
+ ): string {
129
+ return JSON.stringify(
130
+ PostgresHeartbeatDataFlexibleServer$outboundSchema.parse(
131
+ postgresHeartbeatDataFlexibleServer,
132
+ ),
133
+ );
134
+ }
135
+
136
+ /** @internal */
137
+ export type PostgresHeartbeatDataCloudSQL$Outbound = {
138
+ databaseVersion?: string | null | undefined;
139
+ instanceName: string;
140
+ state?: string | null | undefined;
141
+ status: PostgresHeartbeatStatus$Outbound;
142
+ backend: "cloudSql";
143
+ };
144
+
145
+ /** @internal */
146
+ export const PostgresHeartbeatDataCloudSQL$outboundSchema: z.ZodType<
147
+ PostgresHeartbeatDataCloudSQL$Outbound,
148
+ PostgresHeartbeatDataCloudSQL
149
+ > = z.object({
150
+ databaseVersion: z.nullable(z.string()).optional(),
151
+ instanceName: z.string(),
152
+ state: z.nullable(z.string()).optional(),
153
+ status: PostgresHeartbeatStatus$outboundSchema,
154
+ backend: z.literal("cloudSql"),
155
+ });
156
+
157
+ export function postgresHeartbeatDataCloudSQLToJSON(
158
+ postgresHeartbeatDataCloudSQL: PostgresHeartbeatDataCloudSQL,
159
+ ): string {
160
+ return JSON.stringify(
161
+ PostgresHeartbeatDataCloudSQL$outboundSchema.parse(
162
+ postgresHeartbeatDataCloudSQL,
163
+ ),
164
+ );
165
+ }
166
+
167
+ /** @internal */
168
+ export type PostgresHeartbeatDataAurora$Outbound = {
169
+ clusterIdentifier: string;
170
+ endpoint?: string | null | undefined;
171
+ engineVersion?: string | null | undefined;
172
+ neverPauses: boolean;
173
+ serverlessCapacity?: number | null | undefined;
174
+ status: PostgresHeartbeatStatus$Outbound;
175
+ backend: "aurora";
176
+ };
177
+
178
+ /** @internal */
179
+ export const PostgresHeartbeatDataAurora$outboundSchema: z.ZodType<
180
+ PostgresHeartbeatDataAurora$Outbound,
181
+ PostgresHeartbeatDataAurora
182
+ > = z.object({
183
+ clusterIdentifier: z.string(),
184
+ endpoint: z.nullable(z.string()).optional(),
185
+ engineVersion: z.nullable(z.string()).optional(),
186
+ neverPauses: z.boolean(),
187
+ serverlessCapacity: z.nullable(z.number()).optional(),
188
+ status: PostgresHeartbeatStatus$outboundSchema,
189
+ backend: z.literal("aurora"),
190
+ });
191
+
192
+ export function postgresHeartbeatDataAuroraToJSON(
193
+ postgresHeartbeatDataAurora: PostgresHeartbeatDataAurora,
194
+ ): string {
195
+ return JSON.stringify(
196
+ PostgresHeartbeatDataAurora$outboundSchema.parse(
197
+ postgresHeartbeatDataAurora,
198
+ ),
199
+ );
200
+ }
201
+
202
+ /** @internal */
203
+ export type PostgresHeartbeatData$Outbound =
204
+ | PostgresHeartbeatDataAurora$Outbound
205
+ | PostgresHeartbeatDataCloudSQL$Outbound
206
+ | PostgresHeartbeatDataFlexibleServer$Outbound
207
+ | PostgresHeartbeatDataLocal$Outbound;
208
+
209
+ /** @internal */
210
+ export const PostgresHeartbeatData$outboundSchema: z.ZodType<
211
+ PostgresHeartbeatData$Outbound,
212
+ PostgresHeartbeatData
213
+ > = z.union([
214
+ z.lazy(() => PostgresHeartbeatDataAurora$outboundSchema),
215
+ z.lazy(() => PostgresHeartbeatDataCloudSQL$outboundSchema),
216
+ z.lazy(() => PostgresHeartbeatDataFlexibleServer$outboundSchema),
217
+ z.lazy(() => PostgresHeartbeatDataLocal$outboundSchema),
218
+ ]);
219
+
220
+ export function postgresHeartbeatDataToJSON(
221
+ postgresHeartbeatData: PostgresHeartbeatData,
222
+ ): string {
223
+ return JSON.stringify(
224
+ PostgresHeartbeatData$outboundSchema.parse(postgresHeartbeatData),
225
+ );
226
+ }
@@ -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 {
7
+ HeartbeatCollectionIssue,
8
+ HeartbeatCollectionIssue$Outbound,
9
+ HeartbeatCollectionIssue$outboundSchema,
10
+ } from "./heartbeatcollectionissue.js";
11
+ import {
12
+ ObservedHealth,
13
+ ObservedHealth$outboundSchema,
14
+ } from "./observedhealth.js";
15
+ import {
16
+ ProviderLifecycleState,
17
+ ProviderLifecycleState$outboundSchema,
18
+ } from "./providerlifecyclestate.js";
19
+
20
+ export type PostgresHeartbeatStatus = {
21
+ collectionIssues: Array<HeartbeatCollectionIssue>;
22
+ health: ObservedHealth;
23
+ lifecycle: ProviderLifecycleState;
24
+ message?: string | null | undefined;
25
+ partial: boolean;
26
+ stale: boolean;
27
+ };
28
+
29
+ /** @internal */
30
+ export type PostgresHeartbeatStatus$Outbound = {
31
+ collectionIssues: Array<HeartbeatCollectionIssue$Outbound>;
32
+ health: string;
33
+ lifecycle: string;
34
+ message?: string | null | undefined;
35
+ partial: boolean;
36
+ stale: boolean;
37
+ };
38
+
39
+ /** @internal */
40
+ export const PostgresHeartbeatStatus$outboundSchema: z.ZodType<
41
+ PostgresHeartbeatStatus$Outbound,
42
+ PostgresHeartbeatStatus
43
+ > = z.object({
44
+ collectionIssues: z.array(HeartbeatCollectionIssue$outboundSchema),
45
+ health: ObservedHealth$outboundSchema,
46
+ lifecycle: ProviderLifecycleState$outboundSchema,
47
+ message: z.nullable(z.string()).optional(),
48
+ partial: z.boolean(),
49
+ stale: z.boolean(),
50
+ });
51
+
52
+ export function postgresHeartbeatStatusToJSON(
53
+ postgresHeartbeatStatus: PostgresHeartbeatStatus,
54
+ ): string {
55
+ return JSON.stringify(
56
+ PostgresHeartbeatStatus$outboundSchema.parse(postgresHeartbeatStatus),
57
+ );
58
+ }
@@ -3,6 +3,16 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4";
6
+ import {
7
+ ObservedInventoryBatch,
8
+ ObservedInventoryBatch$Outbound,
9
+ ObservedInventoryBatch$outboundSchema,
10
+ } from "./observedinventorybatch.js";
11
+ import {
12
+ OperatorCapabilityReport,
13
+ OperatorCapabilityReport$Outbound,
14
+ OperatorCapabilityReport$outboundSchema,
15
+ } from "./operatorcapabilityreport.js";
6
16
  import {
7
17
  ResourceHeartbeat,
8
18
  ResourceHeartbeat$Outbound,
@@ -10,8 +20,11 @@ import {
10
20
  } from "./resourceheartbeat.js";
11
21
 
12
22
  export type ReconcileRequest = {
23
+ capabilities?: Array<OperatorCapabilityReport> | undefined;
13
24
  deploymentId: string;
14
- heartbeats?: Array<ResourceHeartbeat> | undefined;
25
+ observedInventoryBatches?: Array<ObservedInventoryBatch> | undefined;
26
+ operatorVersion?: string | null | undefined;
27
+ resourceHeartbeats?: Array<ResourceHeartbeat> | undefined;
15
28
  session: string;
16
29
  state: any;
17
30
  suggestedDelayMs?: number | null | undefined;
@@ -20,8 +33,11 @@ export type ReconcileRequest = {
20
33
 
21
34
  /** @internal */
22
35
  export type ReconcileRequest$Outbound = {
36
+ capabilities?: Array<OperatorCapabilityReport$Outbound> | undefined;
23
37
  deploymentId: string;
24
- heartbeats?: Array<ResourceHeartbeat$Outbound> | undefined;
38
+ observedInventoryBatches?: Array<ObservedInventoryBatch$Outbound> | undefined;
39
+ operatorVersion?: string | null | undefined;
40
+ resourceHeartbeats?: Array<ResourceHeartbeat$Outbound> | undefined;
25
41
  session: string;
26
42
  state: any;
27
43
  suggestedDelayMs?: number | null | undefined;
@@ -33,8 +49,12 @@ export const ReconcileRequest$outboundSchema: z.ZodType<
33
49
  ReconcileRequest$Outbound,
34
50
  ReconcileRequest
35
51
  > = z.object({
52
+ capabilities: z.array(OperatorCapabilityReport$outboundSchema).optional(),
36
53
  deploymentId: z.string(),
37
- heartbeats: z.array(ResourceHeartbeat$outboundSchema).optional(),
54
+ observedInventoryBatches: z.array(ObservedInventoryBatch$outboundSchema)
55
+ .optional(),
56
+ operatorVersion: z.nullable(z.string()).optional(),
57
+ resourceHeartbeats: z.array(ResourceHeartbeat$outboundSchema).optional(),
38
58
  session: z.string(),
39
59
  state: z.any(),
40
60
  suggestedDelayMs: z.nullable(z.int()).optional(),
@@ -29,6 +29,12 @@ export type ResourceHeartbeat = {
29
29
  deploymentId?: string | null | undefined;
30
30
  observedAt: Date;
31
31
  raw: Array<RawHeartbeatSnippet>;
32
+ /**
33
+ * Alien resource id, such as the `alien.Container` or `alien.Storage`
34
+ *
35
+ * @remarks
36
+ * resource id from the stack.
37
+ */
32
38
  resourceId: string;
33
39
  /**
34
40
  * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior.
@@ -63,6 +63,11 @@ import {
63
63
  NetworkHeartbeatData$Outbound,
64
64
  NetworkHeartbeatData$outboundSchema,
65
65
  } from "./networkheartbeatdata.js";
66
+ import {
67
+ PostgresHeartbeatData,
68
+ PostgresHeartbeatData$Outbound,
69
+ PostgresHeartbeatData$outboundSchema,
70
+ } from "./postgresheartbeatdata.js";
66
71
  import {
67
72
  QueueHeartbeatData,
68
73
  QueueHeartbeatData$Outbound,
@@ -154,6 +159,11 @@ export type ResourceHeartbeatDataVault = {
154
159
  resourceType: "vault";
155
160
  };
156
161
 
162
+ export type ResourceHeartbeatDataPostgres = {
163
+ data: PostgresHeartbeatData;
164
+ resourceType: "postgres";
165
+ };
166
+
157
167
  export type ResourceHeartbeatDataKv = {
158
168
  data: KvHeartbeatData;
159
169
  resourceType: "kv";
@@ -203,6 +213,7 @@ export type ResourceHeartbeatData =
203
213
  | ResourceHeartbeatDataKubernetesCluster
204
214
  | ResourceHeartbeatDataQueue
205
215
  | ResourceHeartbeatDataKv
216
+ | ResourceHeartbeatDataPostgres
206
217
  | ResourceHeartbeatDataVault
207
218
  | ResourceHeartbeatDataServiceAccount
208
219
  | ResourceHeartbeatDataNetwork
@@ -495,6 +506,31 @@ export function resourceHeartbeatDataVaultToJSON(
495
506
  );
496
507
  }
497
508
 
509
+ /** @internal */
510
+ export type ResourceHeartbeatDataPostgres$Outbound = {
511
+ data: PostgresHeartbeatData$Outbound;
512
+ resourceType: "postgres";
513
+ };
514
+
515
+ /** @internal */
516
+ export const ResourceHeartbeatDataPostgres$outboundSchema: z.ZodType<
517
+ ResourceHeartbeatDataPostgres$Outbound,
518
+ ResourceHeartbeatDataPostgres
519
+ > = z.object({
520
+ data: PostgresHeartbeatData$outboundSchema,
521
+ resourceType: z.literal("postgres"),
522
+ });
523
+
524
+ export function resourceHeartbeatDataPostgresToJSON(
525
+ resourceHeartbeatDataPostgres: ResourceHeartbeatDataPostgres,
526
+ ): string {
527
+ return JSON.stringify(
528
+ ResourceHeartbeatDataPostgres$outboundSchema.parse(
529
+ resourceHeartbeatDataPostgres,
530
+ ),
531
+ );
532
+ }
533
+
498
534
  /** @internal */
499
535
  export type ResourceHeartbeatDataKv$Outbound = {
500
536
  data: KvHeartbeatData$Outbound;
@@ -702,6 +738,7 @@ export type ResourceHeartbeatData$Outbound =
702
738
  | ResourceHeartbeatDataKubernetesCluster$Outbound
703
739
  | ResourceHeartbeatDataQueue$Outbound
704
740
  | ResourceHeartbeatDataKv$Outbound
741
+ | ResourceHeartbeatDataPostgres$Outbound
705
742
  | ResourceHeartbeatDataVault$Outbound
706
743
  | ResourceHeartbeatDataServiceAccount$Outbound
707
744
  | ResourceHeartbeatDataNetwork$Outbound
@@ -727,6 +764,7 @@ export const ResourceHeartbeatData$outboundSchema: z.ZodType<
727
764
  z.lazy(() => ResourceHeartbeatDataKubernetesCluster$outboundSchema),
728
765
  z.lazy(() => ResourceHeartbeatDataQueue$outboundSchema),
729
766
  z.lazy(() => ResourceHeartbeatDataKv$outboundSchema),
767
+ z.lazy(() => ResourceHeartbeatDataPostgres$outboundSchema),
730
768
  z.lazy(() => ResourceHeartbeatDataVault$outboundSchema),
731
769
  z.lazy(() => ResourceHeartbeatDataServiceAccount$outboundSchema),
732
770
  z.lazy(() => ResourceHeartbeatDataNetwork$outboundSchema),
@@ -19,6 +19,7 @@ export type StackByPlatform = {
19
19
  gcp?: any | undefined;
20
20
  kubernetes?: any | undefined;
21
21
  local?: any | undefined;
22
+ machines?: any | undefined;
22
23
  test?: any | undefined;
23
24
  };
24
25
 
@@ -32,6 +33,7 @@ export const StackByPlatform$inboundSchema: z.ZodType<
32
33
  gcp: z.any().optional(),
33
34
  kubernetes: z.any().optional(),
34
35
  local: z.any().optional(),
36
+ machines: z.any().optional(),
35
37
  test: z.any().optional(),
36
38
  });
37
39
  /** @internal */
@@ -41,6 +43,7 @@ export type StackByPlatform$Outbound = {
41
43
  gcp?: any | undefined;
42
44
  kubernetes?: any | undefined;
43
45
  local?: any | undefined;
46
+ machines?: any | undefined;
44
47
  test?: any | undefined;
45
48
  };
46
49
 
@@ -54,6 +57,7 @@ export const StackByPlatform$outboundSchema: z.ZodType<
54
57
  gcp: z.any().optional(),
55
58
  kubernetes: z.any().optional(),
56
59
  local: z.any().optional(),
60
+ machines: z.any().optional(),
57
61
  test: z.any().optional(),
58
62
  });
59
63