latitudesh-typescript-sdk 0.3.2 → 0.3.4

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 (52) hide show
  1. package/bin/mcp-server.js +95 -15
  2. package/bin/mcp-server.js.map +13 -13
  3. package/dist/commonjs/funcs/kubernetesClustersGetKubernetesCluster.d.ts +1 -1
  4. package/dist/commonjs/funcs/kubernetesClustersGetKubernetesCluster.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/kubernetesClustersGetKubernetesCluster.js +1 -1
  10. package/dist/commonjs/models/kubernetesclustercreateresponse.d.ts +1 -1
  11. package/dist/commonjs/models/kubernetesclusterdata.d.ts +158 -6
  12. package/dist/commonjs/models/kubernetesclusterdata.d.ts.map +1 -1
  13. package/dist/commonjs/models/kubernetesclusterdata.js +118 -6
  14. package/dist/commonjs/models/kubernetesclusterdata.js.map +1 -1
  15. package/dist/commonjs/models/kubernetesclustersummarydata.d.ts +1 -1
  16. package/dist/commonjs/models/operations/deletekubernetescluster.d.ts +1 -1
  17. package/dist/commonjs/models/operations/getkubernetescluster.d.ts +1 -1
  18. package/dist/commonjs/models/operations/getkubernetesclusterkubeconfig.d.ts +1 -1
  19. package/dist/commonjs/sdk/kubernetesclusters.d.ts +1 -1
  20. package/dist/commonjs/sdk/kubernetesclusters.js +1 -1
  21. package/dist/esm/funcs/kubernetesClustersGetKubernetesCluster.d.ts +1 -1
  22. package/dist/esm/funcs/kubernetesClustersGetKubernetesCluster.js +1 -1
  23. package/dist/esm/lib/config.d.ts +3 -3
  24. package/dist/esm/lib/config.js +3 -3
  25. package/dist/esm/mcp-server/mcp-server.js +1 -1
  26. package/dist/esm/mcp-server/server.js +1 -1
  27. package/dist/esm/mcp-server/tools/kubernetesClustersGetKubernetesCluster.js +1 -1
  28. package/dist/esm/models/kubernetesclustercreateresponse.d.ts +1 -1
  29. package/dist/esm/models/kubernetesclusterdata.d.ts +158 -6
  30. package/dist/esm/models/kubernetesclusterdata.d.ts.map +1 -1
  31. package/dist/esm/models/kubernetesclusterdata.js +113 -5
  32. package/dist/esm/models/kubernetesclusterdata.js.map +1 -1
  33. package/dist/esm/models/kubernetesclustersummarydata.d.ts +1 -1
  34. package/dist/esm/models/operations/deletekubernetescluster.d.ts +1 -1
  35. package/dist/esm/models/operations/getkubernetescluster.d.ts +1 -1
  36. package/dist/esm/models/operations/getkubernetesclusterkubeconfig.d.ts +1 -1
  37. package/dist/esm/sdk/kubernetesclusters.d.ts +1 -1
  38. package/dist/esm/sdk/kubernetesclusters.js +1 -1
  39. package/jsr.json +1 -1
  40. package/package.json +4 -4
  41. package/src/funcs/kubernetesClustersGetKubernetesCluster.ts +1 -1
  42. package/src/lib/config.ts +3 -3
  43. package/src/mcp-server/mcp-server.ts +1 -1
  44. package/src/mcp-server/server.ts +1 -1
  45. package/src/mcp-server/tools/kubernetesClustersGetKubernetesCluster.ts +1 -1
  46. package/src/models/kubernetesclustercreateresponse.ts +1 -1
  47. package/src/models/kubernetesclusterdata.ts +283 -13
  48. package/src/models/kubernetesclustersummarydata.ts +1 -1
  49. package/src/models/operations/deletekubernetescluster.ts +1 -1
  50. package/src/models/operations/getkubernetescluster.ts +1 -1
  51. package/src/models/operations/getkubernetesclusterkubeconfig.ts +1 -1
  52. package/src/sdk/kubernetesclusters.ts +1 -1
