@opsregistry/contracts 0.0.4 → 0.0.6
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 +15 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/it/access-authorize.d.ts +58 -0
- package/dist/it/access-authorize.d.ts.map +1 -0
- package/dist/it/access-authorize.js +23 -0
- package/dist/it/access-authorize.js.map +1 -0
- package/dist/it/access-policy-evaluate.d.ts +69 -0
- package/dist/it/access-policy-evaluate.d.ts.map +1 -0
- package/dist/it/access-policy-evaluate.js +27 -0
- package/dist/it/access-policy-evaluate.js.map +1 -0
- package/dist/it/iam-common.d.ts +127 -0
- package/dist/it/iam-common.d.ts.map +1 -0
- package/dist/it/iam-common.js +87 -0
- package/dist/it/iam-common.js.map +1 -0
- package/dist/it/identity-authenticate.d.ts +115 -0
- package/dist/it/identity-authenticate.d.ts.map +1 -0
- package/dist/it/identity-authenticate.js +29 -0
- package/dist/it/identity-authenticate.js.map +1 -0
- package/dist/it/identity-token-refresh.d.ts +143 -0
- package/dist/it/identity-token-refresh.d.ts.map +1 -0
- package/dist/it/identity-token-refresh.js +19 -0
- package/dist/it/identity-token-refresh.js.map +1 -0
- package/dist/it/identity-token-revoke.d.ts +93 -0
- package/dist/it/identity-token-revoke.d.ts.map +1 -0
- package/dist/it/identity-token-revoke.js +26 -0
- package/dist/it/identity-token-revoke.js.map +1 -0
- package/dist/storage/object-upload-file.d.ts +2 -0
- package/dist/storage/object-upload-file.d.ts.map +1 -1
- package/dist/storage/object-upload-file.js +2 -1
- package/dist/storage/object-upload-file.js.map +1 -1
- package/dist/storage/website-common.d.ts +52 -0
- package/dist/storage/website-common.d.ts.map +1 -0
- package/dist/storage/website-common.js +29 -0
- package/dist/storage/website-common.js.map +1 -0
- package/dist/storage/website-delete.d.ts +22 -0
- package/dist/storage/website-delete.d.ts.map +1 -0
- package/dist/storage/website-delete.js +12 -0
- package/dist/storage/website-delete.js.map +1 -0
- package/dist/storage/website-get.d.ts +48 -0
- package/dist/storage/website-get.d.ts.map +1 -0
- package/dist/storage/website-get.js +13 -0
- package/dist/storage/website-get.js.map +1 -0
- package/dist/storage/website-put.d.ts +49 -0
- package/dist/storage/website-put.d.ts.map +1 -0
- package/dist/storage/website-put.js +14 -0
- package/dist/storage/website-put.js.map +1 -0
- package/package.json +43 -3
- package/dist/storage/object-storage-delete-file.d.ts +0 -23
- package/dist/storage/object-storage-delete-file.d.ts.map +0 -1
- package/dist/storage/object-storage-delete-file.js +0 -13
- package/dist/storage/object-storage-delete-file.js.map +0 -1
- package/dist/storage/object-storage-list-objects.d.ts +0 -46
- package/dist/storage/object-storage-list-objects.d.ts.map +0 -1
- package/dist/storage/object-storage-list-objects.js +0 -26
- package/dist/storage/object-storage-list-objects.js.map +0 -1
- package/dist/storage/object-storage-upload-file.d.ts +0 -35
- package/dist/storage/object-storage-upload-file.d.ts.map +0 -1
- package/dist/storage/object-storage-upload-file.js +0 -21
- package/dist/storage/object-storage-upload-file.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { s3BucketRefSchema } from './object-storage-common.js';
|
|
3
|
+
import { storageWebsiteConfigurationSchema } from './website-common.js';
|
|
4
|
+
export const operationCode = 'storage.website.put';
|
|
5
|
+
export const putBucketWebsiteInputSchema = z.object({
|
|
6
|
+
bucketRef: s3BucketRefSchema,
|
|
7
|
+
configuration: storageWebsiteConfigurationSchema
|
|
8
|
+
});
|
|
9
|
+
export const putBucketWebsiteResultSchema = z.object({
|
|
10
|
+
operationCode: z.literal(operationCode),
|
|
11
|
+
bucket: z.string().min(1),
|
|
12
|
+
routingRules: z.number().int().nonnegative()
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=website-put.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-put.js","sourceRoot":"","sources":["../../src/storage/website-put.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,qBAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,iCAAiC;CAChD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC5C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opsregistry/contracts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Operation specifications and shared schemas for opsregistry.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -75,6 +75,46 @@
|
|
|
75
75
|
"./storage/object-list": {
|
|
76
76
|
"types": "./dist/storage/object-list.d.ts",
|
|
77
77
|
"import": "./dist/storage/object-list.js"
|
|
78
|
+
},
|
|
79
|
+
"./storage/website-common": {
|
|
80
|
+
"types": "./dist/storage/website-common.d.ts",
|
|
81
|
+
"import": "./dist/storage/website-common.js"
|
|
82
|
+
},
|
|
83
|
+
"./storage/website-put": {
|
|
84
|
+
"types": "./dist/storage/website-put.d.ts",
|
|
85
|
+
"import": "./dist/storage/website-put.js"
|
|
86
|
+
},
|
|
87
|
+
"./storage/website-get": {
|
|
88
|
+
"types": "./dist/storage/website-get.d.ts",
|
|
89
|
+
"import": "./dist/storage/website-get.js"
|
|
90
|
+
},
|
|
91
|
+
"./storage/website-delete": {
|
|
92
|
+
"types": "./dist/storage/website-delete.d.ts",
|
|
93
|
+
"import": "./dist/storage/website-delete.js"
|
|
94
|
+
},
|
|
95
|
+
"./it/iam-common": {
|
|
96
|
+
"types": "./dist/it/iam-common.d.ts",
|
|
97
|
+
"import": "./dist/it/iam-common.js"
|
|
98
|
+
},
|
|
99
|
+
"./it/identity-authenticate": {
|
|
100
|
+
"types": "./dist/it/identity-authenticate.d.ts",
|
|
101
|
+
"import": "./dist/it/identity-authenticate.js"
|
|
102
|
+
},
|
|
103
|
+
"./it/identity-token-refresh": {
|
|
104
|
+
"types": "./dist/it/identity-token-refresh.d.ts",
|
|
105
|
+
"import": "./dist/it/identity-token-refresh.js"
|
|
106
|
+
},
|
|
107
|
+
"./it/identity-token-revoke": {
|
|
108
|
+
"types": "./dist/it/identity-token-revoke.d.ts",
|
|
109
|
+
"import": "./dist/it/identity-token-revoke.js"
|
|
110
|
+
},
|
|
111
|
+
"./it/access-authorize": {
|
|
112
|
+
"types": "./dist/it/access-authorize.d.ts",
|
|
113
|
+
"import": "./dist/it/access-authorize.js"
|
|
114
|
+
},
|
|
115
|
+
"./it/access-policy-evaluate": {
|
|
116
|
+
"types": "./dist/it/access-policy-evaluate.d.ts",
|
|
117
|
+
"import": "./dist/it/access-policy-evaluate.js"
|
|
78
118
|
}
|
|
79
119
|
},
|
|
80
120
|
"scripts": {
|
|
@@ -82,9 +122,9 @@
|
|
|
82
122
|
"check": "tsc -p tsconfig.json --noEmit"
|
|
83
123
|
},
|
|
84
124
|
"dependencies": {
|
|
85
|
-
"zod": "
|
|
125
|
+
"zod": "4.4.3"
|
|
86
126
|
},
|
|
87
127
|
"devDependencies": {
|
|
88
|
-
"typescript": "
|
|
128
|
+
"typescript": "6.0.3"
|
|
89
129
|
}
|
|
90
130
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode: "storage.objectStorage.deleteFile";
|
|
3
|
-
export declare const deleteFileInputSchema: z.ZodObject<{
|
|
4
|
-
bucketRef: z.ZodObject<{
|
|
5
|
-
bucket: z.ZodString;
|
|
6
|
-
region: z.ZodString;
|
|
7
|
-
endpointUrl: z.ZodString;
|
|
8
|
-
credentials: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
accessKeyId: z.ZodString;
|
|
10
|
-
secretAccessKey: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
key: z.ZodString;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const deleteFileResultSchema: z.ZodObject<{
|
|
17
|
-
operationCode: z.ZodLiteral<"storage.objectStorage.deleteFile">;
|
|
18
|
-
key: z.ZodString;
|
|
19
|
-
deleted: z.ZodBoolean;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type DeleteFileInput = z.infer<typeof deleteFileInputSchema>;
|
|
22
|
-
export type DeleteFileResult = z.infer<typeof deleteFileResultSchema>;
|
|
23
|
-
//# sourceMappingURL=object-storage-delete-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-delete-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-storage-delete-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,kCAA2C,CAAC;AAEzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { s3BucketRefSchema } from './object-storage-common.js';
|
|
3
|
-
export const operationCode = 'storage.objectStorage.deleteFile';
|
|
4
|
-
export const deleteFileInputSchema = z.object({
|
|
5
|
-
bucketRef: s3BucketRefSchema,
|
|
6
|
-
key: z.string().min(1)
|
|
7
|
-
});
|
|
8
|
-
export const deleteFileResultSchema = z.object({
|
|
9
|
-
operationCode: z.literal(operationCode),
|
|
10
|
-
key: z.string().min(1),
|
|
11
|
-
deleted: z.boolean()
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=object-storage-delete-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-delete-file.js","sourceRoot":"","sources":["../../src/storage/object-storage-delete-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,kCAA2C,CAAC;AAEzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iBAAiB;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode: "storage.objectStorage.listObjects";
|
|
3
|
-
export declare const listObjectsOptionsSchema: z.ZodObject<{
|
|
4
|
-
prefix: z.ZodDefault<z.ZodString>;
|
|
5
|
-
maxKeys: z.ZodDefault<z.ZodNumber>;
|
|
6
|
-
continuationToken: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare const listObjectsInputSchema: z.ZodObject<{
|
|
9
|
-
bucketRef: z.ZodObject<{
|
|
10
|
-
bucket: z.ZodString;
|
|
11
|
-
region: z.ZodString;
|
|
12
|
-
endpointUrl: z.ZodString;
|
|
13
|
-
credentials: z.ZodOptional<z.ZodObject<{
|
|
14
|
-
accessKeyId: z.ZodString;
|
|
15
|
-
secretAccessKey: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
20
|
-
prefix: z.ZodDefault<z.ZodString>;
|
|
21
|
-
maxKeys: z.ZodDefault<z.ZodNumber>;
|
|
22
|
-
continuationToken: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export declare const objectInfoSchema: z.ZodObject<{
|
|
26
|
-
key: z.ZodString;
|
|
27
|
-
size: z.ZodNumber;
|
|
28
|
-
etag: z.ZodString;
|
|
29
|
-
lastModified: z.ZodString;
|
|
30
|
-
storageClass: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export declare const listObjectsResultSchema: z.ZodObject<{
|
|
33
|
-
operationCode: z.ZodLiteral<"storage.objectStorage.listObjects">;
|
|
34
|
-
objects: z.ZodArray<z.ZodObject<{
|
|
35
|
-
key: z.ZodString;
|
|
36
|
-
size: z.ZodNumber;
|
|
37
|
-
etag: z.ZodString;
|
|
38
|
-
lastModified: z.ZodString;
|
|
39
|
-
storageClass: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
nextContinuationToken: z.ZodOptional<z.ZodString>;
|
|
42
|
-
isTruncated: z.ZodBoolean;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
export type ListObjectsInput = z.infer<typeof listObjectsInputSchema>;
|
|
45
|
-
export type ListObjectsResult = z.infer<typeof listObjectsResultSchema>;
|
|
46
|
-
//# sourceMappingURL=object-storage-list-objects.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-list-objects.d.ts","sourceRoot":"","sources":["../../src/storage/object-storage-list-objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,mCAA4C,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;iBAM3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { s3BucketRefSchema } from './object-storage-common.js';
|
|
3
|
-
export const operationCode = 'storage.objectStorage.listObjects';
|
|
4
|
-
export const listObjectsOptionsSchema = z.object({
|
|
5
|
-
prefix: z.string().default(''),
|
|
6
|
-
maxKeys: z.number().int().positive().default(100),
|
|
7
|
-
continuationToken: z.string().optional()
|
|
8
|
-
});
|
|
9
|
-
export const listObjectsInputSchema = z.object({
|
|
10
|
-
bucketRef: s3BucketRefSchema,
|
|
11
|
-
options: listObjectsOptionsSchema.optional()
|
|
12
|
-
});
|
|
13
|
-
export const objectInfoSchema = z.object({
|
|
14
|
-
key: z.string().min(1),
|
|
15
|
-
size: z.number().int().nonnegative(),
|
|
16
|
-
etag: z.string().min(1),
|
|
17
|
-
lastModified: z.string().min(1),
|
|
18
|
-
storageClass: z.string().optional()
|
|
19
|
-
});
|
|
20
|
-
export const listObjectsResultSchema = z.object({
|
|
21
|
-
operationCode: z.literal(operationCode),
|
|
22
|
-
objects: z.array(objectInfoSchema),
|
|
23
|
-
nextContinuationToken: z.string().optional(),
|
|
24
|
-
isTruncated: z.boolean()
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=object-storage-list-objects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-list-objects.js","sourceRoot":"","sources":["../../src/storage/object-storage-list-objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,mCAA4C,CAAC;AAE1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC;IACjD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAClC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const operationCode: "storage.objectStorage.uploadFile";
|
|
3
|
-
export declare const uploadFileOptionsSchema: z.ZodObject<{
|
|
4
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
5
|
-
cacheControl: z.ZodOptional<z.ZodString>;
|
|
6
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare const uploadFileInputSchema: z.ZodObject<{
|
|
9
|
-
bucketRef: z.ZodObject<{
|
|
10
|
-
bucket: z.ZodString;
|
|
11
|
-
region: z.ZodString;
|
|
12
|
-
endpointUrl: z.ZodString;
|
|
13
|
-
credentials: z.ZodOptional<z.ZodObject<{
|
|
14
|
-
accessKeyId: z.ZodString;
|
|
15
|
-
secretAccessKey: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
targetKey: z.ZodString;
|
|
20
|
-
fileContent: z.ZodString;
|
|
21
|
-
options: z.ZodDefault<z.ZodObject<{
|
|
22
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
23
|
-
cacheControl: z.ZodOptional<z.ZodString>;
|
|
24
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export declare const uploadFileResultSchema: z.ZodObject<{
|
|
28
|
-
operationCode: z.ZodLiteral<"storage.objectStorage.uploadFile">;
|
|
29
|
-
key: z.ZodString;
|
|
30
|
-
etag: z.ZodString;
|
|
31
|
-
storageClass: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type UploadFileInput = z.infer<typeof uploadFileInputSchema>;
|
|
34
|
-
export type UploadFileResult = z.infer<typeof uploadFileResultSchema>;
|
|
35
|
-
//# sourceMappingURL=object-storage-upload-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-upload-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-storage-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,kCAA2C,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { s3BucketRefSchema } from './object-storage-common.js';
|
|
3
|
-
export const operationCode = 'storage.objectStorage.uploadFile';
|
|
4
|
-
export const uploadFileOptionsSchema = z.object({
|
|
5
|
-
contentType: z.string().optional(),
|
|
6
|
-
cacheControl: z.string().optional(),
|
|
7
|
-
metadata: z.record(z.string(), z.string()).optional()
|
|
8
|
-
});
|
|
9
|
-
export const uploadFileInputSchema = z.object({
|
|
10
|
-
bucketRef: s3BucketRefSchema,
|
|
11
|
-
targetKey: z.string().min(1),
|
|
12
|
-
fileContent: z.string().min(1),
|
|
13
|
-
options: uploadFileOptionsSchema.default({})
|
|
14
|
-
});
|
|
15
|
-
export const uploadFileResultSchema = z.object({
|
|
16
|
-
operationCode: z.literal(operationCode),
|
|
17
|
-
key: z.string().min(1),
|
|
18
|
-
etag: z.string().min(1),
|
|
19
|
-
storageClass: z.string().optional()
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=object-storage-upload-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-storage-upload-file.js","sourceRoot":"","sources":["../../src/storage/object-storage-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,kCAA2C,CAAC;AAEzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|