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
|
@@ -1,357 +0,0 @@
|
|
|
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 PutStorageBucketLifecycleRuleType = {
|
|
14
|
-
LifecycleRules: "lifecycle_rules",
|
|
15
|
-
} as const;
|
|
16
|
-
export type PutStorageBucketLifecycleRuleType = ClosedEnum<
|
|
17
|
-
typeof PutStorageBucketLifecycleRuleType
|
|
18
|
-
>;
|
|
19
|
-
|
|
20
|
-
export type PutStorageBucketLifecycleRuleAttributes = {
|
|
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 PutStorageBucketLifecycleRuleData = {
|
|
48
|
-
type: PutStorageBucketLifecycleRuleType;
|
|
49
|
-
attributes: PutStorageBucketLifecycleRuleAttributes;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export type PutStorageBucketLifecycleRuleRequestBody = {
|
|
53
|
-
data: PutStorageBucketLifecycleRuleData;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type PutStorageBucketLifecycleRuleRequest = {
|
|
57
|
-
/**
|
|
58
|
-
* The object storage bucket ID
|
|
59
|
-
*/
|
|
60
|
-
bucketId: string;
|
|
61
|
-
/**
|
|
62
|
-
* The lifecycle rule ID
|
|
63
|
-
*/
|
|
64
|
-
id: string;
|
|
65
|
-
requestBody: PutStorageBucketLifecycleRuleRequestBody;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Success
|
|
70
|
-
*/
|
|
71
|
-
export type PutStorageBucketLifecycleRuleResponse = {
|
|
72
|
-
data?: models.LifecycleRuleData | undefined;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const PutStorageBucketLifecycleRuleType$inboundSchema: z.ZodNativeEnum<
|
|
77
|
-
typeof PutStorageBucketLifecycleRuleType
|
|
78
|
-
> = z.nativeEnum(PutStorageBucketLifecycleRuleType);
|
|
79
|
-
/** @internal */
|
|
80
|
-
export const PutStorageBucketLifecycleRuleType$outboundSchema: z.ZodNativeEnum<
|
|
81
|
-
typeof PutStorageBucketLifecycleRuleType
|
|
82
|
-
> = PutStorageBucketLifecycleRuleType$inboundSchema;
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
export const PutStorageBucketLifecycleRuleAttributes$inboundSchema: z.ZodType<
|
|
86
|
-
PutStorageBucketLifecycleRuleAttributes,
|
|
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 PutStorageBucketLifecycleRuleAttributes$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 PutStorageBucketLifecycleRuleAttributes$outboundSchema: z.ZodType<
|
|
115
|
-
PutStorageBucketLifecycleRuleAttributes$Outbound,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
PutStorageBucketLifecycleRuleAttributes
|
|
118
|
-
> = z.object({
|
|
119
|
-
name: z.string(),
|
|
120
|
-
enabled: z.boolean().optional(),
|
|
121
|
-
prefix: z.nullable(z.string()).optional(),
|
|
122
|
-
expirationDays: z.number().int().optional(),
|
|
123
|
-
noncurrentDays: z.nullable(z.number().int()).optional(),
|
|
124
|
-
abortMpuDaysAfterInitiation: z.nullable(z.number().int()).optional(),
|
|
125
|
-
}).transform((v) => {
|
|
126
|
-
return remap$(v, {
|
|
127
|
-
expirationDays: "expiration_days",
|
|
128
|
-
noncurrentDays: "noncurrent_days",
|
|
129
|
-
abortMpuDaysAfterInitiation: "abort_mpu_days_after_initiation",
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
export function putStorageBucketLifecycleRuleAttributesToJSON(
|
|
134
|
-
putStorageBucketLifecycleRuleAttributes:
|
|
135
|
-
PutStorageBucketLifecycleRuleAttributes,
|
|
136
|
-
): string {
|
|
137
|
-
return JSON.stringify(
|
|
138
|
-
PutStorageBucketLifecycleRuleAttributes$outboundSchema.parse(
|
|
139
|
-
putStorageBucketLifecycleRuleAttributes,
|
|
140
|
-
),
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
export function putStorageBucketLifecycleRuleAttributesFromJSON(
|
|
144
|
-
jsonString: string,
|
|
145
|
-
): SafeParseResult<
|
|
146
|
-
PutStorageBucketLifecycleRuleAttributes,
|
|
147
|
-
SDKValidationError
|
|
148
|
-
> {
|
|
149
|
-
return safeParse(
|
|
150
|
-
jsonString,
|
|
151
|
-
(x) =>
|
|
152
|
-
PutStorageBucketLifecycleRuleAttributes$inboundSchema.parse(
|
|
153
|
-
JSON.parse(x),
|
|
154
|
-
),
|
|
155
|
-
`Failed to parse 'PutStorageBucketLifecycleRuleAttributes' from JSON`,
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
export const PutStorageBucketLifecycleRuleData$inboundSchema: z.ZodType<
|
|
161
|
-
PutStorageBucketLifecycleRuleData,
|
|
162
|
-
z.ZodTypeDef,
|
|
163
|
-
unknown
|
|
164
|
-
> = z.object({
|
|
165
|
-
type: PutStorageBucketLifecycleRuleType$inboundSchema,
|
|
166
|
-
attributes: z.lazy(() =>
|
|
167
|
-
PutStorageBucketLifecycleRuleAttributes$inboundSchema
|
|
168
|
-
),
|
|
169
|
-
});
|
|
170
|
-
/** @internal */
|
|
171
|
-
export type PutStorageBucketLifecycleRuleData$Outbound = {
|
|
172
|
-
type: string;
|
|
173
|
-
attributes: PutStorageBucketLifecycleRuleAttributes$Outbound;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/** @internal */
|
|
177
|
-
export const PutStorageBucketLifecycleRuleData$outboundSchema: z.ZodType<
|
|
178
|
-
PutStorageBucketLifecycleRuleData$Outbound,
|
|
179
|
-
z.ZodTypeDef,
|
|
180
|
-
PutStorageBucketLifecycleRuleData
|
|
181
|
-
> = z.object({
|
|
182
|
-
type: PutStorageBucketLifecycleRuleType$outboundSchema,
|
|
183
|
-
attributes: z.lazy(() =>
|
|
184
|
-
PutStorageBucketLifecycleRuleAttributes$outboundSchema
|
|
185
|
-
),
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
export function putStorageBucketLifecycleRuleDataToJSON(
|
|
189
|
-
putStorageBucketLifecycleRuleData: PutStorageBucketLifecycleRuleData,
|
|
190
|
-
): string {
|
|
191
|
-
return JSON.stringify(
|
|
192
|
-
PutStorageBucketLifecycleRuleData$outboundSchema.parse(
|
|
193
|
-
putStorageBucketLifecycleRuleData,
|
|
194
|
-
),
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
export function putStorageBucketLifecycleRuleDataFromJSON(
|
|
198
|
-
jsonString: string,
|
|
199
|
-
): SafeParseResult<PutStorageBucketLifecycleRuleData, SDKValidationError> {
|
|
200
|
-
return safeParse(
|
|
201
|
-
jsonString,
|
|
202
|
-
(x) => PutStorageBucketLifecycleRuleData$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
-
`Failed to parse 'PutStorageBucketLifecycleRuleData' from JSON`,
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** @internal */
|
|
208
|
-
export const PutStorageBucketLifecycleRuleRequestBody$inboundSchema: z.ZodType<
|
|
209
|
-
PutStorageBucketLifecycleRuleRequestBody,
|
|
210
|
-
z.ZodTypeDef,
|
|
211
|
-
unknown
|
|
212
|
-
> = z.object({
|
|
213
|
-
data: z.lazy(() => PutStorageBucketLifecycleRuleData$inboundSchema),
|
|
214
|
-
});
|
|
215
|
-
/** @internal */
|
|
216
|
-
export type PutStorageBucketLifecycleRuleRequestBody$Outbound = {
|
|
217
|
-
data: PutStorageBucketLifecycleRuleData$Outbound;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
/** @internal */
|
|
221
|
-
export const PutStorageBucketLifecycleRuleRequestBody$outboundSchema: z.ZodType<
|
|
222
|
-
PutStorageBucketLifecycleRuleRequestBody$Outbound,
|
|
223
|
-
z.ZodTypeDef,
|
|
224
|
-
PutStorageBucketLifecycleRuleRequestBody
|
|
225
|
-
> = z.object({
|
|
226
|
-
data: z.lazy(() => PutStorageBucketLifecycleRuleData$outboundSchema),
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
export function putStorageBucketLifecycleRuleRequestBodyToJSON(
|
|
230
|
-
putStorageBucketLifecycleRuleRequestBody:
|
|
231
|
-
PutStorageBucketLifecycleRuleRequestBody,
|
|
232
|
-
): string {
|
|
233
|
-
return JSON.stringify(
|
|
234
|
-
PutStorageBucketLifecycleRuleRequestBody$outboundSchema.parse(
|
|
235
|
-
putStorageBucketLifecycleRuleRequestBody,
|
|
236
|
-
),
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
export function putStorageBucketLifecycleRuleRequestBodyFromJSON(
|
|
240
|
-
jsonString: string,
|
|
241
|
-
): SafeParseResult<
|
|
242
|
-
PutStorageBucketLifecycleRuleRequestBody,
|
|
243
|
-
SDKValidationError
|
|
244
|
-
> {
|
|
245
|
-
return safeParse(
|
|
246
|
-
jsonString,
|
|
247
|
-
(x) =>
|
|
248
|
-
PutStorageBucketLifecycleRuleRequestBody$inboundSchema.parse(
|
|
249
|
-
JSON.parse(x),
|
|
250
|
-
),
|
|
251
|
-
`Failed to parse 'PutStorageBucketLifecycleRuleRequestBody' from JSON`,
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/** @internal */
|
|
256
|
-
export const PutStorageBucketLifecycleRuleRequest$inboundSchema: z.ZodType<
|
|
257
|
-
PutStorageBucketLifecycleRuleRequest,
|
|
258
|
-
z.ZodTypeDef,
|
|
259
|
-
unknown
|
|
260
|
-
> = z.object({
|
|
261
|
-
bucket_id: z.string(),
|
|
262
|
-
id: z.string(),
|
|
263
|
-
RequestBody: z.lazy(() =>
|
|
264
|
-
PutStorageBucketLifecycleRuleRequestBody$inboundSchema
|
|
265
|
-
),
|
|
266
|
-
}).transform((v) => {
|
|
267
|
-
return remap$(v, {
|
|
268
|
-
"bucket_id": "bucketId",
|
|
269
|
-
"RequestBody": "requestBody",
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
/** @internal */
|
|
273
|
-
export type PutStorageBucketLifecycleRuleRequest$Outbound = {
|
|
274
|
-
bucket_id: string;
|
|
275
|
-
id: string;
|
|
276
|
-
RequestBody: PutStorageBucketLifecycleRuleRequestBody$Outbound;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
/** @internal */
|
|
280
|
-
export const PutStorageBucketLifecycleRuleRequest$outboundSchema: z.ZodType<
|
|
281
|
-
PutStorageBucketLifecycleRuleRequest$Outbound,
|
|
282
|
-
z.ZodTypeDef,
|
|
283
|
-
PutStorageBucketLifecycleRuleRequest
|
|
284
|
-
> = z.object({
|
|
285
|
-
bucketId: z.string(),
|
|
286
|
-
id: z.string(),
|
|
287
|
-
requestBody: z.lazy(() =>
|
|
288
|
-
PutStorageBucketLifecycleRuleRequestBody$outboundSchema
|
|
289
|
-
),
|
|
290
|
-
}).transform((v) => {
|
|
291
|
-
return remap$(v, {
|
|
292
|
-
bucketId: "bucket_id",
|
|
293
|
-
requestBody: "RequestBody",
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
|
|
297
|
-
export function putStorageBucketLifecycleRuleRequestToJSON(
|
|
298
|
-
putStorageBucketLifecycleRuleRequest: PutStorageBucketLifecycleRuleRequest,
|
|
299
|
-
): string {
|
|
300
|
-
return JSON.stringify(
|
|
301
|
-
PutStorageBucketLifecycleRuleRequest$outboundSchema.parse(
|
|
302
|
-
putStorageBucketLifecycleRuleRequest,
|
|
303
|
-
),
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
export function putStorageBucketLifecycleRuleRequestFromJSON(
|
|
307
|
-
jsonString: string,
|
|
308
|
-
): SafeParseResult<PutStorageBucketLifecycleRuleRequest, SDKValidationError> {
|
|
309
|
-
return safeParse(
|
|
310
|
-
jsonString,
|
|
311
|
-
(x) =>
|
|
312
|
-
PutStorageBucketLifecycleRuleRequest$inboundSchema.parse(JSON.parse(x)),
|
|
313
|
-
`Failed to parse 'PutStorageBucketLifecycleRuleRequest' from JSON`,
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/** @internal */
|
|
318
|
-
export const PutStorageBucketLifecycleRuleResponse$inboundSchema: z.ZodType<
|
|
319
|
-
PutStorageBucketLifecycleRuleResponse,
|
|
320
|
-
z.ZodTypeDef,
|
|
321
|
-
unknown
|
|
322
|
-
> = z.object({
|
|
323
|
-
data: models.LifecycleRuleData$inboundSchema.optional(),
|
|
324
|
-
});
|
|
325
|
-
/** @internal */
|
|
326
|
-
export type PutStorageBucketLifecycleRuleResponse$Outbound = {
|
|
327
|
-
data?: models.LifecycleRuleData$Outbound | undefined;
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
/** @internal */
|
|
331
|
-
export const PutStorageBucketLifecycleRuleResponse$outboundSchema: z.ZodType<
|
|
332
|
-
PutStorageBucketLifecycleRuleResponse$Outbound,
|
|
333
|
-
z.ZodTypeDef,
|
|
334
|
-
PutStorageBucketLifecycleRuleResponse
|
|
335
|
-
> = z.object({
|
|
336
|
-
data: models.LifecycleRuleData$outboundSchema.optional(),
|
|
337
|
-
});
|
|
338
|
-
|
|
339
|
-
export function putStorageBucketLifecycleRuleResponseToJSON(
|
|
340
|
-
putStorageBucketLifecycleRuleResponse: PutStorageBucketLifecycleRuleResponse,
|
|
341
|
-
): string {
|
|
342
|
-
return JSON.stringify(
|
|
343
|
-
PutStorageBucketLifecycleRuleResponse$outboundSchema.parse(
|
|
344
|
-
putStorageBucketLifecycleRuleResponse,
|
|
345
|
-
),
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
|
-
export function putStorageBucketLifecycleRuleResponseFromJSON(
|
|
349
|
-
jsonString: string,
|
|
350
|
-
): SafeParseResult<PutStorageBucketLifecycleRuleResponse, SDKValidationError> {
|
|
351
|
-
return safeParse(
|
|
352
|
-
jsonString,
|
|
353
|
-
(x) =>
|
|
354
|
-
PutStorageBucketLifecycleRuleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
355
|
-
`Failed to parse 'PutStorageBucketLifecycleRuleResponse' from JSON`,
|
|
356
|
-
);
|
|
357
|
-
}
|