@ai-grator/api 0.3.74 → 0.3.76
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/admin/endpoints/admin.ts +5 -0
- package/admin/endpoints/commands/create-admin-blacklist-entry.command.ts +45 -0
- package/admin/endpoints/commands/delete-admin-blacklist-entry.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +2 -0
- package/admin/endpoints/queries/get-admin-blacklist-entries.query.ts +35 -0
- package/admin/endpoints/queries/index.ts +1 -0
- package/admin/enums/admin-blacklist-entry-type.enum.ts +4 -0
- package/admin/enums/index.ts +1 -0
- package/admin/models/admin-blacklist-entry-response.schema.ts +12 -0
- package/admin/models/index.ts +1 -0
- package/build/admin/endpoints/admin.d.ts +3 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +4 -0
- package/build/admin/endpoints/commands/create-admin-blacklist-entry.command.d.ts +52 -0
- package/build/admin/endpoints/commands/create-admin-blacklist-entry.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-blacklist-entry.command.js +41 -0
- package/build/admin/endpoints/commands/delete-admin-blacklist-entry.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-blacklist-entry.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-blacklist-entry.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +2 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +2 -0
- package/build/admin/endpoints/queries/get-admin-blacklist-entries.query.d.ts +54 -0
- package/build/admin/endpoints/queries/get-admin-blacklist-entries.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-blacklist-entries.query.js +32 -0
- package/build/admin/endpoints/queries/index.d.ts +1 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +1 -0
- package/build/admin/enums/admin-blacklist-entry-type.enum.d.ts +5 -0
- package/build/admin/enums/admin-blacklist-entry-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-blacklist-entry-type.enum.js +8 -0
- package/build/admin/enums/index.d.ts +1 -0
- package/build/admin/enums/index.d.ts.map +1 -1
- package/build/admin/enums/index.js +1 -0
- package/build/admin/models/admin-blacklist-entry-response.schema.d.ts +11 -0
- package/build/admin/models/admin-blacklist-entry-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-blacklist-entry-response.schema.js +12 -0
- package/build/admin/models/index.d.ts +1 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +1 -0
- package/build/errors/errors.d.ts +42 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +42 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +42 -0
- package/package.json +1 -1
package/admin/endpoints/admin.ts
CHANGED
|
@@ -38,6 +38,11 @@ export const ADMIN_ROUTES = {
|
|
|
38
38
|
// LINKED ACCOUNTS
|
|
39
39
|
GET_LINKED_ACCOUNT_CLUSTERS: 'linked-accounts/clusters',
|
|
40
40
|
|
|
41
|
+
// BLACKLIST
|
|
42
|
+
GET_BLACKLIST_ENTRIES: 'blacklist',
|
|
43
|
+
CREATE_BLACKLIST_ENTRY: 'blacklist',
|
|
44
|
+
DELETE_BLACKLIST_ENTRY: (entryId: string) => `blacklist/${entryId}`,
|
|
45
|
+
|
|
41
46
|
// SUPPORT
|
|
42
47
|
GET_SUPPORT_CHATS: 'support/chats',
|
|
43
48
|
GET_SUPPORT_CHAT_MESSAGES: (userId: string) => `support/chats/${userId}/messages`,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../../enums';
|
|
4
|
+
import { AdminBlacklistEntryResponseSchema } from '../../models';
|
|
5
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
6
|
+
|
|
7
|
+
const BlacklistReasonSchema = z.string().trim().min(1).max(500).nullable().optional();
|
|
8
|
+
|
|
9
|
+
export const CreateAdminBlacklistEntryCommandBody = z.discriminatedUnion('type', [
|
|
10
|
+
z.object({
|
|
11
|
+
type: z.literal(ADMIN_BLACKLIST_ENTRY_TYPE.IP),
|
|
12
|
+
value: z
|
|
13
|
+
.string()
|
|
14
|
+
.trim()
|
|
15
|
+
.pipe(z.union([z.ipv4(), z.ipv6()])),
|
|
16
|
+
reason: BlacklistReasonSchema,
|
|
17
|
+
}),
|
|
18
|
+
z.object({
|
|
19
|
+
type: z.literal(ADMIN_BLACKLIST_ENTRY_TYPE.FINGERPRINT),
|
|
20
|
+
value: z.string().trim().toLowerCase().min(1).max(128),
|
|
21
|
+
reason: BlacklistReasonSchema,
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export const CreateAdminBlacklistEntryCommandResponse = AdminBlacklistEntryResponseSchema;
|
|
26
|
+
|
|
27
|
+
export const CreateAdminBlacklistEntryCommand = defineContract({
|
|
28
|
+
method: HTTP_METHODS.POST,
|
|
29
|
+
path: ADMIN_ROUTES.CREATE_BLACKLIST_ENTRY,
|
|
30
|
+
summary: 'Add an IP or a client fingerprint to the blacklist',
|
|
31
|
+
request: {
|
|
32
|
+
body: CreateAdminBlacklistEntryCommandBody,
|
|
33
|
+
},
|
|
34
|
+
responses: {
|
|
35
|
+
201: CreateAdminBlacklistEntryCommandResponse,
|
|
36
|
+
400: HttpErrorResponseSchema,
|
|
37
|
+
401: HttpErrorResponseSchema,
|
|
38
|
+
403: HttpErrorResponseSchema,
|
|
39
|
+
409: HttpErrorResponseSchema,
|
|
40
|
+
500: HttpErrorResponseSchema,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export type CreateAdminBlacklistEntryCommandBodyType = z.infer<typeof CreateAdminBlacklistEntryCommandBody>;
|
|
45
|
+
export type CreateAdminBlacklistEntryCommandResponseType = z.infer<typeof CreateAdminBlacklistEntryCommandResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema, HttpSuccessResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
4
|
+
|
|
5
|
+
export const DeleteAdminBlacklistEntryCommandParams = z.object({
|
|
6
|
+
entryId: z.uuid(),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const DeleteAdminBlacklistEntryCommandResponse = HttpSuccessResponseSchema;
|
|
10
|
+
|
|
11
|
+
export const DeleteAdminBlacklistEntryCommand = defineContract({
|
|
12
|
+
method: HTTP_METHODS.DELETE,
|
|
13
|
+
path: ADMIN_ROUTES.DELETE_BLACKLIST_ENTRY(':entryId'),
|
|
14
|
+
summary: 'Remove an entry from the blacklist',
|
|
15
|
+
request: {
|
|
16
|
+
params: DeleteAdminBlacklistEntryCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: DeleteAdminBlacklistEntryCommandResponse,
|
|
20
|
+
401: HttpErrorResponseSchema,
|
|
21
|
+
403: HttpErrorResponseSchema,
|
|
22
|
+
404: HttpErrorResponseSchema,
|
|
23
|
+
500: HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type DeleteAdminBlacklistEntryCommandParamsType = z.infer<typeof DeleteAdminBlacklistEntryCommandParams>;
|
|
28
|
+
export type DeleteAdminBlacklistEntryCommandResponseType = z.infer<typeof DeleteAdminBlacklistEntryCommandResponse>;
|
|
@@ -23,3 +23,5 @@ export * from './probe-admin-trend-reference-video.command';
|
|
|
23
23
|
export * from './create-admin-trend-category.command';
|
|
24
24
|
export * from './update-admin-trend-category.command';
|
|
25
25
|
export * from './delete-admin-trend-category.command';
|
|
26
|
+
export * from './create-admin-blacklist-entry.command';
|
|
27
|
+
export * from './delete-admin-blacklist-entry.command';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineOffsetPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../../enums';
|
|
4
|
+
import { AdminBlacklistEntryResponseSchema } from '../../models';
|
|
5
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
6
|
+
|
|
7
|
+
export const GetAdminBlacklistEntriesQueryQuery = defineOffsetPaginationQuery().extend({
|
|
8
|
+
type: z.enum(ADMIN_BLACKLIST_ENTRY_TYPE).optional(),
|
|
9
|
+
search: z.string().trim().max(255).optional(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const GetAdminBlacklistEntriesQueryResponse = z.object({
|
|
13
|
+
entries: z.array(AdminBlacklistEntryResponseSchema),
|
|
14
|
+
total: z.number().int().nonnegative(),
|
|
15
|
+
page: z.number().int().positive(),
|
|
16
|
+
limit: z.number().int().positive(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const GetAdminBlacklistEntriesQuery = defineContract({
|
|
20
|
+
method: HTTP_METHODS.GET,
|
|
21
|
+
path: ADMIN_ROUTES.GET_BLACKLIST_ENTRIES,
|
|
22
|
+
summary: 'Get blacklisted IPs and fingerprints with pagination and filters',
|
|
23
|
+
request: {
|
|
24
|
+
query: GetAdminBlacklistEntriesQueryQuery,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
200: GetAdminBlacklistEntriesQueryResponse,
|
|
28
|
+
401: HttpErrorResponseSchema,
|
|
29
|
+
403: HttpErrorResponseSchema,
|
|
30
|
+
500: HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export type GetAdminBlacklistEntriesQueryQueryType = z.infer<typeof GetAdminBlacklistEntriesQueryQuery>;
|
|
35
|
+
export type GetAdminBlacklistEntriesQueryResponseType = z.infer<typeof GetAdminBlacklistEntriesQueryResponse>;
|
package/admin/enums/index.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../enums';
|
|
3
|
+
|
|
4
|
+
export const AdminBlacklistEntryResponseSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
type: z.enum(ADMIN_BLACKLIST_ENTRY_TYPE),
|
|
7
|
+
value: z.string(),
|
|
8
|
+
reason: z.string().nullable(),
|
|
9
|
+
createdAt: z.iso.datetime(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type AdminBlacklistEntryResponseSchemaType = z.infer<typeof AdminBlacklistEntryResponseSchema>;
|
package/admin/models/index.ts
CHANGED
|
@@ -24,6 +24,9 @@ export declare const ADMIN_ROUTES: {
|
|
|
24
24
|
readonly BAN_USERS: "users/ban";
|
|
25
25
|
readonly UNBAN_USER: (userId: string) => string;
|
|
26
26
|
readonly GET_LINKED_ACCOUNT_CLUSTERS: "linked-accounts/clusters";
|
|
27
|
+
readonly GET_BLACKLIST_ENTRIES: "blacklist";
|
|
28
|
+
readonly CREATE_BLACKLIST_ENTRY: "blacklist";
|
|
29
|
+
readonly DELETE_BLACKLIST_ENTRY: (entryId: string) => string;
|
|
27
30
|
readonly GET_SUPPORT_CHATS: "support/chats";
|
|
28
31
|
readonly GET_SUPPORT_CHAT_MESSAGES: (userId: string) => string;
|
|
29
32
|
readonly SEND_SUPPORT_REPLY: (userId: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;iDAIJ,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;6CAKH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;CAKpC,CAAC"}
|
|
@@ -33,6 +33,10 @@ exports.ADMIN_ROUTES = {
|
|
|
33
33
|
UNBAN_USER: (userId) => `users/${userId}/unban`,
|
|
34
34
|
// LINKED ACCOUNTS
|
|
35
35
|
GET_LINKED_ACCOUNT_CLUSTERS: 'linked-accounts/clusters',
|
|
36
|
+
// BLACKLIST
|
|
37
|
+
GET_BLACKLIST_ENTRIES: 'blacklist',
|
|
38
|
+
CREATE_BLACKLIST_ENTRY: 'blacklist',
|
|
39
|
+
DELETE_BLACKLIST_ENTRY: (entryId) => `blacklist/${entryId}`,
|
|
36
40
|
// SUPPORT
|
|
37
41
|
GET_SUPPORT_CHATS: 'support/chats',
|
|
38
42
|
GET_SUPPORT_CHAT_MESSAGES: (userId) => `support/chats/${userId}/messages`,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../../enums';
|
|
4
|
+
export declare const CreateAdminBlacklistEntryCommandBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<ADMIN_BLACKLIST_ENTRY_TYPE.IP>;
|
|
6
|
+
value: z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>>;
|
|
7
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<ADMIN_BLACKLIST_ENTRY_TYPE.FINGERPRINT>;
|
|
10
|
+
value: z.ZodString;
|
|
11
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>], "type">;
|
|
13
|
+
export declare const CreateAdminBlacklistEntryCommandResponse: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodUUID;
|
|
15
|
+
type: z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
18
|
+
createdAt: z.ZodISODateTime;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const CreateAdminBlacklistEntryCommand: {
|
|
21
|
+
method: HTTP_METHODS.POST;
|
|
22
|
+
path: "blacklist";
|
|
23
|
+
summary: string;
|
|
24
|
+
request: {
|
|
25
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<ADMIN_BLACKLIST_ENTRY_TYPE.IP>;
|
|
27
|
+
value: z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>>;
|
|
28
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<ADMIN_BLACKLIST_ENTRY_TYPE.FINGERPRINT>;
|
|
31
|
+
value: z.ZodString;
|
|
32
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>], "type">;
|
|
34
|
+
};
|
|
35
|
+
responses: {
|
|
36
|
+
201: z.ZodObject<{
|
|
37
|
+
uuid: z.ZodUUID;
|
|
38
|
+
type: z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>;
|
|
39
|
+
value: z.ZodString;
|
|
40
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
41
|
+
createdAt: z.ZodISODateTime;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
44
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
45
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
46
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
47
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type CreateAdminBlacklistEntryCommandBodyType = z.infer<typeof CreateAdminBlacklistEntryCommandBody>;
|
|
51
|
+
export type CreateAdminBlacklistEntryCommandResponseType = z.infer<typeof CreateAdminBlacklistEntryCommandResponse>;
|
|
52
|
+
//# sourceMappingURL=create-admin-blacklist-entry.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-admin-blacklist-entry.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-blacklist-entry.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAMzD,eAAO,MAAM,oCAAoC;;;;;;;;2BAc/C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;iBAAoC,CAAC;AAE1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3C,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC5G,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAdminBlacklistEntryCommand = exports.CreateAdminBlacklistEntryCommandResponse = exports.CreateAdminBlacklistEntryCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
const BlacklistReasonSchema = zod_1.z.string().trim().min(1).max(500).nullable().optional();
|
|
10
|
+
exports.CreateAdminBlacklistEntryCommandBody = zod_1.z.discriminatedUnion('type', [
|
|
11
|
+
zod_1.z.object({
|
|
12
|
+
type: zod_1.z.literal(enums_1.ADMIN_BLACKLIST_ENTRY_TYPE.IP),
|
|
13
|
+
value: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.trim()
|
|
16
|
+
.pipe(zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()])),
|
|
17
|
+
reason: BlacklistReasonSchema,
|
|
18
|
+
}),
|
|
19
|
+
zod_1.z.object({
|
|
20
|
+
type: zod_1.z.literal(enums_1.ADMIN_BLACKLIST_ENTRY_TYPE.FINGERPRINT),
|
|
21
|
+
value: zod_1.z.string().trim().toLowerCase().min(1).max(128),
|
|
22
|
+
reason: BlacklistReasonSchema,
|
|
23
|
+
}),
|
|
24
|
+
]);
|
|
25
|
+
exports.CreateAdminBlacklistEntryCommandResponse = models_1.AdminBlacklistEntryResponseSchema;
|
|
26
|
+
exports.CreateAdminBlacklistEntryCommand = (0, _common_1.defineContract)({
|
|
27
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
28
|
+
path: admin_1.ADMIN_ROUTES.CREATE_BLACKLIST_ENTRY,
|
|
29
|
+
summary: 'Add an IP or a client fingerprint to the blacklist',
|
|
30
|
+
request: {
|
|
31
|
+
body: exports.CreateAdminBlacklistEntryCommandBody,
|
|
32
|
+
},
|
|
33
|
+
responses: {
|
|
34
|
+
201: exports.CreateAdminBlacklistEntryCommandResponse,
|
|
35
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
36
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
37
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
38
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
39
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const DeleteAdminBlacklistEntryCommandParams: z.ZodObject<{
|
|
4
|
+
entryId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const DeleteAdminBlacklistEntryCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const DeleteAdminBlacklistEntryCommand: {
|
|
8
|
+
method: HTTP_METHODS.DELETE;
|
|
9
|
+
path: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
entryId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type DeleteAdminBlacklistEntryCommandParamsType = z.infer<typeof DeleteAdminBlacklistEntryCommandParams>;
|
|
25
|
+
export type DeleteAdminBlacklistEntryCommandResponseType = z.infer<typeof DeleteAdminBlacklistEntryCommandResponse>;
|
|
26
|
+
//# sourceMappingURL=delete-admin-blacklist-entry.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-admin-blacklist-entry.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/delete-admin-blacklist-entry.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,sCAAsC;;iBAEjD,CAAC;AAEH,eAAO,MAAM,wCAAwC,uJAA4B,CAAC;AAElF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;CAc3C,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAdminBlacklistEntryCommand = exports.DeleteAdminBlacklistEntryCommandResponse = exports.DeleteAdminBlacklistEntryCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.DeleteAdminBlacklistEntryCommandParams = zod_1.z.object({
|
|
8
|
+
entryId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
exports.DeleteAdminBlacklistEntryCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
11
|
+
exports.DeleteAdminBlacklistEntryCommand = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.DELETE,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.DELETE_BLACKLIST_ENTRY(':entryId'),
|
|
14
|
+
summary: 'Remove an entry from the blacklist',
|
|
15
|
+
request: {
|
|
16
|
+
params: exports.DeleteAdminBlacklistEntryCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: exports.DeleteAdminBlacklistEntryCommandResponse,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -23,4 +23,6 @@ export * from './probe-admin-trend-reference-video.command';
|
|
|
23
23
|
export * from './create-admin-trend-category.command';
|
|
24
24
|
export * from './update-admin-trend-category.command';
|
|
25
25
|
export * from './delete-admin-trend-category.command';
|
|
26
|
+
export * from './create-admin-blacklist-entry.command';
|
|
27
|
+
export * from './delete-admin-blacklist-entry.command';
|
|
26
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC"}
|
|
@@ -39,3 +39,5 @@ __exportStar(require("./probe-admin-trend-reference-video.command"), exports);
|
|
|
39
39
|
__exportStar(require("./create-admin-trend-category.command"), exports);
|
|
40
40
|
__exportStar(require("./update-admin-trend-category.command"), exports);
|
|
41
41
|
__exportStar(require("./delete-admin-trend-category.command"), exports);
|
|
42
|
+
__exportStar(require("./create-admin-blacklist-entry.command"), exports);
|
|
43
|
+
__exportStar(require("./delete-admin-blacklist-entry.command"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../../enums';
|
|
4
|
+
export declare const GetAdminBlacklistEntriesQueryQuery: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
type: z.ZodOptional<z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>>;
|
|
8
|
+
search: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const GetAdminBlacklistEntriesQueryResponse: z.ZodObject<{
|
|
11
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
type: z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>;
|
|
14
|
+
value: z.ZodString;
|
|
15
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
16
|
+
createdAt: z.ZodISODateTime;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
total: z.ZodNumber;
|
|
19
|
+
page: z.ZodNumber;
|
|
20
|
+
limit: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const GetAdminBlacklistEntriesQuery: {
|
|
23
|
+
method: HTTP_METHODS.GET;
|
|
24
|
+
path: "blacklist";
|
|
25
|
+
summary: string;
|
|
26
|
+
request: {
|
|
27
|
+
query: z.ZodObject<{
|
|
28
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
29
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
30
|
+
type: z.ZodOptional<z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>>;
|
|
31
|
+
search: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
};
|
|
34
|
+
responses: {
|
|
35
|
+
200: z.ZodObject<{
|
|
36
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
37
|
+
uuid: z.ZodUUID;
|
|
38
|
+
type: z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>;
|
|
39
|
+
value: z.ZodString;
|
|
40
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
41
|
+
createdAt: z.ZodISODateTime;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
total: z.ZodNumber;
|
|
44
|
+
page: z.ZodNumber;
|
|
45
|
+
limit: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
48
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
49
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type GetAdminBlacklistEntriesQueryQueryType = z.infer<typeof GetAdminBlacklistEntriesQueryQuery>;
|
|
53
|
+
export type GetAdminBlacklistEntriesQueryResponseType = z.infer<typeof GetAdminBlacklistEntriesQueryResponse>;
|
|
54
|
+
//# sourceMappingURL=get-admin-blacklist-entries.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-blacklist-entries.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-blacklist-entries.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAIzD,eAAO,MAAM,kCAAkC;;;;;iBAG7C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAKhD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaxC,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminBlacklistEntriesQuery = exports.GetAdminBlacklistEntriesQueryResponse = exports.GetAdminBlacklistEntriesQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.GetAdminBlacklistEntriesQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
|
|
10
|
+
type: zod_1.z.enum(enums_1.ADMIN_BLACKLIST_ENTRY_TYPE).optional(),
|
|
11
|
+
search: zod_1.z.string().trim().max(255).optional(),
|
|
12
|
+
});
|
|
13
|
+
exports.GetAdminBlacklistEntriesQueryResponse = zod_1.z.object({
|
|
14
|
+
entries: zod_1.z.array(models_1.AdminBlacklistEntryResponseSchema),
|
|
15
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
16
|
+
page: zod_1.z.number().int().positive(),
|
|
17
|
+
limit: zod_1.z.number().int().positive(),
|
|
18
|
+
});
|
|
19
|
+
exports.GetAdminBlacklistEntriesQuery = (0, _common_1.defineContract)({
|
|
20
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
21
|
+
path: admin_1.ADMIN_ROUTES.GET_BLACKLIST_ENTRIES,
|
|
22
|
+
summary: 'Get blacklisted IPs and fingerprints with pagination and filters',
|
|
23
|
+
request: {
|
|
24
|
+
query: exports.GetAdminBlacklistEntriesQueryQuery,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
200: exports.GetAdminBlacklistEntriesQueryResponse,
|
|
28
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -25,4 +25,5 @@ export * from './get-admin-linked-account-clusters.query';
|
|
|
25
25
|
export * from './get-admin-trends.query';
|
|
26
26
|
export * from './get-admin-trend.query';
|
|
27
27
|
export * from './get-admin-trend-categories.query';
|
|
28
|
+
export * from './get-admin-blacklist-entries.query';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC"}
|
|
@@ -41,3 +41,4 @@ __exportStar(require("./get-admin-linked-account-clusters.query"), exports);
|
|
|
41
41
|
__exportStar(require("./get-admin-trends.query"), exports);
|
|
42
42
|
__exportStar(require("./get-admin-trend.query"), exports);
|
|
43
43
|
__exportStar(require("./get-admin-trend-categories.query"), exports);
|
|
44
|
+
__exportStar(require("./get-admin-blacklist-entries.query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-blacklist-entry-type.enum.d.ts","sourceRoot":"","sources":["../../../admin/enums/admin-blacklist-entry-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IAClC,EAAE,OAAO;IACT,WAAW,gBAAgB;CAC9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADMIN_BLACKLIST_ENTRY_TYPE = void 0;
|
|
4
|
+
var ADMIN_BLACKLIST_ENTRY_TYPE;
|
|
5
|
+
(function (ADMIN_BLACKLIST_ENTRY_TYPE) {
|
|
6
|
+
ADMIN_BLACKLIST_ENTRY_TYPE["IP"] = "ip";
|
|
7
|
+
ADMIN_BLACKLIST_ENTRY_TYPE["FINGERPRINT"] = "fingerprint";
|
|
8
|
+
})(ADMIN_BLACKLIST_ENTRY_TYPE || (exports.ADMIN_BLACKLIST_ENTRY_TYPE = ADMIN_BLACKLIST_ENTRY_TYPE = {}));
|
|
@@ -10,4 +10,5 @@ export * from './linked-account-reason-type.enum';
|
|
|
10
10
|
export * from './linked-accounts-period.enum';
|
|
11
11
|
export * from './admin-bulk-ban-result.enum';
|
|
12
12
|
export * from './admin-bulk-ban-skip-reason.enum';
|
|
13
|
+
export * from './admin-blacklist-entry-type.enum';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC"}
|
|
@@ -26,3 +26,4 @@ __exportStar(require("./linked-account-reason-type.enum"), exports);
|
|
|
26
26
|
__exportStar(require("./linked-accounts-period.enum"), exports);
|
|
27
27
|
__exportStar(require("./admin-bulk-ban-result.enum"), exports);
|
|
28
28
|
__exportStar(require("./admin-bulk-ban-skip-reason.enum"), exports);
|
|
29
|
+
__exportStar(require("./admin-blacklist-entry-type.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ADMIN_BLACKLIST_ENTRY_TYPE } from '../enums';
|
|
3
|
+
export declare const AdminBlacklistEntryResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
type: z.ZodEnum<typeof ADMIN_BLACKLIST_ENTRY_TYPE>;
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8
|
+
createdAt: z.ZodISODateTime;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type AdminBlacklistEntryResponseSchemaType = z.infer<typeof AdminBlacklistEntryResponseSchema>;
|
|
11
|
+
//# sourceMappingURL=admin-blacklist-entry-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-blacklist-entry-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-blacklist-entry-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEtD,eAAO,MAAM,iCAAiC;;;;;;iBAM5C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminBlacklistEntryResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.AdminBlacklistEntryResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
type: zod_1.z.enum(enums_1.ADMIN_BLACKLIST_ENTRY_TYPE),
|
|
9
|
+
value: zod_1.z.string(),
|
|
10
|
+
reason: zod_1.z.string().nullable(),
|
|
11
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
12
|
+
});
|
|
@@ -19,4 +19,5 @@ export * from './admin-time-zone.schema';
|
|
|
19
19
|
export * from './admin-linked-account-cluster.schema';
|
|
20
20
|
export * from './admin-trend-category-response.schema';
|
|
21
21
|
export * from './admin-trend-response.schema';
|
|
22
|
+
export * from './admin-blacklist-entry-response.schema';
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC"}
|
|
@@ -35,3 +35,4 @@ __exportStar(require("./admin-time-zone.schema"), exports);
|
|
|
35
35
|
__exportStar(require("./admin-linked-account-cluster.schema"), exports);
|
|
36
36
|
__exportStar(require("./admin-trend-category-response.schema"), exports);
|
|
37
37
|
__exportStar(require("./admin-trend-response.schema"), exports);
|
|
38
|
+
__exportStar(require("./admin-blacklist-entry-response.schema"), exports);
|