polarity-integration-utils 3.1.7 → 4.0.0
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/dist/dts/errors/integration-error.d.ts +11 -11
- package/dist/dts/errors/integration-error.d.ts.map +1 -1
- package/dist/dts/errors/parse-error-to-readable-json.d.ts +2 -2
- package/dist/dts/errors/parse-error-to-readable-json.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.docs.d.ts +1 -1
- package/dist/dts/lib/errors/integration-error.d.ts +11 -11
- package/dist/dts/lib/errors/integration-error.d.ts.map +1 -1
- package/dist/dts/lib/errors/parse-error-to-readable-json.d.ts +2 -2
- package/dist/dts/lib/errors/parse-error-to-readable-json.d.ts.map +1 -1
- package/dist/dts/lib/index.d.ts +1 -3
- package/dist/dts/lib/index.d.ts.map +1 -1
- package/dist/dts/lib/index.docs.d.ts +1 -1
- package/dist/dts/lib/logging/logger.d.ts +1 -12
- package/dist/dts/lib/logging/logger.d.ts.map +1 -1
- package/dist/dts/lib/requests/polarity-request.d.ts +93 -68
- package/dist/dts/lib/requests/polarity-request.d.ts.map +1 -1
- package/dist/dts/lib/testing/enhanced-utils/create-entity.d.ts +17 -1
- package/dist/dts/lib/testing/enhanced-utils/create-entity.d.ts.map +1 -1
- package/dist/dts/lib/testing/enhanced-utils/create-mock-integration-context.d.ts +42 -2
- package/dist/dts/lib/testing/enhanced-utils/create-mock-integration-context.d.ts.map +1 -1
- package/dist/dts/lib/testing/index.d.ts +0 -3
- package/dist/dts/lib/testing/index.d.ts.map +1 -1
- package/dist/dts/lib/types.d.ts +89 -84
- package/dist/dts/lib/types.d.ts.map +1 -1
- package/dist/dts/logging/logger.d.ts +1 -12
- package/dist/dts/logging/logger.d.ts.map +1 -1
- package/dist/dts/requests/polarity-request.d.ts +93 -68
- package/dist/dts/requests/polarity-request.d.ts.map +1 -1
- package/dist/dts/testing/enhanced-utils/create-entity.d.ts +17 -1
- package/dist/dts/testing/enhanced-utils/create-entity.d.ts.map +1 -1
- package/dist/dts/testing/enhanced-utils/create-mock-integration-context.d.ts +42 -2
- package/dist/dts/testing/enhanced-utils/create-mock-integration-context.d.ts.map +1 -1
- package/dist/dts/testing/index.d.ts +0 -3
- package/dist/dts/testing/index.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/dts/types.d.ts +89 -84
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/es/lib/errors/integration-error.js +7 -4
- package/dist/es/lib/index.docs.js +1 -1
- package/dist/es/lib/index.js +1 -5
- package/dist/es/lib/logging/logger.js +18 -7
- package/dist/es/lib/requests/polarity-request.js +103 -126
- package/dist/es/lib/testing/enhanced-utils/create-entity.js +31 -5
- package/dist/es/lib/testing/enhanced-utils/create-mock-integration-context.js +54 -27
- package/dist/es/lib/testing/index.js +0 -3
- package/dist/es/lib/types.js +2 -1
- package/dist/lib/errors/integration-error.js +7 -4
- package/dist/lib/index.docs.js +1 -1
- package/dist/lib/index.js +1 -5
- package/dist/lib/logging/logger.js +18 -7
- package/dist/lib/requests/polarity-request.js +103 -126
- package/dist/lib/testing/enhanced-utils/create-entity.js +31 -5
- package/dist/lib/testing/enhanced-utils/create-mock-integration-context.js +54 -27
- package/dist/lib/testing/index.js +0 -3
- package/dist/lib/types.js +2 -1
- package/dist/polarity-integration-utils.d.ts +264 -594
- package/package.json +8 -11
- package/dist/dts/context/cache.d.ts +0 -149
- package/dist/dts/context/cache.d.ts.map +0 -1
- package/dist/dts/context/index.d.ts +0 -3
- package/dist/dts/context/index.d.ts.map +0 -1
- package/dist/dts/context/integration-context.d.ts +0 -16
- package/dist/dts/context/integration-context.d.ts.map +0 -1
- package/dist/dts/lib/context/cache.d.ts +0 -149
- package/dist/dts/lib/context/cache.d.ts.map +0 -1
- package/dist/dts/lib/context/index.d.ts +0 -3
- package/dist/dts/lib/context/index.d.ts.map +0 -1
- package/dist/dts/lib/context/integration-context.d.ts +0 -16
- package/dist/dts/lib/context/integration-context.d.ts.map +0 -1
- package/dist/dts/lib/testing/enhanced-utils/mock-request.d.ts +0 -14
- package/dist/dts/lib/testing/enhanced-utils/mock-request.d.ts.map +0 -1
- package/dist/dts/lib/testing/enhanced-utils/validate-integration.d.ts +0 -8
- package/dist/dts/lib/testing/enhanced-utils/validate-integration.d.ts.map +0 -1
- package/dist/dts/lib/testing/test-factory/create-integration-tests.d.ts +0 -6
- package/dist/dts/lib/testing/test-factory/create-integration-tests.d.ts.map +0 -1
- package/dist/dts/lib/testing/test-factory/test-do-lookup.d.ts +0 -7
- package/dist/dts/lib/testing/test-factory/test-do-lookup.d.ts.map +0 -1
- package/dist/dts/lib/testing/test-factory/test-on-message.d.ts +0 -8
- package/dist/dts/lib/testing/test-factory/test-on-message.d.ts.map +0 -1
- package/dist/dts/lib/zod-types.d.ts +0 -278
- package/dist/dts/lib/zod-types.d.ts.map +0 -1
- package/dist/dts/testing/enhanced-utils/mock-request.d.ts +0 -14
- package/dist/dts/testing/enhanced-utils/mock-request.d.ts.map +0 -1
- package/dist/dts/testing/enhanced-utils/validate-integration.d.ts +0 -8
- package/dist/dts/testing/enhanced-utils/validate-integration.d.ts.map +0 -1
- package/dist/dts/testing/test-factory/create-integration-tests.d.ts +0 -6
- package/dist/dts/testing/test-factory/create-integration-tests.d.ts.map +0 -1
- package/dist/dts/testing/test-factory/test-do-lookup.d.ts +0 -7
- package/dist/dts/testing/test-factory/test-do-lookup.d.ts.map +0 -1
- package/dist/dts/testing/test-factory/test-on-message.d.ts +0 -8
- package/dist/dts/testing/test-factory/test-on-message.d.ts.map +0 -1
- package/dist/dts/zod-types.d.ts +0 -278
- package/dist/dts/zod-types.d.ts.map +0 -1
- package/dist/es/lib/context/cache.js +0 -2
- package/dist/es/lib/context/index.js +0 -18
- package/dist/es/lib/context/integration-context.js +0 -2
- package/dist/es/lib/testing/enhanced-utils/mock-request.js +0 -22
- package/dist/es/lib/testing/enhanced-utils/validate-integration.js +0 -159
- package/dist/es/lib/testing/test-factory/create-integration-tests.js +0 -53
- package/dist/es/lib/testing/test-factory/test-do-lookup.js +0 -24
- package/dist/es/lib/testing/test-factory/test-on-message.js +0 -24
- package/dist/es/lib/zod-types.js +0 -206
- package/dist/lib/context/cache.js +0 -2
- package/dist/lib/context/index.js +0 -18
- package/dist/lib/context/integration-context.js +0 -2
- package/dist/lib/testing/enhanced-utils/mock-request.js +0 -22
- package/dist/lib/testing/enhanced-utils/validate-integration.js +0 -159
- package/dist/lib/testing/test-factory/create-integration-tests.js +0 -53
- package/dist/lib/testing/test-factory/test-do-lookup.js +0 -24
- package/dist/lib/testing/test-factory/test-on-message.js +0 -24
- package/dist/lib/zod-types.js +0 -206
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ValidationErrorSchema: z.ZodObject<{
|
|
3
|
-
key: z.ZodString;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const DropdownUserOptionValueSchema: z.ZodObject<{
|
|
7
|
-
display: z.ZodString;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const PossibleUserOptionValueSchema: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
11
|
-
display: z.ZodString;
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
14
|
-
display: z.ZodString;
|
|
15
|
-
value: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>]>;
|
|
17
|
-
export declare const DoLookupUserOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
18
|
-
display: z.ZodString;
|
|
19
|
-
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
21
|
-
display: z.ZodString;
|
|
22
|
-
value: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>>;
|
|
24
|
-
export declare const ValidateOptionsUserOptionSchema: z.ZodObject<{
|
|
25
|
-
integration_id: z.ZodOptional<z.ZodString>;
|
|
26
|
-
key: z.ZodString;
|
|
27
|
-
value: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
28
|
-
display: z.ZodString;
|
|
29
|
-
value: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
31
|
-
display: z.ZodString;
|
|
32
|
-
value: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
34
|
-
user_can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
admin_only: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export declare const ValidateOptionsUserOptionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
38
|
-
integration_id: z.ZodOptional<z.ZodString>;
|
|
39
|
-
key: z.ZodString;
|
|
40
|
-
value: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
41
|
-
display: z.ZodString;
|
|
42
|
-
value: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
44
|
-
display: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
47
|
-
user_can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
admin_only: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
export declare const ChannelSchema: z.ZodObject<{
|
|
51
|
-
channel_name: z.ZodString;
|
|
52
|
-
id: z.ZodNumber;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const StandardEntityTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>;
|
|
55
|
-
export declare const EntityTypeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
56
|
-
export declare const EntitySchema: z.ZodObject<{
|
|
57
|
-
value: z.ZodString;
|
|
58
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
59
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
60
|
-
requestContext: z.ZodObject<{
|
|
61
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
62
|
-
isUserInitiated: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
longitude: z.ZodNumber;
|
|
65
|
-
latitude: z.ZodNumber;
|
|
66
|
-
isURL: z.ZodBoolean;
|
|
67
|
-
isSHA512: z.ZodBoolean;
|
|
68
|
-
isSHA256: z.ZodBoolean;
|
|
69
|
-
isSHA1: z.ZodBoolean;
|
|
70
|
-
isPrivateIP: z.ZodBoolean;
|
|
71
|
-
isMD5: z.ZodBoolean;
|
|
72
|
-
isIPv6: z.ZodBoolean;
|
|
73
|
-
isIPv4: z.ZodBoolean;
|
|
74
|
-
isIP: z.ZodBoolean;
|
|
75
|
-
isHex: z.ZodBoolean;
|
|
76
|
-
isHash: z.ZodBoolean;
|
|
77
|
-
isHTMLTag: z.ZodBoolean;
|
|
78
|
-
isEmail: z.ZodBoolean;
|
|
79
|
-
isDomain: z.ZodBoolean;
|
|
80
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
81
|
-
displayValue: z.ZodString;
|
|
82
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
83
|
-
channel_name: z.ZodString;
|
|
84
|
-
id: z.ZodNumber;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
export declare const ResultSchema: z.ZodObject<{
|
|
89
|
-
entity: z.ZodObject<{
|
|
90
|
-
value: z.ZodString;
|
|
91
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
92
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
93
|
-
requestContext: z.ZodObject<{
|
|
94
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
95
|
-
isUserInitiated: z.ZodBoolean;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
longitude: z.ZodNumber;
|
|
98
|
-
latitude: z.ZodNumber;
|
|
99
|
-
isURL: z.ZodBoolean;
|
|
100
|
-
isSHA512: z.ZodBoolean;
|
|
101
|
-
isSHA256: z.ZodBoolean;
|
|
102
|
-
isSHA1: z.ZodBoolean;
|
|
103
|
-
isPrivateIP: z.ZodBoolean;
|
|
104
|
-
isMD5: z.ZodBoolean;
|
|
105
|
-
isIPv6: z.ZodBoolean;
|
|
106
|
-
isIPv4: z.ZodBoolean;
|
|
107
|
-
isIP: z.ZodBoolean;
|
|
108
|
-
isHex: z.ZodBoolean;
|
|
109
|
-
isHash: z.ZodBoolean;
|
|
110
|
-
isHTMLTag: z.ZodBoolean;
|
|
111
|
-
isEmail: z.ZodBoolean;
|
|
112
|
-
isDomain: z.ZodBoolean;
|
|
113
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
114
|
-
displayValue: z.ZodString;
|
|
115
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
116
|
-
channel_name: z.ZodString;
|
|
117
|
-
id: z.ZodNumber;
|
|
118
|
-
}, z.core.$strip>>;
|
|
119
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
displayValue: z.ZodOptional<z.ZodString>;
|
|
122
|
-
data: z.ZodObject<{
|
|
123
|
-
summary: z.ZodArray<z.ZodString>;
|
|
124
|
-
details: z.ZodUnknown;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
export declare const DoLookupResultSchema: z.ZodArray<z.ZodObject<{
|
|
128
|
-
entity: z.ZodObject<{
|
|
129
|
-
value: z.ZodString;
|
|
130
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
131
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
132
|
-
requestContext: z.ZodObject<{
|
|
133
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
134
|
-
isUserInitiated: z.ZodBoolean;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
longitude: z.ZodNumber;
|
|
137
|
-
latitude: z.ZodNumber;
|
|
138
|
-
isURL: z.ZodBoolean;
|
|
139
|
-
isSHA512: z.ZodBoolean;
|
|
140
|
-
isSHA256: z.ZodBoolean;
|
|
141
|
-
isSHA1: z.ZodBoolean;
|
|
142
|
-
isPrivateIP: z.ZodBoolean;
|
|
143
|
-
isMD5: z.ZodBoolean;
|
|
144
|
-
isIPv6: z.ZodBoolean;
|
|
145
|
-
isIPv4: z.ZodBoolean;
|
|
146
|
-
isIP: z.ZodBoolean;
|
|
147
|
-
isHex: z.ZodBoolean;
|
|
148
|
-
isHash: z.ZodBoolean;
|
|
149
|
-
isHTMLTag: z.ZodBoolean;
|
|
150
|
-
isEmail: z.ZodBoolean;
|
|
151
|
-
isDomain: z.ZodBoolean;
|
|
152
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
153
|
-
displayValue: z.ZodString;
|
|
154
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
155
|
-
channel_name: z.ZodString;
|
|
156
|
-
id: z.ZodNumber;
|
|
157
|
-
}, z.core.$strip>>;
|
|
158
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
displayValue: z.ZodOptional<z.ZodString>;
|
|
161
|
-
data: z.ZodObject<{
|
|
162
|
-
summary: z.ZodArray<z.ZodString>;
|
|
163
|
-
details: z.ZodUnknown;
|
|
164
|
-
}, z.core.$strip>;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
export declare const IntegrationConfigSchema: z.ZodObject<{
|
|
167
|
-
polarityIntegrationUuid: z.ZodUUID;
|
|
168
|
-
name: z.ZodString;
|
|
169
|
-
acronym: z.ZodString;
|
|
170
|
-
description: z.ZodOptional<z.ZodString>;
|
|
171
|
-
defaultColor: z.ZodOptional<z.ZodString>;
|
|
172
|
-
entityTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
173
|
-
dataTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
174
|
-
type: z.ZodOptional<z.ZodLiteral<"custom">>;
|
|
175
|
-
name: z.ZodOptional<z.ZodString>;
|
|
176
|
-
description: z.ZodOptional<z.ZodString>;
|
|
177
|
-
key: z.ZodString;
|
|
178
|
-
regex: z.ZodString;
|
|
179
|
-
editable: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
-
}, z.core.$strip>]>>>;
|
|
182
|
-
customTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
-
type: z.ZodOptional<z.ZodLiteral<"custom">>;
|
|
184
|
-
name: z.ZodOptional<z.ZodString>;
|
|
185
|
-
description: z.ZodOptional<z.ZodString>;
|
|
186
|
-
key: z.ZodString;
|
|
187
|
-
regex: z.ZodString;
|
|
188
|
-
editable: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
}, z.core.$strip>>>;
|
|
191
|
-
supportsAdditionalCustomTypes: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
-
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
|
-
block: z.ZodObject<{
|
|
194
|
-
component: z.ZodObject<{
|
|
195
|
-
file: z.ZodString;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
template: z.ZodObject<{
|
|
198
|
-
file: z.ZodString;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
202
|
-
component: z.ZodObject<{
|
|
203
|
-
file: z.ZodString;
|
|
204
|
-
}, z.core.$strip>;
|
|
205
|
-
template: z.ZodObject<{
|
|
206
|
-
file: z.ZodString;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
}, z.core.$strip>>;
|
|
209
|
-
onDemandOnly: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
-
copyOnDemand: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
logging: z.ZodOptional<z.ZodObject<{
|
|
212
|
-
level: z.ZodEnum<{
|
|
213
|
-
error: "error";
|
|
214
|
-
debug: "debug";
|
|
215
|
-
info: "info";
|
|
216
|
-
trace: "trace";
|
|
217
|
-
warn: "warn";
|
|
218
|
-
fatal: "fatal";
|
|
219
|
-
}>;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
request: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
cert: z.ZodOptional<z.ZodString>;
|
|
223
|
-
key: z.ZodOptional<z.ZodString>;
|
|
224
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
225
|
-
ca: z.ZodOptional<z.ZodString>;
|
|
226
|
-
proxy: z.ZodOptional<z.ZodString>;
|
|
227
|
-
rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
options: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
-
type: z.ZodEnum<{
|
|
231
|
-
text: "text";
|
|
232
|
-
password: "password";
|
|
233
|
-
}>;
|
|
234
|
-
key: z.ZodString;
|
|
235
|
-
name: z.ZodString;
|
|
236
|
-
description: z.ZodOptional<z.ZodString>;
|
|
237
|
-
default: z.ZodNullable<z.ZodString>;
|
|
238
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"boolean">;
|
|
242
|
-
key: z.ZodString;
|
|
243
|
-
name: z.ZodString;
|
|
244
|
-
description: z.ZodOptional<z.ZodString>;
|
|
245
|
-
default: z.ZodNullable<z.ZodBoolean>;
|
|
246
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
-
type: z.ZodLiteral<"number">;
|
|
250
|
-
key: z.ZodString;
|
|
251
|
-
name: z.ZodString;
|
|
252
|
-
description: z.ZodOptional<z.ZodString>;
|
|
253
|
-
default: z.ZodNullable<z.ZodNumber>;
|
|
254
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
-
type: z.ZodLiteral<"select">;
|
|
258
|
-
key: z.ZodString;
|
|
259
|
-
name: z.ZodString;
|
|
260
|
-
description: z.ZodOptional<z.ZodString>;
|
|
261
|
-
default: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
262
|
-
value: z.ZodString;
|
|
263
|
-
display: z.ZodString;
|
|
264
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
265
|
-
value: z.ZodString;
|
|
266
|
-
display: z.ZodString;
|
|
267
|
-
}, z.core.$strip>>, z.ZodString]>>;
|
|
268
|
-
options: z.ZodArray<z.ZodObject<{
|
|
269
|
-
value: z.ZodString;
|
|
270
|
-
display: z.ZodString;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
userCanEdit: z.ZodBoolean;
|
|
274
|
-
adminOnly: z.ZodBoolean;
|
|
275
|
-
}, z.core.$strip>], "type">>>;
|
|
276
|
-
}, z.core.$strip>;
|
|
277
|
-
export type IntegrationConfig = z.infer<typeof IntegrationConfigSchema>;
|
|
278
|
-
//# sourceMappingURL=zod-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod-types.d.ts","sourceRoot":"","sources":["../../../lib/zod-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;oBAOxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;qBAGrC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAM1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;kBAG5C,CAAC;AAEF,eAAO,MAAM,aAAa;;;iBAGxB,CAAC;AAEH,eAAO,MAAM,wBAAwB,gVAenC,CAAC;AAEH,eAAO,MAAM,gBAAgB,ucAK3B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCvB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAwB,CAAC;AAyE1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoClC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PolarityRequest } from '../../requests/polarity-request';
|
|
2
|
-
export declare const mockRequest: () => {
|
|
3
|
-
PolarityRequestMock: jest.MockedClass<typeof PolarityRequest>;
|
|
4
|
-
mockRequest: {
|
|
5
|
-
get: jest.Mock<any, any, any>;
|
|
6
|
-
post: jest.Mock<any, any, any>;
|
|
7
|
-
put: jest.Mock<any, any, any>;
|
|
8
|
-
delete: jest.Mock<any, any, any>;
|
|
9
|
-
patch: jest.Mock<any, any, any>;
|
|
10
|
-
head: jest.Mock<any, any, any>;
|
|
11
|
-
options: jest.Mock<any, any, any>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=mock-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-request.d.ts","sourceRoot":"","sources":["../../../../lib/testing/enhanced-utils/mock-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIlE,eAAO,MAAM,WAAW;yBAcoB,IAAI,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC;;;;;;;;;;CAGnF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Integration, IntegrationConfig } from '../../types';
|
|
2
|
-
export interface ValidationResult {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
errors: string[];
|
|
5
|
-
warnings: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare const validateIntegration: (integration: Integration, config?: IntegrationConfig) => ValidationResult;
|
|
8
|
-
//# sourceMappingURL=validate-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-integration.d.ts","sourceRoot":"","sources":["../../../../lib/testing/enhanced-utils/validate-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAsB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKjF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,GAC9B,aAAa,WAAW,EACxB,SAAS,iBAAiB,KACzB,gBAoCF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration-tests.d.ts","sourceRoot":"","sources":["../../../../lib/testing/test-factory/create-integration-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO1C,eAAO,MAAM,sBAAsB,GAAI,aAAa,WAAW;;;CAY9D,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DoLookupResult, DoLookupUserOptions, Entity, Integration } from '../../types';
|
|
2
|
-
export declare const testDoLookup: (integration: Integration, description: string, { entities, options, expected }: {
|
|
3
|
-
entities: Entity[];
|
|
4
|
-
options: DoLookupUserOptions;
|
|
5
|
-
expected: DoLookupResult;
|
|
6
|
-
}) => void;
|
|
7
|
-
//# sourceMappingURL=test-do-lookup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-do-lookup.d.ts","sourceRoot":"","sources":["../../../../lib/testing/test-factory/test-do-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIvF,eAAO,MAAM,YAAY,GACvB,aAAa,WAAW,EACxB,aAAa,MAAM,EACnB,iCAIG;IACD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,cAAc,CAAC;CAC1B,SAkBF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DoLookupUserOptions, Integration } from '../../types';
|
|
2
|
-
export declare const testOnMessage: (integration: Integration, description: string, { command, args, expected, options }: {
|
|
3
|
-
command: string;
|
|
4
|
-
args: Record<string, unknown>;
|
|
5
|
-
expected: unknown;
|
|
6
|
-
options?: DoLookupUserOptions;
|
|
7
|
-
}) => void;
|
|
8
|
-
//# sourceMappingURL=test-on-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-on-message.d.ts","sourceRoot":"","sources":["../../../../lib/testing/test-factory/test-on-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/D,eAAO,MAAM,aAAa,GACxB,aAAa,WAAW,EACxB,aAAa,MAAM,EACnB,sCAKG;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,SAmBF,CAAC"}
|
package/dist/dts/zod-types.d.ts
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ValidationErrorSchema: z.ZodObject<{
|
|
3
|
-
key: z.ZodString;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const DropdownUserOptionValueSchema: z.ZodObject<{
|
|
7
|
-
display: z.ZodString;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const PossibleUserOptionValueSchema: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
11
|
-
display: z.ZodString;
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
14
|
-
display: z.ZodString;
|
|
15
|
-
value: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>]>;
|
|
17
|
-
export declare const DoLookupUserOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
18
|
-
display: z.ZodString;
|
|
19
|
-
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
21
|
-
display: z.ZodString;
|
|
22
|
-
value: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>>;
|
|
24
|
-
export declare const ValidateOptionsUserOptionSchema: z.ZodObject<{
|
|
25
|
-
integration_id: z.ZodOptional<z.ZodString>;
|
|
26
|
-
key: z.ZodString;
|
|
27
|
-
value: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
28
|
-
display: z.ZodString;
|
|
29
|
-
value: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
31
|
-
display: z.ZodString;
|
|
32
|
-
value: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
34
|
-
user_can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
admin_only: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export declare const ValidateOptionsUserOptionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
38
|
-
integration_id: z.ZodOptional<z.ZodString>;
|
|
39
|
-
key: z.ZodString;
|
|
40
|
-
value: z.ZodUnion<readonly [z.ZodUndefined, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
41
|
-
display: z.ZodString;
|
|
42
|
-
value: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
44
|
-
display: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
47
|
-
user_can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
admin_only: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
export declare const ChannelSchema: z.ZodObject<{
|
|
51
|
-
channel_name: z.ZodString;
|
|
52
|
-
id: z.ZodNumber;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const StandardEntityTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>;
|
|
55
|
-
export declare const EntityTypeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
56
|
-
export declare const EntitySchema: z.ZodObject<{
|
|
57
|
-
value: z.ZodString;
|
|
58
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
59
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
60
|
-
requestContext: z.ZodObject<{
|
|
61
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
62
|
-
isUserInitiated: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
longitude: z.ZodNumber;
|
|
65
|
-
latitude: z.ZodNumber;
|
|
66
|
-
isURL: z.ZodBoolean;
|
|
67
|
-
isSHA512: z.ZodBoolean;
|
|
68
|
-
isSHA256: z.ZodBoolean;
|
|
69
|
-
isSHA1: z.ZodBoolean;
|
|
70
|
-
isPrivateIP: z.ZodBoolean;
|
|
71
|
-
isMD5: z.ZodBoolean;
|
|
72
|
-
isIPv6: z.ZodBoolean;
|
|
73
|
-
isIPv4: z.ZodBoolean;
|
|
74
|
-
isIP: z.ZodBoolean;
|
|
75
|
-
isHex: z.ZodBoolean;
|
|
76
|
-
isHash: z.ZodBoolean;
|
|
77
|
-
isHTMLTag: z.ZodBoolean;
|
|
78
|
-
isEmail: z.ZodBoolean;
|
|
79
|
-
isDomain: z.ZodBoolean;
|
|
80
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
81
|
-
displayValue: z.ZodString;
|
|
82
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
83
|
-
channel_name: z.ZodString;
|
|
84
|
-
id: z.ZodNumber;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
export declare const ResultSchema: z.ZodObject<{
|
|
89
|
-
entity: z.ZodObject<{
|
|
90
|
-
value: z.ZodString;
|
|
91
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
92
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
93
|
-
requestContext: z.ZodObject<{
|
|
94
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
95
|
-
isUserInitiated: z.ZodBoolean;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
longitude: z.ZodNumber;
|
|
98
|
-
latitude: z.ZodNumber;
|
|
99
|
-
isURL: z.ZodBoolean;
|
|
100
|
-
isSHA512: z.ZodBoolean;
|
|
101
|
-
isSHA256: z.ZodBoolean;
|
|
102
|
-
isSHA1: z.ZodBoolean;
|
|
103
|
-
isPrivateIP: z.ZodBoolean;
|
|
104
|
-
isMD5: z.ZodBoolean;
|
|
105
|
-
isIPv6: z.ZodBoolean;
|
|
106
|
-
isIPv4: z.ZodBoolean;
|
|
107
|
-
isIP: z.ZodBoolean;
|
|
108
|
-
isHex: z.ZodBoolean;
|
|
109
|
-
isHash: z.ZodBoolean;
|
|
110
|
-
isHTMLTag: z.ZodBoolean;
|
|
111
|
-
isEmail: z.ZodBoolean;
|
|
112
|
-
isDomain: z.ZodBoolean;
|
|
113
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
114
|
-
displayValue: z.ZodString;
|
|
115
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
116
|
-
channel_name: z.ZodString;
|
|
117
|
-
id: z.ZodNumber;
|
|
118
|
-
}, z.core.$strip>>;
|
|
119
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
displayValue: z.ZodOptional<z.ZodString>;
|
|
122
|
-
data: z.ZodObject<{
|
|
123
|
-
summary: z.ZodArray<z.ZodString>;
|
|
124
|
-
details: z.ZodUnknown;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
export declare const DoLookupResultSchema: z.ZodArray<z.ZodObject<{
|
|
128
|
-
entity: z.ZodObject<{
|
|
129
|
-
value: z.ZodString;
|
|
130
|
-
types: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>>;
|
|
131
|
-
type: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"IP">, z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv4CIDR">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"MAC">, z.ZodLiteral<"MD5">, z.ZodLiteral<"SHA1">, z.ZodLiteral<"SHA256">, z.ZodLiteral<"cve">, z.ZodLiteral<"domain">, z.ZodLiteral<"email">, z.ZodLiteral<"hash">, z.ZodLiteral<"string">, z.ZodLiteral<"url">]>, z.ZodLiteral<"*">, z.ZodLiteral<"custom">, z.ZodCustom<`custom.${string}`, `custom.${string}`>]>;
|
|
132
|
-
requestContext: z.ZodObject<{
|
|
133
|
-
requestType: z.ZodLiteral<"onDemand">;
|
|
134
|
-
isUserInitiated: z.ZodBoolean;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
longitude: z.ZodNumber;
|
|
137
|
-
latitude: z.ZodNumber;
|
|
138
|
-
isURL: z.ZodBoolean;
|
|
139
|
-
isSHA512: z.ZodBoolean;
|
|
140
|
-
isSHA256: z.ZodBoolean;
|
|
141
|
-
isSHA1: z.ZodBoolean;
|
|
142
|
-
isPrivateIP: z.ZodBoolean;
|
|
143
|
-
isMD5: z.ZodBoolean;
|
|
144
|
-
isIPv6: z.ZodBoolean;
|
|
145
|
-
isIPv4: z.ZodBoolean;
|
|
146
|
-
isIP: z.ZodBoolean;
|
|
147
|
-
isHex: z.ZodBoolean;
|
|
148
|
-
isHash: z.ZodBoolean;
|
|
149
|
-
isHTMLTag: z.ZodBoolean;
|
|
150
|
-
isEmail: z.ZodBoolean;
|
|
151
|
-
isDomain: z.ZodBoolean;
|
|
152
|
-
hashType: z.ZodUnion<readonly [z.ZodLiteral<"md5">, z.ZodLiteral<"sha1">, z.ZodLiteral<"sha256">, z.ZodLiteral<"sha512">, z.ZodLiteral<"">]>;
|
|
153
|
-
displayValue: z.ZodString;
|
|
154
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
155
|
-
channel_name: z.ZodString;
|
|
156
|
-
id: z.ZodNumber;
|
|
157
|
-
}, z.core.$strip>>;
|
|
158
|
-
IPType: z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">, z.ZodLiteral<"">]>;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
displayValue: z.ZodOptional<z.ZodString>;
|
|
161
|
-
data: z.ZodObject<{
|
|
162
|
-
summary: z.ZodArray<z.ZodString>;
|
|
163
|
-
details: z.ZodUnknown;
|
|
164
|
-
}, z.core.$strip>;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
export declare const IntegrationConfigSchema: z.ZodObject<{
|
|
167
|
-
polarityIntegrationUuid: z.ZodUUID;
|
|
168
|
-
name: z.ZodString;
|
|
169
|
-
acronym: z.ZodString;
|
|
170
|
-
description: z.ZodOptional<z.ZodString>;
|
|
171
|
-
defaultColor: z.ZodOptional<z.ZodString>;
|
|
172
|
-
entityTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
173
|
-
dataTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
174
|
-
type: z.ZodOptional<z.ZodLiteral<"custom">>;
|
|
175
|
-
name: z.ZodOptional<z.ZodString>;
|
|
176
|
-
description: z.ZodOptional<z.ZodString>;
|
|
177
|
-
key: z.ZodString;
|
|
178
|
-
regex: z.ZodString;
|
|
179
|
-
editable: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
-
}, z.core.$strip>]>>>;
|
|
182
|
-
customTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
-
type: z.ZodOptional<z.ZodLiteral<"custom">>;
|
|
184
|
-
name: z.ZodOptional<z.ZodString>;
|
|
185
|
-
description: z.ZodOptional<z.ZodString>;
|
|
186
|
-
key: z.ZodString;
|
|
187
|
-
regex: z.ZodString;
|
|
188
|
-
editable: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
}, z.core.$strip>>>;
|
|
191
|
-
supportsAdditionalCustomTypes: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
-
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
|
-
block: z.ZodObject<{
|
|
194
|
-
component: z.ZodObject<{
|
|
195
|
-
file: z.ZodString;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
template: z.ZodObject<{
|
|
198
|
-
file: z.ZodString;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
202
|
-
component: z.ZodObject<{
|
|
203
|
-
file: z.ZodString;
|
|
204
|
-
}, z.core.$strip>;
|
|
205
|
-
template: z.ZodObject<{
|
|
206
|
-
file: z.ZodString;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
}, z.core.$strip>>;
|
|
209
|
-
onDemandOnly: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
-
copyOnDemand: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
logging: z.ZodOptional<z.ZodObject<{
|
|
212
|
-
level: z.ZodEnum<{
|
|
213
|
-
error: "error";
|
|
214
|
-
debug: "debug";
|
|
215
|
-
info: "info";
|
|
216
|
-
trace: "trace";
|
|
217
|
-
warn: "warn";
|
|
218
|
-
fatal: "fatal";
|
|
219
|
-
}>;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
request: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
cert: z.ZodOptional<z.ZodString>;
|
|
223
|
-
key: z.ZodOptional<z.ZodString>;
|
|
224
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
225
|
-
ca: z.ZodOptional<z.ZodString>;
|
|
226
|
-
proxy: z.ZodOptional<z.ZodString>;
|
|
227
|
-
rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
options: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
-
type: z.ZodEnum<{
|
|
231
|
-
text: "text";
|
|
232
|
-
password: "password";
|
|
233
|
-
}>;
|
|
234
|
-
key: z.ZodString;
|
|
235
|
-
name: z.ZodString;
|
|
236
|
-
description: z.ZodOptional<z.ZodString>;
|
|
237
|
-
default: z.ZodNullable<z.ZodString>;
|
|
238
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"boolean">;
|
|
242
|
-
key: z.ZodString;
|
|
243
|
-
name: z.ZodString;
|
|
244
|
-
description: z.ZodOptional<z.ZodString>;
|
|
245
|
-
default: z.ZodNullable<z.ZodBoolean>;
|
|
246
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
-
type: z.ZodLiteral<"number">;
|
|
250
|
-
key: z.ZodString;
|
|
251
|
-
name: z.ZodString;
|
|
252
|
-
description: z.ZodOptional<z.ZodString>;
|
|
253
|
-
default: z.ZodNullable<z.ZodNumber>;
|
|
254
|
-
userCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
-
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
-
type: z.ZodLiteral<"select">;
|
|
258
|
-
key: z.ZodString;
|
|
259
|
-
name: z.ZodString;
|
|
260
|
-
description: z.ZodOptional<z.ZodString>;
|
|
261
|
-
default: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
262
|
-
value: z.ZodString;
|
|
263
|
-
display: z.ZodString;
|
|
264
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
265
|
-
value: z.ZodString;
|
|
266
|
-
display: z.ZodString;
|
|
267
|
-
}, z.core.$strip>>, z.ZodString]>>;
|
|
268
|
-
options: z.ZodArray<z.ZodObject<{
|
|
269
|
-
value: z.ZodString;
|
|
270
|
-
display: z.ZodString;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
userCanEdit: z.ZodBoolean;
|
|
274
|
-
adminOnly: z.ZodBoolean;
|
|
275
|
-
}, z.core.$strip>], "type">>>;
|
|
276
|
-
}, z.core.$strip>;
|
|
277
|
-
export type IntegrationConfig = z.infer<typeof IntegrationConfigSchema>;
|
|
278
|
-
//# sourceMappingURL=zod-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod-types.d.ts","sourceRoot":"","sources":["../../lib/zod-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;oBAOxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;qBAGrC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAM1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;kBAG5C,CAAC;AAEF,eAAO,MAAM,aAAa;;;iBAGxB,CAAC;AAEH,eAAO,MAAM,wBAAwB,gVAenC,CAAC;AAEH,eAAO,MAAM,gBAAgB,ucAK3B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCvB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAwB,CAAC;AAyE1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoClC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|