latitudesh-typescript-sdk 0.8.13 → 0.8.15
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/README.md +2 -2
- package/bin/mcp-server.js +189 -185
- package/bin/mcp-server.js.map +11 -11
- package/dist/commonjs/funcs/{objectStoragePutStorageBucketLifecycleRule.d.ts → objectStoragePatchStorageBucketLifecycleRule.d.ts} +2 -2
- package/dist/commonjs/funcs/objectStoragePatchStorageBucketLifecycleRule.d.ts.map +1 -0
- package/dist/commonjs/funcs/{objectStoragePutStorageBucketLifecycleRule.js → objectStoragePatchStorageBucketLifecycleRule.js} +7 -7
- package/dist/commonjs/funcs/objectStoragePatchStorageBucketLifecycleRule.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{objectStoragePutStorageBucketLifecycleRule.js → objectStoragePatchStorageBucketLifecycleRule.js} +7 -7
- package/dist/commonjs/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.js.map +1 -0
- package/dist/commonjs/models/operations/createserver.d.ts +5 -0
- package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserver.js +4 -0
- package/dist/commonjs/models/operations/createserver.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/patchstoragebucketlifecyclerule.d.ts +122 -0
- package/dist/commonjs/models/operations/patchstoragebucketlifecyclerule.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patchstoragebucketlifecyclerule.js +169 -0
- package/dist/commonjs/models/operations/patchstoragebucketlifecyclerule.js.map +1 -0
- package/dist/commonjs/sdk/objectstorage.d.ts +6 -6
- package/dist/commonjs/sdk/objectstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/objectstorage.js +9 -9
- package/dist/commonjs/sdk/objectstorage.js.map +1 -1
- package/dist/esm/funcs/{objectStoragePutStorageBucketLifecycleRule.d.ts → objectStoragePatchStorageBucketLifecycleRule.d.ts} +2 -2
- package/dist/esm/funcs/objectStoragePatchStorageBucketLifecycleRule.d.ts.map +1 -0
- package/dist/esm/funcs/{objectStoragePutStorageBucketLifecycleRule.js → objectStoragePatchStorageBucketLifecycleRule.js} +6 -6
- package/dist/esm/funcs/objectStoragePatchStorageBucketLifecycleRule.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.d.ts +8 -0
- package/dist/esm/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{objectStoragePutStorageBucketLifecycleRule.js → objectStoragePatchStorageBucketLifecycleRule.js} +6 -6
- package/dist/esm/mcp-server/tools/objectStoragePatchStorageBucketLifecycleRule.js.map +1 -0
- package/dist/esm/models/operations/createserver.d.ts +5 -0
- package/dist/esm/models/operations/createserver.d.ts.map +1 -1
- package/dist/esm/models/operations/createserver.js +4 -0
- package/dist/esm/models/operations/createserver.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/patchstoragebucketlifecyclerule.d.ts +122 -0
- package/dist/esm/models/operations/patchstoragebucketlifecyclerule.d.ts.map +1 -0
- package/dist/esm/models/operations/patchstoragebucketlifecyclerule.js +123 -0
- package/dist/esm/models/operations/patchstoragebucketlifecyclerule.js.map +1 -0
- package/dist/esm/sdk/objectstorage.d.ts +6 -6
- package/dist/esm/sdk/objectstorage.d.ts.map +1 -1
- package/dist/esm/sdk/objectstorage.js +9 -9
- package/dist/esm/sdk/objectstorage.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{objectStoragePutStorageBucketLifecycleRule.ts → objectStoragePatchStorageBucketLifecycleRule.ts} +10 -10
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/{objectStoragePutStorageBucketLifecycleRule.ts → objectStoragePatchStorageBucketLifecycleRule.ts} +10 -9
- package/src/models/operations/createserver.ts +9 -0
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/patchstoragebucketlifecyclerule.ts +365 -0
- package/src/sdk/objectstorage.ts +13 -13
- package/dist/commonjs/funcs/objectStoragePutStorageBucketLifecycleRule.d.ts.map +0 -1
- package/dist/commonjs/funcs/objectStoragePutStorageBucketLifecycleRule.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.js.map +0 -1
- package/dist/commonjs/models/operations/putstoragebucketlifecyclerule.d.ts +0 -122
- package/dist/commonjs/models/operations/putstoragebucketlifecyclerule.d.ts.map +0 -1
- package/dist/commonjs/models/operations/putstoragebucketlifecyclerule.js +0 -169
- package/dist/commonjs/models/operations/putstoragebucketlifecyclerule.js.map +0 -1
- package/dist/esm/funcs/objectStoragePutStorageBucketLifecycleRule.d.ts.map +0 -1
- package/dist/esm/funcs/objectStoragePutStorageBucketLifecycleRule.js.map +0 -1
- package/dist/esm/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.d.ts +0 -8
- package/dist/esm/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.js.map +0 -1
- package/dist/esm/models/operations/putstoragebucketlifecyclerule.d.ts +0 -122
- package/dist/esm/models/operations/putstoragebucketlifecyclerule.d.ts.map +0 -1
- package/dist/esm/models/operations/putstoragebucketlifecyclerule.js +0 -123
- package/dist/esm/models/operations/putstoragebucketlifecyclerule.js.map +0 -1
- package/src/models/operations/putstoragebucketlifecyclerule.ts +0 -357
package/src/mcp-server/server.ts
CHANGED
|
@@ -71,10 +71,10 @@ import { tool$objectStorageGetStorageBucketLifecycleRules } from "./tools/object
|
|
|
71
71
|
import { tool$objectStorageGetStorageBucketMetrics } from "./tools/objectStorageGetStorageBucketMetrics.js";
|
|
72
72
|
import { tool$objectStorageGetStorageBuckets } from "./tools/objectStorageGetStorageBuckets.js";
|
|
73
73
|
import { tool$objectStorageGetStorageUsage } from "./tools/objectStorageGetStorageUsage.js";
|
|
74
|
+
import { tool$objectStoragePatchStorageBucketLifecycleRule } from "./tools/objectStoragePatchStorageBucketLifecycleRule.js";
|
|
74
75
|
import { tool$objectStoragePostStorageAccessKeys } from "./tools/objectStoragePostStorageAccessKeys.js";
|
|
75
76
|
import { tool$objectStoragePostStorageBucketLifecycleRules } from "./tools/objectStoragePostStorageBucketLifecycleRules.js";
|
|
76
77
|
import { tool$objectStoragePostStorageBuckets } from "./tools/objectStoragePostStorageBuckets.js";
|
|
77
|
-
import { tool$objectStoragePutStorageBucketLifecycleRule } from "./tools/objectStoragePutStorageBucketLifecycleRule.js";
|
|
78
78
|
import { tool$operatingSystemsListPlans } from "./tools/operatingSystemsListPlans.js";
|
|
79
79
|
import { tool$plansGet } from "./tools/plansGet.js";
|
|
80
80
|
import { tool$plansGetBandwidth } from "./tools/plansGetBandwidth.js";
|
|
@@ -195,7 +195,7 @@ export function createMCPServer(deps: {
|
|
|
195
195
|
}) {
|
|
196
196
|
const server = new McpServer({
|
|
197
197
|
name: "Latitudesh",
|
|
198
|
-
version: "0.8.
|
|
198
|
+
version: "0.8.15",
|
|
199
199
|
});
|
|
200
200
|
|
|
201
201
|
const client = new LatitudeshCore({
|
|
@@ -305,8 +305,8 @@ export function createMCPServer(deps: {
|
|
|
305
305
|
tool(tool$objectStorageGetStorageBucketLifecycleRules);
|
|
306
306
|
tool(tool$objectStoragePostStorageBucketLifecycleRules);
|
|
307
307
|
tool(tool$objectStorageGetStorageBucketLifecycleRule);
|
|
308
|
-
tool(tool$objectStoragePutStorageBucketLifecycleRule);
|
|
309
308
|
tool(tool$objectStorageDeleteStorageBucketLifecycleRule);
|
|
309
|
+
tool(tool$objectStoragePatchStorageBucketLifecycleRule);
|
|
310
310
|
tool(tool$objectStorageGetStorageBucketMetrics);
|
|
311
311
|
tool(tool$userDataGetProjectUsersData);
|
|
312
312
|
tool(tool$userDataGetProjectUserData);
|
|
@@ -2,28 +2,29 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { objectStoragePatchStorageBucketLifecycleRule } from "../../funcs/objectStoragePatchStorageBucketLifecycleRule.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request: operations.
|
|
10
|
+
request: operations.PatchStorageBucketLifecycleRuleRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
13
|
+
export const tool$objectStoragePatchStorageBucketLifecycleRule: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "object-storage-
|
|
16
|
+
name: "object-storage-patch-storage-bucket-lifecycle-rule",
|
|
17
17
|
description: `Update lifecycle rule
|
|
18
18
|
|
|
19
19
|
Updates an existing lifecycle rule for an object storage bucket.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
|
-
const [result, apiCall] =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await objectStoragePatchStorageBucketLifecycleRule(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
27
28
|
|
|
28
29
|
if (!result.ok) {
|
|
29
30
|
return {
|
|
@@ -195,6 +195,10 @@ export type CreateServerAttributes2 = {
|
|
|
195
195
|
* Keep network boot enabled so the server iPXE-boots on every reboot instead of booting from disk. Only supported with the 'ipxe' operating system.
|
|
196
196
|
*/
|
|
197
197
|
persistentNetboot?: boolean | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Deploy the server onto hardware that can announce an Elastic IP over BGP.
|
|
200
|
+
*/
|
|
201
|
+
bgpReady?: boolean | null | undefined;
|
|
198
202
|
/**
|
|
199
203
|
* The server billing type. Accepts `hourly` and `monthly` for on demand projects and `yearly` for reserved projects.
|
|
200
204
|
*/
|
|
@@ -373,6 +377,7 @@ export const CreateServerAttributes2$inboundSchema: z.ZodType<
|
|
|
373
377
|
).optional(),
|
|
374
378
|
ipxe: z.nullable(z.string()).optional(),
|
|
375
379
|
persistent_netboot: z.boolean().optional(),
|
|
380
|
+
bgp_ready: z.nullable(z.boolean()).optional(),
|
|
376
381
|
billing: z.nullable(CreateServerBilling2$inboundSchema).optional(),
|
|
377
382
|
}).transform((v) => {
|
|
378
383
|
return remap$(v, {
|
|
@@ -381,6 +386,7 @@ export const CreateServerAttributes2$inboundSchema: z.ZodType<
|
|
|
381
386
|
"user_data": "userData",
|
|
382
387
|
"disk_layout": "diskLayout",
|
|
383
388
|
"persistent_netboot": "persistentNetboot",
|
|
389
|
+
"bgp_ready": "bgpReady",
|
|
384
390
|
});
|
|
385
391
|
});
|
|
386
392
|
/** @internal */
|
|
@@ -396,6 +402,7 @@ export type CreateServerAttributes2$Outbound = {
|
|
|
396
402
|
disk_layout?: Array<CreateServerDiskLayout2$Outbound> | null | undefined;
|
|
397
403
|
ipxe?: string | null | undefined;
|
|
398
404
|
persistent_netboot?: boolean | undefined;
|
|
405
|
+
bgp_ready?: boolean | null | undefined;
|
|
399
406
|
billing?: string | null | undefined;
|
|
400
407
|
};
|
|
401
408
|
|
|
@@ -418,6 +425,7 @@ export const CreateServerAttributes2$outboundSchema: z.ZodType<
|
|
|
418
425
|
).optional(),
|
|
419
426
|
ipxe: z.nullable(z.string()).optional(),
|
|
420
427
|
persistentNetboot: z.boolean().optional(),
|
|
428
|
+
bgpReady: z.nullable(z.boolean()).optional(),
|
|
421
429
|
billing: z.nullable(CreateServerBilling2$outboundSchema).optional(),
|
|
422
430
|
}).transform((v) => {
|
|
423
431
|
return remap$(v, {
|
|
@@ -426,6 +434,7 @@ export const CreateServerAttributes2$outboundSchema: z.ZodType<
|
|
|
426
434
|
userData: "user_data",
|
|
427
435
|
diskLayout: "disk_layout",
|
|
428
436
|
persistentNetboot: "persistent_netboot",
|
|
437
|
+
bgpReady: "bgp_ready",
|
|
429
438
|
});
|
|
430
439
|
});
|
|
431
440
|
|
|
@@ -115,6 +115,7 @@ export * from "./listvirtualmachinenetworkattachments.js";
|
|
|
115
115
|
export * from "./listvirtualmachinescopedbackups.js";
|
|
116
116
|
export * from "./listvirtualmachinescopedrestores.js";
|
|
117
117
|
export * from "./patchcurrentteam.js";
|
|
118
|
+
export * from "./patchstoragebucketlifecyclerule.js";
|
|
118
119
|
export * from "./patchstoragefilesystems.js";
|
|
119
120
|
export * from "./patchuserdata.js";
|
|
120
121
|
export * from "./patchuserprofile.js";
|
|
@@ -135,7 +136,6 @@ export * from "./postvpnsession.js";
|
|
|
135
136
|
export * from "./putprojectsshkey.js";
|
|
136
137
|
export * from "./putprojectuserdata.js";
|
|
137
138
|
export * from "./putsshkey.js";
|
|
138
|
-
export * from "./putstoragebucketlifecyclerule.js";
|
|
139
139
|
export * from "./putvpnsession.js";
|
|
140
140
|
export * from "./rotateapikey.js";
|
|
141
141
|
export * from "./serverexitrescuemode.js";
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export const PatchStorageBucketLifecycleRuleType = {
|
|
14
|
+
LifecycleRules: "lifecycle_rules",
|
|
15
|
+
} as const;
|
|
16
|
+
export type PatchStorageBucketLifecycleRuleType = ClosedEnum<
|
|
17
|
+
typeof PatchStorageBucketLifecycleRuleType
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
export type PatchStorageBucketLifecycleRuleAttributes = {
|
|
21
|
+
/**
|
|
22
|
+
* Name of the lifecycle rule
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the rule is active
|
|
27
|
+
*/
|
|
28
|
+
enabled?: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Object key prefix to filter which objects the rule applies to
|
|
31
|
+
*/
|
|
32
|
+
prefix?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Number of days after object creation when the object expires
|
|
35
|
+
*/
|
|
36
|
+
expirationDays?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Number of days after which noncurrent object versions expire
|
|
39
|
+
*/
|
|
40
|
+
noncurrentDays?: number | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Number of days after initiation to abort incomplete multipart uploads
|
|
43
|
+
*/
|
|
44
|
+
abortMpuDaysAfterInitiation?: number | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type PatchStorageBucketLifecycleRuleData = {
|
|
48
|
+
type: PatchStorageBucketLifecycleRuleType;
|
|
49
|
+
attributes: PatchStorageBucketLifecycleRuleAttributes;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type PatchStorageBucketLifecycleRuleRequestBody = {
|
|
53
|
+
data: PatchStorageBucketLifecycleRuleData;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type PatchStorageBucketLifecycleRuleRequest = {
|
|
57
|
+
/**
|
|
58
|
+
* The object storage bucket ID
|
|
59
|
+
*/
|
|
60
|
+
bucketId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The lifecycle rule ID
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
requestBody: PatchStorageBucketLifecycleRuleRequestBody;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Success
|
|
70
|
+
*/
|
|
71
|
+
export type PatchStorageBucketLifecycleRuleResponse = {
|
|
72
|
+
data?: models.LifecycleRuleData | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const PatchStorageBucketLifecycleRuleType$inboundSchema: z.ZodNativeEnum<
|
|
77
|
+
typeof PatchStorageBucketLifecycleRuleType
|
|
78
|
+
> = z.nativeEnum(PatchStorageBucketLifecycleRuleType);
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const PatchStorageBucketLifecycleRuleType$outboundSchema:
|
|
81
|
+
z.ZodNativeEnum<typeof PatchStorageBucketLifecycleRuleType> =
|
|
82
|
+
PatchStorageBucketLifecycleRuleType$inboundSchema;
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const PatchStorageBucketLifecycleRuleAttributes$inboundSchema: z.ZodType<
|
|
86
|
+
PatchStorageBucketLifecycleRuleAttributes,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
name: z.string(),
|
|
91
|
+
enabled: z.boolean().optional(),
|
|
92
|
+
prefix: z.nullable(z.string()).optional(),
|
|
93
|
+
expiration_days: z.number().int().optional(),
|
|
94
|
+
noncurrent_days: z.nullable(z.number().int()).optional(),
|
|
95
|
+
abort_mpu_days_after_initiation: z.nullable(z.number().int()).optional(),
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return remap$(v, {
|
|
98
|
+
"expiration_days": "expirationDays",
|
|
99
|
+
"noncurrent_days": "noncurrentDays",
|
|
100
|
+
"abort_mpu_days_after_initiation": "abortMpuDaysAfterInitiation",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
/** @internal */
|
|
104
|
+
export type PatchStorageBucketLifecycleRuleAttributes$Outbound = {
|
|
105
|
+
name: string;
|
|
106
|
+
enabled?: boolean | undefined;
|
|
107
|
+
prefix?: string | null | undefined;
|
|
108
|
+
expiration_days?: number | undefined;
|
|
109
|
+
noncurrent_days?: number | null | undefined;
|
|
110
|
+
abort_mpu_days_after_initiation?: number | null | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const PatchStorageBucketLifecycleRuleAttributes$outboundSchema:
|
|
115
|
+
z.ZodType<
|
|
116
|
+
PatchStorageBucketLifecycleRuleAttributes$Outbound,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
PatchStorageBucketLifecycleRuleAttributes
|
|
119
|
+
> = z.object({
|
|
120
|
+
name: z.string(),
|
|
121
|
+
enabled: z.boolean().optional(),
|
|
122
|
+
prefix: z.nullable(z.string()).optional(),
|
|
123
|
+
expirationDays: z.number().int().optional(),
|
|
124
|
+
noncurrentDays: z.nullable(z.number().int()).optional(),
|
|
125
|
+
abortMpuDaysAfterInitiation: z.nullable(z.number().int()).optional(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
expirationDays: "expiration_days",
|
|
129
|
+
noncurrentDays: "noncurrent_days",
|
|
130
|
+
abortMpuDaysAfterInitiation: "abort_mpu_days_after_initiation",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export function patchStorageBucketLifecycleRuleAttributesToJSON(
|
|
135
|
+
patchStorageBucketLifecycleRuleAttributes:
|
|
136
|
+
PatchStorageBucketLifecycleRuleAttributes,
|
|
137
|
+
): string {
|
|
138
|
+
return JSON.stringify(
|
|
139
|
+
PatchStorageBucketLifecycleRuleAttributes$outboundSchema.parse(
|
|
140
|
+
patchStorageBucketLifecycleRuleAttributes,
|
|
141
|
+
),
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
export function patchStorageBucketLifecycleRuleAttributesFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<
|
|
147
|
+
PatchStorageBucketLifecycleRuleAttributes,
|
|
148
|
+
SDKValidationError
|
|
149
|
+
> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) =>
|
|
153
|
+
PatchStorageBucketLifecycleRuleAttributes$inboundSchema.parse(
|
|
154
|
+
JSON.parse(x),
|
|
155
|
+
),
|
|
156
|
+
`Failed to parse 'PatchStorageBucketLifecycleRuleAttributes' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const PatchStorageBucketLifecycleRuleData$inboundSchema: z.ZodType<
|
|
162
|
+
PatchStorageBucketLifecycleRuleData,
|
|
163
|
+
z.ZodTypeDef,
|
|
164
|
+
unknown
|
|
165
|
+
> = z.object({
|
|
166
|
+
type: PatchStorageBucketLifecycleRuleType$inboundSchema,
|
|
167
|
+
attributes: z.lazy(() =>
|
|
168
|
+
PatchStorageBucketLifecycleRuleAttributes$inboundSchema
|
|
169
|
+
),
|
|
170
|
+
});
|
|
171
|
+
/** @internal */
|
|
172
|
+
export type PatchStorageBucketLifecycleRuleData$Outbound = {
|
|
173
|
+
type: string;
|
|
174
|
+
attributes: PatchStorageBucketLifecycleRuleAttributes$Outbound;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const PatchStorageBucketLifecycleRuleData$outboundSchema: z.ZodType<
|
|
179
|
+
PatchStorageBucketLifecycleRuleData$Outbound,
|
|
180
|
+
z.ZodTypeDef,
|
|
181
|
+
PatchStorageBucketLifecycleRuleData
|
|
182
|
+
> = z.object({
|
|
183
|
+
type: PatchStorageBucketLifecycleRuleType$outboundSchema,
|
|
184
|
+
attributes: z.lazy(() =>
|
|
185
|
+
PatchStorageBucketLifecycleRuleAttributes$outboundSchema
|
|
186
|
+
),
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
export function patchStorageBucketLifecycleRuleDataToJSON(
|
|
190
|
+
patchStorageBucketLifecycleRuleData: PatchStorageBucketLifecycleRuleData,
|
|
191
|
+
): string {
|
|
192
|
+
return JSON.stringify(
|
|
193
|
+
PatchStorageBucketLifecycleRuleData$outboundSchema.parse(
|
|
194
|
+
patchStorageBucketLifecycleRuleData,
|
|
195
|
+
),
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
export function patchStorageBucketLifecycleRuleDataFromJSON(
|
|
199
|
+
jsonString: string,
|
|
200
|
+
): SafeParseResult<PatchStorageBucketLifecycleRuleData, SDKValidationError> {
|
|
201
|
+
return safeParse(
|
|
202
|
+
jsonString,
|
|
203
|
+
(x) =>
|
|
204
|
+
PatchStorageBucketLifecycleRuleData$inboundSchema.parse(JSON.parse(x)),
|
|
205
|
+
`Failed to parse 'PatchStorageBucketLifecycleRuleData' from JSON`,
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export const PatchStorageBucketLifecycleRuleRequestBody$inboundSchema:
|
|
211
|
+
z.ZodType<PatchStorageBucketLifecycleRuleRequestBody, z.ZodTypeDef, unknown> =
|
|
212
|
+
z.object({
|
|
213
|
+
data: z.lazy(() => PatchStorageBucketLifecycleRuleData$inboundSchema),
|
|
214
|
+
});
|
|
215
|
+
/** @internal */
|
|
216
|
+
export type PatchStorageBucketLifecycleRuleRequestBody$Outbound = {
|
|
217
|
+
data: PatchStorageBucketLifecycleRuleData$Outbound;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const PatchStorageBucketLifecycleRuleRequestBody$outboundSchema:
|
|
222
|
+
z.ZodType<
|
|
223
|
+
PatchStorageBucketLifecycleRuleRequestBody$Outbound,
|
|
224
|
+
z.ZodTypeDef,
|
|
225
|
+
PatchStorageBucketLifecycleRuleRequestBody
|
|
226
|
+
> = z.object({
|
|
227
|
+
data: z.lazy(() => PatchStorageBucketLifecycleRuleData$outboundSchema),
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
export function patchStorageBucketLifecycleRuleRequestBodyToJSON(
|
|
231
|
+
patchStorageBucketLifecycleRuleRequestBody:
|
|
232
|
+
PatchStorageBucketLifecycleRuleRequestBody,
|
|
233
|
+
): string {
|
|
234
|
+
return JSON.stringify(
|
|
235
|
+
PatchStorageBucketLifecycleRuleRequestBody$outboundSchema.parse(
|
|
236
|
+
patchStorageBucketLifecycleRuleRequestBody,
|
|
237
|
+
),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
export function patchStorageBucketLifecycleRuleRequestBodyFromJSON(
|
|
241
|
+
jsonString: string,
|
|
242
|
+
): SafeParseResult<
|
|
243
|
+
PatchStorageBucketLifecycleRuleRequestBody,
|
|
244
|
+
SDKValidationError
|
|
245
|
+
> {
|
|
246
|
+
return safeParse(
|
|
247
|
+
jsonString,
|
|
248
|
+
(x) =>
|
|
249
|
+
PatchStorageBucketLifecycleRuleRequestBody$inboundSchema.parse(
|
|
250
|
+
JSON.parse(x),
|
|
251
|
+
),
|
|
252
|
+
`Failed to parse 'PatchStorageBucketLifecycleRuleRequestBody' from JSON`,
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const PatchStorageBucketLifecycleRuleRequest$inboundSchema: z.ZodType<
|
|
258
|
+
PatchStorageBucketLifecycleRuleRequest,
|
|
259
|
+
z.ZodTypeDef,
|
|
260
|
+
unknown
|
|
261
|
+
> = z.object({
|
|
262
|
+
bucket_id: z.string(),
|
|
263
|
+
id: z.string(),
|
|
264
|
+
RequestBody: z.lazy(() =>
|
|
265
|
+
PatchStorageBucketLifecycleRuleRequestBody$inboundSchema
|
|
266
|
+
),
|
|
267
|
+
}).transform((v) => {
|
|
268
|
+
return remap$(v, {
|
|
269
|
+
"bucket_id": "bucketId",
|
|
270
|
+
"RequestBody": "requestBody",
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
/** @internal */
|
|
274
|
+
export type PatchStorageBucketLifecycleRuleRequest$Outbound = {
|
|
275
|
+
bucket_id: string;
|
|
276
|
+
id: string;
|
|
277
|
+
RequestBody: PatchStorageBucketLifecycleRuleRequestBody$Outbound;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const PatchStorageBucketLifecycleRuleRequest$outboundSchema: z.ZodType<
|
|
282
|
+
PatchStorageBucketLifecycleRuleRequest$Outbound,
|
|
283
|
+
z.ZodTypeDef,
|
|
284
|
+
PatchStorageBucketLifecycleRuleRequest
|
|
285
|
+
> = z.object({
|
|
286
|
+
bucketId: z.string(),
|
|
287
|
+
id: z.string(),
|
|
288
|
+
requestBody: z.lazy(() =>
|
|
289
|
+
PatchStorageBucketLifecycleRuleRequestBody$outboundSchema
|
|
290
|
+
),
|
|
291
|
+
}).transform((v) => {
|
|
292
|
+
return remap$(v, {
|
|
293
|
+
bucketId: "bucket_id",
|
|
294
|
+
requestBody: "RequestBody",
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
export function patchStorageBucketLifecycleRuleRequestToJSON(
|
|
299
|
+
patchStorageBucketLifecycleRuleRequest:
|
|
300
|
+
PatchStorageBucketLifecycleRuleRequest,
|
|
301
|
+
): string {
|
|
302
|
+
return JSON.stringify(
|
|
303
|
+
PatchStorageBucketLifecycleRuleRequest$outboundSchema.parse(
|
|
304
|
+
patchStorageBucketLifecycleRuleRequest,
|
|
305
|
+
),
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
export function patchStorageBucketLifecycleRuleRequestFromJSON(
|
|
309
|
+
jsonString: string,
|
|
310
|
+
): SafeParseResult<PatchStorageBucketLifecycleRuleRequest, SDKValidationError> {
|
|
311
|
+
return safeParse(
|
|
312
|
+
jsonString,
|
|
313
|
+
(x) =>
|
|
314
|
+
PatchStorageBucketLifecycleRuleRequest$inboundSchema.parse(JSON.parse(x)),
|
|
315
|
+
`Failed to parse 'PatchStorageBucketLifecycleRuleRequest' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const PatchStorageBucketLifecycleRuleResponse$inboundSchema: z.ZodType<
|
|
321
|
+
PatchStorageBucketLifecycleRuleResponse,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.object({
|
|
325
|
+
data: models.LifecycleRuleData$inboundSchema.optional(),
|
|
326
|
+
});
|
|
327
|
+
/** @internal */
|
|
328
|
+
export type PatchStorageBucketLifecycleRuleResponse$Outbound = {
|
|
329
|
+
data?: models.LifecycleRuleData$Outbound | undefined;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const PatchStorageBucketLifecycleRuleResponse$outboundSchema: z.ZodType<
|
|
334
|
+
PatchStorageBucketLifecycleRuleResponse$Outbound,
|
|
335
|
+
z.ZodTypeDef,
|
|
336
|
+
PatchStorageBucketLifecycleRuleResponse
|
|
337
|
+
> = z.object({
|
|
338
|
+
data: models.LifecycleRuleData$outboundSchema.optional(),
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
export function patchStorageBucketLifecycleRuleResponseToJSON(
|
|
342
|
+
patchStorageBucketLifecycleRuleResponse:
|
|
343
|
+
PatchStorageBucketLifecycleRuleResponse,
|
|
344
|
+
): string {
|
|
345
|
+
return JSON.stringify(
|
|
346
|
+
PatchStorageBucketLifecycleRuleResponse$outboundSchema.parse(
|
|
347
|
+
patchStorageBucketLifecycleRuleResponse,
|
|
348
|
+
),
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
export function patchStorageBucketLifecycleRuleResponseFromJSON(
|
|
352
|
+
jsonString: string,
|
|
353
|
+
): SafeParseResult<
|
|
354
|
+
PatchStorageBucketLifecycleRuleResponse,
|
|
355
|
+
SDKValidationError
|
|
356
|
+
> {
|
|
357
|
+
return safeParse(
|
|
358
|
+
jsonString,
|
|
359
|
+
(x) =>
|
|
360
|
+
PatchStorageBucketLifecycleRuleResponse$inboundSchema.parse(
|
|
361
|
+
JSON.parse(x),
|
|
362
|
+
),
|
|
363
|
+
`Failed to parse 'PatchStorageBucketLifecycleRuleResponse' from JSON`,
|
|
364
|
+
);
|
|
365
|
+
}
|
package/src/sdk/objectstorage.ts
CHANGED
|
@@ -13,10 +13,10 @@ import { objectStorageGetStorageBucketLifecycleRules } from "../funcs/objectStor
|
|
|
13
13
|
import { objectStorageGetStorageBucketMetrics } from "../funcs/objectStorageGetStorageBucketMetrics.js";
|
|
14
14
|
import { objectStorageGetStorageBuckets } from "../funcs/objectStorageGetStorageBuckets.js";
|
|
15
15
|
import { objectStorageGetStorageUsage } from "../funcs/objectStorageGetStorageUsage.js";
|
|
16
|
+
import { objectStoragePatchStorageBucketLifecycleRule } from "../funcs/objectStoragePatchStorageBucketLifecycleRule.js";
|
|
16
17
|
import { objectStoragePostStorageAccessKeys } from "../funcs/objectStoragePostStorageAccessKeys.js";
|
|
17
18
|
import { objectStoragePostStorageBucketLifecycleRules } from "../funcs/objectStoragePostStorageBucketLifecycleRules.js";
|
|
18
19
|
import { objectStoragePostStorageBuckets } from "../funcs/objectStoragePostStorageBuckets.js";
|
|
19
|
-
import { objectStoragePutStorageBucketLifecycleRule } from "../funcs/objectStoragePutStorageBucketLifecycleRule.js";
|
|
20
20
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
21
21
|
import * as models from "../models/index.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
@@ -228,16 +228,16 @@ export class ObjectStorage extends ClientSDK {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
231
|
+
* Delete lifecycle rule
|
|
232
232
|
*
|
|
233
233
|
* @remarks
|
|
234
|
-
*
|
|
234
|
+
* Deletes a lifecycle rule from an object storage bucket.
|
|
235
235
|
*/
|
|
236
|
-
async
|
|
237
|
-
request: operations.
|
|
236
|
+
async deleteStorageBucketLifecycleRule(
|
|
237
|
+
request: operations.DeleteStorageBucketLifecycleRuleRequest,
|
|
238
238
|
options?: RequestOptions,
|
|
239
|
-
): Promise<
|
|
240
|
-
return unwrapAsync(
|
|
239
|
+
): Promise<void> {
|
|
240
|
+
return unwrapAsync(objectStorageDeleteStorageBucketLifecycleRule(
|
|
241
241
|
this,
|
|
242
242
|
request,
|
|
243
243
|
options,
|
|
@@ -245,16 +245,16 @@ export class ObjectStorage extends ClientSDK {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
248
|
+
* Update lifecycle rule
|
|
249
249
|
*
|
|
250
250
|
* @remarks
|
|
251
|
-
*
|
|
251
|
+
* Updates an existing lifecycle rule for an object storage bucket.
|
|
252
252
|
*/
|
|
253
|
-
async
|
|
254
|
-
request: operations.
|
|
253
|
+
async patchStorageBucketLifecycleRule(
|
|
254
|
+
request: operations.PatchStorageBucketLifecycleRuleRequest,
|
|
255
255
|
options?: RequestOptions,
|
|
256
|
-
): Promise<
|
|
257
|
-
return unwrapAsync(
|
|
256
|
+
): Promise<operations.PatchStorageBucketLifecycleRuleResponse> {
|
|
257
|
+
return unwrapAsync(objectStoragePatchStorageBucketLifecycleRule(
|
|
258
258
|
this,
|
|
259
259
|
request,
|
|
260
260
|
options,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectStoragePutStorageBucketLifecycleRule.d.ts","sourceRoot":"","sources":["../../../src/funcs/objectStoragePutStorageBucketLifecycleRule.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0CAA0C,CACxD,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qCAAqC,EAC9C,MAAM,CAAC,WAAW,GAClB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectStoragePutStorageBucketLifecycleRule.js","sourceRoot":"","sources":["../../../src/funcs/objectStoragePutStorageBucketLifecycleRule.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod/v3").ZodType<operations.PutStorageBucketLifecycleRuleRequest, import("zod/v3").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$objectStoragePutStorageBucketLifecycleRule: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=objectStoragePutStorageBucketLifecycleRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectStoragePutStorageBucketLifecycleRule.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+CAA+C,EAAE,cAAc,CAC1E,OAAO,IAAI,CAyBZ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectStoragePutStorageBucketLifecycleRule.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/objectStoragePutStorageBucketLifecycleRule.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6HAAuH;AACvH,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kDAAkD;CACvE,CAAC;AAEW,QAAA,+CAA+C,GAExD;IACF,IAAI,EAAE,kDAAkD;IACxD,WAAW,EAAE;;iEAEkD;IAC/D,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0FAA0C,EACxE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|