@opsregistry/contracts 0.0.4 → 0.0.5

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 (38) hide show
  1. package/README.md +15 -0
  2. package/dist/index.d.ts +4 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/storage/object-upload-file.d.ts +2 -0
  7. package/dist/storage/object-upload-file.d.ts.map +1 -1
  8. package/dist/storage/object-upload-file.js +2 -1
  9. package/dist/storage/object-upload-file.js.map +1 -1
  10. package/dist/storage/website-common.d.ts +52 -0
  11. package/dist/storage/website-common.d.ts.map +1 -0
  12. package/dist/storage/website-common.js +29 -0
  13. package/dist/storage/website-common.js.map +1 -0
  14. package/dist/storage/website-delete.d.ts +22 -0
  15. package/dist/storage/website-delete.d.ts.map +1 -0
  16. package/dist/storage/website-delete.js +12 -0
  17. package/dist/storage/website-delete.js.map +1 -0
  18. package/dist/storage/website-get.d.ts +48 -0
  19. package/dist/storage/website-get.d.ts.map +1 -0
  20. package/dist/storage/website-get.js +13 -0
  21. package/dist/storage/website-get.js.map +1 -0
  22. package/dist/storage/website-put.d.ts +49 -0
  23. package/dist/storage/website-put.d.ts.map +1 -0
  24. package/dist/storage/website-put.js +14 -0
  25. package/dist/storage/website-put.js.map +1 -0
  26. package/package.json +19 -3
  27. package/dist/storage/object-storage-delete-file.d.ts +0 -23
  28. package/dist/storage/object-storage-delete-file.d.ts.map +0 -1
  29. package/dist/storage/object-storage-delete-file.js +0 -13
  30. package/dist/storage/object-storage-delete-file.js.map +0 -1
  31. package/dist/storage/object-storage-list-objects.d.ts +0 -46
  32. package/dist/storage/object-storage-list-objects.d.ts.map +0 -1
  33. package/dist/storage/object-storage-list-objects.js +0 -26
  34. package/dist/storage/object-storage-list-objects.js.map +0 -1
  35. package/dist/storage/object-storage-upload-file.d.ts +0 -35
  36. package/dist/storage/object-storage-upload-file.d.ts.map +0 -1
  37. package/dist/storage/object-storage-upload-file.js +0 -21
  38. package/dist/storage/object-storage-upload-file.js.map +0 -1
package/README.md CHANGED
@@ -24,6 +24,15 @@
24
24
  - `finance.fiscalReceipt.create`
25
25
  - `finance.fiscalReceipt.getStatus`
26
26
 
27
+ И первые спецификации из домена S3-совместимого объектного хранилища:
28
+
29
+ - `storage.object.uploadFile`
30
+ - `storage.object.deleteFile`
31
+ - `storage.object.list`
32
+ - `storage.website.put`
33
+ - `storage.website.get`
34
+ - `storage.website.delete`
35
+
27
36
  Каждая операция экспортирует:
28
37
 
29
38
  - `operationCode`
