@veruna/api-contracts 1.0.17 → 1.0.19
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/build/controllers/ai-provider.controllers.d.ts +5 -0
- package/build/controllers/ai-provider.controllers.js +8 -0
- package/build/controllers/file.controllers.d.ts +5 -0
- package/build/controllers/file.controllers.js +8 -0
- package/build/controllers/index.d.ts +2 -0
- package/build/controllers/index.js +6 -1
- package/build/rest-api.d.ts +23 -0
- package/build/rest-api.js +28 -0
- package/build/routes/ai-provider-admin.routes.d.ts +11 -0
- package/build/routes/ai-provider-admin.routes.js +14 -0
- package/build/routes/ai-provider-public.routes.d.ts +7 -0
- package/build/routes/ai-provider-public.routes.js +10 -0
- package/build/routes/file.routes.d.ts +14 -0
- package/build/routes/file.routes.js +20 -0
- package/build/routes/index.d.ts +3 -0
- package/build/routes/index.js +7 -1
- package/build/routes/seo-pages-public.routes.d.ts +2 -0
- package/build/routes/seo-pages-public.routes.js +2 -0
- package/build/v1/ai-provider/admin/commands/create-provider.command.d.ts +23 -0
- package/build/v1/ai-provider/admin/commands/create-provider.command.js +13 -0
- package/build/v1/ai-provider/admin/commands/delete-provider.command.d.ts +14 -0
- package/build/v1/ai-provider/admin/commands/delete-provider.command.js +17 -0
- package/build/v1/ai-provider/admin/commands/index.d.ts +3 -0
- package/build/v1/ai-provider/admin/commands/index.js +19 -0
- package/build/v1/ai-provider/admin/commands/update-provider.command.d.ts +27 -0
- package/build/v1/ai-provider/admin/commands/update-provider.command.js +14 -0
- package/build/v1/ai-provider/admin/queries/get-provider.query.d.ts +20 -0
- package/build/v1/ai-provider/admin/queries/get-provider.query.js +13 -0
- package/build/v1/ai-provider/admin/queries/get-providers.query.d.ts +31 -0
- package/build/v1/ai-provider/admin/queries/get-providers.query.js +14 -0
- package/build/v1/ai-provider/admin/queries/index.d.ts +2 -0
- package/build/v1/ai-provider/admin/queries/index.js +18 -0
- package/build/v1/ai-provider/ai-provider.errors.d.ts +7 -0
- package/build/v1/ai-provider/ai-provider.errors.js +23 -0
- package/build/v1/ai-provider/index.d.ts +5 -0
- package/build/v1/ai-provider/index.js +21 -0
- package/build/v1/ai-provider/public/queries/get-active-providers.query.d.ts +18 -0
- package/build/v1/ai-provider/public/queries/get-active-providers.query.js +16 -0
- package/build/v1/ai-provider/public/queries/index.d.ts +1 -0
- package/build/v1/ai-provider/public/queries/index.js +17 -0
- package/build/v1/ai-provider/schemas/ai-provider-status.enum.d.ts +7 -0
- package/build/v1/ai-provider/schemas/ai-provider-status.enum.js +11 -0
- package/build/v1/ai-provider/schemas/create-provider-request.schema.d.ts +9 -0
- package/build/v1/ai-provider/schemas/create-provider-request.schema.js +16 -0
- package/build/v1/ai-provider/schemas/index.d.ts +5 -0
- package/build/v1/ai-provider/schemas/index.js +21 -0
- package/build/v1/ai-provider/schemas/provider-response.schema.d.ts +15 -0
- package/build/v1/ai-provider/schemas/provider-response.schema.js +18 -0
- package/build/v1/ai-provider/schemas/route-params.schema.d.ts +4 -0
- package/build/v1/ai-provider/schemas/route-params.schema.js +8 -0
- package/build/v1/ai-provider/schemas/update-provider-request.schema.d.ts +9 -0
- package/build/v1/ai-provider/schemas/update-provider-request.schema.js +17 -0
- package/build/v1/auth/auth.errors.d.ts +2 -1
- package/build/v1/auth/auth.errors.js +5 -0
- package/build/v1/blog/admin/commands/delete-category.command.d.ts +3 -1
- package/build/v1/blog/admin/commands/delete-category.command.js +4 -4
- package/build/v1/blog/admin/commands/delete-post.command.d.ts +3 -1
- package/build/v1/blog/admin/commands/delete-post.command.js +4 -4
- package/build/v1/blog/admin/queries/get-category.query.d.ts +3 -1
- package/build/v1/blog/admin/queries/get-category.query.js +1 -2
- package/build/v1/blog/admin/queries/get-post.query.d.ts +3 -1
- package/build/v1/blog/admin/queries/get-post.query.js +1 -2
- package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +3 -1
- package/build/v1/blog/public/queries/get-post-by-alias.query.js +1 -2
- package/build/v1/blog/schemas/create-post-request.schema.js +1 -1
- package/build/v1/blog/schemas/index.d.ts +1 -0
- package/build/v1/blog/schemas/index.js +1 -0
- package/build/v1/blog/schemas/route-params.schema.d.ts +17 -0
- package/build/v1/blog/schemas/route-params.schema.js +23 -0
- package/build/v1/blog/schemas/update-post-request.schema.js +1 -1
- package/build/v1/file/commands/delete-file-by-key.command.d.ts +15 -0
- package/build/v1/file/commands/delete-file-by-key.command.js +15 -0
- package/build/v1/file/commands/delete-file.command.d.ts +15 -0
- package/build/v1/file/commands/delete-file.command.js +18 -0
- package/build/v1/file/commands/index.d.ts +4 -0
- package/build/v1/file/commands/index.js +20 -0
- package/build/v1/file/commands/upload-file.command.d.ts +16 -0
- package/build/v1/file/commands/upload-file.command.js +15 -0
- package/build/v1/file/commands/upload-image.command.d.ts +19 -0
- package/build/v1/file/commands/upload-image.command.js +15 -0
- package/build/v1/file/file.errors.d.ts +15 -0
- package/build/v1/file/file.errors.js +73 -0
- package/build/v1/file/index.d.ts +6 -0
- package/build/v1/file/index.js +26 -0
- package/build/v1/file/queries/get-file.query.d.ts +33 -0
- package/build/v1/file/queries/get-file.query.js +18 -0
- package/build/v1/file/queries/index.d.ts +3 -0
- package/build/v1/file/queries/index.js +19 -0
- package/build/v1/file/queries/list-files.query.d.ts +38 -0
- package/build/v1/file/queries/list-files.query.js +15 -0
- package/build/v1/file/queries/list-folders.query.d.ts +17 -0
- package/build/v1/file/queries/list-folders.query.js +15 -0
- package/build/v1/file/schemas/delete-file-by-key-request.schema.d.ts +7 -0
- package/build/v1/file/schemas/delete-file-by-key-request.schema.js +10 -0
- package/build/v1/file/schemas/delete-file-response.schema.d.ts +15 -0
- package/build/v1/file/schemas/delete-file-response.schema.js +18 -0
- package/build/v1/file/schemas/file-category.enum.d.ts +9 -0
- package/build/v1/file/schemas/file-category.enum.js +13 -0
- package/build/v1/file/schemas/file-response.schema.d.ts +18 -0
- package/build/v1/file/schemas/file-response.schema.js +21 -0
- package/build/v1/file/schemas/file-status.enum.d.ts +10 -0
- package/build/v1/file/schemas/file-status.enum.js +14 -0
- package/build/v1/file/schemas/file-variant-response.schema.d.ts +13 -0
- package/build/v1/file/schemas/file-variant-response.schema.js +16 -0
- package/build/v1/file/schemas/file-with-variants-response.schema.d.ts +26 -0
- package/build/v1/file/schemas/file-with-variants-response.schema.js +13 -0
- package/build/v1/file/schemas/folder-response.schema.d.ts +17 -0
- package/build/v1/file/schemas/folder-response.schema.js +17 -0
- package/build/v1/file/schemas/image-format.enum.d.ts +7 -0
- package/build/v1/file/schemas/image-format.enum.js +11 -0
- package/build/v1/file/schemas/index.d.ts +16 -0
- package/build/v1/file/schemas/index.js +37 -0
- package/build/v1/file/schemas/list-files-request.schema.d.ts +14 -0
- package/build/v1/file/schemas/list-files-request.schema.js +17 -0
- package/build/v1/file/schemas/list-files-response.schema.d.ts +26 -0
- package/build/v1/file/schemas/list-files-response.schema.js +13 -0
- package/build/v1/file/schemas/list-folders-request.schema.d.ts +7 -0
- package/build/v1/file/schemas/list-folders-request.schema.js +10 -0
- package/build/v1/file/schemas/upload-file-request.schema.d.ts +7 -0
- package/build/v1/file/schemas/upload-file-request.schema.js +10 -0
- package/build/v1/file/schemas/upload-file-response.schema.d.ts +9 -0
- package/build/v1/file/schemas/upload-file-response.schema.js +12 -0
- package/build/v1/file/schemas/upload-image-request.schema.d.ts +18 -0
- package/build/v1/file/schemas/upload-image-request.schema.js +28 -0
- package/build/v1/file/schemas/upload-image-response.schema.d.ts +10 -0
- package/build/v1/file/schemas/upload-image-response.schema.js +19 -0
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/seo-pages/admin/commands/create-page.command.d.ts +12 -0
- package/build/v1/seo-pages/admin/commands/update-page.command.d.ts +12 -0
- package/build/v1/seo-pages/admin/queries/get-page.query.d.ts +6 -0
- package/build/v1/seo-pages/admin/queries/get-pages.query.d.ts +6 -7
- package/build/v1/seo-pages/admin/queries/get-pages.query.js +1 -1
- package/build/v1/seo-pages/public/queries/get-hierarchy-list.query.d.ts +23 -0
- package/build/v1/seo-pages/public/queries/get-hierarchy-list.query.js +14 -0
- package/build/v1/seo-pages/public/queries/get-index-page.query.d.ts +33 -0
- package/build/v1/seo-pages/public/queries/get-index-page.query.js +14 -0
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +6 -0
- package/build/v1/seo-pages/public/queries/index.d.ts +2 -0
- package/build/v1/seo-pages/public/queries/index.js +5 -1
- package/build/v1/seo-pages/schemas/create-page-request.schema.d.ts +6 -0
- package/build/v1/seo-pages/schemas/create-page-request.schema.js +14 -2
- package/build/v1/seo-pages/schemas/index.d.ts +2 -1
- package/build/v1/seo-pages/schemas/index.js +6 -1
- package/build/v1/seo-pages/schemas/page-hierarchy.schema.d.ts +48 -0
- package/build/v1/seo-pages/schemas/page-hierarchy.schema.js +30 -0
- package/build/v1/seo-pages/schemas/page-response.schema.d.ts +27 -1
- package/build/v1/seo-pages/schemas/page-response.schema.js +35 -7
- package/build/v1/seo-pages/schemas/page-type.enum.d.ts +6 -3
- package/build/v1/seo-pages/schemas/page-type.enum.js +6 -3
- package/build/v1/seo-pages/schemas/update-page-request.schema.d.ts +6 -0
- package/build/v1/seo-pages/schemas/update-page-request.schema.js +15 -2
- package/build/v1/seo-pages/seo-pages.errors.d.ts +8 -1
- package/build/v1/seo-pages/seo-pages.errors.js +37 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiProviderStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI Provider Status
|
|
6
|
+
*/
|
|
7
|
+
var AiProviderStatus;
|
|
8
|
+
(function (AiProviderStatus) {
|
|
9
|
+
AiProviderStatus["ACTIVE"] = "active";
|
|
10
|
+
AiProviderStatus["INACTIVE"] = "inactive";
|
|
11
|
+
})(AiProviderStatus || (exports.AiProviderStatus = AiProviderStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiProviderStatus } from './ai-provider-status.enum';
|
|
3
|
+
export declare const CreateProviderRequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
icon: z.ZodString;
|
|
6
|
+
status: z.ZodDefault<z.ZodEnum<typeof AiProviderStatus>>;
|
|
7
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type CreateProviderRequest = z.infer<typeof CreateProviderRequestSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateProviderRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_provider_status_enum_1 = require("./ai-provider-status.enum");
|
|
6
|
+
exports.CreateProviderRequestSchema = zod_1.z.object({
|
|
7
|
+
title: zod_1.z.string().min(1).max(100),
|
|
8
|
+
icon: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.url()
|
|
11
|
+
.refine((url) => url.startsWith('https://'), {
|
|
12
|
+
message: 'Icon URL must use HTTPS',
|
|
13
|
+
}),
|
|
14
|
+
status: zod_1.z.nativeEnum(ai_provider_status_enum_1.AiProviderStatus).default(ai_provider_status_enum_1.AiProviderStatus.ACTIVE),
|
|
15
|
+
order: zod_1.z.number().int().nonnegative().default(0),
|
|
16
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-provider-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./provider-response.schema"), exports);
|
|
19
|
+
__exportStar(require("./create-provider-request.schema"), exports);
|
|
20
|
+
__exportStar(require("./update-provider-request.schema"), exports);
|
|
21
|
+
__exportStar(require("./route-params.schema"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiProviderStatus } from './ai-provider-status.enum';
|
|
3
|
+
/**
|
|
4
|
+
* AI Provider Response Schema
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProviderResponseSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
icon: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof AiProviderStatus>;
|
|
11
|
+
order: z.ZodNumber;
|
|
12
|
+
createdAt: z.ZodString;
|
|
13
|
+
updatedAt: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type ProviderResponse = z.infer<typeof ProviderResponseSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const ai_provider_status_enum_1 = require("./ai-provider-status.enum");
|
|
7
|
+
/**
|
|
8
|
+
* AI Provider Response Schema
|
|
9
|
+
*/
|
|
10
|
+
exports.ProviderResponseSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
12
|
+
title: zod_1.z.string(),
|
|
13
|
+
icon: zod_1.z.string(),
|
|
14
|
+
status: zod_1.z.enum(ai_provider_status_enum_1.AiProviderStatus),
|
|
15
|
+
order: zod_1.z.number().int().nonnegative(),
|
|
16
|
+
createdAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
17
|
+
updatedAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
18
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderUuidParamSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
exports.ProviderUuidParamSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
8
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiProviderStatus } from './ai-provider-status.enum';
|
|
3
|
+
export declare const UpdateProviderRequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<typeof AiProviderStatus>>;
|
|
7
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type UpdateProviderRequest = z.infer<typeof UpdateProviderRequestSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProviderRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_provider_status_enum_1 = require("./ai-provider-status.enum");
|
|
6
|
+
exports.UpdateProviderRequestSchema = zod_1.z.object({
|
|
7
|
+
title: zod_1.z.string().min(1).max(100).optional(),
|
|
8
|
+
icon: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.url()
|
|
11
|
+
.refine((url) => url.startsWith('https://'), {
|
|
12
|
+
message: 'Icon URL must use HTTPS',
|
|
13
|
+
})
|
|
14
|
+
.optional(),
|
|
15
|
+
status: zod_1.z.nativeEnum(ai_provider_status_enum_1.AiProviderStatus).optional(),
|
|
16
|
+
order: zod_1.z.number().int().nonnegative().optional(),
|
|
17
|
+
});
|
|
@@ -10,6 +10,7 @@ export declare enum AuthErrorCode {
|
|
|
10
10
|
PASSWORD_TOO_WEAK = "PASSWORD_TOO_WEAK",
|
|
11
11
|
UNREG_USER_ALREADY_MIGRATED = "UNREG_USER_ALREADY_MIGRATED",
|
|
12
12
|
SESSION_NOT_OWNED_BY_USER = "SESSION_NOT_OWNED_BY_USER",
|
|
13
|
-
INSUFFICIENT_PERMISSIONS = "INSUFFICIENT_PERMISSIONS"
|
|
13
|
+
INSUFFICIENT_PERMISSIONS = "INSUFFICIENT_PERMISSIONS",
|
|
14
|
+
CANNOT_DELETE_CURRENT_SESSION = "CANNOT_DELETE_CURRENT_SESSION"
|
|
14
15
|
}
|
|
15
16
|
export declare const AUTH_ERRORS: Record<AuthErrorCode, ErrorMetadata>;
|
|
@@ -14,6 +14,7 @@ var AuthErrorCode;
|
|
|
14
14
|
AuthErrorCode["UNREG_USER_ALREADY_MIGRATED"] = "UNREG_USER_ALREADY_MIGRATED";
|
|
15
15
|
AuthErrorCode["SESSION_NOT_OWNED_BY_USER"] = "SESSION_NOT_OWNED_BY_USER";
|
|
16
16
|
AuthErrorCode["INSUFFICIENT_PERMISSIONS"] = "INSUFFICIENT_PERMISSIONS";
|
|
17
|
+
AuthErrorCode["CANNOT_DELETE_CURRENT_SESSION"] = "CANNOT_DELETE_CURRENT_SESSION";
|
|
17
18
|
})(AuthErrorCode || (exports.AuthErrorCode = AuthErrorCode = {}));
|
|
18
19
|
exports.AUTH_ERRORS = {
|
|
19
20
|
[AuthErrorCode.EMAIL_ALREADY_EXISTS]: {
|
|
@@ -42,4 +43,8 @@ exports.AUTH_ERRORS = {
|
|
|
42
43
|
code: AuthErrorCode.INSUFFICIENT_PERMISSIONS,
|
|
43
44
|
statusCode: 403,
|
|
44
45
|
},
|
|
46
|
+
[AuthErrorCode.CANNOT_DELETE_CURRENT_SESSION]: {
|
|
47
|
+
code: AuthErrorCode.CANNOT_DELETE_CURRENT_SESSION,
|
|
48
|
+
statusCode: 400,
|
|
49
|
+
},
|
|
45
50
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace AdminBlogDeleteCategoryCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
5
7
|
const Response: z.ZodObject<{
|
|
6
8
|
uuid: z.ZodString;
|
|
7
9
|
}, z.core.$strip>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogDeleteCategoryCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const rest_api_1 = require("../../../../rest-api");
|
|
6
5
|
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
-
const
|
|
6
|
+
const shared_1 = require("../../../../shared");
|
|
7
|
+
const schemas_1 = require("../../schemas");
|
|
8
8
|
var AdminBlogDeleteCategoryCommand;
|
|
9
9
|
(function (AdminBlogDeleteCategoryCommand) {
|
|
10
|
-
AdminBlogDeleteCategoryCommand.Request =
|
|
11
|
-
AdminBlogDeleteCategoryCommand.Response =
|
|
10
|
+
AdminBlogDeleteCategoryCommand.Request = schemas_1.UuidParamSchema;
|
|
11
|
+
AdminBlogDeleteCategoryCommand.Response = shared_1.DeleteResponseSchema;
|
|
12
12
|
AdminBlogDeleteCategoryCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.DELETE(uuid);
|
|
13
13
|
AdminBlogDeleteCategoryCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
14
|
})(AdminBlogDeleteCategoryCommand || (exports.AdminBlogDeleteCategoryCommand = AdminBlogDeleteCategoryCommand = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace AdminBlogDeletePostCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
5
7
|
const Response: z.ZodObject<{
|
|
6
8
|
uuid: z.ZodString;
|
|
7
9
|
}, z.core.$strip>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogDeletePostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const rest_api_1 = require("../../../../rest-api");
|
|
6
5
|
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
-
const
|
|
6
|
+
const shared_1 = require("../../../../shared");
|
|
7
|
+
const schemas_1 = require("../../schemas");
|
|
8
8
|
var AdminBlogDeletePostCommand;
|
|
9
9
|
(function (AdminBlogDeletePostCommand) {
|
|
10
|
-
AdminBlogDeletePostCommand.Request =
|
|
11
|
-
AdminBlogDeletePostCommand.Response =
|
|
10
|
+
AdminBlogDeletePostCommand.Request = schemas_1.UuidParamSchema;
|
|
11
|
+
AdminBlogDeletePostCommand.Response = shared_1.DeleteResponseSchema;
|
|
12
12
|
AdminBlogDeletePostCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.DELETE(uuid);
|
|
13
13
|
AdminBlogDeletePostCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
14
|
})(AdminBlogDeletePostCommand || (exports.AdminBlogDeletePostCommand = AdminBlogDeletePostCommand = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace AdminBlogGetCategoryQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
5
7
|
const Response: z.ZodObject<{
|
|
6
8
|
uuid: z.ZodString;
|
|
7
9
|
alias: z.ZodString;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogGetCategoryQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogGetCategoryQuery;
|
|
9
8
|
(function (AdminBlogGetCategoryQuery) {
|
|
10
|
-
AdminBlogGetCategoryQuery.Request =
|
|
9
|
+
AdminBlogGetCategoryQuery.Request = schemas_1.UuidParamSchema;
|
|
11
10
|
AdminBlogGetCategoryQuery.Response = schemas_1.CategoryResponseSchema;
|
|
12
11
|
AdminBlogGetCategoryQuery.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.GET_BY_UUID(uuid);
|
|
13
12
|
AdminBlogGetCategoryQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace AdminBlogGetPostQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
5
7
|
const Response: z.ZodObject<{
|
|
6
8
|
uuid: z.ZodString;
|
|
7
9
|
alias: z.ZodString;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogGetPostQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogGetPostQuery;
|
|
9
8
|
(function (AdminBlogGetPostQuery) {
|
|
10
|
-
AdminBlogGetPostQuery.Request =
|
|
9
|
+
AdminBlogGetPostQuery.Request = schemas_1.UuidParamSchema;
|
|
11
10
|
AdminBlogGetPostQuery.Response = schemas_1.PostResponseSchema;
|
|
12
11
|
AdminBlogGetPostQuery.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.GET_BY_UUID(uuid);
|
|
13
12
|
AdminBlogGetPostQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace BlogGetPostByAliasQuery {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
alias: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
5
7
|
const Response: z.ZodObject<{
|
|
6
8
|
uuid: z.ZodString;
|
|
7
9
|
alias: z.ZodString;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BlogGetPostByAliasQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var BlogGetPostByAliasQuery;
|
|
9
8
|
(function (BlogGetPostByAliasQuery) {
|
|
10
|
-
BlogGetPostByAliasQuery.Request =
|
|
9
|
+
BlogGetPostByAliasQuery.Request = schemas_1.AliasParamSchema;
|
|
11
10
|
BlogGetPostByAliasQuery.Response = schemas_1.PostResponseSchema;
|
|
12
11
|
BlogGetPostByAliasQuery.URL = (alias) => rest_api_1.REST_API.V1.BLOG.PUBLIC.POSTS.GET_BY_ALIAS(alias);
|
|
13
12
|
BlogGetPostByAliasQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
@@ -9,7 +9,7 @@ exports.CreatePostRequestSchema = zod_1.z.object({
|
|
|
9
9
|
title: zod_1.z.string().min(1).max(300),
|
|
10
10
|
metaTitle: zod_1.z.string().min(1).max(100),
|
|
11
11
|
metaDescription: zod_1.z.string().min(1).max(200),
|
|
12
|
-
content: zod_1.z.string().min(1),
|
|
12
|
+
content: zod_1.z.string().min(1).max(1000000),
|
|
13
13
|
image: zod_1.z.string().url(),
|
|
14
14
|
author: zod_1.z.string().min(1).max(100),
|
|
15
15
|
categoryIds: zod_1.z.array(zod_1.z.string().regex(shared_1.UUID_REGEX)).min(1),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./post-response.schema"), exports);
|
|
|
23
23
|
__exportStar(require("./create-post-request.schema"), exports);
|
|
24
24
|
__exportStar(require("./update-post-request.schema"), exports);
|
|
25
25
|
__exportStar(require("./get-posts-query.schema"), exports);
|
|
26
|
+
__exportStar(require("./route-params.schema"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for UUID route parameter validation
|
|
4
|
+
* Used in admin endpoints: GET /posts/:uuid, DELETE /posts/:uuid, etc.
|
|
5
|
+
*/
|
|
6
|
+
export declare const UuidParamSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
/**
|
|
10
|
+
* Schema for alias route parameter validation
|
|
11
|
+
* Used in public endpoints: GET /posts/:alias
|
|
12
|
+
*/
|
|
13
|
+
export declare const AliasParamSchema: z.ZodObject<{
|
|
14
|
+
alias: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type UuidParamType = z.infer<typeof UuidParamSchema>;
|
|
17
|
+
export type AliasParamType = z.infer<typeof AliasParamSchema>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AliasParamSchema = exports.UuidParamSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
/**
|
|
7
|
+
* Schema for UUID route parameter validation
|
|
8
|
+
* Used in admin endpoints: GET /posts/:uuid, DELETE /posts/:uuid, etc.
|
|
9
|
+
*/
|
|
10
|
+
exports.UuidParamSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid({ message: 'Invalid UUID format' }),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Schema for alias route parameter validation
|
|
15
|
+
* Used in public endpoints: GET /posts/:alias
|
|
16
|
+
*/
|
|
17
|
+
exports.AliasParamSchema = zod_1.z.object({
|
|
18
|
+
alias: zod_1.z
|
|
19
|
+
.string()
|
|
20
|
+
.min(1, { message: 'Alias cannot be empty' })
|
|
21
|
+
.max(200, { message: 'Alias too long (max 200 characters)' })
|
|
22
|
+
.regex(regex_1.SLUG_REGEX, { message: 'Alias must contain only lowercase letters, numbers, and hyphens' }),
|
|
23
|
+
});
|
|
@@ -9,7 +9,7 @@ exports.UpdatePostRequestSchema = zod_1.z.object({
|
|
|
9
9
|
title: zod_1.z.string().min(1).max(300).optional(),
|
|
10
10
|
metaTitle: zod_1.z.string().min(1).max(100).optional(),
|
|
11
11
|
metaDescription: zod_1.z.string().min(1).max(200).optional(),
|
|
12
|
-
content: zod_1.z.string().min(1).optional(),
|
|
12
|
+
content: zod_1.z.string().min(1).max(1000000).optional(),
|
|
13
13
|
image: zod_1.z.string().url().optional(),
|
|
14
14
|
author: zod_1.z.string().min(1).max(100).optional(),
|
|
15
15
|
categoryIds: zod_1.z.array(zod_1.z.string().regex(regex_1.UUID_REGEX)).min(1).optional(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace FileDeleteByKeyCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
message: z.ZodString;
|
|
9
|
+
key: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const URL: "/api/v1/files/by-key";
|
|
12
|
+
const METHOD = HttpMethod.DELETE;
|
|
13
|
+
type RequestType = z.infer<typeof Request>;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileDeleteByKeyCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
var FileDeleteByKeyCommand;
|
|
8
|
+
(function (FileDeleteByKeyCommand) {
|
|
9
|
+
// Request/Response
|
|
10
|
+
FileDeleteByKeyCommand.Request = schemas_1.DeleteFileByKeyQuerySchema;
|
|
11
|
+
FileDeleteByKeyCommand.Response = schemas_1.DeleteFileByKeyResponseSchema;
|
|
12
|
+
// URL/Method
|
|
13
|
+
FileDeleteByKeyCommand.URL = rest_api_1.REST_API.V1.FILE.DELETE_BY_KEY;
|
|
14
|
+
FileDeleteByKeyCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
15
|
+
})(FileDeleteByKeyCommand || (exports.FileDeleteByKeyCommand = FileDeleteByKeyCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace FileDeleteCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
success: z.ZodBoolean;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const URL: (id: string) => string;
|
|
12
|
+
const METHOD = HttpMethod.DELETE;
|
|
13
|
+
type RequestType = z.infer<typeof Request>;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileDeleteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var FileDeleteCommand;
|
|
9
|
+
(function (FileDeleteCommand) {
|
|
10
|
+
// Request/Response
|
|
11
|
+
FileDeleteCommand.Request = zod_1.z.object({
|
|
12
|
+
id: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
FileDeleteCommand.Response = schemas_1.DeleteFileResponseSchema;
|
|
15
|
+
// URL/Method
|
|
16
|
+
FileDeleteCommand.URL = rest_api_1.REST_API.V1.FILE.DELETE_BY_ID;
|
|
17
|
+
FileDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
18
|
+
})(FileDeleteCommand || (exports.FileDeleteCommand = FileDeleteCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./upload-image.command"), exports);
|
|
18
|
+
__exportStar(require("./upload-file.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-file.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-file-by-key.command"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace FileUploadCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
folder: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
cdnUrl: z.ZodString;
|
|
10
|
+
s3Url: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
const URL: "/api/v1/files/upload";
|
|
13
|
+
const METHOD = HttpMethod.PUT;
|
|
14
|
+
type RequestType = z.infer<typeof Request>;
|
|
15
|
+
type ResponseType = z.infer<typeof Response>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileUploadCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
var FileUploadCommand;
|
|
8
|
+
(function (FileUploadCommand) {
|
|
9
|
+
// Request/Response
|
|
10
|
+
FileUploadCommand.Request = schemas_1.UploadFileQuerySchema;
|
|
11
|
+
FileUploadCommand.Response = schemas_1.UploadFileResponseSchema;
|
|
12
|
+
// URL/Method
|
|
13
|
+
FileUploadCommand.URL = rest_api_1.REST_API.V1.FILE.UPLOAD;
|
|
14
|
+
FileUploadCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
15
|
+
})(FileUploadCommand || (exports.FileUploadCommand = FileUploadCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace FileUploadImageCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
folder: z.ZodString;
|
|
6
|
+
formats: z.ZodString;
|
|
7
|
+
sizes: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
variants: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
+
cdnUrl: z.ZodString;
|
|
13
|
+
s3Url: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
const URL: "/api/v1/files/upload-image";
|
|
16
|
+
const METHOD = HttpMethod.PUT;
|
|
17
|
+
type RequestType = z.infer<typeof Request>;
|
|
18
|
+
type ResponseType = z.infer<typeof Response>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileUploadImageCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
var FileUploadImageCommand;
|
|
8
|
+
(function (FileUploadImageCommand) {
|
|
9
|
+
// Request/Response
|
|
10
|
+
FileUploadImageCommand.Request = schemas_1.UploadImageQuerySchema;
|
|
11
|
+
FileUploadImageCommand.Response = schemas_1.UploadImageResponseSchema;
|
|
12
|
+
// URL/Method
|
|
13
|
+
FileUploadImageCommand.URL = rest_api_1.REST_API.V1.FILE.UPLOAD_IMAGE;
|
|
14
|
+
FileUploadImageCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
15
|
+
})(FileUploadImageCommand || (exports.FileUploadImageCommand = FileUploadImageCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum FileErrorCode {
|
|
3
|
+
INVALID_REQUEST = "INVALID_REQUEST",
|
|
4
|
+
INVALID_FILE_TYPE = "INVALID_FILE_TYPE",
|
|
5
|
+
FILE_TOO_LARGE = "FILE_TOO_LARGE",
|
|
6
|
+
MISSING_PARAMETER = "MISSING_PARAMETER",
|
|
7
|
+
INVALID_PARAMETER = "INVALID_PARAMETER",
|
|
8
|
+
UNAUTHORIZED = "UNAUTHORIZED",
|
|
9
|
+
FORBIDDEN = "FORBIDDEN",
|
|
10
|
+
FILE_NOT_FOUND = "FILE_NOT_FOUND",
|
|
11
|
+
UPLOAD_FAILED = "UPLOAD_FAILED",
|
|
12
|
+
CONVERSION_FAILED = "CONVERSION_FAILED",
|
|
13
|
+
INTERNAL_ERROR = "INTERNAL_ERROR"
|
|
14
|
+
}
|
|
15
|
+
export declare const FILE_ERRORS: Record<FileErrorCode, ErrorMetadata>;
|