@alienplatform/manager-api 3.3.24 → 3.3.26

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 (106) hide show
  1. package/README.md +11 -2
  2. package/esm/funcs/vaultDeleteSecret.d.ts +12 -0
  3. package/esm/funcs/vaultDeleteSecret.d.ts.map +1 -0
  4. package/esm/funcs/vaultDeleteSecret.js +86 -0
  5. package/esm/funcs/vaultDeleteSecret.js.map +1 -0
  6. package/esm/funcs/vaultGetSecret.d.ts +12 -0
  7. package/esm/funcs/vaultGetSecret.d.ts.map +1 -0
  8. package/esm/funcs/vaultGetSecret.js +86 -0
  9. package/esm/funcs/vaultGetSecret.js.map +1 -0
  10. package/esm/funcs/vaultSetSecret.d.ts +12 -0
  11. package/esm/funcs/vaultSetSecret.d.ts.map +1 -0
  12. package/esm/funcs/vaultSetSecret.js +87 -0
  13. package/esm/funcs/vaultSetSecret.js.map +1 -0
  14. package/esm/lib/config.d.ts +2 -2
  15. package/esm/lib/config.js +2 -2
  16. package/esm/models/agentsyncrequest.d.ts +8 -2
  17. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  18. package/esm/models/agentsyncrequest.js +3 -1
  19. package/esm/models/agentsyncrequest.js.map +1 -1
  20. package/esm/models/containerimageidentity.d.ts +31 -0
  21. package/esm/models/containerimageidentity.d.ts.map +1 -0
  22. package/esm/models/containerimageidentity.js +14 -0
  23. package/esm/models/containerimageidentity.js.map +1 -0
  24. package/esm/models/getsecretresponse.d.ts +13 -0
  25. package/esm/models/getsecretresponse.d.ts.map +1 -0
  26. package/esm/models/getsecretresponse.js +13 -0
  27. package/esm/models/getsecretresponse.js.map +1 -0
  28. package/esm/models/index.d.ts +7 -0
  29. package/esm/models/index.d.ts.map +1 -1
  30. package/esm/models/index.js +7 -0
  31. package/esm/models/index.js.map +1 -1
  32. package/esm/models/kubernetespodruntimeunitstatus.d.ts +3 -0
  33. package/esm/models/kubernetespodruntimeunitstatus.d.ts.map +1 -1
  34. package/esm/models/kubernetespodruntimeunitstatus.js +2 -0
  35. package/esm/models/kubernetespodruntimeunitstatus.js.map +1 -1
  36. package/esm/models/observedapplicationimage.d.ts +39 -0
  37. package/esm/models/observedapplicationimage.d.ts.map +1 -0
  38. package/esm/models/observedapplicationimage.js +15 -0
  39. package/esm/models/observedapplicationimage.js.map +1 -0
  40. package/esm/models/observedapplicationreport.d.ts +56 -0
  41. package/esm/models/observedapplicationreport.d.ts.map +1 -0
  42. package/esm/models/observedapplicationreport.js +19 -0
  43. package/esm/models/observedapplicationreport.js.map +1 -0
  44. package/esm/models/observedapplicationsource.d.ts +15 -0
  45. package/esm/models/observedapplicationsource.d.ts.map +1 -0
  46. package/esm/models/observedapplicationsource.js +13 -0
  47. package/esm/models/observedapplicationsource.js.map +1 -0
  48. package/esm/models/observedresourcesample.d.ts +9 -0
  49. package/esm/models/observedresourcesample.d.ts.map +1 -1
  50. package/esm/models/observedresourcesample.js +2 -0
  51. package/esm/models/observedresourcesample.js.map +1 -1
  52. package/esm/models/operations/deletesecret.d.ts +25 -0
  53. package/esm/models/operations/deletesecret.d.ts.map +1 -0
  54. package/esm/models/operations/deletesecret.js +19 -0
  55. package/esm/models/operations/deletesecret.js.map +1 -0
  56. package/esm/models/operations/getsecret.d.ts +25 -0
  57. package/esm/models/operations/getsecret.d.ts.map +1 -0
  58. package/esm/models/operations/getsecret.js +19 -0
  59. package/esm/models/operations/getsecret.js.map +1 -0
  60. package/esm/models/operations/index.d.ts +3 -0
  61. package/esm/models/operations/index.d.ts.map +1 -1
  62. package/esm/models/operations/index.js +3 -0
  63. package/esm/models/operations/index.js.map +1 -1
  64. package/esm/models/operations/setsecret.d.ts +28 -0
  65. package/esm/models/operations/setsecret.d.ts.map +1 -0
  66. package/esm/models/operations/setsecret.js +22 -0
  67. package/esm/models/operations/setsecret.js.map +1 -0
  68. package/esm/models/setsecretrequest.d.ts +15 -0
  69. package/esm/models/setsecretrequest.d.ts.map +1 -0
  70. package/esm/models/setsecretrequest.js +12 -0
  71. package/esm/models/setsecretrequest.js.map +1 -0
  72. package/esm/models/vaultmutationresponse.d.ts +13 -0
  73. package/esm/models/vaultmutationresponse.d.ts.map +1 -0
  74. package/esm/models/vaultmutationresponse.js +13 -0
  75. package/esm/models/vaultmutationresponse.js.map +1 -0
  76. package/esm/sdk/sdk.d.ts +3 -0
  77. package/esm/sdk/sdk.d.ts.map +1 -1
  78. package/esm/sdk/sdk.js +4 -0
  79. package/esm/sdk/sdk.js.map +1 -1
  80. package/esm/sdk/vault.d.ts +9 -0
  81. package/esm/sdk/vault.d.ts.map +1 -0
  82. package/esm/sdk/vault.js +20 -0
  83. package/esm/sdk/vault.js.map +1 -0
  84. package/jsr.json +1 -1
  85. package/package.json +2 -2
  86. package/src/funcs/vaultDeleteSecret.ts +171 -0
  87. package/src/funcs/vaultGetSecret.ts +171 -0
  88. package/src/funcs/vaultSetSecret.ts +172 -0
  89. package/src/lib/config.ts +2 -2
  90. package/src/models/agentsyncrequest.ts +14 -3
  91. package/src/models/containerimageidentity.ts +51 -0
  92. package/src/models/getsecretresponse.ts +33 -0
  93. package/src/models/index.ts +7 -0
  94. package/src/models/kubernetespodruntimeunitstatus.ts +8 -0
  95. package/src/models/observedapplicationimage.ts +60 -0
  96. package/src/models/observedapplicationreport.ts +86 -0
  97. package/src/models/observedapplicationsource.ts +24 -0
  98. package/src/models/observedresourcesample.ts +14 -0
  99. package/src/models/operations/deletesecret.ts +50 -0
  100. package/src/models/operations/getsecret.ts +50 -0
  101. package/src/models/operations/index.ts +3 -0
  102. package/src/models/operations/setsecret.ts +55 -0
  103. package/src/models/setsecretrequest.ts +33 -0
  104. package/src/models/vaultmutationresponse.ts +33 -0
  105. package/src/sdk/sdk.ts +6 -0
  106. package/src/sdk/vault.ts +46 -0
