@ai-grator/api 0.3.76 → 0.3.77

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 (42) hide show
  1. package/admin/endpoints/admin.ts +4 -0
  2. package/admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts +37 -0
  3. package/admin/endpoints/commands/index.ts +1 -0
  4. package/admin/endpoints/queries/get-admin-antifraud-checks.query.ts +35 -0
  5. package/admin/endpoints/queries/index.ts +1 -0
  6. package/admin/enums/admin-antifraud-check-reason.enum.ts +5 -0
  7. package/admin/enums/index.ts +1 -0
  8. package/admin/models/admin-antifraud-check-response.schema.ts +27 -0
  9. package/admin/models/index.ts +1 -0
  10. package/build/admin/endpoints/admin.d.ts +2 -0
  11. package/build/admin/endpoints/admin.d.ts.map +1 -1
  12. package/build/admin/endpoints/admin.js +3 -0
  13. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts +71 -0
  14. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts.map +1 -0
  15. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.js +32 -0
  16. package/build/admin/endpoints/commands/index.d.ts +1 -0
  17. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  18. package/build/admin/endpoints/commands/index.js +1 -0
  19. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts +78 -0
  20. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts.map +1 -0
  21. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.js +32 -0
  22. package/build/admin/endpoints/queries/index.d.ts +1 -0
  23. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  24. package/build/admin/endpoints/queries/index.js +1 -0
  25. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts +6 -0
  26. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts.map +1 -0
  27. package/build/admin/enums/admin-antifraud-check-reason.enum.js +9 -0
  28. package/build/admin/enums/index.d.ts +1 -0
  29. package/build/admin/enums/index.d.ts.map +1 -1
  30. package/build/admin/enums/index.js +1 -0
  31. package/build/admin/models/admin-antifraud-check-response.schema.d.ts +34 -0
  32. package/build/admin/models/admin-antifraud-check-response.schema.d.ts.map +1 -0
  33. package/build/admin/models/admin-antifraud-check-response.schema.js +23 -0
  34. package/build/admin/models/index.d.ts +1 -0
  35. package/build/admin/models/index.d.ts.map +1 -1
  36. package/build/admin/models/index.js +1 -0
  37. package/build/errors/errors.d.ts +22 -5
  38. package/build/errors/errors.d.ts.map +1 -1
  39. package/build/errors/errors.js +22 -5
  40. package/build/tsconfig.tsbuildinfo +1 -1
  41. package/errors/errors.ts +22 -5
  42. package/package.json +1 -1
