latitudesh-typescript-sdk 0.3.1 → 0.3.3
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.
- package/bin/mcp-server.js +45 -15
- package/bin/mcp-server.js.map +12 -12
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/createkubernetescluster.d.ts +6 -6
- package/dist/commonjs/models/createkubernetescluster.d.ts.map +1 -1
- package/dist/commonjs/models/createkubernetescluster.js +6 -6
- package/dist/commonjs/models/createkubernetescluster.js.map +1 -1
- package/dist/commonjs/models/kubernetesclustercreateresponse.d.ts +1 -1
- package/dist/commonjs/models/kubernetesclusterdata.d.ts +60 -1
- package/dist/commonjs/models/kubernetesclusterdata.d.ts.map +1 -1
- package/dist/commonjs/models/kubernetesclusterdata.js +41 -1
- package/dist/commonjs/models/kubernetesclusterdata.js.map +1 -1
- package/dist/commonjs/models/kubernetesclustersummarydata.d.ts +1 -1
- package/dist/commonjs/models/operations/deletekubernetescluster.d.ts +1 -1
- package/dist/commonjs/models/operations/getkubernetescluster.d.ts +1 -1
- package/dist/commonjs/models/operations/getkubernetesclusterkubeconfig.d.ts +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/createkubernetescluster.d.ts +6 -6
- package/dist/esm/models/createkubernetescluster.d.ts.map +1 -1
- package/dist/esm/models/createkubernetescluster.js +6 -6
- package/dist/esm/models/createkubernetescluster.js.map +1 -1
- package/dist/esm/models/kubernetesclustercreateresponse.d.ts +1 -1
- package/dist/esm/models/kubernetesclusterdata.d.ts +60 -1
- package/dist/esm/models/kubernetesclusterdata.d.ts.map +1 -1
- package/dist/esm/models/kubernetesclusterdata.js +38 -0
- package/dist/esm/models/kubernetesclusterdata.js.map +1 -1
- package/dist/esm/models/kubernetesclustersummarydata.d.ts +1 -1
- package/dist/esm/models/operations/deletekubernetescluster.d.ts +1 -1
- package/dist/esm/models/operations/getkubernetescluster.d.ts +1 -1
- package/dist/esm/models/operations/getkubernetesclusterkubeconfig.d.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +4 -4
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/createkubernetescluster.ts +12 -12
- package/src/models/kubernetesclustercreateresponse.ts +1 -1
- package/src/models/kubernetesclusterdata.ts +116 -1
- package/src/models/kubernetesclustersummarydata.ts +1 -1
- package/src/models/operations/deletekubernetescluster.ts +1 -1
- package/src/models/operations/getkubernetescluster.ts +1 -1
- package/src/models/operations/getkubernetesclusterkubeconfig.ts +1 -1
|
@@ -85,6 +85,24 @@ export type KubernetesClusterDataStep = {
|
|
|
85
85
|
status?: KubernetesClusterDataStatus | undefined;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* The project this cluster belongs to
|
|
90
|
+
*/
|
|
91
|
+
export type KubernetesClusterDataProject = {
|
|
92
|
+
/**
|
|
93
|
+
* The project ID
|
|
94
|
+
*/
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* The project name
|
|
98
|
+
*/
|
|
99
|
+
name?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* The project slug
|
|
102
|
+
*/
|
|
103
|
+
slug?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
88
106
|
export type KubernetesClusterDataAttributes = {
|
|
89
107
|
/**
|
|
90
108
|
* The cluster name
|
|
@@ -110,6 +128,10 @@ export type KubernetesClusterDataAttributes = {
|
|
|
110
128
|
* The site/region where the cluster is deployed
|
|
111
129
|
*/
|
|
112
130
|
location?: string | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* IP addresses assigned to the cluster's load balancer
|
|
133
|
+
*/
|
|
134
|
+
loadBalancerIps?: Array<string> | undefined;
|
|
113
135
|
/**
|
|
114
136
|
* The Kubernetes version running on the cluster
|
|
115
137
|
*/
|
|
@@ -118,6 +140,22 @@ export type KubernetesClusterDataAttributes = {
|
|
|
118
140
|
* When the cluster was created
|
|
119
141
|
*/
|
|
120
142
|
createdAt?: Date | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* The machine plan slug for control plane nodes
|
|
145
|
+
*/
|
|
146
|
+
plan?: string | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* The machine plan slug for worker nodes. Null if no workers exist.
|
|
149
|
+
*/
|
|
150
|
+
workerPlan?: string | null | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Number of control plane node replicas
|
|
153
|
+
*/
|
|
154
|
+
controlPlaneCount?: number | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Number of worker node replicas. Returns 0 if no workers exist.
|
|
157
|
+
*/
|
|
158
|
+
workerCount?: number | undefined;
|
|
121
159
|
/**
|
|
122
160
|
* Control plane status information
|
|
123
161
|
*/
|
|
@@ -154,11 +192,15 @@ export type KubernetesClusterDataAttributes = {
|
|
|
154
192
|
* Reason code for cluster failure
|
|
155
193
|
*/
|
|
156
194
|
failureReason?: string | null | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* The project this cluster belongs to
|
|
197
|
+
*/
|
|
198
|
+
project?: KubernetesClusterDataProject | undefined;
|
|
157
199
|
};
|
|
158
200
|
|
|
159
201
|
export type KubernetesClusterData = {
|
|
160
202
|
/**
|
|
161
|
-
* The cluster
|
|
203
|
+
* The cluster ID in hashed format (kc_<hash>)
|
|
162
204
|
*/
|
|
163
205
|
id?: string | undefined;
|
|
164
206
|
type?: string | undefined;
|
|
@@ -331,6 +373,53 @@ export function kubernetesClusterDataStepFromJSON(
|
|
|
331
373
|
);
|
|
332
374
|
}
|
|
333
375
|
|
|
376
|
+
/** @internal */
|
|
377
|
+
export const KubernetesClusterDataProject$inboundSchema: z.ZodType<
|
|
378
|
+
KubernetesClusterDataProject,
|
|
379
|
+
z.ZodTypeDef,
|
|
380
|
+
unknown
|
|
381
|
+
> = z.object({
|
|
382
|
+
id: z.string().optional(),
|
|
383
|
+
name: z.string().optional(),
|
|
384
|
+
slug: z.string().optional(),
|
|
385
|
+
});
|
|
386
|
+
/** @internal */
|
|
387
|
+
export type KubernetesClusterDataProject$Outbound = {
|
|
388
|
+
id?: string | undefined;
|
|
389
|
+
name?: string | undefined;
|
|
390
|
+
slug?: string | undefined;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/** @internal */
|
|
394
|
+
export const KubernetesClusterDataProject$outboundSchema: z.ZodType<
|
|
395
|
+
KubernetesClusterDataProject$Outbound,
|
|
396
|
+
z.ZodTypeDef,
|
|
397
|
+
KubernetesClusterDataProject
|
|
398
|
+
> = z.object({
|
|
399
|
+
id: z.string().optional(),
|
|
400
|
+
name: z.string().optional(),
|
|
401
|
+
slug: z.string().optional(),
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
export function kubernetesClusterDataProjectToJSON(
|
|
405
|
+
kubernetesClusterDataProject: KubernetesClusterDataProject,
|
|
406
|
+
): string {
|
|
407
|
+
return JSON.stringify(
|
|
408
|
+
KubernetesClusterDataProject$outboundSchema.parse(
|
|
409
|
+
kubernetesClusterDataProject,
|
|
410
|
+
),
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
export function kubernetesClusterDataProjectFromJSON(
|
|
414
|
+
jsonString: string,
|
|
415
|
+
): SafeParseResult<KubernetesClusterDataProject, SDKValidationError> {
|
|
416
|
+
return safeParse(
|
|
417
|
+
jsonString,
|
|
418
|
+
(x) => KubernetesClusterDataProject$inboundSchema.parse(JSON.parse(x)),
|
|
419
|
+
`Failed to parse 'KubernetesClusterDataProject' from JSON`,
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
334
423
|
/** @internal */
|
|
335
424
|
export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
|
|
336
425
|
KubernetesClusterDataAttributes,
|
|
@@ -343,9 +432,14 @@ export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
|
|
|
343
432
|
control_plane_endpoint: z.nullable(z.string()).optional(),
|
|
344
433
|
kubeconfig_url: z.nullable(z.string()).optional(),
|
|
345
434
|
location: z.string().optional(),
|
|
435
|
+
load_balancer_ips: z.array(z.string()).optional(),
|
|
346
436
|
kubernetes_version: z.string().optional(),
|
|
347
437
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
348
438
|
.optional(),
|
|
439
|
+
plan: z.string().optional(),
|
|
440
|
+
worker_plan: z.nullable(z.string()).optional(),
|
|
441
|
+
control_plane_count: z.number().int().optional(),
|
|
442
|
+
worker_count: z.number().int().optional(),
|
|
349
443
|
control_plane: z.nullable(z.lazy(() => ControlPlane$inboundSchema))
|
|
350
444
|
.optional(),
|
|
351
445
|
workers: z.nullable(z.lazy(() => Workers$inboundSchema)).optional(),
|
|
@@ -359,12 +453,17 @@ export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
|
|
|
359
453
|
).optional(),
|
|
360
454
|
failure_message: z.nullable(z.string()).optional(),
|
|
361
455
|
failure_reason: z.nullable(z.string()).optional(),
|
|
456
|
+
project: z.lazy(() => KubernetesClusterDataProject$inboundSchema).optional(),
|
|
362
457
|
}).transform((v) => {
|
|
363
458
|
return remap$(v, {
|
|
364
459
|
"control_plane_endpoint": "controlPlaneEndpoint",
|
|
365
460
|
"kubeconfig_url": "kubeconfigUrl",
|
|
461
|
+
"load_balancer_ips": "loadBalancerIps",
|
|
366
462
|
"kubernetes_version": "kubernetesVersion",
|
|
367
463
|
"created_at": "createdAt",
|
|
464
|
+
"worker_plan": "workerPlan",
|
|
465
|
+
"control_plane_count": "controlPlaneCount",
|
|
466
|
+
"worker_count": "workerCount",
|
|
368
467
|
"control_plane": "controlPlane",
|
|
369
468
|
"infrastructure_ready": "infrastructureReady",
|
|
370
469
|
"control_plane_ready": "controlPlaneReady",
|
|
@@ -381,8 +480,13 @@ export type KubernetesClusterDataAttributes$Outbound = {
|
|
|
381
480
|
control_plane_endpoint?: string | null | undefined;
|
|
382
481
|
kubeconfig_url?: string | null | undefined;
|
|
383
482
|
location?: string | undefined;
|
|
483
|
+
load_balancer_ips?: Array<string> | undefined;
|
|
384
484
|
kubernetes_version?: string | undefined;
|
|
385
485
|
created_at?: string | undefined;
|
|
486
|
+
plan?: string | undefined;
|
|
487
|
+
worker_plan?: string | null | undefined;
|
|
488
|
+
control_plane_count?: number | undefined;
|
|
489
|
+
worker_count?: number | undefined;
|
|
386
490
|
control_plane?: ControlPlane$Outbound | null | undefined;
|
|
387
491
|
workers?: Workers$Outbound | null | undefined;
|
|
388
492
|
infrastructure_ready?: boolean | undefined;
|
|
@@ -392,6 +496,7 @@ export type KubernetesClusterDataAttributes$Outbound = {
|
|
|
392
496
|
last_status_change?: string | null | undefined;
|
|
393
497
|
failure_message?: string | null | undefined;
|
|
394
498
|
failure_reason?: string | null | undefined;
|
|
499
|
+
project?: KubernetesClusterDataProject$Outbound | undefined;
|
|
395
500
|
};
|
|
396
501
|
|
|
397
502
|
/** @internal */
|
|
@@ -406,8 +511,13 @@ export const KubernetesClusterDataAttributes$outboundSchema: z.ZodType<
|
|
|
406
511
|
controlPlaneEndpoint: z.nullable(z.string()).optional(),
|
|
407
512
|
kubeconfigUrl: z.nullable(z.string()).optional(),
|
|
408
513
|
location: z.string().optional(),
|
|
514
|
+
loadBalancerIps: z.array(z.string()).optional(),
|
|
409
515
|
kubernetesVersion: z.string().optional(),
|
|
410
516
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
517
|
+
plan: z.string().optional(),
|
|
518
|
+
workerPlan: z.nullable(z.string()).optional(),
|
|
519
|
+
controlPlaneCount: z.number().int().optional(),
|
|
520
|
+
workerCount: z.number().int().optional(),
|
|
411
521
|
controlPlane: z.nullable(z.lazy(() => ControlPlane$outboundSchema))
|
|
412
522
|
.optional(),
|
|
413
523
|
workers: z.nullable(z.lazy(() => Workers$outboundSchema)).optional(),
|
|
@@ -420,12 +530,17 @@ export const KubernetesClusterDataAttributes$outboundSchema: z.ZodType<
|
|
|
420
530
|
.optional(),
|
|
421
531
|
failureMessage: z.nullable(z.string()).optional(),
|
|
422
532
|
failureReason: z.nullable(z.string()).optional(),
|
|
533
|
+
project: z.lazy(() => KubernetesClusterDataProject$outboundSchema).optional(),
|
|
423
534
|
}).transform((v) => {
|
|
424
535
|
return remap$(v, {
|
|
425
536
|
controlPlaneEndpoint: "control_plane_endpoint",
|
|
426
537
|
kubeconfigUrl: "kubeconfig_url",
|
|
538
|
+
loadBalancerIps: "load_balancer_ips",
|
|
427
539
|
kubernetesVersion: "kubernetes_version",
|
|
428
540
|
createdAt: "created_at",
|
|
541
|
+
workerPlan: "worker_plan",
|
|
542
|
+
controlPlaneCount: "control_plane_count",
|
|
543
|
+
workerCount: "worker_count",
|
|
429
544
|
controlPlane: "control_plane",
|
|
430
545
|
infrastructureReady: "infrastructure_ready",
|
|
431
546
|
controlPlaneReady: "control_plane_ready",
|
|
@@ -111,7 +111,7 @@ export type KubernetesClusterSummaryDataAttributes = {
|
|
|
111
111
|
*/
|
|
112
112
|
export type KubernetesClusterSummaryData = {
|
|
113
113
|
/**
|
|
114
|
-
* The cluster
|
|
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
|
};
|