@@ -0,0 +1,172 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { AlienManagerCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import { AlienManagerError } from "../models/errors/alienmanagererror.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as models from "../models/index.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ export function vaultSetSecret(
29
+ client: AlienManagerCore,
30
+ request: operations.SetSecretRequest,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ models.VaultMutationResponse,
35
+ | AlienManagerError
36
+ | ResponseValidationError
37
+ | ConnectionError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | InvalidRequestError
41
+ | UnexpectedClientError
42
+ | SDKValidationError
43
+ >
44
+ > {
45
+ return new APIPromise($do(
46
+ client,
47
+ request,
48
+ options,
49
+ ));
50
+ }
51
+
52
+ async function $do(
53
+ client: AlienManagerCore,
54
+ request: operations.SetSecretRequest,
55
+ options?: RequestOptions,
56
+ ): Promise<
57
+ [
58
+ Result<
59
+ models.VaultMutationResponse,
60
+ | AlienManagerError
61
+ | ResponseValidationError
62
+ | ConnectionError
63
+ | RequestAbortedError
64
+ | RequestTimeoutError
65
+ | InvalidRequestError
66
+ | UnexpectedClientError
67
+ | SDKValidationError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.SetSecretRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = encodeJSON("body", payload.SetSecretRequest, { explode: true });
82
+
83
+ const pathParams = {
84
+ id: encodeSimple("id", payload.id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ key: encodeSimple("key", payload.key, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ vault_name: encodeSimple("vault_name", payload.vault_name, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+
98
+ const path = pathToFunc(
99
+ "/v1/deployments/{id}/vault/{vault_name}/secrets/{key}",
100
+ )(pathParams);
101
+
102
+ const headers = new Headers(compactMap({
103
+ "Content-Type": "application/json",
104
+ Accept: "application/json",
105
+ }));
106
+
107
+ const secConfig = await extractSecurity(client._options.bearer);
108
+ const securityInput = secConfig == null ? {} : { bearer: secConfig };
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client._options,
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "set_secret",
115
+ oAuth2Scopes: null,
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.bearer,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "PUT",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ body: body,
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ errorCodes: ["401", "403", "404", "4XX", "5XX"],
144
+ retryConfig: context.retryConfig,
145
+ retryCodes: context.retryCodes,
146
+ });
147
+ if (!doResult.ok) {
148
+ return [doResult, { status: "request-error", request: req }];
149
+ }
150
+ const response = doResult.value;
151
+
152
+ const [result] = await M.match<
153
+ models.VaultMutationResponse,
154
+ | AlienManagerError
155
+ | ResponseValidationError
156
+ | ConnectionError
157
+ | RequestAbortedError
158
+ | RequestTimeoutError
159
+ | InvalidRequestError
160
+ | UnexpectedClientError
161
+ | SDKValidationError
162
+ >(
163
+ M.json(200, models.VaultMutationResponse$inboundSchema),
164
+ M.fail([401, 403, 404, "4XX"]),
165
+ M.fail("5XX"),
166
+ )(response, req);
167
+ if (!result.ok) {
168
+ return [result, { status: "complete", request: req, response }];
169
+ }
170
+
171
+ return [result, { status: "complete", request: req, response }];
172
+ }
package/src/lib/config.ts CHANGED
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "1.0.0",
61
- sdkVersion: "3.3.24",
61
+ sdkVersion: "3.3.26",
62
62
  genVersion: "2.788.15",
63
63
  userAgent:
64
- "speakeasy-sdk/typescript 3.3.24 2.788.15 1.0.0 @alienplatform/manager-api",
64
+ "speakeasy-sdk/typescript 3.3.26 2.788.15 1.0.0 @alienplatform/manager-api",
65
65
  } as const;
@@ -8,6 +8,11 @@ import {
8
8
  ExecutionClaim$Outbound,
9
9
  ExecutionClaim$outboundSchema,
10
10
  } from "./executionclaim.js";
11
+ import {
12
+ ObservedApplicationReport,
13
+ ObservedApplicationReport$Outbound,
14
+ ObservedApplicationReport$outboundSchema,
15
+ } from "./observedapplicationreport.js";
11
16
  import {
12
17
  ObservedInventoryBatch,
13
18
  ObservedInventoryBatch$Outbound,
@@ -34,6 +39,9 @@ import {
34
39
  ResourceHeartbeat$outboundSchema,
35
40
  } from "./resourceheartbeat.js";
36
41
 
42
+ /**
43
+ * Body of `POST /v1/sync`.
44
+ */
37
45
  export type AgentSyncRequest = {
38
46
  capabilities?: Array<OperatorCapabilityReport> | undefined;
39
47
  /**
@@ -48,7 +56,6 @@ export type AgentSyncRequest = {
48
56
  executionClaim?: ExecutionClaim | null | undefined;
49
57
  observedInventoryBatches?: Array<ObservedInventoryBatch> | undefined;
50
58
  operationsReport?: OperationsReport | null | undefined;
51
- operatorImage?: OperatorImageReport | null | undefined;
52
59
  operatorVersion?: string | null | undefined;
53
60
  /**
54
61
  * Managed resource status samples emitted by pull-mode deployment steps.
@@ -56,6 +63,8 @@ export type AgentSyncRequest = {
56
63
  resourceHeartbeats?: Array<ResourceHeartbeat> | undefined;
57
64
  session?: string | undefined;
58
65
  supportsExecutionClaims?: boolean | undefined;
66
+ application?: ObservedApplicationReport | null | undefined;
67
+ operatorImage?: OperatorImageReport | null | undefined;
59
68
  };
60
69
 
61
70
  /** @internal */
@@ -66,11 +75,12 @@ export type AgentSyncRequest$Outbound = {
66
75
  executionClaim?: ExecutionClaim$Outbound | null | undefined;
67
76
  observedInventoryBatches?: Array<ObservedInventoryBatch$Outbound> | undefined;
68
77
  operationsReport?: OperationsReport$Outbound | null | undefined;
69
- operatorImage?: OperatorImageReport$Outbound | null | undefined;
70
78
  operatorVersion?: string | null | undefined;
71
79
  resourceHeartbeats?: Array<ResourceHeartbeat$Outbound> | undefined;
72
80
  session?: string | undefined;
73
81
  supportsExecutionClaims?: boolean | undefined;
82
+ application?: ObservedApplicationReport$Outbound | null | undefined;
83
+ operatorImage?: OperatorImageReport$Outbound | null | undefined;
74
84
  };
75
85
 
76
86
  /** @internal */
@@ -85,11 +95,12 @@ export const AgentSyncRequest$outboundSchema: z.ZodType<
85
95
  observedInventoryBatches: z.array(ObservedInventoryBatch$outboundSchema)
86
96
  .optional(),
87
97
  operationsReport: z.nullable(OperationsReport$outboundSchema).optional(),
88
- operatorImage: z.nullable(OperatorImageReport$outboundSchema).optional(),
89
98
  operatorVersion: z.nullable(z.string()).optional(),
90
99
  resourceHeartbeats: z.array(ResourceHeartbeat$outboundSchema).optional(),
91
100
  session: z.string().optional(),
92
101
  supportsExecutionClaims: z.boolean().optional(),
102
+ application: z.nullable(ObservedApplicationReport$outboundSchema).optional(),
103
+ operatorImage: z.nullable(OperatorImageReport$outboundSchema).optional(),
93
104
  });
94
105
 
95
106
  export function agentSyncRequestToJSON(
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+
7
+ /**
8
+ * Image a running container reports.
9
+ */
10
+ export type ContainerImageIdentity = {
11
+ /**
12
+ * Registry manifest digest in `sha256:<hex>` form, when the runtime
13
+ *
14
+ * @remarks
15
+ * reports one.
16
+ */
17
+ digest?: string | null | undefined;
18
+ /**
19
+ * Image reference reported by the container runtime.
20
+ */
21
+ image: string;
22
+ /**
23
+ * Container name.
24
+ */
25
+ name: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export type ContainerImageIdentity$Outbound = {
30
+ digest?: string | null | undefined;
31
+ image: string;
32
+ name: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export const ContainerImageIdentity$outboundSchema: z.ZodType<
37
+ ContainerImageIdentity$Outbound,
38
+ ContainerImageIdentity
39
+ > = z.object({
40
+ digest: z.nullable(z.string()).optional(),
41
+ image: z.string(),
42
+ name: z.string(),
43
+ });
44
+
45
+ export function containerImageIdentityToJSON(
46
+ containerImageIdentity: ContainerImageIdentity,
47
+ ): string {
48
+ return JSON.stringify(
49
+ ContainerImageIdentity$outboundSchema.parse(containerImageIdentity),
50
+ );
51
+ }
@@ -0,0 +1,33 @@
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
+ * Response body for getting a secret.
12
+ */
13
+ export type GetSecretResponse = {
14
+ value: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const GetSecretResponse$inboundSchema: z.ZodType<
19
+ GetSecretResponse,
20
+ unknown
21
+ > = z.object({
22
+ value: z.string(),
23
+ });
24
+
25
+ export function getSecretResponseFromJSON(
26
+ jsonString: string,
27
+ ): SafeParseResult<GetSecretResponse, SDKValidationError> {
28
+ return safeParse(
29
+ jsonString,
30
+ (x) => GetSecretResponse$inboundSchema.parse(JSON.parse(x)),
31
+ `Failed to parse 'GetSecretResponse' from JSON`,
32
+ );
33
+ }
@@ -63,6 +63,7 @@ export * from "./computedrainprogressstatus.js";
63
63
  export * from "./computepoolselection.js";
64
64
  export * from "./computesettings.js";
65
65
  export * from "./containerheartbeatdata.js";
66
+ export * from "./containerimageidentity.js";
66
67
  export * from "./createcommandrequest.js";
67
68
  export * from "./createcommandresponse.js";
68
69
  export * from "./createdeploymentgrouprequest.js";
@@ -93,6 +94,7 @@ export * from "./gcpcredentials.js";
93
94
  export * from "./gcpcustomcertificateconfig.js";
94
95
  export * from "./gcpimpersonationconfig.js";
95
96
  export * from "./gcpserviceoverrides.js";
97
+ export * from "./getsecretresponse.js";
96
98
  export * from "./gitmetadata.js";
97
99
  export * from "./gitmetadataresponse.js";
98
100
  export * from "./healthresponse.js";
@@ -160,6 +162,9 @@ export * from "./mintcredentialsresponse.js";
160
162
  export * from "./networkheartbeatdata.js";
161
163
  export * from "./networkheartbeatstatus.js";
162
164
  export * from "./networksettings.js";
165
+ export * from "./observedapplicationimage.js";
166
+ export * from "./observedapplicationreport.js";
167
+ export * from "./observedapplicationsource.js";
163
168
  export * from "./observedcounts.js";
164
169
  export * from "./observedhealth.js";
165
170
  export * from "./observedinventorybatch.js";
@@ -228,6 +233,7 @@ export * from "./serviceaccountheartbeatdata.js";
228
233
  export * from "./serviceaccountheartbeatstatus.js";
229
234
  export * from "./serviceactivationheartbeatdata.js";
230
235
  export * from "./serviceactivationheartbeatstatus.js";
236
+ export * from "./setsecretrequest.js";
231
237
  export * from "./stackbyplatform.js";
232
238
  export * from "./stackimportrequest.js";
233
239
  export * from "./stackimportresponse.js";
@@ -246,6 +252,7 @@ export * from "./uploadcompleterequest.js";
246
252
  export * from "./uploadcompleteresponse.js";
247
253
  export * from "./vaultheartbeatdata.js";
248
254
  export * from "./vaultheartbeatstatus.js";
255
+ export * from "./vaultmutationresponse.js";
249
256
  export * from "./whoamiresponse.js";
250
257
  export * from "./workerheartbeatdata.js";
251
258
  export * from "./workloadheartbeatstatus.js";
@@ -3,6 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4";
6
+ import {
7
+ ContainerImageIdentity,
8
+ ContainerImageIdentity$Outbound,
9
+ ContainerImageIdentity$outboundSchema,
10
+ } from "./containerimageidentity.js";
6
11
  import {
7
12
  KubernetesOwnerReference,
8
13
  KubernetesOwnerReference$Outbound,
@@ -15,6 +20,7 @@ import {
15
20
  } from "./metricsample.js";
16
21
 
17
22
  export type KubernetesPodRuntimeUnitStatus = {
23
+ containers?: Array<ContainerImageIdentity> | undefined;
18
24
  cpu?: MetricSample | null | undefined;
19
25
  memory?: MetricSample | null | undefined;
20
26
  name: string;
@@ -31,6 +37,7 @@ export type KubernetesPodRuntimeUnitStatus = {
31
37
 
32
38
  /** @internal */
33
39
  export type KubernetesPodRuntimeUnitStatus$Outbound = {
40
+ containers?: Array<ContainerImageIdentity$Outbound> | undefined;
34
41
  cpu?: MetricSample$Outbound | null | undefined;
35
42
  memory?: MetricSample$Outbound | null | undefined;
36
43
  name: string;
@@ -50,6 +57,7 @@ export const KubernetesPodRuntimeUnitStatus$outboundSchema: z.ZodType<
50
57
  KubernetesPodRuntimeUnitStatus$Outbound,
51
58
  KubernetesPodRuntimeUnitStatus
52
59
  > = z.object({
60
+ containers: z.array(ContainerImageIdentity$outboundSchema).optional(),
53
61
  cpu: z.nullable(MetricSample$outboundSchema).optional(),
54
62
  memory: z.nullable(MetricSample$outboundSchema).optional(),
55
63
  name: z.string(),
@@ -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
+
7
+ /**
8
+ * A container image running in one observed application workload.
9
+ */
10
+ export type ObservedApplicationImage = {
11
+ /**
12
+ * Container name within the workload.
13
+ */
14
+ container: string;
15
+ /**
16
+ * Registry manifest digest in `sha256:<hex>` form, when the runtime
17
+ *
18
+ * @remarks
19
+ * reports one.
20
+ */
21
+ digest?: string | null | undefined;
22
+ /**
23
+ * Image reference reported by the container runtime.
24
+ */
25
+ image: string;
26
+ /**
27
+ * Inventory identity of the workload, matching the `rawIdentity` of its
28
+ *
29
+ * @remarks
30
+ * observed resource sample (for example `apps/v1:Deployment:shop:api`).
31
+ */
32
+ workload: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export type ObservedApplicationImage$Outbound = {
37
+ container: string;
38
+ digest?: string | null | undefined;
39
+ image: string;
40
+ workload: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ObservedApplicationImage$outboundSchema: z.ZodType<
45
+ ObservedApplicationImage$Outbound,
46
+ ObservedApplicationImage
47
+ > = z.object({
48
+ container: z.string(),
49
+ digest: z.nullable(z.string()).optional(),
50
+ image: z.string(),
51
+ workload: z.string(),
52
+ });
53
+
54
+ export function observedApplicationImageToJSON(
55
+ observedApplicationImage: ObservedApplicationImage,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ObservedApplicationImage$outboundSchema.parse(observedApplicationImage),
59
+ );
60
+ }
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ ObservedApplicationImage,
8
+ ObservedApplicationImage$Outbound,
9
+ ObservedApplicationImage$outboundSchema,
10
+ } from "./observedapplicationimage.js";
11
+ import {
12
+ ObservedApplicationSource,
13
+ ObservedApplicationSource$outboundSchema,
14
+ } from "./observedapplicationsource.js";
15
+
16
+ /**
17
+ * Application release the Operator observes running in its environment.
18
+ *
19
+ * @remarks
20
+ *
21
+ * This identifies the customer's application, not the Operator: the
22
+ * Operator's own image is reported separately as [`OperatorImageReport`].
23
+ */
24
+ export type ObservedApplicationReport = {
25
+ /**
26
+ * Helm chart name from the workloads' `helm.sh/chart` label. Present only
27
+ *
28
+ * @remarks
29
+ * when every labelled workload names the same chart.
30
+ */
31
+ chartName?: string | null | undefined;
32
+ /**
33
+ * Helm chart version from the same label.
34
+ */
35
+ chartVersion?: string | null | undefined;
36
+ /**
37
+ * Whether every workload kind could be listed. When `false`, the chart
38
+ *
39
+ * @remarks
40
+ * and images describe only the workloads the Operator could read.
41
+ */
42
+ complete: boolean;
43
+ /**
44
+ * Distinct container images running in the observed workloads.
45
+ */
46
+ images?: Array<ObservedApplicationImage> | undefined;
47
+ /**
48
+ * When the workloads were read.
49
+ */
50
+ observedAt: Date;
51
+ /**
52
+ * Where the Operator read the application identity from.
53
+ */
54
+ source: ObservedApplicationSource;
55
+ };
56
+
57
+ /** @internal */
58
+ export type ObservedApplicationReport$Outbound = {
59
+ chartName?: string | null | undefined;
60
+ chartVersion?: string | null | undefined;
61
+ complete: boolean;
62
+ images?: Array<ObservedApplicationImage$Outbound> | undefined;
63
+ observedAt: string;
64
+ source: string;
65
+ };
66
+
67
+ /** @internal */
68
+ export const ObservedApplicationReport$outboundSchema: z.ZodType<
69
+ ObservedApplicationReport$Outbound,
70
+ ObservedApplicationReport
71
+ > = z.object({
72
+ chartName: z.nullable(z.string()).optional(),
73
+ chartVersion: z.nullable(z.string()).optional(),
74
+ complete: z.boolean(),
75
+ images: z.array(ObservedApplicationImage$outboundSchema).optional(),
76
+ observedAt: z.date().transform(v => v.toISOString()),
77
+ source: ObservedApplicationSource$outboundSchema,
78
+ });
79
+
80
+ export function observedApplicationReportToJSON(
81
+ observedApplicationReport: ObservedApplicationReport,
82
+ ): string {
83
+ return JSON.stringify(
84
+ ObservedApplicationReport$outboundSchema.parse(observedApplicationReport),
85
+ );
86
+ }
@@ -0,0 +1,24 @@
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
+ * Where the Operator read the application identity from.
10
+ */
11
+ export const ObservedApplicationSource = {
12
+ Kubernetes: "kubernetes",
13
+ } as const;
14
+ /**
15
+ * Where the Operator read the application identity from.
16
+ */
17
+ export type ObservedApplicationSource = ClosedEnum<
18
+ typeof ObservedApplicationSource
19
+ >;
20
+
21
+ /** @internal */
22
+ export const ObservedApplicationSource$outboundSchema: z.ZodEnum<
23
+ typeof ObservedApplicationSource
24
+ > = z.enum(ObservedApplicationSource);
@@ -3,6 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4";
6
+ import {
7
+ ContainerImageIdentity,
8
+ ContainerImageIdentity$Outbound,
9
+ ContainerImageIdentity$outboundSchema,
10
+ } from "./containerimageidentity.js";
6
11
  import {
7
12
  HeartbeatCollectionIssue,
8
13
  HeartbeatCollectionIssue$Outbound,
@@ -35,6 +40,13 @@ export type ObservedResourceSample = {
35
40
  deploymentId?: string | null | undefined;
36
41
  displayName: string;
37
42
  health: ObservedHealth;
43
+ /**
44
+ * Distinct container images the resource's running instances report, when
45
+ *
46
+ * @remarks
47
+ * the provider exposes them.
48
+ */
49
+ images?: Array<ContainerImageIdentity> | undefined;
38
50
  labels?: { [k: string]: string } | undefined;
39
51
  lifecycle: ProviderLifecycleState;
40
52
  message?: string | null | undefined;
@@ -75,6 +87,7 @@ export type ObservedResourceSample$Outbound = {
75
87
  deploymentId?: string | null | undefined;
76
88
  displayName: string;
77
89
  health: string;
90
+ images?: Array<ContainerImageIdentity$Outbound> | undefined;
78
91
  labels?: { [k: string]: string } | undefined;
79
92
  lifecycle: string;
80
93
  message?: string | null | undefined;
@@ -102,6 +115,7 @@ export const ObservedResourceSample$outboundSchema: z.ZodType<
102
115
  deploymentId: z.nullable(z.string()).optional(),
103
116
  displayName: z.string(),
104
117
  health: ObservedHealth$outboundSchema,
118
+ images: z.array(ContainerImageIdentity$outboundSchema).optional(),
105
119
  labels: z.record(z.string(), z.string()).optional(),
106
120
  lifecycle: ProviderLifecycleState$outboundSchema,
107
121
  message: z.nullable(z.string()).optional(),
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type DeleteSecretRequest = {
9
+ /**
10
+ * Deployment ID
11
+ */
12
+ id: string;
13
+ /**
14
+ * Vault name
15
+ */
16
+ vaultName: string;
17
+ /**
18
+ * Secret name
19
+ */
20
+ key: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export type DeleteSecretRequest$Outbound = {
25
+ id: string;
26
+ vault_name: string;
27
+ key: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const DeleteSecretRequest$outboundSchema: z.ZodType<
32
+ DeleteSecretRequest$Outbound,
33
+ DeleteSecretRequest
34
+ > = z.object({
35
+ id: z.string(),
36
+ vaultName: z.string(),
37
+ key: z.string(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ vaultName: "vault_name",
41
+ });
42
+ });
43
+
44
+ export function deleteSecretRequestToJSON(
45
+ deleteSecretRequest: DeleteSecretRequest,
46
+ ): string {
47
+ return JSON.stringify(
48
+ DeleteSecretRequest$outboundSchema.parse(deleteSecretRequest),
49
+ );
50
+ }