@@ -70,3 +79,9 @@ import {
70
79
  - `finance.billPayment.create` для оплаты услуг внешнего поставщика.
71
80
 
72
81
  Если меняется только метод оплаты внутри merchant checkout, например карта или СБП QR, это параметр `finance.merchantPayment.*`, а не отдельный провайдерский код операции.
82
+
83
+ ## Граница storage website операций
84
+
85
+ `storage.object.*` описывает работу с объектами внутри бакета: загрузить файл, удалить файл, получить список объектов. Опциональный `websiteRedirectLocation` в `storage.object.uploadFile` отражает object-level redirect header и зависит от поддержки конкретного S3-провайдера.
86
+
87
+ `storage.website.*` описывает конфигурацию static website hosting на уровне бакета: index/error documents, redirect-all requests и routing rules. Эти операции отделены от object-операций, потому что меняют настройки сайта целиком, а не отдельный файл.
package/dist/index.d.ts CHANGED
@@ -13,4 +13,8 @@ export * as storageObjectStorageCommon from './storage/object-storage-common.js'
13
13
  export * as storageObjectUploadFile from './storage/object-upload-file.js';
14
14
  export * as storageObjectDeleteFile from './storage/object-delete-file.js';
15
15
  export * as storageObjectList from './storage/object-list.js';
16
+ export * as storageWebsiteCommon from './storage/website-common.js';
17
+ export * as storageWebsitePut from './storage/website-put.js';
18
+ export * as storageWebsiteGet from './storage/website-get.js';
19
+ export * as storageWebsiteDelete from './storage/website-delete.js';
16
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mapp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C,CAAC;AACnF,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,0BAA0B,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -13,4 +13,8 @@ export * as storageObjectStorageCommon from './storage/object-storage-common.js'
13
13
  export * as storageObjectUploadFile from './storage/object-upload-file.js';
14
14
  export * as storageObjectDeleteFile from './storage/object-delete-file.js';
15
15
  export * as storageObjectList from './storage/object-list.js';
16
+ export * as storageWebsiteCommon from './storage/website-common.js';
17
+ export * as storageWebsitePut from './storage/website-put.js';
18
+ export * as storageWebsiteGet from './storage/website-get.js';
19
+ export * as storageWebsiteDelete from './storage/website-delete.js';
16
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,sBAAsB,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,sBAAsB,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,oBAAoB,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K,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC"}
@@ -4,6 +4,7 @@ export declare const uploadFileOptionsSchema: z.ZodObject<{
4
4
  contentType: z.ZodOptional<z.ZodString>;
5
5
  cacheControl: z.ZodOptional<z.ZodString>;
6
6
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
+ websiteRedirectLocation: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$strip>;
8
9
  export declare const uploadFileInputSchema: z.ZodObject<{
9
10
  bucketRef: z.ZodObject<{
@@ -22,6 +23,7 @@ export declare const uploadFileInputSchema: z.ZodObject<{
22
23
  contentType: z.ZodOptional<z.ZodString>;
23
24
  cacheControl: z.ZodOptional<z.ZodString>;
24
25
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
+ websiteRedirectLocation: z.ZodOptional<z.ZodString>;
25
27
  }, z.core.$strip>>;
26
28
  }, z.core.$strip>;
27
29
  export declare const uploadFileResultSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"object-upload-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,2BAAoC,CAAC;AAElE,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
+ {"version":3,"file":"object-upload-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,2BAAoC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;iBAKlC,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"}
@@ -4,7 +4,8 @@ export const operationCode = 'storage.object.uploadFile';
4
4
  export const uploadFileOptionsSchema = z.object({
5
5
  contentType: z.string().optional(),
6
6
  cacheControl: z.string().optional(),
7
- metadata: z.record(z.string(), z.string()).optional()
7
+ metadata: z.record(z.string(), z.string()).optional(),
8
+ websiteRedirectLocation: z.string().min(1).optional()
8
9
  });
9
10
  export const uploadFileInputSchema = z.object({
10
11
  bucketRef: s3BucketRefSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"object-upload-file.js","sourceRoot":"","sources":["../../src/storage/object-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,2BAAoC,CAAC;AAElE,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,MAA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AAC,QAAQ,EAAE;IACrD,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,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"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ export declare const storageWebsiteProtocolSchema: z.ZodEnum<{
3
+ http: "http";
4
+ https: "https";
5
+ }>;
6
+ export declare const storageWebsiteRedirectRuleSchema: z.ZodObject<{
7
+ condition: z.ZodOptional<z.ZodObject<{
8
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
9
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>>;
11
+ redirect: z.ZodObject<{
12
+ hostName: z.ZodOptional<z.ZodString>;
13
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
14
+ protocol: z.ZodOptional<z.ZodEnum<{
15
+ http: "http";
16
+ https: "https";
17
+ }>>;
18
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
19
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
22
+ export declare const storageWebsiteConfigurationSchema: z.ZodObject<{
23
+ indexDocument: z.ZodOptional<z.ZodString>;
24
+ errorDocument: z.ZodOptional<z.ZodString>;
25
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
26
+ hostName: z.ZodString;
27
+ protocol: z.ZodOptional<z.ZodEnum<{
28
+ http: "http";
29
+ https: "https";
30
+ }>>;
31
+ }, z.core.$strip>>;
32
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
+ condition: z.ZodOptional<z.ZodObject<{
34
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
35
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ redirect: z.ZodObject<{
38
+ hostName: z.ZodOptional<z.ZodString>;
39
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
40
+ protocol: z.ZodOptional<z.ZodEnum<{
41
+ http: "http";
42
+ https: "https";
43
+ }>>;
44
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
45
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strip>>>;
48
+ }, z.core.$strip>;
49
+ export type StorageWebsiteProtocol = z.infer<typeof storageWebsiteProtocolSchema>;
50
+ export type StorageWebsiteRedirectRule = z.infer<typeof storageWebsiteRedirectRuleSchema>;
51
+ export type StorageWebsiteConfiguration = z.infer<typeof storageWebsiteConfigurationSchema>;
52
+ //# sourceMappingURL=website-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-common.d.ts","sourceRoot":"","sources":["../../src/storage/website-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B;;;EAA4B,CAAC;AAEtE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;iBAc3C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU5C,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export const storageWebsiteProtocolSchema = z.enum(['http', 'https']);
3
+ export const storageWebsiteRedirectRuleSchema = z.object({
4
+ condition: z
5
+ .object({
6
+ keyPrefixEquals: z.string().optional(),
7
+ httpErrorCodeReturnedEquals: z.string().optional()
8
+ })
9
+ .optional(),
10
+ redirect: z.object({
11
+ hostName: z.string().optional(),
12
+ httpRedirectCode: z.string().optional(),
13
+ protocol: storageWebsiteProtocolSchema.optional(),
14
+ replaceKeyPrefixWith: z.string().optional(),
15
+ replaceKeyWith: z.string().optional()
16
+ })
17
+ });
18
+ export const storageWebsiteConfigurationSchema = z.object({
19
+ indexDocument: z.string().min(1).optional(),
20
+ errorDocument: z.string().min(1).optional(),
21
+ redirectAllRequestsTo: z
22
+ .object({
23
+ hostName: z.string().min(1),
24
+ protocol: storageWebsiteProtocolSchema.optional()
25
+ })
26
+ .optional(),
27
+ routingRules: z.array(storageWebsiteRedirectRuleSchema).default([])
28
+ });
29
+ //# sourceMappingURL=website-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-common.js","sourceRoot":"","sources":["../../src/storage/website-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAA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@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.delete";
3
+ export declare const deleteBucketWebsiteInputSchema: 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
+ }, z.core.$strip>;
15
+ export declare const deleteBucketWebsiteResultSchema: z.ZodObject<{
16
+ operationCode: z.ZodLiteral<"storage.website.delete">;
17
+ bucket: z.ZodString;
18
+ deleted: z.ZodLiteral<true>;
19
+ }, z.core.$strip>;
20
+ export type DeleteBucketWebsiteInput = z.infer<typeof deleteBucketWebsiteInputSchema>;
21
+ export type DeleteBucketWebsiteResult = z.infer<typeof deleteBucketWebsiteResultSchema>;
22
+ //# sourceMappingURL=website-delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-delete.d.ts","sourceRoot":"","sources":["../../src/storage/website-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,wBAAiC,CAAC;AAE/D,eAAO,MAAM,8BAA8B;;;;;;;;;;;iBAEzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { s3BucketRefSchema } from './object-storage-common.js';
3
+ export const operationCode = 'storage.website.delete';
4
+ export const deleteBucketWebsiteInputSchema = z.object({
5
+ bucketRef: s3BucketRefSchema
6
+ });
7
+ export const deleteBucketWebsiteResultSchema = z.object({
8
+ operationCode: z.literal(operationCode),
9
+ bucket: z.string().min(1),
10
+ deleted: z.literal(true)
11
+ });
12
+ //# sourceMappingURL=website-delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-delete.js","sourceRoot":"","sources":["../../src/storage/website-delete.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,wBAAiC,CAAC;AAE/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,iBAAiB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACxB,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.get";
3
+ export declare const getBucketWebsiteInputSchema: 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
+ }, z.core.$strip>;
15
+ export declare const getBucketWebsiteResultSchema: z.ZodObject<{
16
+ operationCode: z.ZodLiteral<"storage.website.get">;
17
+ bucket: z.ZodString;
18
+ configuration: z.ZodObject<{
19
+ indexDocument: z.ZodOptional<z.ZodString>;
20
+ errorDocument: z.ZodOptional<z.ZodString>;
21
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
22
+ hostName: z.ZodString;
23
+ protocol: z.ZodOptional<z.ZodEnum<{
24
+ http: "http";
25
+ https: "https";
26
+ }>>;
27
+ }, z.core.$strip>>;
28
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
+ condition: z.ZodOptional<z.ZodObject<{
30
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
31
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ redirect: z.ZodObject<{
34
+ hostName: z.ZodOptional<z.ZodString>;
35
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
36
+ protocol: z.ZodOptional<z.ZodEnum<{
37
+ http: "http";
38
+ https: "https";
39
+ }>>;
40
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
41
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>>>;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>;
46
+ export type GetBucketWebsiteInput = z.infer<typeof getBucketWebsiteInputSchema>;
47
+ export type GetBucketWebsiteResult = z.infer<typeof getBucketWebsiteResultSchema>;
48
+ //# sourceMappingURL=website-get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-get.d.ts","sourceRoot":"","sources":["../../src/storage/website-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,EAAG,qBAA8B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,13 @@
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.get';
5
+ export const getBucketWebsiteInputSchema = z.object({
6
+ bucketRef: s3BucketRefSchema
7
+ });
8
+ export const getBucketWebsiteResultSchema = z.object({
9
+ operationCode: z.literal(operationCode),
10
+ bucket: z.string().min(1),
11
+ configuration: storageWebsiteConfigurationSchema
12
+ });
13
+ //# sourceMappingURL=website-get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-get.js","sourceRoot":"","sources":["../../src/storage/website-get.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;CAC5B,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,aAAa,EAAE,iCAAiC;CAChD,CAAC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.put";
3
+ export declare const putBucketWebsiteInputSchema: 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
+ configuration: z.ZodObject<{
15
+ indexDocument: z.ZodOptional<z.ZodString>;
16
+ errorDocument: z.ZodOptional<z.ZodString>;
17
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
18
+ hostName: z.ZodString;
19
+ protocol: z.ZodOptional<z.ZodEnum<{
20
+ http: "http";
21
+ https: "https";
22
+ }>>;
23
+ }, z.core.$strip>>;
24
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
+ condition: z.ZodOptional<z.ZodObject<{
26
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
27
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ redirect: z.ZodObject<{
30
+ hostName: z.ZodOptional<z.ZodString>;
31
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
32
+ protocol: z.ZodOptional<z.ZodEnum<{
33
+ http: "http";
34
+ https: "https";
35
+ }>>;
36
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
37
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>>>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ export declare const putBucketWebsiteResultSchema: z.ZodObject<{
43
+ operationCode: z.ZodLiteral<"storage.website.put">;
44
+ bucket: z.ZodString;
45
+ routingRules: z.ZodNumber;
46
+ }, z.core.$strip>;
47
+ export type PutBucketWebsiteInput = z.infer<typeof putBucketWebsiteInputSchema>;
48
+ export type PutBucketWebsiteResult = z.infer<typeof putBucketWebsiteResultSchema>;
49
+ //# sourceMappingURL=website-put.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-put.d.ts","sourceRoot":"","sources":["../../src/storage/website-put.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,EAAG,qBAA8B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -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.4",
3
+ "version": "0.0.5",
4
4
  "description": "Operation specifications and shared schemas for opsregistry.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -75,6 +75,22 @@
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"
78
94
  }
79
95
  },
80
96
  "scripts": {
@@ -82,9 +98,9 @@
82
98
  "check": "tsc -p tsconfig.json --noEmit"
83
99
  },
84
100
  "dependencies": {
85
- "zod": "^4.4.3"
101
+ "zod": "4.4.3"
86
102
  },
87
103
  "devDependencies": {
88
- "typescript": "^6.0.3"
104
+ "typescript": "6.0.3"
89
105
  }
90
106
  }
@@ -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,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