@@ -43,6 +43,10 @@ export const ADMIN_ROUTES = {
43
43
  CREATE_BLACKLIST_ENTRY: 'blacklist',
44
44
  DELETE_BLACKLIST_ENTRY: (entryId: string) => `blacklist/${entryId}`,
45
45
 
46
+ // ANTIFRAUD
47
+ GET_ANTIFRAUD_CHECKS: 'antifraud-checks',
48
+ BAN_ANTIFRAUD_CHECK_VALUE: (checkId: string) => `antifraud-checks/${checkId}/ban`,
49
+
46
50
  // SUPPORT
47
51
  GET_SUPPORT_CHATS: 'support/chats',
48
52
  GET_SUPPORT_CHAT_MESSAGES: (userId: string) => `support/chats/${userId}/messages`,
@@ -0,0 +1,37 @@
1
+ import { z } from 'zod';
2
+ import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
3
+ import { AdminAntifraudCheckResponseSchema } from '../../models';
4
+ import { ADMIN_ROUTES } from '../admin';
5
+
6
+ export const BanAdminAntifraudCheckValueCommandParams = z.object({
7
+ checkId: z.uuid(),
8
+ });
9
+
10
+ export const BanAdminAntifraudCheckValueCommandBody = z.object({
11
+ reason: z.string().trim().min(1).max(500),
12
+ });
13
+
14
+ export const BanAdminAntifraudCheckValueCommandResponse = AdminAntifraudCheckResponseSchema;
15
+
16
+ export const BanAdminAntifraudCheckValueCommand = defineContract({
17
+ method: HTTP_METHODS.POST,
18
+ path: ADMIN_ROUTES.BAN_ANTIFRAUD_CHECK_VALUE(':checkId'),
19
+ summary: 'Blacklist the IP or fingerprint an antifraud check matched on',
20
+ request: {
21
+ params: BanAdminAntifraudCheckValueCommandParams,
22
+ body: BanAdminAntifraudCheckValueCommandBody,
23
+ },
24
+ responses: {
25
+ 200: BanAdminAntifraudCheckValueCommandResponse,
26
+ 400: HttpErrorResponseSchema,
27
+ 401: HttpErrorResponseSchema,
28
+ 403: HttpErrorResponseSchema,
29
+ 404: HttpErrorResponseSchema,
30
+ 409: HttpErrorResponseSchema,
31
+ 500: HttpErrorResponseSchema,
32
+ },
33
+ });
34
+
35
+ export type BanAdminAntifraudCheckValueCommandParamsType = z.infer<typeof BanAdminAntifraudCheckValueCommandParams>;
36
+ export type BanAdminAntifraudCheckValueCommandBodyType = z.infer<typeof BanAdminAntifraudCheckValueCommandBody>;
37
+ export type BanAdminAntifraudCheckValueCommandResponseType = z.infer<typeof BanAdminAntifraudCheckValueCommandResponse>;
@@ -25,3 +25,4 @@ export * from './update-admin-trend-category.command';
25
25
  export * from './delete-admin-trend-category.command';
26
26
  export * from './create-admin-blacklist-entry.command';
27
27
  export * from './delete-admin-blacklist-entry.command';
28
+ export * from './ban-admin-antifraud-check-value.command';
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { defineContract, defineOffsetPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
3
+ import { ADMIN_ANTIFRAUD_CHECK_REASON } from '../../enums';
4
+ import { AdminAntifraudCheckResponseSchema } from '../../models';
5
+ import { ADMIN_ROUTES } from '../admin';
6
+
7
+ export const GetAdminAntifraudChecksQueryQuery = defineOffsetPaginationQuery().extend({
8
+ reason: z.enum(ADMIN_ANTIFRAUD_CHECK_REASON).optional(),
9
+ search: z.string().trim().max(255).optional(),
10
+ });
11
+
12
+ export const GetAdminAntifraudChecksQueryResponse = z.object({
13
+ checks: z.array(AdminAntifraudCheckResponseSchema),
14
+ total: z.number().int().nonnegative(),
15
+ page: z.number().int().positive(),
16
+ limit: z.number().int().positive(),
17
+ });
18
+
19
+ export const GetAdminAntifraudChecksQuery = defineContract({
20
+ method: HTTP_METHODS.GET,
21
+ path: ADMIN_ROUTES.GET_ANTIFRAUD_CHECKS,
22
+ summary: 'Get account matches that denied the email verification bonus',
23
+ request: {
24
+ query: GetAdminAntifraudChecksQueryQuery,
25
+ },
26
+ responses: {
27
+ 200: GetAdminAntifraudChecksQueryResponse,
28
+ 401: HttpErrorResponseSchema,
29
+ 403: HttpErrorResponseSchema,
30
+ 500: HttpErrorResponseSchema,
31
+ },
32
+ });
33
+
34
+ export type GetAdminAntifraudChecksQueryQueryType = z.infer<typeof GetAdminAntifraudChecksQueryQuery>;
35
+ export type GetAdminAntifraudChecksQueryResponseType = z.infer<typeof GetAdminAntifraudChecksQueryResponse>;
@@ -26,3 +26,4 @@ export * from './get-admin-trends.query';
26
26
  export * from './get-admin-trend.query';
27
27
  export * from './get-admin-trend-categories.query';
28
28
  export * from './get-admin-blacklist-entries.query';
29
+ export * from './get-admin-antifraud-checks.query';
@@ -0,0 +1,5 @@
1
+ export enum ADMIN_ANTIFRAUD_CHECK_REASON {
2
+ FINGERPRINT_MATCH = 'fingerprint_match',
3
+ IP_MATCH = 'ip_match',
4
+ CANONICAL_EMAIL_MATCH = 'canonical_email_match',
5
+ }
@@ -11,3 +11,4 @@ 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
13
  export * from './admin-blacklist-entry-type.enum';
14
+ export * from './admin-antifraud-check-reason.enum';
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ import { ADMIN_ANTIFRAUD_CHECK_REASON } from '../enums';
3
+
4
+ export const AdminAntifraudCheckUserSchema = z.object({
5
+ uuid: z.uuid(),
6
+ email: z.string(),
7
+ });
8
+
9
+ export const AdminAntifraudCheckBanSchema = z.object({
10
+ entryId: z.uuid(),
11
+ reason: z.string().nullable(),
12
+ createdAt: z.iso.datetime(),
13
+ });
14
+
15
+ export const AdminAntifraudCheckResponseSchema = z.object({
16
+ uuid: z.uuid(),
17
+ user: AdminAntifraudCheckUserSchema,
18
+ matchedUser: AdminAntifraudCheckUserSchema,
19
+ reason: z.enum(ADMIN_ANTIFRAUD_CHECK_REASON),
20
+ value: z.string(),
21
+ ban: AdminAntifraudCheckBanSchema.nullable(),
22
+ createdAt: z.iso.datetime(),
23
+ });
24
+
25
+ export type AdminAntifraudCheckUserSchemaType = z.infer<typeof AdminAntifraudCheckUserSchema>;
26
+ export type AdminAntifraudCheckBanSchemaType = z.infer<typeof AdminAntifraudCheckBanSchema>;
27
+ export type AdminAntifraudCheckResponseSchemaType = z.infer<typeof AdminAntifraudCheckResponseSchema>;
@@ -20,3 +20,4 @@ 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
22
  export * from './admin-blacklist-entry-response.schema';
23
+ export * from './admin-antifraud-check-response.schema';
@@ -27,6 +27,8 @@ export declare const ADMIN_ROUTES: {
27
27
  readonly GET_BLACKLIST_ENTRIES: "blacklist";
28
28
  readonly CREATE_BLACKLIST_ENTRY: "blacklist";
29
29
  readonly DELETE_BLACKLIST_ENTRY: (entryId: string) => string;
30
+ readonly GET_ANTIFRAUD_CHECKS: "antifraud-checks";
31
+ readonly BAN_ANTIFRAUD_CHECK_VALUE: (checkId: string) => string;
30
32
  readonly GET_SUPPORT_CHATS: "support/chats";
31
33
  readonly GET_SUPPORT_CHAT_MESSAGES: (userId: string) => string;
32
34
  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;;;;+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"}
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;;kDAIH,MAAM;;iDAIP,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"}
@@ -37,6 +37,9 @@ exports.ADMIN_ROUTES = {
37
37
  GET_BLACKLIST_ENTRIES: 'blacklist',
38
38
  CREATE_BLACKLIST_ENTRY: 'blacklist',
39
39
  DELETE_BLACKLIST_ENTRY: (entryId) => `blacklist/${entryId}`,
40
+ // ANTIFRAUD
41
+ GET_ANTIFRAUD_CHECKS: 'antifraud-checks',
42
+ BAN_ANTIFRAUD_CHECK_VALUE: (checkId) => `antifraud-checks/${checkId}/ban`,
40
43
  // SUPPORT
41
44
  GET_SUPPORT_CHATS: 'support/chats',
42
45
  GET_SUPPORT_CHAT_MESSAGES: (userId) => `support/chats/${userId}/messages`,
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const BanAdminAntifraudCheckValueCommandParams: z.ZodObject<{
4
+ checkId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const BanAdminAntifraudCheckValueCommandBody: z.ZodObject<{
7
+ reason: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const BanAdminAntifraudCheckValueCommandResponse: z.ZodObject<{
10
+ uuid: z.ZodUUID;
11
+ user: z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ email: z.ZodString;
14
+ }, z.core.$strip>;
15
+ matchedUser: z.ZodObject<{
16
+ uuid: z.ZodUUID;
17
+ email: z.ZodString;
18
+ }, z.core.$strip>;
19
+ reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
20
+ value: z.ZodString;
21
+ ban: z.ZodNullable<z.ZodObject<{
22
+ entryId: z.ZodUUID;
23
+ reason: z.ZodNullable<z.ZodString>;
24
+ createdAt: z.ZodISODateTime;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodISODateTime;
27
+ }, z.core.$strip>;
28
+ export declare const BanAdminAntifraudCheckValueCommand: {
29
+ method: HTTP_METHODS.POST;
30
+ path: string;
31
+ summary: string;
32
+ request: {
33
+ params: z.ZodObject<{
34
+ checkId: z.ZodUUID;
35
+ }, z.core.$strip>;
36
+ body: z.ZodObject<{
37
+ reason: z.ZodString;
38
+ }, z.core.$strip>;
39
+ };
40
+ responses: {
41
+ 200: z.ZodObject<{
42
+ uuid: z.ZodUUID;
43
+ user: z.ZodObject<{
44
+ uuid: z.ZodUUID;
45
+ email: z.ZodString;
46
+ }, z.core.$strip>;
47
+ matchedUser: z.ZodObject<{
48
+ uuid: z.ZodUUID;
49
+ email: z.ZodString;
50
+ }, z.core.$strip>;
51
+ reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
52
+ value: z.ZodString;
53
+ ban: z.ZodNullable<z.ZodObject<{
54
+ entryId: z.ZodUUID;
55
+ reason: z.ZodNullable<z.ZodString>;
56
+ createdAt: z.ZodISODateTime;
57
+ }, z.core.$strip>>;
58
+ createdAt: z.ZodISODateTime;
59
+ }, z.core.$strip>;
60
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
61
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
62
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
63
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
64
+ 409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
65
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
66
+ };
67
+ };
68
+ export type BanAdminAntifraudCheckValueCommandParamsType = z.infer<typeof BanAdminAntifraudCheckValueCommandParams>;
69
+ export type BanAdminAntifraudCheckValueCommandBodyType = z.infer<typeof BanAdminAntifraudCheckValueCommandBody>;
70
+ export type BanAdminAntifraudCheckValueCommandResponseType = z.infer<typeof BanAdminAntifraudCheckValueCommandResponse>;
71
+ //# sourceMappingURL=ban-admin-antifraud-check-value.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ban-admin-antifraud-check-value.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,sCAAsC;;iBAEjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;iBAAoC,CAAC;AAE5F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BanAdminAntifraudCheckValueCommand = exports.BanAdminAntifraudCheckValueCommandResponse = exports.BanAdminAntifraudCheckValueCommandBody = exports.BanAdminAntifraudCheckValueCommandParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.BanAdminAntifraudCheckValueCommandParams = zod_1.z.object({
9
+ checkId: zod_1.z.uuid(),
10
+ });
11
+ exports.BanAdminAntifraudCheckValueCommandBody = zod_1.z.object({
12
+ reason: zod_1.z.string().trim().min(1).max(500),
13
+ });
14
+ exports.BanAdminAntifraudCheckValueCommandResponse = models_1.AdminAntifraudCheckResponseSchema;
15
+ exports.BanAdminAntifraudCheckValueCommand = (0, _common_1.defineContract)({
16
+ method: _common_1.HTTP_METHODS.POST,
17
+ path: admin_1.ADMIN_ROUTES.BAN_ANTIFRAUD_CHECK_VALUE(':checkId'),
18
+ summary: 'Blacklist the IP or fingerprint an antifraud check matched on',
19
+ request: {
20
+ params: exports.BanAdminAntifraudCheckValueCommandParams,
21
+ body: exports.BanAdminAntifraudCheckValueCommandBody,
22
+ },
23
+ responses: {
24
+ 200: exports.BanAdminAntifraudCheckValueCommandResponse,
25
+ 400: _common_1.HttpErrorResponseSchema,
26
+ 401: _common_1.HttpErrorResponseSchema,
27
+ 403: _common_1.HttpErrorResponseSchema,
28
+ 404: _common_1.HttpErrorResponseSchema,
29
+ 409: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -25,4 +25,5 @@ export * from './update-admin-trend-category.command';
25
25
  export * from './delete-admin-trend-category.command';
26
26
  export * from './create-admin-blacklist-entry.command';
27
27
  export * from './delete-admin-blacklist-entry.command';
28
+ export * from './ban-admin-antifraud-check-value.command';
28
29
  //# 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;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,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;AACvD,cAAc,2CAA2C,CAAC"}
@@ -41,3 +41,4 @@ __exportStar(require("./update-admin-trend-category.command"), exports);
41
41
  __exportStar(require("./delete-admin-trend-category.command"), exports);
42
42
  __exportStar(require("./create-admin-blacklist-entry.command"), exports);
43
43
  __exportStar(require("./delete-admin-blacklist-entry.command"), exports);
44
+ __exportStar(require("./ban-admin-antifraud-check-value.command"), exports);
@@ -0,0 +1,78 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ import { ADMIN_ANTIFRAUD_CHECK_REASON } from '../../enums';
4
+ export declare const GetAdminAntifraudChecksQueryQuery: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
7
+ reason: z.ZodOptional<z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>>;
8
+ search: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export declare const GetAdminAntifraudChecksQueryResponse: z.ZodObject<{
11
+ checks: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ user: z.ZodObject<{
14
+ uuid: z.ZodUUID;
15
+ email: z.ZodString;
16
+ }, z.core.$strip>;
17
+ matchedUser: z.ZodObject<{
18
+ uuid: z.ZodUUID;
19
+ email: z.ZodString;
20
+ }, z.core.$strip>;
21
+ reason: z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>;
22
+ value: z.ZodString;
23
+ ban: z.ZodNullable<z.ZodObject<{
24
+ entryId: z.ZodUUID;
25
+ reason: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodISODateTime;
27
+ }, z.core.$strip>>;
28
+ createdAt: z.ZodISODateTime;
29
+ }, z.core.$strip>>;
30
+ total: z.ZodNumber;
31
+ page: z.ZodNumber;
32
+ limit: z.ZodNumber;
33
+ }, z.core.$strip>;
34
+ export declare const GetAdminAntifraudChecksQuery: {
35
+ method: HTTP_METHODS.GET;
36
+ path: "antifraud-checks";
37
+ summary: string;
38
+ request: {
39
+ query: z.ZodObject<{
40
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
41
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
42
+ reason: z.ZodOptional<z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>>;
43
+ search: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>;
45
+ };
46
+ responses: {
47
+ 200: z.ZodObject<{
48
+ checks: z.ZodArray<z.ZodObject<{
49
+ uuid: z.ZodUUID;
50
+ user: z.ZodObject<{
51
+ uuid: z.ZodUUID;
52
+ email: z.ZodString;
53
+ }, z.core.$strip>;
54
+ matchedUser: z.ZodObject<{
55
+ uuid: z.ZodUUID;
56
+ email: z.ZodString;
57
+ }, z.core.$strip>;
58
+ reason: z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>;
59
+ value: z.ZodString;
60
+ ban: z.ZodNullable<z.ZodObject<{
61
+ entryId: z.ZodUUID;
62
+ reason: z.ZodNullable<z.ZodString>;
63
+ createdAt: z.ZodISODateTime;
64
+ }, z.core.$strip>>;
65
+ createdAt: z.ZodISODateTime;
66
+ }, z.core.$strip>>;
67
+ total: z.ZodNumber;
68
+ page: z.ZodNumber;
69
+ limit: z.ZodNumber;
70
+ }, z.core.$strip>;
71
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
72
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
73
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
74
+ };
75
+ };
76
+ export type GetAdminAntifraudChecksQueryQueryType = z.infer<typeof GetAdminAntifraudChecksQueryQuery>;
77
+ export type GetAdminAntifraudChecksQueryResponseType = z.infer<typeof GetAdminAntifraudChecksQueryResponse>;
78
+ //# sourceMappingURL=get-admin-antifraud-checks.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-antifraud-checks.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-antifraud-checks.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAI3D,eAAO,MAAM,iCAAiC;;;;;iBAG5C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;iBAK/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAavC,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminAntifraudChecksQuery = exports.GetAdminAntifraudChecksQueryResponse = exports.GetAdminAntifraudChecksQueryQuery = 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.GetAdminAntifraudChecksQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
10
+ reason: zod_1.z.enum(enums_1.ADMIN_ANTIFRAUD_CHECK_REASON).optional(),
11
+ search: zod_1.z.string().trim().max(255).optional(),
12
+ });
13
+ exports.GetAdminAntifraudChecksQueryResponse = zod_1.z.object({
14
+ checks: zod_1.z.array(models_1.AdminAntifraudCheckResponseSchema),
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.GetAdminAntifraudChecksQuery = (0, _common_1.defineContract)({
20
+ method: _common_1.HTTP_METHODS.GET,
21
+ path: admin_1.ADMIN_ROUTES.GET_ANTIFRAUD_CHECKS,
22
+ summary: 'Get account matches that denied the email verification bonus',
23
+ request: {
24
+ query: exports.GetAdminAntifraudChecksQueryQuery,
25
+ },
26
+ responses: {
27
+ 200: exports.GetAdminAntifraudChecksQueryResponse,
28
+ 401: _common_1.HttpErrorResponseSchema,
29
+ 403: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -26,4 +26,5 @@ export * from './get-admin-trends.query';
26
26
  export * from './get-admin-trend.query';
27
27
  export * from './get-admin-trend-categories.query';
28
28
  export * from './get-admin-blacklist-entries.query';
29
+ export * from './get-admin-antifraud-checks.query';
29
30
  //# 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;AACnD,cAAc,qCAAqC,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;AACpD,cAAc,oCAAoC,CAAC"}
@@ -42,3 +42,4 @@ __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
44
  __exportStar(require("./get-admin-blacklist-entries.query"), exports);
45
+ __exportStar(require("./get-admin-antifraud-checks.query"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum ADMIN_ANTIFRAUD_CHECK_REASON {
2
+ FINGERPRINT_MATCH = "fingerprint_match",
3
+ IP_MATCH = "ip_match",
4
+ CANONICAL_EMAIL_MATCH = "canonical_email_match"
5
+ }
6
+ //# sourceMappingURL=admin-antifraud-check-reason.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-antifraud-check-reason.enum.d.ts","sourceRoot":"","sources":["../../../admin/enums/admin-antifraud-check-reason.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACpC,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;CAClD"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ADMIN_ANTIFRAUD_CHECK_REASON = void 0;
4
+ var ADMIN_ANTIFRAUD_CHECK_REASON;
5
+ (function (ADMIN_ANTIFRAUD_CHECK_REASON) {
6
+ ADMIN_ANTIFRAUD_CHECK_REASON["FINGERPRINT_MATCH"] = "fingerprint_match";
7
+ ADMIN_ANTIFRAUD_CHECK_REASON["IP_MATCH"] = "ip_match";
8
+ ADMIN_ANTIFRAUD_CHECK_REASON["CANONICAL_EMAIL_MATCH"] = "canonical_email_match";
9
+ })(ADMIN_ANTIFRAUD_CHECK_REASON || (exports.ADMIN_ANTIFRAUD_CHECK_REASON = ADMIN_ANTIFRAUD_CHECK_REASON = {}));
@@ -11,4 +11,5 @@ 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
13
  export * from './admin-blacklist-entry-type.enum';
14
+ export * from './admin-antifraud-check-reason.enum';
14
15
  //# 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;AAClD,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;AAClD,cAAc,qCAAqC,CAAC"}
@@ -27,3 +27,4 @@ __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
29
  __exportStar(require("./admin-blacklist-entry-type.enum"), exports);
30
+ __exportStar(require("./admin-antifraud-check-reason.enum"), exports);
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { ADMIN_ANTIFRAUD_CHECK_REASON } from '../enums';
3
+ export declare const AdminAntifraudCheckUserSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ email: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const AdminAntifraudCheckBanSchema: z.ZodObject<{
8
+ entryId: z.ZodUUID;
9
+ reason: z.ZodNullable<z.ZodString>;
10
+ createdAt: z.ZodISODateTime;
11
+ }, z.core.$strip>;
12
+ export declare const AdminAntifraudCheckResponseSchema: z.ZodObject<{
13
+ uuid: z.ZodUUID;
14
+ user: z.ZodObject<{
15
+ uuid: z.ZodUUID;
16
+ email: z.ZodString;
17
+ }, z.core.$strip>;
18
+ matchedUser: z.ZodObject<{
19
+ uuid: z.ZodUUID;
20
+ email: z.ZodString;
21
+ }, z.core.$strip>;
22
+ reason: z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>;
23
+ value: z.ZodString;
24
+ ban: z.ZodNullable<z.ZodObject<{
25
+ entryId: z.ZodUUID;
26
+ reason: z.ZodNullable<z.ZodString>;
27
+ createdAt: z.ZodISODateTime;
28
+ }, z.core.$strip>>;
29
+ createdAt: z.ZodISODateTime;
30
+ }, z.core.$strip>;
31
+ export type AdminAntifraudCheckUserSchemaType = z.infer<typeof AdminAntifraudCheckUserSchema>;
32
+ export type AdminAntifraudCheckBanSchemaType = z.infer<typeof AdminAntifraudCheckBanSchema>;
33
+ export type AdminAntifraudCheckResponseSchemaType = z.infer<typeof AdminAntifraudCheckResponseSchema>;
34
+ //# sourceMappingURL=admin-antifraud-check-response.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-antifraud-check-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-antifraud-check-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;iBAQ5C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC5F,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminAntifraudCheckResponseSchema = exports.AdminAntifraudCheckBanSchema = exports.AdminAntifraudCheckUserSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../enums");
6
+ exports.AdminAntifraudCheckUserSchema = zod_1.z.object({
7
+ uuid: zod_1.z.uuid(),
8
+ email: zod_1.z.string(),
9
+ });
10
+ exports.AdminAntifraudCheckBanSchema = zod_1.z.object({
11
+ entryId: zod_1.z.uuid(),
12
+ reason: zod_1.z.string().nullable(),
13
+ createdAt: zod_1.z.iso.datetime(),
14
+ });
15
+ exports.AdminAntifraudCheckResponseSchema = zod_1.z.object({
16
+ uuid: zod_1.z.uuid(),
17
+ user: exports.AdminAntifraudCheckUserSchema,
18
+ matchedUser: exports.AdminAntifraudCheckUserSchema,
19
+ reason: zod_1.z.enum(enums_1.ADMIN_ANTIFRAUD_CHECK_REASON),
20
+ value: zod_1.z.string(),
21
+ ban: exports.AdminAntifraudCheckBanSchema.nullable(),
22
+ createdAt: zod_1.z.iso.datetime(),
23
+ });
@@ -20,4 +20,5 @@ 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
22
  export * from './admin-blacklist-entry-response.schema';
23
+ export * from './admin-antifraud-check-response.schema';
23
24
  //# 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;AAC9C,cAAc,yCAAyC,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;AACxD,cAAc,yCAAyC,CAAC"}
@@ -36,3 +36,4 @@ __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
38
  __exportStar(require("./admin-blacklist-entry-response.schema"), exports);
39
+ __exportStar(require("./admin-antifraud-check-response.schema"), exports);
@@ -814,11 +814,6 @@ export declare const ERRORS: {
814
814
  readonly code: "AUTH.MULTI_ACCOUNT_CHECK_ERROR";
815
815
  readonly message: "Не удалось проверить аккаунт на мультиаккаунт";
816
816
  };
817
- readonly MULTI_ACCOUNT_DETECTION_CREATE_ERROR: {
818
- readonly httpCode: 500;
819
- readonly code: "AUTH.MULTI_ACCOUNT_DETECTION_CREATE_ERROR";
820
- readonly message: "Не удалось сохранить запись о мультиаккаунте";
821
- };
822
817
  };
823
818
  readonly ADMIN: {
824
819
  readonly BONUS_OPERATION_ERROR: {
@@ -1416,6 +1411,28 @@ export declare const ERRORS: {
1416
1411
  readonly message: "Не удалось запустить генерацию по тренду";
1417
1412
  };
1418
1413
  };
1414
+ readonly ANTIFRAUD: {
1415
+ readonly CHECK_NOT_FOUND: {
1416
+ readonly httpCode: 404;
1417
+ readonly code: "ANTIFRAUD.CHECK_NOT_FOUND";
1418
+ readonly message: "Антифрод-проверка не найдена";
1419
+ };
1420
+ readonly CHECK_NOT_BANNABLE: {
1421
+ readonly httpCode: 400;
1422
+ readonly code: "ANTIFRAUD.CHECK_NOT_BANNABLE";
1423
+ readonly message: "Забанить можно только совпадение по IP или фингерпринту";
1424
+ };
1425
+ readonly CHECK_CREATE_ERROR: {
1426
+ readonly httpCode: 500;
1427
+ readonly code: "ANTIFRAUD.CHECK_CREATE_ERROR";
1428
+ readonly message: "Не удалось сохранить антифрод-проверку";
1429
+ };
1430
+ readonly CHECK_FIND_ERROR: {
1431
+ readonly httpCode: 500;
1432
+ readonly code: "ANTIFRAUD.CHECK_FIND_ERROR";
1433
+ readonly message: "Не удалось получить антифрод-проверки";
1434
+ };
1435
+ };
1419
1436
  readonly BLACKLIST: {
1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