@@ -93,7 +93,7 @@ export type KubernetesClusterSummaryDataAttributes = {
93
93
  */
94
94
  export type KubernetesClusterSummaryData = {
95
95
  /**
96
- * The cluster name used as identifier
96
+ * The cluster ID in hashed format (kc_<hash>)
97
97
  */
98
98
  id?: string | undefined;
99
99
  type?: string | undefined;
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type DeleteKubernetesClusterRequest = {
5
5
  /**
6
- * The cluster name
6
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
7
7
  */
8
8
  kubernetesClusterId: string;
9
9
  };
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type GetKubernetesClusterRequest = {
5
5
  /**
6
- * The cluster name
6
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
7
7
  */
8
8
  kubernetesClusterId: string;
9
9
  };
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type GetKubernetesClusterKubeconfigRequest = {
5
5
  /**
6
- * The cluster name
6
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
7
7
  */
8
8
  kubernetesClusterId: string;
9
9
  };
@@ -24,7 +24,7 @@ export declare class KubernetesClusters extends ClientSDK {
24
24
  * Get a Kubernetes Cluster
25
25
  *
26
26
  * @remarks
27
- * Retrieves detailed information about a Kubernetes cluster including its status, control plane, and worker node details.
27
+ * Retrieves detailed information about a Kubernetes cluster including its status, control plane, worker node details, and individual node information.
28
28
  */
29
29
  getKubernetesCluster(request: operations.GetKubernetesClusterRequest, options?: RequestOptions): Promise<models.KubernetesCluster>;
30
30
  /**
@@ -35,7 +35,7 @@ export class KubernetesClusters extends ClientSDK {
35
35
  * Get a Kubernetes Cluster
36
36
  *
37
37
  * @remarks
38
- * Retrieves detailed information about a Kubernetes cluster including its status, control plane, and worker node details.
38
+ * Retrieves detailed information about a Kubernetes cluster including its status, control plane, worker node details, and individual node information.
39
39
  */
40
40
  async getKubernetesCluster(request, options) {
41
41
  return unwrapAsync(kubernetesClustersGetKubernetesCluster(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "latitudesh-typescript-sdk",
5
- "version": "0.3.2",
5
+ "version": "0.3.4",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "latitudesh-typescript-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,12 +27,12 @@
27
27
  "url": "https://github.com/latitudesh/latitudesh-typescript-sdk.git"
28
28
  },
29
29
  "scripts": {
30
- "test:integration": "bun test tests/integration",
31
- "test:coverage": "bun test --coverage tests/integration",
32
30
  "lint": "eslint --cache --max-warnings=0 src",
33
31
  "build:mcp": "bun src/mcp-server/build.mts",
34
32
  "build": "npm run build:mcp && tshy",
35
- "prepublishOnly": "npm run build"
33
+ "prepublishOnly": "npm run build",
34
+ "test:coverage": "bun test --coverage tests/integration",
35
+ "test:integration": "bun test tests/integration"
36
36
  },
37
37
  "peerDependencies": {},
38
38
  "devDependencies": {
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Get a Kubernetes Cluster
31
31
  *
32
32
  * @remarks
33
- * Retrieves detailed information about a Kubernetes cluster including its status, control plane, and worker node details.
33
+ * Retrieves detailed information about a Kubernetes cluster including its status, control plane, worker node details, and individual node information.
34
34
  */
35
35
  export function kubernetesClustersGetKubernetesCluster(
36
36
  client: LatitudeshCore,
package/src/lib/config.ts CHANGED
@@ -74,8 +74,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
74
74
  export const SDK_METADATA = {
75
75
  language: "typescript",
76
76
  openapiDocVersion: "2023-06-01",
77
- sdkVersion: "0.3.2",
78
- genVersion: "2.856.1",
77
+ sdkVersion: "0.3.4",
78
+ genVersion: "2.859.2",
79
79
  userAgent:
80
- "speakeasy-sdk/typescript 0.3.2 2.856.1 2023-06-01 latitudesh-typescript-sdk",
80
+ "speakeasy-sdk/typescript 0.3.4 2.859.2 2023-06-01 latitudesh-typescript-sdk",
81
81
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.3.2",
22
+ currentVersion: "0.3.4",
23
23
  },
24
24
  });
25
25
 
@@ -148,7 +148,7 @@ export function createMCPServer(deps: {
148
148
  }) {
149
149
  const server = new McpServer({
150
150
  name: "Latitudesh",
151
- version: "0.3.2",
151
+ version: "0.3.4",
152
152
  });
153
153
 
154
154
  const client = new LatitudeshCore({
@@ -16,7 +16,7 @@ export const tool$kubernetesClustersGetKubernetesCluster: ToolDefinition<
16
16
  name: "kubernetes-clusters-get-kubernetes-cluster",
17
17
  description: `Get a Kubernetes Cluster
18
18
 
19
- Retrieves detailed information about a Kubernetes cluster including its status, control plane, and worker node details.
19
+ Retrieves detailed information about a Kubernetes cluster including its status, control plane, worker node details, and individual node information.
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
@@ -25,7 +25,7 @@ export type KubernetesClusterCreateResponseAttributes = {
25
25
 
26
26
  export type KubernetesClusterCreateResponseData = {
27
27
  /**
28
- * The cluster name used as identifier
28
+ * The cluster ID in hashed format (kc_<hash>)
29
29
  */
30
30
  id?: string | undefined;
31
31
  type?: string | undefined;
@@ -62,7 +62,7 @@ export type KubernetesClusterDataName = ClosedEnum<
62
62
  /**
63
63
  * Current status of this step
64
64
  */
65
- export const KubernetesClusterDataStatus = {
65
+ export const KubernetesClusterDataStepStatus = {
66
66
  Pending: "pending",
67
67
  InProgress: "in_progress",
68
68
  Completed: "completed",
@@ -70,8 +70,8 @@ export const KubernetesClusterDataStatus = {
70
70
  /**
71
71
  * Current status of this step
72
72
  */
73
- export type KubernetesClusterDataStatus = ClosedEnum<
74
- typeof KubernetesClusterDataStatus
73
+ export type KubernetesClusterDataStepStatus = ClosedEnum<
74
+ typeof KubernetesClusterDataStepStatus
75
75
  >;
76
76
 
77
77
  export type KubernetesClusterDataStep = {
@@ -82,7 +82,92 @@ export type KubernetesClusterDataStep = {
82
82
  /**
83
83
  * Current status of this step
84
84
  */
85
- status?: KubernetesClusterDataStatus | undefined;
85
+ status?: KubernetesClusterDataStepStatus | undefined;
86
+ };
87
+
88
+ /**
89
+ * The role of this node in the cluster
90
+ */
91
+ export const KubernetesClusterDataType = {
92
+ ControlPlane: "control_plane",
93
+ Worker: "worker",
94
+ } as const;
95
+ /**
96
+ * The role of this node in the cluster
97
+ */
98
+ export type KubernetesClusterDataType = ClosedEnum<
99
+ typeof KubernetesClusterDataType
100
+ >;
101
+
102
+ /**
103
+ * Current status of the node
104
+ */
105
+ export const NodeStatus = {
106
+ Ready: "ready",
107
+ Pending: "pending",
108
+ Failed: "failed",
109
+ Deleting: "deleting",
110
+ } as const;
111
+ /**
112
+ * Current status of the node
113
+ */
114
+ export type NodeStatus = ClosedEnum<typeof NodeStatus>;
115
+
116
+ export type Node = {
117
+ /**
118
+ * Unique identifier for the node (machine name)
119
+ */
120
+ id?: string | undefined;
121
+ /**
122
+ * Name of the node
123
+ */
124
+ name?: string | undefined;
125
+ /**
126
+ * Hostname of the node
127
+ */
128
+ hostname?: string | null | undefined;
129
+ /**
130
+ * The Latitude server ID associated with this node
131
+ */
132
+ serverId?: string | null | undefined;
133
+ /**
134
+ * The role of this node in the cluster
135
+ */
136
+ type?: KubernetesClusterDataType | undefined;
137
+ /**
138
+ * Current status of the node
139
+ */
140
+ status?: NodeStatus | undefined;
141
+ /**
142
+ * Primary IP address (external if available, otherwise internal)
143
+ */
144
+ ip?: string | null | undefined;
145
+ /**
146
+ * Internal/private IP address
147
+ */
148
+ internalIp?: string | null | undefined;
149
+ /**
150
+ * External/public IP address
151
+ */
152
+ externalIp?: string | null | undefined;
153
+ };
154
+
155
+ /**
156
+ * The project this cluster belongs to
157
+ */
158
+ export type KubernetesClusterDataProject = {
159
+ /**
160
+ * The project ID
161
+ */
162
+ id?: string | undefined;
163
+ /**
164
+ * The project name
165
+ */
166
+ name?: string | undefined;
167
+ /**
168
+ * The project slug
169
+ */
170
+ slug?: string | undefined;
86
171
  };
87
172
 
88
173
  export type KubernetesClusterDataAttributes = {
@@ -110,6 +195,10 @@ export type KubernetesClusterDataAttributes = {
110
195
  * The site/region where the cluster is deployed
111
196
  */
112
197
  location?: string | undefined;
198
+ /**
199
+ * IP addresses assigned to the cluster's load balancer
200
+ */
201
+ loadBalancerIps?: Array<string> | undefined;
113
202
  /**
114
203
  * The Kubernetes version running on the cluster
115
204
  */
@@ -118,6 +207,22 @@ export type KubernetesClusterDataAttributes = {
118
207
  * When the cluster was created
119
208
  */
120
209
  createdAt?: Date | undefined;
210
+ /**
211
+ * The machine plan slug for control plane nodes
212
+ */
213
+ plan?: string | undefined;
214
+ /**
215
+ * The machine plan slug for worker nodes. Null if no workers exist.
216
+ */
217
+ workerPlan?: string | null | undefined;
218
+ /**
219
+ * Number of control plane node replicas
220
+ */
221
+ controlPlaneCount?: number | undefined;
222
+ /**
223
+ * Number of worker node replicas. Returns 0 if no workers exist.
224
+ */
225
+ workerCount?: number | undefined;
121
226
  /**
122
227
  * Control plane status information
123
228
  */
@@ -154,11 +259,19 @@ export type KubernetesClusterDataAttributes = {
154
259
  * Reason code for cluster failure
155
260
  */
156
261
  failureReason?: string | null | undefined;
262
+ /**
263
+ * List of nodes (servers) in the cluster
264
+ */
265
+ nodes?: Array<Node> | undefined;
266
+ /**
267
+ * The project this cluster belongs to
268
+ */
269
+ project?: KubernetesClusterDataProject | undefined;
157
270
  };
158
271
 
159
272
  export type KubernetesClusterData = {
160
273
  /**
161
- * The cluster name used as identifier
274
+ * The cluster ID in hashed format (kc_<hash>)
162
275
  */
163
276
  id?: string | undefined;
164
277
  type?: string | undefined;
@@ -281,13 +394,13 @@ export const KubernetesClusterDataName$outboundSchema: z.ZodNativeEnum<
281
394
  > = KubernetesClusterDataName$inboundSchema;
282
395
 
283
396
  /** @internal */
284
- export const KubernetesClusterDataStatus$inboundSchema: z.ZodNativeEnum<
285
- typeof KubernetesClusterDataStatus
286
- > = z.nativeEnum(KubernetesClusterDataStatus);
397
+ export const KubernetesClusterDataStepStatus$inboundSchema: z.ZodNativeEnum<
398
+ typeof KubernetesClusterDataStepStatus
399
+ > = z.nativeEnum(KubernetesClusterDataStepStatus);
287
400
  /** @internal */
288
- export const KubernetesClusterDataStatus$outboundSchema: z.ZodNativeEnum<
289
- typeof KubernetesClusterDataStatus
290
- > = KubernetesClusterDataStatus$inboundSchema;
401
+ export const KubernetesClusterDataStepStatus$outboundSchema: z.ZodNativeEnum<
402
+ typeof KubernetesClusterDataStepStatus
403
+ > = KubernetesClusterDataStepStatus$inboundSchema;
291
404
 
292
405
  /** @internal */
293
406
  export const KubernetesClusterDataStep$inboundSchema: z.ZodType<
@@ -296,7 +409,7 @@ export const KubernetesClusterDataStep$inboundSchema: z.ZodType<
296
409
  unknown
297
410
  > = z.object({
298
411
  name: KubernetesClusterDataName$inboundSchema.optional(),
299
- status: KubernetesClusterDataStatus$inboundSchema.optional(),
412
+ status: KubernetesClusterDataStepStatus$inboundSchema.optional(),
300
413
  });
301
414
  /** @internal */
302
415
  export type KubernetesClusterDataStep$Outbound = {
@@ -311,7 +424,7 @@ export const KubernetesClusterDataStep$outboundSchema: z.ZodType<
311
424
  KubernetesClusterDataStep
312
425
  > = z.object({
313
426
  name: KubernetesClusterDataName$outboundSchema.optional(),
314
- status: KubernetesClusterDataStatus$outboundSchema.optional(),
427
+ status: KubernetesClusterDataStepStatus$outboundSchema.optional(),
315
428
  });
316
429
 
317
430
  export function kubernetesClusterDataStepToJSON(
@@ -331,6 +444,134 @@ export function kubernetesClusterDataStepFromJSON(
331
444
  );
332
445
  }
333
446
 
447
+ /** @internal */
448
+ export const KubernetesClusterDataType$inboundSchema: z.ZodNativeEnum<
449
+ typeof KubernetesClusterDataType
450
+ > = z.nativeEnum(KubernetesClusterDataType);
451
+ /** @internal */
452
+ export const KubernetesClusterDataType$outboundSchema: z.ZodNativeEnum<
453
+ typeof KubernetesClusterDataType
454
+ > = KubernetesClusterDataType$inboundSchema;
455
+
456
+ /** @internal */
457
+ export const NodeStatus$inboundSchema: z.ZodNativeEnum<typeof NodeStatus> = z
458
+ .nativeEnum(NodeStatus);
459
+ /** @internal */
460
+ export const NodeStatus$outboundSchema: z.ZodNativeEnum<typeof NodeStatus> =
461
+ NodeStatus$inboundSchema;
462
+
463
+ /** @internal */
464
+ export const Node$inboundSchema: z.ZodType<Node, z.ZodTypeDef, unknown> = z
465
+ .object({
466
+ id: z.string().optional(),
467
+ name: z.string().optional(),
468
+ hostname: z.nullable(z.string()).optional(),
469
+ server_id: z.nullable(z.string()).optional(),
470
+ type: KubernetesClusterDataType$inboundSchema.optional(),
471
+ status: NodeStatus$inboundSchema.optional(),
472
+ ip: z.nullable(z.string()).optional(),
473
+ internal_ip: z.nullable(z.string()).optional(),
474
+ external_ip: z.nullable(z.string()).optional(),
475
+ }).transform((v) => {
476
+ return remap$(v, {
477
+ "server_id": "serverId",
478
+ "internal_ip": "internalIp",
479
+ "external_ip": "externalIp",
480
+ });
481
+ });
482
+ /** @internal */
483
+ export type Node$Outbound = {
484
+ id?: string | undefined;
485
+ name?: string | undefined;
486
+ hostname?: string | null | undefined;
487
+ server_id?: string | null | undefined;
488
+ type?: string | undefined;
489
+ status?: string | undefined;
490
+ ip?: string | null | undefined;
491
+ internal_ip?: string | null | undefined;
492
+ external_ip?: string | null | undefined;
493
+ };
494
+
495
+ /** @internal */
496
+ export const Node$outboundSchema: z.ZodType<Node$Outbound, z.ZodTypeDef, Node> =
497
+ z.object({
498
+ id: z.string().optional(),
499
+ name: z.string().optional(),
500
+ hostname: z.nullable(z.string()).optional(),
501
+ serverId: z.nullable(z.string()).optional(),
502
+ type: KubernetesClusterDataType$outboundSchema.optional(),
503
+ status: NodeStatus$outboundSchema.optional(),
504
+ ip: z.nullable(z.string()).optional(),
505
+ internalIp: z.nullable(z.string()).optional(),
506
+ externalIp: z.nullable(z.string()).optional(),
507
+ }).transform((v) => {
508
+ return remap$(v, {
509
+ serverId: "server_id",
510
+ internalIp: "internal_ip",
511
+ externalIp: "external_ip",
512
+ });
513
+ });
514
+
515
+ export function nodeToJSON(node: Node): string {
516
+ return JSON.stringify(Node$outboundSchema.parse(node));
517
+ }
518
+ export function nodeFromJSON(
519
+ jsonString: string,
520
+ ): SafeParseResult<Node, SDKValidationError> {
521
+ return safeParse(
522
+ jsonString,
523
+ (x) => Node$inboundSchema.parse(JSON.parse(x)),
524
+ `Failed to parse 'Node' from JSON`,
525
+ );
526
+ }
527
+
528
+ /** @internal */
529
+ export const KubernetesClusterDataProject$inboundSchema: z.ZodType<
530
+ KubernetesClusterDataProject,
531
+ z.ZodTypeDef,
532
+ unknown
533
+ > = z.object({
534
+ id: z.string().optional(),
535
+ name: z.string().optional(),
536
+ slug: z.string().optional(),
537
+ });
538
+ /** @internal */
539
+ export type KubernetesClusterDataProject$Outbound = {
540
+ id?: string | undefined;
541
+ name?: string | undefined;
542
+ slug?: string | undefined;
543
+ };
544
+
545
+ /** @internal */
546
+ export const KubernetesClusterDataProject$outboundSchema: z.ZodType<
547
+ KubernetesClusterDataProject$Outbound,
548
+ z.ZodTypeDef,
549
+ KubernetesClusterDataProject
550
+ > = z.object({
551
+ id: z.string().optional(),
552
+ name: z.string().optional(),
553
+ slug: z.string().optional(),
554
+ });
555
+
556
+ export function kubernetesClusterDataProjectToJSON(
557
+ kubernetesClusterDataProject: KubernetesClusterDataProject,
558
+ ): string {
559
+ return JSON.stringify(
560
+ KubernetesClusterDataProject$outboundSchema.parse(
561
+ kubernetesClusterDataProject,
562
+ ),
563
+ );
564
+ }
565
+ export function kubernetesClusterDataProjectFromJSON(
566
+ jsonString: string,
567
+ ): SafeParseResult<KubernetesClusterDataProject, SDKValidationError> {
568
+ return safeParse(
569
+ jsonString,
570
+ (x) => KubernetesClusterDataProject$inboundSchema.parse(JSON.parse(x)),
571
+ `Failed to parse 'KubernetesClusterDataProject' from JSON`,
572
+ );
573
+ }
574
+
334
575
  /** @internal */
335
576
  export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
336
577
  KubernetesClusterDataAttributes,
@@ -343,9 +584,14 @@ export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
343
584
  control_plane_endpoint: z.nullable(z.string()).optional(),
344
585
  kubeconfig_url: z.nullable(z.string()).optional(),
345
586
  location: z.string().optional(),
587
+ load_balancer_ips: z.array(z.string()).optional(),
346
588
  kubernetes_version: z.string().optional(),
347
589
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
348
590
  .optional(),
591
+ plan: z.string().optional(),
592
+ worker_plan: z.nullable(z.string()).optional(),
593
+ control_plane_count: z.number().int().optional(),
594
+ worker_count: z.number().int().optional(),
349
595
  control_plane: z.nullable(z.lazy(() => ControlPlane$inboundSchema))
350
596
  .optional(),
351
597
  workers: z.nullable(z.lazy(() => Workers$inboundSchema)).optional(),
@@ -359,12 +605,18 @@ export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
359
605
  ).optional(),
360
606
  failure_message: z.nullable(z.string()).optional(),
361
607
  failure_reason: z.nullable(z.string()).optional(),
608
+ nodes: z.array(z.lazy(() => Node$inboundSchema)).optional(),
609
+ project: z.lazy(() => KubernetesClusterDataProject$inboundSchema).optional(),
362
610
  }).transform((v) => {
363
611
  return remap$(v, {
364
612
  "control_plane_endpoint": "controlPlaneEndpoint",
365
613
  "kubeconfig_url": "kubeconfigUrl",
614
+ "load_balancer_ips": "loadBalancerIps",
366
615
  "kubernetes_version": "kubernetesVersion",
367
616
  "created_at": "createdAt",
617
+ "worker_plan": "workerPlan",
618
+ "control_plane_count": "controlPlaneCount",
619
+ "worker_count": "workerCount",
368
620
  "control_plane": "controlPlane",
369
621
  "infrastructure_ready": "infrastructureReady",
370
622
  "control_plane_ready": "controlPlaneReady",
@@ -381,8 +633,13 @@ export type KubernetesClusterDataAttributes$Outbound = {
381
633
  control_plane_endpoint?: string | null | undefined;
382
634
  kubeconfig_url?: string | null | undefined;
383
635
  location?: string | undefined;
636
+ load_balancer_ips?: Array<string> | undefined;
384
637
  kubernetes_version?: string | undefined;
385
638
  created_at?: string | undefined;
639
+ plan?: string | undefined;
640
+ worker_plan?: string | null | undefined;
641
+ control_plane_count?: number | undefined;
642
+ worker_count?: number | undefined;
386
643
  control_plane?: ControlPlane$Outbound | null | undefined;
387
644
  workers?: Workers$Outbound | null | undefined;
388
645
  infrastructure_ready?: boolean | undefined;
@@ -392,6 +649,8 @@ export type KubernetesClusterDataAttributes$Outbound = {
392
649
  last_status_change?: string | null | undefined;
393
650
  failure_message?: string | null | undefined;
394
651
  failure_reason?: string | null | undefined;
652
+ nodes?: Array<Node$Outbound> | undefined;
653
+ project?: KubernetesClusterDataProject$Outbound | undefined;
395
654
  };
396
655
 
397
656
  /** @internal */
@@ -406,8 +665,13 @@ export const KubernetesClusterDataAttributes$outboundSchema: z.ZodType<
406
665
  controlPlaneEndpoint: z.nullable(z.string()).optional(),
407
666
  kubeconfigUrl: z.nullable(z.string()).optional(),
408
667
  location: z.string().optional(),
668
+ loadBalancerIps: z.array(z.string()).optional(),
409
669
  kubernetesVersion: z.string().optional(),
410
670
  createdAt: z.date().transform(v => v.toISOString()).optional(),
671
+ plan: z.string().optional(),
672
+ workerPlan: z.nullable(z.string()).optional(),
673
+ controlPlaneCount: z.number().int().optional(),
674
+ workerCount: z.number().int().optional(),
411
675
  controlPlane: z.nullable(z.lazy(() => ControlPlane$outboundSchema))
412
676
  .optional(),
413
677
  workers: z.nullable(z.lazy(() => Workers$outboundSchema)).optional(),
@@ -420,12 +684,18 @@ export const KubernetesClusterDataAttributes$outboundSchema: z.ZodType<
420
684
  .optional(),
421
685
  failureMessage: z.nullable(z.string()).optional(),
422
686
  failureReason: z.nullable(z.string()).optional(),
687
+ nodes: z.array(z.lazy(() => Node$outboundSchema)).optional(),
688
+ project: z.lazy(() => KubernetesClusterDataProject$outboundSchema).optional(),
423
689
  }).transform((v) => {
424
690
  return remap$(v, {
425
691
  controlPlaneEndpoint: "control_plane_endpoint",
426
692
  kubeconfigUrl: "kubeconfig_url",
693
+ loadBalancerIps: "load_balancer_ips",
427
694
  kubernetesVersion: "kubernetes_version",
428
695
  createdAt: "created_at",
696
+ workerPlan: "worker_plan",
697
+ controlPlaneCount: "control_plane_count",
698
+ workerCount: "worker_count",
429
699
  controlPlane: "control_plane",
430
700
  infrastructureReady: "infrastructure_ready",
431
701
  controlPlaneReady: "control_plane_ready",
@@ -111,7 +111,7 @@ export type KubernetesClusterSummaryDataAttributes = {
111
111
  */
112
112
  export type KubernetesClusterSummaryData = {
113
113
  /**
114
- * The cluster name used as identifier
114
+ * The cluster ID in hashed format (kc_<hash>)
115
115
  */
116
116
  id?: string | undefined;
117
117
  type?: string | undefined;
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type DeleteKubernetesClusterRequest = {
12
12
  /**
13
- * The cluster name
13
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
14
14
  */
15
15
  kubernetesClusterId: string;
16
16
  };
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type GetKubernetesClusterRequest = {
12
12
  /**
13
- * The cluster name
13
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
14
14
  */
15
15
  kubernetesClusterId: string;
16
16
  };
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type GetKubernetesClusterKubeconfigRequest = {
12
12
  /**
13
- * The cluster name
13
+ * The cluster ID (format: kc_<hash>) or cluster name. Both formats are accepted for backward compatibility.
14
14
  */
15
15
  kubernetesClusterId: string;
16
16
  };
@@ -55,7 +55,7 @@ export class KubernetesClusters extends ClientSDK {
55
55
  * Get a Kubernetes Cluster
56
56
  *
57
57
  * @remarks
58
- * Retrieves detailed information about a Kubernetes cluster including its status, control plane, and worker node details.
58
+ * Retrieves detailed information about a Kubernetes cluster including its status, control plane, worker node details, and individual node information.
59
59
  */
60
60
  async getKubernetesCluster(
61
61
  request: operations.GetKubernetesClusterRequest,