@cdot65/prisma-airs-sdk 0.1.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.
@@ -0,0 +1,2455 @@
1
+ import { z } from 'zod';
2
+
3
+ interface InitOptions {
4
+ apiKey?: string;
5
+ apiToken?: string;
6
+ apiEndpoint?: string;
7
+ numRetries?: number;
8
+ }
9
+ declare class Configuration {
10
+ private _apiKey?;
11
+ private _apiToken?;
12
+ private _apiEndpoint;
13
+ private _numRetries;
14
+ private _initialized;
15
+ get apiKey(): string | undefined;
16
+ get apiToken(): string | undefined;
17
+ get apiEndpoint(): string;
18
+ get numRetries(): number;
19
+ get initialized(): boolean;
20
+ init(opts?: InitOptions): void;
21
+ reset(): void;
22
+ }
23
+ declare const globalConfiguration: Configuration;
24
+ declare function init(opts?: InitOptions): void;
25
+
26
+ declare const AiProfileSchema: z.ZodEffects<z.ZodObject<{
27
+ profile_id: z.ZodOptional<z.ZodString>;
28
+ profile_name: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ profile_id?: string | undefined;
31
+ profile_name?: string | undefined;
32
+ }, {
33
+ profile_id?: string | undefined;
34
+ profile_name?: string | undefined;
35
+ }>, {
36
+ profile_id?: string | undefined;
37
+ profile_name?: string | undefined;
38
+ }, {
39
+ profile_id?: string | undefined;
40
+ profile_name?: string | undefined;
41
+ }>;
42
+ type AiProfile = z.infer<typeof AiProfileSchema>;
43
+
44
+ declare const AgentMetaSchema: z.ZodObject<{
45
+ agent_id: z.ZodOptional<z.ZodString>;
46
+ agent_version: z.ZodOptional<z.ZodString>;
47
+ agent_arn: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ agent_id?: string | undefined;
50
+ agent_version?: string | undefined;
51
+ agent_arn?: string | undefined;
52
+ }, {
53
+ agent_id?: string | undefined;
54
+ agent_version?: string | undefined;
55
+ agent_arn?: string | undefined;
56
+ }>;
57
+ type AgentMeta = z.infer<typeof AgentMetaSchema>;
58
+ declare const MetadataSchema: z.ZodObject<{
59
+ app_name: z.ZodOptional<z.ZodString>;
60
+ app_user: z.ZodOptional<z.ZodString>;
61
+ ai_model: z.ZodOptional<z.ZodString>;
62
+ user_ip: z.ZodOptional<z.ZodString>;
63
+ agent_meta: z.ZodOptional<z.ZodObject<{
64
+ agent_id: z.ZodOptional<z.ZodString>;
65
+ agent_version: z.ZodOptional<z.ZodString>;
66
+ agent_arn: z.ZodOptional<z.ZodString>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ agent_id?: string | undefined;
69
+ agent_version?: string | undefined;
70
+ agent_arn?: string | undefined;
71
+ }, {
72
+ agent_id?: string | undefined;
73
+ agent_version?: string | undefined;
74
+ agent_arn?: string | undefined;
75
+ }>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ app_name?: string | undefined;
78
+ app_user?: string | undefined;
79
+ ai_model?: string | undefined;
80
+ user_ip?: string | undefined;
81
+ agent_meta?: {
82
+ agent_id?: string | undefined;
83
+ agent_version?: string | undefined;
84
+ agent_arn?: string | undefined;
85
+ } | undefined;
86
+ }, {
87
+ app_name?: string | undefined;
88
+ app_user?: string | undefined;
89
+ ai_model?: string | undefined;
90
+ user_ip?: string | undefined;
91
+ agent_meta?: {
92
+ agent_id?: string | undefined;
93
+ agent_version?: string | undefined;
94
+ agent_arn?: string | undefined;
95
+ } | undefined;
96
+ }>;
97
+ type Metadata = z.infer<typeof MetadataSchema>;
98
+
99
+ declare const MaskedDataSchema: z.ZodObject<{
100
+ data: z.ZodOptional<z.ZodString>;
101
+ pattern_detections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ data?: string | undefined;
104
+ pattern_detections?: Record<string, unknown>[] | undefined;
105
+ }, {
106
+ data?: string | undefined;
107
+ pattern_detections?: Record<string, unknown>[] | undefined;
108
+ }>;
109
+ type MaskedData = z.infer<typeof MaskedDataSchema>;
110
+ declare const IODetectedSchema: z.ZodObject<{
111
+ url_cats: z.ZodOptional<z.ZodBoolean>;
112
+ dlp: z.ZodOptional<z.ZodBoolean>;
113
+ injection: z.ZodOptional<z.ZodBoolean>;
114
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
115
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
116
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
117
+ url_cats: z.ZodOptional<z.ZodBoolean>;
118
+ dlp: z.ZodOptional<z.ZodBoolean>;
119
+ injection: z.ZodOptional<z.ZodBoolean>;
120
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
121
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
122
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
123
+ url_cats: z.ZodOptional<z.ZodBoolean>;
124
+ dlp: z.ZodOptional<z.ZodBoolean>;
125
+ injection: z.ZodOptional<z.ZodBoolean>;
126
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
127
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
128
+ }, z.ZodTypeAny, "passthrough">>;
129
+ type IODetected = z.infer<typeof IODetectedSchema>;
130
+ declare const ScanSummarySchema: z.ZodObject<{
131
+ verdict: z.ZodOptional<z.ZodString>;
132
+ action: z.ZodOptional<z.ZodString>;
133
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
134
+ verdict: z.ZodOptional<z.ZodString>;
135
+ action: z.ZodOptional<z.ZodString>;
136
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
137
+ verdict: z.ZodOptional<z.ZodString>;
138
+ action: z.ZodOptional<z.ZodString>;
139
+ }, z.ZodTypeAny, "passthrough">>;
140
+ type ScanSummary = z.infer<typeof ScanSummarySchema>;
141
+ declare const ToolDetectedSchema: z.ZodObject<{
142
+ verdict: z.ZodOptional<z.ZodString>;
143
+ metadata: z.ZodOptional<z.ZodObject<{
144
+ ecosystem: z.ZodString;
145
+ method: z.ZodString;
146
+ server_name: z.ZodString;
147
+ tool_invoked: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ method: string;
150
+ ecosystem: string;
151
+ server_name: string;
152
+ tool_invoked?: string | undefined;
153
+ }, {
154
+ method: string;
155
+ ecosystem: string;
156
+ server_name: string;
157
+ tool_invoked?: string | undefined;
158
+ }>>;
159
+ summary: z.ZodOptional<z.ZodObject<{
160
+ verdict: z.ZodOptional<z.ZodString>;
161
+ action: z.ZodOptional<z.ZodString>;
162
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
163
+ verdict: z.ZodOptional<z.ZodString>;
164
+ action: z.ZodOptional<z.ZodString>;
165
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
166
+ verdict: z.ZodOptional<z.ZodString>;
167
+ action: z.ZodOptional<z.ZodString>;
168
+ }, z.ZodTypeAny, "passthrough">>>;
169
+ input_detected: z.ZodOptional<z.ZodObject<{
170
+ url_cats: z.ZodOptional<z.ZodBoolean>;
171
+ dlp: z.ZodOptional<z.ZodBoolean>;
172
+ injection: z.ZodOptional<z.ZodBoolean>;
173
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
174
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
175
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
176
+ url_cats: z.ZodOptional<z.ZodBoolean>;
177
+ dlp: z.ZodOptional<z.ZodBoolean>;
178
+ injection: z.ZodOptional<z.ZodBoolean>;
179
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
180
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
181
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
182
+ url_cats: z.ZodOptional<z.ZodBoolean>;
183
+ dlp: z.ZodOptional<z.ZodBoolean>;
184
+ injection: z.ZodOptional<z.ZodBoolean>;
185
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
186
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
187
+ }, z.ZodTypeAny, "passthrough">>>;
188
+ output_detected: z.ZodOptional<z.ZodObject<{
189
+ url_cats: z.ZodOptional<z.ZodBoolean>;
190
+ dlp: z.ZodOptional<z.ZodBoolean>;
191
+ injection: z.ZodOptional<z.ZodBoolean>;
192
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
193
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
194
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
195
+ url_cats: z.ZodOptional<z.ZodBoolean>;
196
+ dlp: z.ZodOptional<z.ZodBoolean>;
197
+ injection: z.ZodOptional<z.ZodBoolean>;
198
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
199
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
200
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
201
+ url_cats: z.ZodOptional<z.ZodBoolean>;
202
+ dlp: z.ZodOptional<z.ZodBoolean>;
203
+ injection: z.ZodOptional<z.ZodBoolean>;
204
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
205
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
206
+ }, z.ZodTypeAny, "passthrough">>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ metadata?: {
209
+ method: string;
210
+ ecosystem: string;
211
+ server_name: string;
212
+ tool_invoked?: string | undefined;
213
+ } | undefined;
214
+ verdict?: string | undefined;
215
+ summary?: z.objectOutputType<{
216
+ verdict: z.ZodOptional<z.ZodString>;
217
+ action: z.ZodOptional<z.ZodString>;
218
+ }, z.ZodTypeAny, "passthrough"> | undefined;
219
+ input_detected?: z.objectOutputType<{
220
+ url_cats: z.ZodOptional<z.ZodBoolean>;
221
+ dlp: z.ZodOptional<z.ZodBoolean>;
222
+ injection: z.ZodOptional<z.ZodBoolean>;
223
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
224
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
225
+ }, z.ZodTypeAny, "passthrough"> | undefined;
226
+ output_detected?: z.objectOutputType<{
227
+ url_cats: z.ZodOptional<z.ZodBoolean>;
228
+ dlp: z.ZodOptional<z.ZodBoolean>;
229
+ injection: z.ZodOptional<z.ZodBoolean>;
230
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
231
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
232
+ }, z.ZodTypeAny, "passthrough"> | undefined;
233
+ }, {
234
+ metadata?: {
235
+ method: string;
236
+ ecosystem: string;
237
+ server_name: string;
238
+ tool_invoked?: string | undefined;
239
+ } | undefined;
240
+ verdict?: string | undefined;
241
+ summary?: z.objectInputType<{
242
+ verdict: z.ZodOptional<z.ZodString>;
243
+ action: z.ZodOptional<z.ZodString>;
244
+ }, z.ZodTypeAny, "passthrough"> | undefined;
245
+ input_detected?: z.objectInputType<{
246
+ url_cats: z.ZodOptional<z.ZodBoolean>;
247
+ dlp: z.ZodOptional<z.ZodBoolean>;
248
+ injection: z.ZodOptional<z.ZodBoolean>;
249
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
250
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
251
+ }, z.ZodTypeAny, "passthrough"> | undefined;
252
+ output_detected?: z.objectInputType<{
253
+ url_cats: z.ZodOptional<z.ZodBoolean>;
254
+ dlp: z.ZodOptional<z.ZodBoolean>;
255
+ injection: z.ZodOptional<z.ZodBoolean>;
256
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
257
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
258
+ }, z.ZodTypeAny, "passthrough"> | undefined;
259
+ }>;
260
+ type ToolDetected = z.infer<typeof ToolDetectedSchema>;
261
+ declare const ScanResponseSchema: z.ZodObject<{
262
+ source: z.ZodOptional<z.ZodString>;
263
+ report_id: z.ZodString;
264
+ scan_id: z.ZodString;
265
+ tr_id: z.ZodOptional<z.ZodString>;
266
+ session_id: z.ZodOptional<z.ZodString>;
267
+ profile_id: z.ZodOptional<z.ZodString>;
268
+ profile_name: z.ZodOptional<z.ZodString>;
269
+ category: z.ZodString;
270
+ action: z.ZodString;
271
+ prompt_detected: z.ZodOptional<z.ZodObject<{
272
+ url_cats: z.ZodOptional<z.ZodBoolean>;
273
+ dlp: z.ZodOptional<z.ZodBoolean>;
274
+ injection: z.ZodOptional<z.ZodBoolean>;
275
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
276
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
277
+ agent: z.ZodOptional<z.ZodBoolean>;
278
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ url_cats?: boolean | undefined;
281
+ dlp?: boolean | undefined;
282
+ injection?: boolean | undefined;
283
+ toxic_content?: boolean | undefined;
284
+ malicious_code?: boolean | undefined;
285
+ agent?: boolean | undefined;
286
+ topic_violation?: boolean | undefined;
287
+ }, {
288
+ url_cats?: boolean | undefined;
289
+ dlp?: boolean | undefined;
290
+ injection?: boolean | undefined;
291
+ toxic_content?: boolean | undefined;
292
+ malicious_code?: boolean | undefined;
293
+ agent?: boolean | undefined;
294
+ topic_violation?: boolean | undefined;
295
+ }>>;
296
+ response_detected: z.ZodOptional<z.ZodObject<{
297
+ url_cats: z.ZodOptional<z.ZodBoolean>;
298
+ dlp: z.ZodOptional<z.ZodBoolean>;
299
+ db_security: z.ZodOptional<z.ZodBoolean>;
300
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
301
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
302
+ agent: z.ZodOptional<z.ZodBoolean>;
303
+ ungrounded: z.ZodOptional<z.ZodBoolean>;
304
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ url_cats?: boolean | undefined;
307
+ dlp?: boolean | undefined;
308
+ toxic_content?: boolean | undefined;
309
+ malicious_code?: boolean | undefined;
310
+ agent?: boolean | undefined;
311
+ topic_violation?: boolean | undefined;
312
+ db_security?: boolean | undefined;
313
+ ungrounded?: boolean | undefined;
314
+ }, {
315
+ url_cats?: boolean | undefined;
316
+ dlp?: boolean | undefined;
317
+ toxic_content?: boolean | undefined;
318
+ malicious_code?: boolean | undefined;
319
+ agent?: boolean | undefined;
320
+ topic_violation?: boolean | undefined;
321
+ db_security?: boolean | undefined;
322
+ ungrounded?: boolean | undefined;
323
+ }>>;
324
+ prompt_masked_data: z.ZodOptional<z.ZodObject<{
325
+ data: z.ZodOptional<z.ZodString>;
326
+ pattern_detections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ data?: string | undefined;
329
+ pattern_detections?: Record<string, unknown>[] | undefined;
330
+ }, {
331
+ data?: string | undefined;
332
+ pattern_detections?: Record<string, unknown>[] | undefined;
333
+ }>>;
334
+ response_masked_data: z.ZodOptional<z.ZodObject<{
335
+ data: z.ZodOptional<z.ZodString>;
336
+ pattern_detections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ data?: string | undefined;
339
+ pattern_detections?: Record<string, unknown>[] | undefined;
340
+ }, {
341
+ data?: string | undefined;
342
+ pattern_detections?: Record<string, unknown>[] | undefined;
343
+ }>>;
344
+ prompt_detection_details: z.ZodOptional<z.ZodObject<{
345
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ topic_guardrails_details?: Record<string, unknown> | undefined;
348
+ }, {
349
+ topic_guardrails_details?: Record<string, unknown> | undefined;
350
+ }>>;
351
+ response_detection_details: z.ZodOptional<z.ZodObject<{
352
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ topic_guardrails_details?: Record<string, unknown> | undefined;
355
+ }, {
356
+ topic_guardrails_details?: Record<string, unknown> | undefined;
357
+ }>>;
358
+ tool_detected: z.ZodOptional<z.ZodObject<{
359
+ verdict: z.ZodOptional<z.ZodString>;
360
+ metadata: z.ZodOptional<z.ZodObject<{
361
+ ecosystem: z.ZodString;
362
+ method: z.ZodString;
363
+ server_name: z.ZodString;
364
+ tool_invoked: z.ZodOptional<z.ZodString>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ method: string;
367
+ ecosystem: string;
368
+ server_name: string;
369
+ tool_invoked?: string | undefined;
370
+ }, {
371
+ method: string;
372
+ ecosystem: string;
373
+ server_name: string;
374
+ tool_invoked?: string | undefined;
375
+ }>>;
376
+ summary: z.ZodOptional<z.ZodObject<{
377
+ verdict: z.ZodOptional<z.ZodString>;
378
+ action: z.ZodOptional<z.ZodString>;
379
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
380
+ verdict: z.ZodOptional<z.ZodString>;
381
+ action: z.ZodOptional<z.ZodString>;
382
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
383
+ verdict: z.ZodOptional<z.ZodString>;
384
+ action: z.ZodOptional<z.ZodString>;
385
+ }, z.ZodTypeAny, "passthrough">>>;
386
+ input_detected: z.ZodOptional<z.ZodObject<{
387
+ url_cats: z.ZodOptional<z.ZodBoolean>;
388
+ dlp: z.ZodOptional<z.ZodBoolean>;
389
+ injection: z.ZodOptional<z.ZodBoolean>;
390
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
391
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
392
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
393
+ url_cats: z.ZodOptional<z.ZodBoolean>;
394
+ dlp: z.ZodOptional<z.ZodBoolean>;
395
+ injection: z.ZodOptional<z.ZodBoolean>;
396
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
397
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
398
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
399
+ url_cats: z.ZodOptional<z.ZodBoolean>;
400
+ dlp: z.ZodOptional<z.ZodBoolean>;
401
+ injection: z.ZodOptional<z.ZodBoolean>;
402
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
403
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
404
+ }, z.ZodTypeAny, "passthrough">>>;
405
+ output_detected: z.ZodOptional<z.ZodObject<{
406
+ url_cats: z.ZodOptional<z.ZodBoolean>;
407
+ dlp: z.ZodOptional<z.ZodBoolean>;
408
+ injection: z.ZodOptional<z.ZodBoolean>;
409
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
410
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
411
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
412
+ url_cats: z.ZodOptional<z.ZodBoolean>;
413
+ dlp: z.ZodOptional<z.ZodBoolean>;
414
+ injection: z.ZodOptional<z.ZodBoolean>;
415
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
416
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
417
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
418
+ url_cats: z.ZodOptional<z.ZodBoolean>;
419
+ dlp: z.ZodOptional<z.ZodBoolean>;
420
+ injection: z.ZodOptional<z.ZodBoolean>;
421
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
422
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
423
+ }, z.ZodTypeAny, "passthrough">>>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ metadata?: {
426
+ method: string;
427
+ ecosystem: string;
428
+ server_name: string;
429
+ tool_invoked?: string | undefined;
430
+ } | undefined;
431
+ verdict?: string | undefined;
432
+ summary?: z.objectOutputType<{
433
+ verdict: z.ZodOptional<z.ZodString>;
434
+ action: z.ZodOptional<z.ZodString>;
435
+ }, z.ZodTypeAny, "passthrough"> | undefined;
436
+ input_detected?: z.objectOutputType<{
437
+ url_cats: z.ZodOptional<z.ZodBoolean>;
438
+ dlp: z.ZodOptional<z.ZodBoolean>;
439
+ injection: z.ZodOptional<z.ZodBoolean>;
440
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
441
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
442
+ }, z.ZodTypeAny, "passthrough"> | undefined;
443
+ output_detected?: z.objectOutputType<{
444
+ url_cats: z.ZodOptional<z.ZodBoolean>;
445
+ dlp: z.ZodOptional<z.ZodBoolean>;
446
+ injection: z.ZodOptional<z.ZodBoolean>;
447
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
448
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
449
+ }, z.ZodTypeAny, "passthrough"> | undefined;
450
+ }, {
451
+ metadata?: {
452
+ method: string;
453
+ ecosystem: string;
454
+ server_name: string;
455
+ tool_invoked?: string | undefined;
456
+ } | undefined;
457
+ verdict?: string | undefined;
458
+ summary?: z.objectInputType<{
459
+ verdict: z.ZodOptional<z.ZodString>;
460
+ action: z.ZodOptional<z.ZodString>;
461
+ }, z.ZodTypeAny, "passthrough"> | undefined;
462
+ input_detected?: z.objectInputType<{
463
+ url_cats: z.ZodOptional<z.ZodBoolean>;
464
+ dlp: z.ZodOptional<z.ZodBoolean>;
465
+ injection: z.ZodOptional<z.ZodBoolean>;
466
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
467
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
468
+ }, z.ZodTypeAny, "passthrough"> | undefined;
469
+ output_detected?: z.objectInputType<{
470
+ url_cats: z.ZodOptional<z.ZodBoolean>;
471
+ dlp: z.ZodOptional<z.ZodBoolean>;
472
+ injection: z.ZodOptional<z.ZodBoolean>;
473
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
474
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
475
+ }, z.ZodTypeAny, "passthrough"> | undefined;
476
+ }>>;
477
+ created_at: z.ZodOptional<z.ZodString>;
478
+ completed_at: z.ZodOptional<z.ZodString>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ action: string;
481
+ report_id: string;
482
+ scan_id: string;
483
+ category: string;
484
+ profile_id?: string | undefined;
485
+ profile_name?: string | undefined;
486
+ source?: string | undefined;
487
+ tr_id?: string | undefined;
488
+ session_id?: string | undefined;
489
+ prompt_detected?: {
490
+ url_cats?: boolean | undefined;
491
+ dlp?: boolean | undefined;
492
+ injection?: boolean | undefined;
493
+ toxic_content?: boolean | undefined;
494
+ malicious_code?: boolean | undefined;
495
+ agent?: boolean | undefined;
496
+ topic_violation?: boolean | undefined;
497
+ } | undefined;
498
+ response_detected?: {
499
+ url_cats?: boolean | undefined;
500
+ dlp?: boolean | undefined;
501
+ toxic_content?: boolean | undefined;
502
+ malicious_code?: boolean | undefined;
503
+ agent?: boolean | undefined;
504
+ topic_violation?: boolean | undefined;
505
+ db_security?: boolean | undefined;
506
+ ungrounded?: boolean | undefined;
507
+ } | undefined;
508
+ prompt_masked_data?: {
509
+ data?: string | undefined;
510
+ pattern_detections?: Record<string, unknown>[] | undefined;
511
+ } | undefined;
512
+ response_masked_data?: {
513
+ data?: string | undefined;
514
+ pattern_detections?: Record<string, unknown>[] | undefined;
515
+ } | undefined;
516
+ prompt_detection_details?: {
517
+ topic_guardrails_details?: Record<string, unknown> | undefined;
518
+ } | undefined;
519
+ response_detection_details?: {
520
+ topic_guardrails_details?: Record<string, unknown> | undefined;
521
+ } | undefined;
522
+ tool_detected?: {
523
+ metadata?: {
524
+ method: string;
525
+ ecosystem: string;
526
+ server_name: string;
527
+ tool_invoked?: string | undefined;
528
+ } | undefined;
529
+ verdict?: string | undefined;
530
+ summary?: z.objectOutputType<{
531
+ verdict: z.ZodOptional<z.ZodString>;
532
+ action: z.ZodOptional<z.ZodString>;
533
+ }, z.ZodTypeAny, "passthrough"> | undefined;
534
+ input_detected?: z.objectOutputType<{
535
+ url_cats: z.ZodOptional<z.ZodBoolean>;
536
+ dlp: z.ZodOptional<z.ZodBoolean>;
537
+ injection: z.ZodOptional<z.ZodBoolean>;
538
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
539
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
540
+ }, z.ZodTypeAny, "passthrough"> | undefined;
541
+ output_detected?: z.objectOutputType<{
542
+ url_cats: z.ZodOptional<z.ZodBoolean>;
543
+ dlp: z.ZodOptional<z.ZodBoolean>;
544
+ injection: z.ZodOptional<z.ZodBoolean>;
545
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
546
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
547
+ }, z.ZodTypeAny, "passthrough"> | undefined;
548
+ } | undefined;
549
+ created_at?: string | undefined;
550
+ completed_at?: string | undefined;
551
+ }, {
552
+ action: string;
553
+ report_id: string;
554
+ scan_id: string;
555
+ category: string;
556
+ profile_id?: string | undefined;
557
+ profile_name?: string | undefined;
558
+ source?: string | undefined;
559
+ tr_id?: string | undefined;
560
+ session_id?: string | undefined;
561
+ prompt_detected?: {
562
+ url_cats?: boolean | undefined;
563
+ dlp?: boolean | undefined;
564
+ injection?: boolean | undefined;
565
+ toxic_content?: boolean | undefined;
566
+ malicious_code?: boolean | undefined;
567
+ agent?: boolean | undefined;
568
+ topic_violation?: boolean | undefined;
569
+ } | undefined;
570
+ response_detected?: {
571
+ url_cats?: boolean | undefined;
572
+ dlp?: boolean | undefined;
573
+ toxic_content?: boolean | undefined;
574
+ malicious_code?: boolean | undefined;
575
+ agent?: boolean | undefined;
576
+ topic_violation?: boolean | undefined;
577
+ db_security?: boolean | undefined;
578
+ ungrounded?: boolean | undefined;
579
+ } | undefined;
580
+ prompt_masked_data?: {
581
+ data?: string | undefined;
582
+ pattern_detections?: Record<string, unknown>[] | undefined;
583
+ } | undefined;
584
+ response_masked_data?: {
585
+ data?: string | undefined;
586
+ pattern_detections?: Record<string, unknown>[] | undefined;
587
+ } | undefined;
588
+ prompt_detection_details?: {
589
+ topic_guardrails_details?: Record<string, unknown> | undefined;
590
+ } | undefined;
591
+ response_detection_details?: {
592
+ topic_guardrails_details?: Record<string, unknown> | undefined;
593
+ } | undefined;
594
+ tool_detected?: {
595
+ metadata?: {
596
+ method: string;
597
+ ecosystem: string;
598
+ server_name: string;
599
+ tool_invoked?: string | undefined;
600
+ } | undefined;
601
+ verdict?: string | undefined;
602
+ summary?: z.objectInputType<{
603
+ verdict: z.ZodOptional<z.ZodString>;
604
+ action: z.ZodOptional<z.ZodString>;
605
+ }, z.ZodTypeAny, "passthrough"> | undefined;
606
+ input_detected?: z.objectInputType<{
607
+ url_cats: z.ZodOptional<z.ZodBoolean>;
608
+ dlp: z.ZodOptional<z.ZodBoolean>;
609
+ injection: z.ZodOptional<z.ZodBoolean>;
610
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
611
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
612
+ }, z.ZodTypeAny, "passthrough"> | undefined;
613
+ output_detected?: z.objectInputType<{
614
+ url_cats: z.ZodOptional<z.ZodBoolean>;
615
+ dlp: z.ZodOptional<z.ZodBoolean>;
616
+ injection: z.ZodOptional<z.ZodBoolean>;
617
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
618
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
619
+ }, z.ZodTypeAny, "passthrough"> | undefined;
620
+ } | undefined;
621
+ created_at?: string | undefined;
622
+ completed_at?: string | undefined;
623
+ }>;
624
+ type ScanResponse = z.infer<typeof ScanResponseSchema>;
625
+
626
+ declare const AsyncScanObjectSchema: z.ZodObject<{
627
+ req_id: z.ZodNumber;
628
+ scan_req: z.ZodObject<{
629
+ tr_id: z.ZodOptional<z.ZodString>;
630
+ session_id: z.ZodOptional<z.ZodString>;
631
+ ai_profile: z.ZodEffects<z.ZodObject<{
632
+ profile_id: z.ZodOptional<z.ZodString>;
633
+ profile_name: z.ZodOptional<z.ZodString>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ profile_id?: string | undefined;
636
+ profile_name?: string | undefined;
637
+ }, {
638
+ profile_id?: string | undefined;
639
+ profile_name?: string | undefined;
640
+ }>, {
641
+ profile_id?: string | undefined;
642
+ profile_name?: string | undefined;
643
+ }, {
644
+ profile_id?: string | undefined;
645
+ profile_name?: string | undefined;
646
+ }>;
647
+ metadata: z.ZodOptional<z.ZodObject<{
648
+ app_name: z.ZodOptional<z.ZodString>;
649
+ app_user: z.ZodOptional<z.ZodString>;
650
+ ai_model: z.ZodOptional<z.ZodString>;
651
+ user_ip: z.ZodOptional<z.ZodString>;
652
+ agent_meta: z.ZodOptional<z.ZodObject<{
653
+ agent_id: z.ZodOptional<z.ZodString>;
654
+ agent_version: z.ZodOptional<z.ZodString>;
655
+ agent_arn: z.ZodOptional<z.ZodString>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ agent_id?: string | undefined;
658
+ agent_version?: string | undefined;
659
+ agent_arn?: string | undefined;
660
+ }, {
661
+ agent_id?: string | undefined;
662
+ agent_version?: string | undefined;
663
+ agent_arn?: string | undefined;
664
+ }>>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ app_name?: string | undefined;
667
+ app_user?: string | undefined;
668
+ ai_model?: string | undefined;
669
+ user_ip?: string | undefined;
670
+ agent_meta?: {
671
+ agent_id?: string | undefined;
672
+ agent_version?: string | undefined;
673
+ agent_arn?: string | undefined;
674
+ } | undefined;
675
+ }, {
676
+ app_name?: string | undefined;
677
+ app_user?: string | undefined;
678
+ ai_model?: string | undefined;
679
+ user_ip?: string | undefined;
680
+ agent_meta?: {
681
+ agent_id?: string | undefined;
682
+ agent_version?: string | undefined;
683
+ agent_arn?: string | undefined;
684
+ } | undefined;
685
+ }>>;
686
+ contents: z.ZodArray<z.ZodObject<{
687
+ prompt: z.ZodOptional<z.ZodString>;
688
+ response: z.ZodOptional<z.ZodString>;
689
+ code_prompt: z.ZodOptional<z.ZodString>;
690
+ code_response: z.ZodOptional<z.ZodString>;
691
+ context: z.ZodOptional<z.ZodString>;
692
+ tool_event: z.ZodOptional<z.ZodObject<{
693
+ metadata: z.ZodOptional<z.ZodObject<{
694
+ ecosystem: z.ZodString;
695
+ method: z.ZodString;
696
+ server_name: z.ZodString;
697
+ tool_invoked: z.ZodOptional<z.ZodString>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ method: string;
700
+ ecosystem: string;
701
+ server_name: string;
702
+ tool_invoked?: string | undefined;
703
+ }, {
704
+ method: string;
705
+ ecosystem: string;
706
+ server_name: string;
707
+ tool_invoked?: string | undefined;
708
+ }>>;
709
+ input: z.ZodOptional<z.ZodString>;
710
+ output: z.ZodOptional<z.ZodString>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ metadata?: {
713
+ method: string;
714
+ ecosystem: string;
715
+ server_name: string;
716
+ tool_invoked?: string | undefined;
717
+ } | undefined;
718
+ input?: string | undefined;
719
+ output?: string | undefined;
720
+ }, {
721
+ metadata?: {
722
+ method: string;
723
+ ecosystem: string;
724
+ server_name: string;
725
+ tool_invoked?: string | undefined;
726
+ } | undefined;
727
+ input?: string | undefined;
728
+ output?: string | undefined;
729
+ }>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ prompt?: string | undefined;
732
+ response?: string | undefined;
733
+ code_prompt?: string | undefined;
734
+ code_response?: string | undefined;
735
+ context?: string | undefined;
736
+ tool_event?: {
737
+ metadata?: {
738
+ method: string;
739
+ ecosystem: string;
740
+ server_name: string;
741
+ tool_invoked?: string | undefined;
742
+ } | undefined;
743
+ input?: string | undefined;
744
+ output?: string | undefined;
745
+ } | undefined;
746
+ }, {
747
+ prompt?: string | undefined;
748
+ response?: string | undefined;
749
+ code_prompt?: string | undefined;
750
+ code_response?: string | undefined;
751
+ context?: string | undefined;
752
+ tool_event?: {
753
+ metadata?: {
754
+ method: string;
755
+ ecosystem: string;
756
+ server_name: string;
757
+ tool_invoked?: string | undefined;
758
+ } | undefined;
759
+ input?: string | undefined;
760
+ output?: string | undefined;
761
+ } | undefined;
762
+ }>, "many">;
763
+ }, "strip", z.ZodTypeAny, {
764
+ ai_profile: {
765
+ profile_id?: string | undefined;
766
+ profile_name?: string | undefined;
767
+ };
768
+ contents: {
769
+ prompt?: string | undefined;
770
+ response?: string | undefined;
771
+ code_prompt?: string | undefined;
772
+ code_response?: string | undefined;
773
+ context?: string | undefined;
774
+ tool_event?: {
775
+ metadata?: {
776
+ method: string;
777
+ ecosystem: string;
778
+ server_name: string;
779
+ tool_invoked?: string | undefined;
780
+ } | undefined;
781
+ input?: string | undefined;
782
+ output?: string | undefined;
783
+ } | undefined;
784
+ }[];
785
+ metadata?: {
786
+ app_name?: string | undefined;
787
+ app_user?: string | undefined;
788
+ ai_model?: string | undefined;
789
+ user_ip?: string | undefined;
790
+ agent_meta?: {
791
+ agent_id?: string | undefined;
792
+ agent_version?: string | undefined;
793
+ agent_arn?: string | undefined;
794
+ } | undefined;
795
+ } | undefined;
796
+ tr_id?: string | undefined;
797
+ session_id?: string | undefined;
798
+ }, {
799
+ ai_profile: {
800
+ profile_id?: string | undefined;
801
+ profile_name?: string | undefined;
802
+ };
803
+ contents: {
804
+ prompt?: string | undefined;
805
+ response?: string | undefined;
806
+ code_prompt?: string | undefined;
807
+ code_response?: string | undefined;
808
+ context?: string | undefined;
809
+ tool_event?: {
810
+ metadata?: {
811
+ method: string;
812
+ ecosystem: string;
813
+ server_name: string;
814
+ tool_invoked?: string | undefined;
815
+ } | undefined;
816
+ input?: string | undefined;
817
+ output?: string | undefined;
818
+ } | undefined;
819
+ }[];
820
+ metadata?: {
821
+ app_name?: string | undefined;
822
+ app_user?: string | undefined;
823
+ ai_model?: string | undefined;
824
+ user_ip?: string | undefined;
825
+ agent_meta?: {
826
+ agent_id?: string | undefined;
827
+ agent_version?: string | undefined;
828
+ agent_arn?: string | undefined;
829
+ } | undefined;
830
+ } | undefined;
831
+ tr_id?: string | undefined;
832
+ session_id?: string | undefined;
833
+ }>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ req_id: number;
836
+ scan_req: {
837
+ ai_profile: {
838
+ profile_id?: string | undefined;
839
+ profile_name?: string | undefined;
840
+ };
841
+ contents: {
842
+ prompt?: string | undefined;
843
+ response?: string | undefined;
844
+ code_prompt?: string | undefined;
845
+ code_response?: string | undefined;
846
+ context?: string | undefined;
847
+ tool_event?: {
848
+ metadata?: {
849
+ method: string;
850
+ ecosystem: string;
851
+ server_name: string;
852
+ tool_invoked?: string | undefined;
853
+ } | undefined;
854
+ input?: string | undefined;
855
+ output?: string | undefined;
856
+ } | undefined;
857
+ }[];
858
+ metadata?: {
859
+ app_name?: string | undefined;
860
+ app_user?: string | undefined;
861
+ ai_model?: string | undefined;
862
+ user_ip?: string | undefined;
863
+ agent_meta?: {
864
+ agent_id?: string | undefined;
865
+ agent_version?: string | undefined;
866
+ agent_arn?: string | undefined;
867
+ } | undefined;
868
+ } | undefined;
869
+ tr_id?: string | undefined;
870
+ session_id?: string | undefined;
871
+ };
872
+ }, {
873
+ req_id: number;
874
+ scan_req: {
875
+ ai_profile: {
876
+ profile_id?: string | undefined;
877
+ profile_name?: string | undefined;
878
+ };
879
+ contents: {
880
+ prompt?: string | undefined;
881
+ response?: string | undefined;
882
+ code_prompt?: string | undefined;
883
+ code_response?: string | undefined;
884
+ context?: string | undefined;
885
+ tool_event?: {
886
+ metadata?: {
887
+ method: string;
888
+ ecosystem: string;
889
+ server_name: string;
890
+ tool_invoked?: string | undefined;
891
+ } | undefined;
892
+ input?: string | undefined;
893
+ output?: string | undefined;
894
+ } | undefined;
895
+ }[];
896
+ metadata?: {
897
+ app_name?: string | undefined;
898
+ app_user?: string | undefined;
899
+ ai_model?: string | undefined;
900
+ user_ip?: string | undefined;
901
+ agent_meta?: {
902
+ agent_id?: string | undefined;
903
+ agent_version?: string | undefined;
904
+ agent_arn?: string | undefined;
905
+ } | undefined;
906
+ } | undefined;
907
+ tr_id?: string | undefined;
908
+ session_id?: string | undefined;
909
+ };
910
+ }>;
911
+ type AsyncScanObject = z.infer<typeof AsyncScanObjectSchema>;
912
+ declare const AsyncScanResponseSchema: z.ZodObject<{
913
+ received: z.ZodString;
914
+ scan_id: z.ZodString;
915
+ report_id: z.ZodOptional<z.ZodString>;
916
+ source: z.ZodOptional<z.ZodString>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ received: string;
919
+ scan_id: string;
920
+ source?: string | undefined;
921
+ report_id?: string | undefined;
922
+ }, {
923
+ received: string;
924
+ scan_id: string;
925
+ source?: string | undefined;
926
+ report_id?: string | undefined;
927
+ }>;
928
+ type AsyncScanResponse = z.infer<typeof AsyncScanResponseSchema>;
929
+
930
+ declare const ScanIdResultSchema: z.ZodObject<{
931
+ source: z.ZodOptional<z.ZodString>;
932
+ req_id: z.ZodOptional<z.ZodNumber>;
933
+ status: z.ZodOptional<z.ZodString>;
934
+ scan_id: z.ZodOptional<z.ZodString>;
935
+ result: z.ZodOptional<z.ZodObject<{
936
+ source: z.ZodOptional<z.ZodString>;
937
+ report_id: z.ZodString;
938
+ scan_id: z.ZodString;
939
+ tr_id: z.ZodOptional<z.ZodString>;
940
+ session_id: z.ZodOptional<z.ZodString>;
941
+ profile_id: z.ZodOptional<z.ZodString>;
942
+ profile_name: z.ZodOptional<z.ZodString>;
943
+ category: z.ZodString;
944
+ action: z.ZodString;
945
+ prompt_detected: z.ZodOptional<z.ZodObject<{
946
+ url_cats: z.ZodOptional<z.ZodBoolean>;
947
+ dlp: z.ZodOptional<z.ZodBoolean>;
948
+ injection: z.ZodOptional<z.ZodBoolean>;
949
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
950
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
951
+ agent: z.ZodOptional<z.ZodBoolean>;
952
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ url_cats?: boolean | undefined;
955
+ dlp?: boolean | undefined;
956
+ injection?: boolean | undefined;
957
+ toxic_content?: boolean | undefined;
958
+ malicious_code?: boolean | undefined;
959
+ agent?: boolean | undefined;
960
+ topic_violation?: boolean | undefined;
961
+ }, {
962
+ url_cats?: boolean | undefined;
963
+ dlp?: boolean | undefined;
964
+ injection?: boolean | undefined;
965
+ toxic_content?: boolean | undefined;
966
+ malicious_code?: boolean | undefined;
967
+ agent?: boolean | undefined;
968
+ topic_violation?: boolean | undefined;
969
+ }>>;
970
+ response_detected: z.ZodOptional<z.ZodObject<{
971
+ url_cats: z.ZodOptional<z.ZodBoolean>;
972
+ dlp: z.ZodOptional<z.ZodBoolean>;
973
+ db_security: z.ZodOptional<z.ZodBoolean>;
974
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
975
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
976
+ agent: z.ZodOptional<z.ZodBoolean>;
977
+ ungrounded: z.ZodOptional<z.ZodBoolean>;
978
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ url_cats?: boolean | undefined;
981
+ dlp?: boolean | undefined;
982
+ toxic_content?: boolean | undefined;
983
+ malicious_code?: boolean | undefined;
984
+ agent?: boolean | undefined;
985
+ topic_violation?: boolean | undefined;
986
+ db_security?: boolean | undefined;
987
+ ungrounded?: boolean | undefined;
988
+ }, {
989
+ url_cats?: boolean | undefined;
990
+ dlp?: boolean | undefined;
991
+ toxic_content?: boolean | undefined;
992
+ malicious_code?: boolean | undefined;
993
+ agent?: boolean | undefined;
994
+ topic_violation?: boolean | undefined;
995
+ db_security?: boolean | undefined;
996
+ ungrounded?: boolean | undefined;
997
+ }>>;
998
+ prompt_masked_data: z.ZodOptional<z.ZodObject<{
999
+ data: z.ZodOptional<z.ZodString>;
1000
+ pattern_detections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ data?: string | undefined;
1003
+ pattern_detections?: Record<string, unknown>[] | undefined;
1004
+ }, {
1005
+ data?: string | undefined;
1006
+ pattern_detections?: Record<string, unknown>[] | undefined;
1007
+ }>>;
1008
+ response_masked_data: z.ZodOptional<z.ZodObject<{
1009
+ data: z.ZodOptional<z.ZodString>;
1010
+ pattern_detections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ data?: string | undefined;
1013
+ pattern_detections?: Record<string, unknown>[] | undefined;
1014
+ }, {
1015
+ data?: string | undefined;
1016
+ pattern_detections?: Record<string, unknown>[] | undefined;
1017
+ }>>;
1018
+ prompt_detection_details: z.ZodOptional<z.ZodObject<{
1019
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1022
+ }, {
1023
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1024
+ }>>;
1025
+ response_detection_details: z.ZodOptional<z.ZodObject<{
1026
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1027
+ }, "strip", z.ZodTypeAny, {
1028
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1029
+ }, {
1030
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1031
+ }>>;
1032
+ tool_detected: z.ZodOptional<z.ZodObject<{
1033
+ verdict: z.ZodOptional<z.ZodString>;
1034
+ metadata: z.ZodOptional<z.ZodObject<{
1035
+ ecosystem: z.ZodString;
1036
+ method: z.ZodString;
1037
+ server_name: z.ZodString;
1038
+ tool_invoked: z.ZodOptional<z.ZodString>;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ method: string;
1041
+ ecosystem: string;
1042
+ server_name: string;
1043
+ tool_invoked?: string | undefined;
1044
+ }, {
1045
+ method: string;
1046
+ ecosystem: string;
1047
+ server_name: string;
1048
+ tool_invoked?: string | undefined;
1049
+ }>>;
1050
+ summary: z.ZodOptional<z.ZodObject<{
1051
+ verdict: z.ZodOptional<z.ZodString>;
1052
+ action: z.ZodOptional<z.ZodString>;
1053
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1054
+ verdict: z.ZodOptional<z.ZodString>;
1055
+ action: z.ZodOptional<z.ZodString>;
1056
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1057
+ verdict: z.ZodOptional<z.ZodString>;
1058
+ action: z.ZodOptional<z.ZodString>;
1059
+ }, z.ZodTypeAny, "passthrough">>>;
1060
+ input_detected: z.ZodOptional<z.ZodObject<{
1061
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1062
+ dlp: z.ZodOptional<z.ZodBoolean>;
1063
+ injection: z.ZodOptional<z.ZodBoolean>;
1064
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1065
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1066
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1067
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1068
+ dlp: z.ZodOptional<z.ZodBoolean>;
1069
+ injection: z.ZodOptional<z.ZodBoolean>;
1070
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1071
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1072
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1073
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1074
+ dlp: z.ZodOptional<z.ZodBoolean>;
1075
+ injection: z.ZodOptional<z.ZodBoolean>;
1076
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1077
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1078
+ }, z.ZodTypeAny, "passthrough">>>;
1079
+ output_detected: z.ZodOptional<z.ZodObject<{
1080
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1081
+ dlp: z.ZodOptional<z.ZodBoolean>;
1082
+ injection: z.ZodOptional<z.ZodBoolean>;
1083
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1084
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1085
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1086
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1087
+ dlp: z.ZodOptional<z.ZodBoolean>;
1088
+ injection: z.ZodOptional<z.ZodBoolean>;
1089
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1090
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1091
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1092
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1093
+ dlp: z.ZodOptional<z.ZodBoolean>;
1094
+ injection: z.ZodOptional<z.ZodBoolean>;
1095
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1096
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1097
+ }, z.ZodTypeAny, "passthrough">>>;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ metadata?: {
1100
+ method: string;
1101
+ ecosystem: string;
1102
+ server_name: string;
1103
+ tool_invoked?: string | undefined;
1104
+ } | undefined;
1105
+ verdict?: string | undefined;
1106
+ summary?: z.objectOutputType<{
1107
+ verdict: z.ZodOptional<z.ZodString>;
1108
+ action: z.ZodOptional<z.ZodString>;
1109
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1110
+ input_detected?: z.objectOutputType<{
1111
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1112
+ dlp: z.ZodOptional<z.ZodBoolean>;
1113
+ injection: z.ZodOptional<z.ZodBoolean>;
1114
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1115
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1116
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1117
+ output_detected?: z.objectOutputType<{
1118
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1119
+ dlp: z.ZodOptional<z.ZodBoolean>;
1120
+ injection: z.ZodOptional<z.ZodBoolean>;
1121
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1122
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1123
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1124
+ }, {
1125
+ metadata?: {
1126
+ method: string;
1127
+ ecosystem: string;
1128
+ server_name: string;
1129
+ tool_invoked?: string | undefined;
1130
+ } | undefined;
1131
+ verdict?: string | undefined;
1132
+ summary?: z.objectInputType<{
1133
+ verdict: z.ZodOptional<z.ZodString>;
1134
+ action: z.ZodOptional<z.ZodString>;
1135
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1136
+ input_detected?: z.objectInputType<{
1137
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1138
+ dlp: z.ZodOptional<z.ZodBoolean>;
1139
+ injection: z.ZodOptional<z.ZodBoolean>;
1140
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1141
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1142
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1143
+ output_detected?: z.objectInputType<{
1144
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1145
+ dlp: z.ZodOptional<z.ZodBoolean>;
1146
+ injection: z.ZodOptional<z.ZodBoolean>;
1147
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1148
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1149
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1150
+ }>>;
1151
+ created_at: z.ZodOptional<z.ZodString>;
1152
+ completed_at: z.ZodOptional<z.ZodString>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ action: string;
1155
+ report_id: string;
1156
+ scan_id: string;
1157
+ category: string;
1158
+ profile_id?: string | undefined;
1159
+ profile_name?: string | undefined;
1160
+ source?: string | undefined;
1161
+ tr_id?: string | undefined;
1162
+ session_id?: string | undefined;
1163
+ prompt_detected?: {
1164
+ url_cats?: boolean | undefined;
1165
+ dlp?: boolean | undefined;
1166
+ injection?: boolean | undefined;
1167
+ toxic_content?: boolean | undefined;
1168
+ malicious_code?: boolean | undefined;
1169
+ agent?: boolean | undefined;
1170
+ topic_violation?: boolean | undefined;
1171
+ } | undefined;
1172
+ response_detected?: {
1173
+ url_cats?: boolean | undefined;
1174
+ dlp?: boolean | undefined;
1175
+ toxic_content?: boolean | undefined;
1176
+ malicious_code?: boolean | undefined;
1177
+ agent?: boolean | undefined;
1178
+ topic_violation?: boolean | undefined;
1179
+ db_security?: boolean | undefined;
1180
+ ungrounded?: boolean | undefined;
1181
+ } | undefined;
1182
+ prompt_masked_data?: {
1183
+ data?: string | undefined;
1184
+ pattern_detections?: Record<string, unknown>[] | undefined;
1185
+ } | undefined;
1186
+ response_masked_data?: {
1187
+ data?: string | undefined;
1188
+ pattern_detections?: Record<string, unknown>[] | undefined;
1189
+ } | undefined;
1190
+ prompt_detection_details?: {
1191
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1192
+ } | undefined;
1193
+ response_detection_details?: {
1194
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1195
+ } | undefined;
1196
+ tool_detected?: {
1197
+ metadata?: {
1198
+ method: string;
1199
+ ecosystem: string;
1200
+ server_name: string;
1201
+ tool_invoked?: string | undefined;
1202
+ } | undefined;
1203
+ verdict?: string | undefined;
1204
+ summary?: z.objectOutputType<{
1205
+ verdict: z.ZodOptional<z.ZodString>;
1206
+ action: z.ZodOptional<z.ZodString>;
1207
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1208
+ input_detected?: z.objectOutputType<{
1209
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1210
+ dlp: z.ZodOptional<z.ZodBoolean>;
1211
+ injection: z.ZodOptional<z.ZodBoolean>;
1212
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1213
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1214
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1215
+ output_detected?: z.objectOutputType<{
1216
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1217
+ dlp: z.ZodOptional<z.ZodBoolean>;
1218
+ injection: z.ZodOptional<z.ZodBoolean>;
1219
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1220
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1221
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1222
+ } | undefined;
1223
+ created_at?: string | undefined;
1224
+ completed_at?: string | undefined;
1225
+ }, {
1226
+ action: string;
1227
+ report_id: string;
1228
+ scan_id: string;
1229
+ category: string;
1230
+ profile_id?: string | undefined;
1231
+ profile_name?: string | undefined;
1232
+ source?: string | undefined;
1233
+ tr_id?: string | undefined;
1234
+ session_id?: string | undefined;
1235
+ prompt_detected?: {
1236
+ url_cats?: boolean | undefined;
1237
+ dlp?: boolean | undefined;
1238
+ injection?: boolean | undefined;
1239
+ toxic_content?: boolean | undefined;
1240
+ malicious_code?: boolean | undefined;
1241
+ agent?: boolean | undefined;
1242
+ topic_violation?: boolean | undefined;
1243
+ } | undefined;
1244
+ response_detected?: {
1245
+ url_cats?: boolean | undefined;
1246
+ dlp?: boolean | undefined;
1247
+ toxic_content?: boolean | undefined;
1248
+ malicious_code?: boolean | undefined;
1249
+ agent?: boolean | undefined;
1250
+ topic_violation?: boolean | undefined;
1251
+ db_security?: boolean | undefined;
1252
+ ungrounded?: boolean | undefined;
1253
+ } | undefined;
1254
+ prompt_masked_data?: {
1255
+ data?: string | undefined;
1256
+ pattern_detections?: Record<string, unknown>[] | undefined;
1257
+ } | undefined;
1258
+ response_masked_data?: {
1259
+ data?: string | undefined;
1260
+ pattern_detections?: Record<string, unknown>[] | undefined;
1261
+ } | undefined;
1262
+ prompt_detection_details?: {
1263
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1264
+ } | undefined;
1265
+ response_detection_details?: {
1266
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1267
+ } | undefined;
1268
+ tool_detected?: {
1269
+ metadata?: {
1270
+ method: string;
1271
+ ecosystem: string;
1272
+ server_name: string;
1273
+ tool_invoked?: string | undefined;
1274
+ } | undefined;
1275
+ verdict?: string | undefined;
1276
+ summary?: z.objectInputType<{
1277
+ verdict: z.ZodOptional<z.ZodString>;
1278
+ action: z.ZodOptional<z.ZodString>;
1279
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1280
+ input_detected?: z.objectInputType<{
1281
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1282
+ dlp: z.ZodOptional<z.ZodBoolean>;
1283
+ injection: z.ZodOptional<z.ZodBoolean>;
1284
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1285
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1286
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1287
+ output_detected?: z.objectInputType<{
1288
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1289
+ dlp: z.ZodOptional<z.ZodBoolean>;
1290
+ injection: z.ZodOptional<z.ZodBoolean>;
1291
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1292
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1293
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1294
+ } | undefined;
1295
+ created_at?: string | undefined;
1296
+ completed_at?: string | undefined;
1297
+ }>>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ status?: string | undefined;
1300
+ source?: string | undefined;
1301
+ scan_id?: string | undefined;
1302
+ req_id?: number | undefined;
1303
+ result?: {
1304
+ action: string;
1305
+ report_id: string;
1306
+ scan_id: string;
1307
+ category: string;
1308
+ profile_id?: string | undefined;
1309
+ profile_name?: string | undefined;
1310
+ source?: string | undefined;
1311
+ tr_id?: string | undefined;
1312
+ session_id?: string | undefined;
1313
+ prompt_detected?: {
1314
+ url_cats?: boolean | undefined;
1315
+ dlp?: boolean | undefined;
1316
+ injection?: boolean | undefined;
1317
+ toxic_content?: boolean | undefined;
1318
+ malicious_code?: boolean | undefined;
1319
+ agent?: boolean | undefined;
1320
+ topic_violation?: boolean | undefined;
1321
+ } | undefined;
1322
+ response_detected?: {
1323
+ url_cats?: boolean | undefined;
1324
+ dlp?: boolean | undefined;
1325
+ toxic_content?: boolean | undefined;
1326
+ malicious_code?: boolean | undefined;
1327
+ agent?: boolean | undefined;
1328
+ topic_violation?: boolean | undefined;
1329
+ db_security?: boolean | undefined;
1330
+ ungrounded?: boolean | undefined;
1331
+ } | undefined;
1332
+ prompt_masked_data?: {
1333
+ data?: string | undefined;
1334
+ pattern_detections?: Record<string, unknown>[] | undefined;
1335
+ } | undefined;
1336
+ response_masked_data?: {
1337
+ data?: string | undefined;
1338
+ pattern_detections?: Record<string, unknown>[] | undefined;
1339
+ } | undefined;
1340
+ prompt_detection_details?: {
1341
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1342
+ } | undefined;
1343
+ response_detection_details?: {
1344
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1345
+ } | undefined;
1346
+ tool_detected?: {
1347
+ metadata?: {
1348
+ method: string;
1349
+ ecosystem: string;
1350
+ server_name: string;
1351
+ tool_invoked?: string | undefined;
1352
+ } | undefined;
1353
+ verdict?: string | undefined;
1354
+ summary?: z.objectOutputType<{
1355
+ verdict: z.ZodOptional<z.ZodString>;
1356
+ action: z.ZodOptional<z.ZodString>;
1357
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1358
+ input_detected?: z.objectOutputType<{
1359
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1360
+ dlp: z.ZodOptional<z.ZodBoolean>;
1361
+ injection: z.ZodOptional<z.ZodBoolean>;
1362
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1363
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1364
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1365
+ output_detected?: z.objectOutputType<{
1366
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1367
+ dlp: z.ZodOptional<z.ZodBoolean>;
1368
+ injection: z.ZodOptional<z.ZodBoolean>;
1369
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1370
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1371
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1372
+ } | undefined;
1373
+ created_at?: string | undefined;
1374
+ completed_at?: string | undefined;
1375
+ } | undefined;
1376
+ }, {
1377
+ status?: string | undefined;
1378
+ source?: string | undefined;
1379
+ scan_id?: string | undefined;
1380
+ req_id?: number | undefined;
1381
+ result?: {
1382
+ action: string;
1383
+ report_id: string;
1384
+ scan_id: string;
1385
+ category: string;
1386
+ profile_id?: string | undefined;
1387
+ profile_name?: string | undefined;
1388
+ source?: string | undefined;
1389
+ tr_id?: string | undefined;
1390
+ session_id?: string | undefined;
1391
+ prompt_detected?: {
1392
+ url_cats?: boolean | undefined;
1393
+ dlp?: boolean | undefined;
1394
+ injection?: boolean | undefined;
1395
+ toxic_content?: boolean | undefined;
1396
+ malicious_code?: boolean | undefined;
1397
+ agent?: boolean | undefined;
1398
+ topic_violation?: boolean | undefined;
1399
+ } | undefined;
1400
+ response_detected?: {
1401
+ url_cats?: boolean | undefined;
1402
+ dlp?: boolean | undefined;
1403
+ toxic_content?: boolean | undefined;
1404
+ malicious_code?: boolean | undefined;
1405
+ agent?: boolean | undefined;
1406
+ topic_violation?: boolean | undefined;
1407
+ db_security?: boolean | undefined;
1408
+ ungrounded?: boolean | undefined;
1409
+ } | undefined;
1410
+ prompt_masked_data?: {
1411
+ data?: string | undefined;
1412
+ pattern_detections?: Record<string, unknown>[] | undefined;
1413
+ } | undefined;
1414
+ response_masked_data?: {
1415
+ data?: string | undefined;
1416
+ pattern_detections?: Record<string, unknown>[] | undefined;
1417
+ } | undefined;
1418
+ prompt_detection_details?: {
1419
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1420
+ } | undefined;
1421
+ response_detection_details?: {
1422
+ topic_guardrails_details?: Record<string, unknown> | undefined;
1423
+ } | undefined;
1424
+ tool_detected?: {
1425
+ metadata?: {
1426
+ method: string;
1427
+ ecosystem: string;
1428
+ server_name: string;
1429
+ tool_invoked?: string | undefined;
1430
+ } | undefined;
1431
+ verdict?: string | undefined;
1432
+ summary?: z.objectInputType<{
1433
+ verdict: z.ZodOptional<z.ZodString>;
1434
+ action: z.ZodOptional<z.ZodString>;
1435
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1436
+ input_detected?: z.objectInputType<{
1437
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1438
+ dlp: z.ZodOptional<z.ZodBoolean>;
1439
+ injection: z.ZodOptional<z.ZodBoolean>;
1440
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1441
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1442
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1443
+ output_detected?: z.objectInputType<{
1444
+ url_cats: z.ZodOptional<z.ZodBoolean>;
1445
+ dlp: z.ZodOptional<z.ZodBoolean>;
1446
+ injection: z.ZodOptional<z.ZodBoolean>;
1447
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
1448
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
1449
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1450
+ } | undefined;
1451
+ created_at?: string | undefined;
1452
+ completed_at?: string | undefined;
1453
+ } | undefined;
1454
+ }>;
1455
+ type ScanIdResult = z.infer<typeof ScanIdResultSchema>;
1456
+
1457
+ declare const ThreatScanReportSchema: z.ZodObject<{
1458
+ source: z.ZodOptional<z.ZodString>;
1459
+ report_id: z.ZodOptional<z.ZodString>;
1460
+ scan_id: z.ZodOptional<z.ZodString>;
1461
+ req_id: z.ZodOptional<z.ZodNumber>;
1462
+ transaction_id: z.ZodOptional<z.ZodString>;
1463
+ session_id: z.ZodOptional<z.ZodString>;
1464
+ detection_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1465
+ data_type: z.ZodOptional<z.ZodString>;
1466
+ detection_service: z.ZodOptional<z.ZodString>;
1467
+ verdict: z.ZodOptional<z.ZodString>;
1468
+ action: z.ZodOptional<z.ZodString>;
1469
+ metadata: z.ZodOptional<z.ZodObject<{
1470
+ score: z.ZodOptional<z.ZodNumber>;
1471
+ confidence: z.ZodOptional<z.ZodString>;
1472
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1473
+ score: z.ZodOptional<z.ZodNumber>;
1474
+ confidence: z.ZodOptional<z.ZodString>;
1475
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1476
+ score: z.ZodOptional<z.ZodNumber>;
1477
+ confidence: z.ZodOptional<z.ZodString>;
1478
+ }, z.ZodTypeAny, "passthrough">>>;
1479
+ result_detail: z.ZodOptional<z.ZodObject<{
1480
+ urlf_report: z.ZodOptional<z.ZodArray<z.ZodObject<{
1481
+ url: z.ZodOptional<z.ZodString>;
1482
+ risk_level: z.ZodOptional<z.ZodString>;
1483
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ url?: string | undefined;
1486
+ risk_level?: string | undefined;
1487
+ categories?: string[] | undefined;
1488
+ }, {
1489
+ url?: string | undefined;
1490
+ risk_level?: string | undefined;
1491
+ categories?: string[] | undefined;
1492
+ }>, "many">>;
1493
+ dlp_report: z.ZodOptional<z.ZodObject<{
1494
+ dlp_report_id: z.ZodOptional<z.ZodString>;
1495
+ dlp_profile_name: z.ZodOptional<z.ZodString>;
1496
+ dlp_profile_id: z.ZodOptional<z.ZodString>;
1497
+ dlp_profile_version: z.ZodOptional<z.ZodNumber>;
1498
+ data_pattern_rule1_verdict: z.ZodOptional<z.ZodString>;
1499
+ data_pattern_rule2_verdict: z.ZodOptional<z.ZodString>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ dlp_report_id?: string | undefined;
1502
+ dlp_profile_name?: string | undefined;
1503
+ dlp_profile_id?: string | undefined;
1504
+ dlp_profile_version?: number | undefined;
1505
+ data_pattern_rule1_verdict?: string | undefined;
1506
+ data_pattern_rule2_verdict?: string | undefined;
1507
+ }, {
1508
+ dlp_report_id?: string | undefined;
1509
+ dlp_profile_name?: string | undefined;
1510
+ dlp_profile_id?: string | undefined;
1511
+ dlp_profile_version?: number | undefined;
1512
+ data_pattern_rule1_verdict?: string | undefined;
1513
+ data_pattern_rule2_verdict?: string | undefined;
1514
+ }>>;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ urlf_report?: {
1517
+ url?: string | undefined;
1518
+ risk_level?: string | undefined;
1519
+ categories?: string[] | undefined;
1520
+ }[] | undefined;
1521
+ dlp_report?: {
1522
+ dlp_report_id?: string | undefined;
1523
+ dlp_profile_name?: string | undefined;
1524
+ dlp_profile_id?: string | undefined;
1525
+ dlp_profile_version?: number | undefined;
1526
+ data_pattern_rule1_verdict?: string | undefined;
1527
+ data_pattern_rule2_verdict?: string | undefined;
1528
+ } | undefined;
1529
+ }, {
1530
+ urlf_report?: {
1531
+ url?: string | undefined;
1532
+ risk_level?: string | undefined;
1533
+ categories?: string[] | undefined;
1534
+ }[] | undefined;
1535
+ dlp_report?: {
1536
+ dlp_report_id?: string | undefined;
1537
+ dlp_profile_name?: string | undefined;
1538
+ dlp_profile_id?: string | undefined;
1539
+ dlp_profile_version?: number | undefined;
1540
+ data_pattern_rule1_verdict?: string | undefined;
1541
+ data_pattern_rule2_verdict?: string | undefined;
1542
+ } | undefined;
1543
+ }>>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ metadata?: z.objectOutputType<{
1546
+ score: z.ZodOptional<z.ZodNumber>;
1547
+ confidence: z.ZodOptional<z.ZodString>;
1548
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1549
+ verdict?: string | undefined;
1550
+ action?: string | undefined;
1551
+ data_type?: string | undefined;
1552
+ detection_service?: string | undefined;
1553
+ result_detail?: {
1554
+ urlf_report?: {
1555
+ url?: string | undefined;
1556
+ risk_level?: string | undefined;
1557
+ categories?: string[] | undefined;
1558
+ }[] | undefined;
1559
+ dlp_report?: {
1560
+ dlp_report_id?: string | undefined;
1561
+ dlp_profile_name?: string | undefined;
1562
+ dlp_profile_id?: string | undefined;
1563
+ dlp_profile_version?: number | undefined;
1564
+ data_pattern_rule1_verdict?: string | undefined;
1565
+ data_pattern_rule2_verdict?: string | undefined;
1566
+ } | undefined;
1567
+ } | undefined;
1568
+ }, {
1569
+ metadata?: z.objectInputType<{
1570
+ score: z.ZodOptional<z.ZodNumber>;
1571
+ confidence: z.ZodOptional<z.ZodString>;
1572
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1573
+ verdict?: string | undefined;
1574
+ action?: string | undefined;
1575
+ data_type?: string | undefined;
1576
+ detection_service?: string | undefined;
1577
+ result_detail?: {
1578
+ urlf_report?: {
1579
+ url?: string | undefined;
1580
+ risk_level?: string | undefined;
1581
+ categories?: string[] | undefined;
1582
+ }[] | undefined;
1583
+ dlp_report?: {
1584
+ dlp_report_id?: string | undefined;
1585
+ dlp_profile_name?: string | undefined;
1586
+ dlp_profile_id?: string | undefined;
1587
+ dlp_profile_version?: number | undefined;
1588
+ data_pattern_rule1_verdict?: string | undefined;
1589
+ data_pattern_rule2_verdict?: string | undefined;
1590
+ } | undefined;
1591
+ } | undefined;
1592
+ }>, "many">>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ source?: string | undefined;
1595
+ report_id?: string | undefined;
1596
+ scan_id?: string | undefined;
1597
+ session_id?: string | undefined;
1598
+ req_id?: number | undefined;
1599
+ transaction_id?: string | undefined;
1600
+ detection_results?: {
1601
+ metadata?: z.objectOutputType<{
1602
+ score: z.ZodOptional<z.ZodNumber>;
1603
+ confidence: z.ZodOptional<z.ZodString>;
1604
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1605
+ verdict?: string | undefined;
1606
+ action?: string | undefined;
1607
+ data_type?: string | undefined;
1608
+ detection_service?: string | undefined;
1609
+ result_detail?: {
1610
+ urlf_report?: {
1611
+ url?: string | undefined;
1612
+ risk_level?: string | undefined;
1613
+ categories?: string[] | undefined;
1614
+ }[] | undefined;
1615
+ dlp_report?: {
1616
+ dlp_report_id?: string | undefined;
1617
+ dlp_profile_name?: string | undefined;
1618
+ dlp_profile_id?: string | undefined;
1619
+ dlp_profile_version?: number | undefined;
1620
+ data_pattern_rule1_verdict?: string | undefined;
1621
+ data_pattern_rule2_verdict?: string | undefined;
1622
+ } | undefined;
1623
+ } | undefined;
1624
+ }[] | undefined;
1625
+ }, {
1626
+ source?: string | undefined;
1627
+ report_id?: string | undefined;
1628
+ scan_id?: string | undefined;
1629
+ session_id?: string | undefined;
1630
+ req_id?: number | undefined;
1631
+ transaction_id?: string | undefined;
1632
+ detection_results?: {
1633
+ metadata?: z.objectInputType<{
1634
+ score: z.ZodOptional<z.ZodNumber>;
1635
+ confidence: z.ZodOptional<z.ZodString>;
1636
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1637
+ verdict?: string | undefined;
1638
+ action?: string | undefined;
1639
+ data_type?: string | undefined;
1640
+ detection_service?: string | undefined;
1641
+ result_detail?: {
1642
+ urlf_report?: {
1643
+ url?: string | undefined;
1644
+ risk_level?: string | undefined;
1645
+ categories?: string[] | undefined;
1646
+ }[] | undefined;
1647
+ dlp_report?: {
1648
+ dlp_report_id?: string | undefined;
1649
+ dlp_profile_name?: string | undefined;
1650
+ dlp_profile_id?: string | undefined;
1651
+ dlp_profile_version?: number | undefined;
1652
+ data_pattern_rule1_verdict?: string | undefined;
1653
+ data_pattern_rule2_verdict?: string | undefined;
1654
+ } | undefined;
1655
+ } | undefined;
1656
+ }[] | undefined;
1657
+ }>;
1658
+ type ThreatScanReport = z.infer<typeof ThreatScanReportSchema>;
1659
+
1660
+ declare const ToolEventMetadataSchema: z.ZodObject<{
1661
+ ecosystem: z.ZodString;
1662
+ method: z.ZodString;
1663
+ server_name: z.ZodString;
1664
+ tool_invoked: z.ZodOptional<z.ZodString>;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ method: string;
1667
+ ecosystem: string;
1668
+ server_name: string;
1669
+ tool_invoked?: string | undefined;
1670
+ }, {
1671
+ method: string;
1672
+ ecosystem: string;
1673
+ server_name: string;
1674
+ tool_invoked?: string | undefined;
1675
+ }>;
1676
+ type ToolEventMetadata = z.infer<typeof ToolEventMetadataSchema>;
1677
+ declare const ToolEventSchema: z.ZodObject<{
1678
+ metadata: z.ZodOptional<z.ZodObject<{
1679
+ ecosystem: z.ZodString;
1680
+ method: z.ZodString;
1681
+ server_name: z.ZodString;
1682
+ tool_invoked: z.ZodOptional<z.ZodString>;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ method: string;
1685
+ ecosystem: string;
1686
+ server_name: string;
1687
+ tool_invoked?: string | undefined;
1688
+ }, {
1689
+ method: string;
1690
+ ecosystem: string;
1691
+ server_name: string;
1692
+ tool_invoked?: string | undefined;
1693
+ }>>;
1694
+ input: z.ZodOptional<z.ZodString>;
1695
+ output: z.ZodOptional<z.ZodString>;
1696
+ }, "strip", z.ZodTypeAny, {
1697
+ metadata?: {
1698
+ method: string;
1699
+ ecosystem: string;
1700
+ server_name: string;
1701
+ tool_invoked?: string | undefined;
1702
+ } | undefined;
1703
+ input?: string | undefined;
1704
+ output?: string | undefined;
1705
+ }, {
1706
+ metadata?: {
1707
+ method: string;
1708
+ ecosystem: string;
1709
+ server_name: string;
1710
+ tool_invoked?: string | undefined;
1711
+ } | undefined;
1712
+ input?: string | undefined;
1713
+ output?: string | undefined;
1714
+ }>;
1715
+ type ToolEvent = z.infer<typeof ToolEventSchema>;
1716
+
1717
+ declare const ScanRequestContentsInnerSchema: z.ZodObject<{
1718
+ prompt: z.ZodOptional<z.ZodString>;
1719
+ response: z.ZodOptional<z.ZodString>;
1720
+ code_prompt: z.ZodOptional<z.ZodString>;
1721
+ code_response: z.ZodOptional<z.ZodString>;
1722
+ context: z.ZodOptional<z.ZodString>;
1723
+ tool_event: z.ZodOptional<z.ZodObject<{
1724
+ metadata: z.ZodOptional<z.ZodObject<{
1725
+ ecosystem: z.ZodString;
1726
+ method: z.ZodString;
1727
+ server_name: z.ZodString;
1728
+ tool_invoked: z.ZodOptional<z.ZodString>;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ method: string;
1731
+ ecosystem: string;
1732
+ server_name: string;
1733
+ tool_invoked?: string | undefined;
1734
+ }, {
1735
+ method: string;
1736
+ ecosystem: string;
1737
+ server_name: string;
1738
+ tool_invoked?: string | undefined;
1739
+ }>>;
1740
+ input: z.ZodOptional<z.ZodString>;
1741
+ output: z.ZodOptional<z.ZodString>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ metadata?: {
1744
+ method: string;
1745
+ ecosystem: string;
1746
+ server_name: string;
1747
+ tool_invoked?: string | undefined;
1748
+ } | undefined;
1749
+ input?: string | undefined;
1750
+ output?: string | undefined;
1751
+ }, {
1752
+ metadata?: {
1753
+ method: string;
1754
+ ecosystem: string;
1755
+ server_name: string;
1756
+ tool_invoked?: string | undefined;
1757
+ } | undefined;
1758
+ input?: string | undefined;
1759
+ output?: string | undefined;
1760
+ }>>;
1761
+ }, "strip", z.ZodTypeAny, {
1762
+ prompt?: string | undefined;
1763
+ response?: string | undefined;
1764
+ code_prompt?: string | undefined;
1765
+ code_response?: string | undefined;
1766
+ context?: string | undefined;
1767
+ tool_event?: {
1768
+ metadata?: {
1769
+ method: string;
1770
+ ecosystem: string;
1771
+ server_name: string;
1772
+ tool_invoked?: string | undefined;
1773
+ } | undefined;
1774
+ input?: string | undefined;
1775
+ output?: string | undefined;
1776
+ } | undefined;
1777
+ }, {
1778
+ prompt?: string | undefined;
1779
+ response?: string | undefined;
1780
+ code_prompt?: string | undefined;
1781
+ code_response?: string | undefined;
1782
+ context?: string | undefined;
1783
+ tool_event?: {
1784
+ metadata?: {
1785
+ method: string;
1786
+ ecosystem: string;
1787
+ server_name: string;
1788
+ tool_invoked?: string | undefined;
1789
+ } | undefined;
1790
+ input?: string | undefined;
1791
+ output?: string | undefined;
1792
+ } | undefined;
1793
+ }>;
1794
+ type ScanRequestContentsInner = z.infer<typeof ScanRequestContentsInnerSchema>;
1795
+ declare const ScanRequestSchema: z.ZodObject<{
1796
+ tr_id: z.ZodOptional<z.ZodString>;
1797
+ session_id: z.ZodOptional<z.ZodString>;
1798
+ ai_profile: z.ZodEffects<z.ZodObject<{
1799
+ profile_id: z.ZodOptional<z.ZodString>;
1800
+ profile_name: z.ZodOptional<z.ZodString>;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ profile_id?: string | undefined;
1803
+ profile_name?: string | undefined;
1804
+ }, {
1805
+ profile_id?: string | undefined;
1806
+ profile_name?: string | undefined;
1807
+ }>, {
1808
+ profile_id?: string | undefined;
1809
+ profile_name?: string | undefined;
1810
+ }, {
1811
+ profile_id?: string | undefined;
1812
+ profile_name?: string | undefined;
1813
+ }>;
1814
+ metadata: z.ZodOptional<z.ZodObject<{
1815
+ app_name: z.ZodOptional<z.ZodString>;
1816
+ app_user: z.ZodOptional<z.ZodString>;
1817
+ ai_model: z.ZodOptional<z.ZodString>;
1818
+ user_ip: z.ZodOptional<z.ZodString>;
1819
+ agent_meta: z.ZodOptional<z.ZodObject<{
1820
+ agent_id: z.ZodOptional<z.ZodString>;
1821
+ agent_version: z.ZodOptional<z.ZodString>;
1822
+ agent_arn: z.ZodOptional<z.ZodString>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ agent_id?: string | undefined;
1825
+ agent_version?: string | undefined;
1826
+ agent_arn?: string | undefined;
1827
+ }, {
1828
+ agent_id?: string | undefined;
1829
+ agent_version?: string | undefined;
1830
+ agent_arn?: string | undefined;
1831
+ }>>;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ app_name?: string | undefined;
1834
+ app_user?: string | undefined;
1835
+ ai_model?: string | undefined;
1836
+ user_ip?: string | undefined;
1837
+ agent_meta?: {
1838
+ agent_id?: string | undefined;
1839
+ agent_version?: string | undefined;
1840
+ agent_arn?: string | undefined;
1841
+ } | undefined;
1842
+ }, {
1843
+ app_name?: string | undefined;
1844
+ app_user?: string | undefined;
1845
+ ai_model?: string | undefined;
1846
+ user_ip?: string | undefined;
1847
+ agent_meta?: {
1848
+ agent_id?: string | undefined;
1849
+ agent_version?: string | undefined;
1850
+ agent_arn?: string | undefined;
1851
+ } | undefined;
1852
+ }>>;
1853
+ contents: z.ZodArray<z.ZodObject<{
1854
+ prompt: z.ZodOptional<z.ZodString>;
1855
+ response: z.ZodOptional<z.ZodString>;
1856
+ code_prompt: z.ZodOptional<z.ZodString>;
1857
+ code_response: z.ZodOptional<z.ZodString>;
1858
+ context: z.ZodOptional<z.ZodString>;
1859
+ tool_event: z.ZodOptional<z.ZodObject<{
1860
+ metadata: z.ZodOptional<z.ZodObject<{
1861
+ ecosystem: z.ZodString;
1862
+ method: z.ZodString;
1863
+ server_name: z.ZodString;
1864
+ tool_invoked: z.ZodOptional<z.ZodString>;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ method: string;
1867
+ ecosystem: string;
1868
+ server_name: string;
1869
+ tool_invoked?: string | undefined;
1870
+ }, {
1871
+ method: string;
1872
+ ecosystem: string;
1873
+ server_name: string;
1874
+ tool_invoked?: string | undefined;
1875
+ }>>;
1876
+ input: z.ZodOptional<z.ZodString>;
1877
+ output: z.ZodOptional<z.ZodString>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ metadata?: {
1880
+ method: string;
1881
+ ecosystem: string;
1882
+ server_name: string;
1883
+ tool_invoked?: string | undefined;
1884
+ } | undefined;
1885
+ input?: string | undefined;
1886
+ output?: string | undefined;
1887
+ }, {
1888
+ metadata?: {
1889
+ method: string;
1890
+ ecosystem: string;
1891
+ server_name: string;
1892
+ tool_invoked?: string | undefined;
1893
+ } | undefined;
1894
+ input?: string | undefined;
1895
+ output?: string | undefined;
1896
+ }>>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ prompt?: string | undefined;
1899
+ response?: string | undefined;
1900
+ code_prompt?: string | undefined;
1901
+ code_response?: string | undefined;
1902
+ context?: string | undefined;
1903
+ tool_event?: {
1904
+ metadata?: {
1905
+ method: string;
1906
+ ecosystem: string;
1907
+ server_name: string;
1908
+ tool_invoked?: string | undefined;
1909
+ } | undefined;
1910
+ input?: string | undefined;
1911
+ output?: string | undefined;
1912
+ } | undefined;
1913
+ }, {
1914
+ prompt?: string | undefined;
1915
+ response?: string | undefined;
1916
+ code_prompt?: string | undefined;
1917
+ code_response?: string | undefined;
1918
+ context?: string | undefined;
1919
+ tool_event?: {
1920
+ metadata?: {
1921
+ method: string;
1922
+ ecosystem: string;
1923
+ server_name: string;
1924
+ tool_invoked?: string | undefined;
1925
+ } | undefined;
1926
+ input?: string | undefined;
1927
+ output?: string | undefined;
1928
+ } | undefined;
1929
+ }>, "many">;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ ai_profile: {
1932
+ profile_id?: string | undefined;
1933
+ profile_name?: string | undefined;
1934
+ };
1935
+ contents: {
1936
+ prompt?: string | undefined;
1937
+ response?: string | undefined;
1938
+ code_prompt?: string | undefined;
1939
+ code_response?: string | undefined;
1940
+ context?: string | undefined;
1941
+ tool_event?: {
1942
+ metadata?: {
1943
+ method: string;
1944
+ ecosystem: string;
1945
+ server_name: string;
1946
+ tool_invoked?: string | undefined;
1947
+ } | undefined;
1948
+ input?: string | undefined;
1949
+ output?: string | undefined;
1950
+ } | undefined;
1951
+ }[];
1952
+ metadata?: {
1953
+ app_name?: string | undefined;
1954
+ app_user?: string | undefined;
1955
+ ai_model?: string | undefined;
1956
+ user_ip?: string | undefined;
1957
+ agent_meta?: {
1958
+ agent_id?: string | undefined;
1959
+ agent_version?: string | undefined;
1960
+ agent_arn?: string | undefined;
1961
+ } | undefined;
1962
+ } | undefined;
1963
+ tr_id?: string | undefined;
1964
+ session_id?: string | undefined;
1965
+ }, {
1966
+ ai_profile: {
1967
+ profile_id?: string | undefined;
1968
+ profile_name?: string | undefined;
1969
+ };
1970
+ contents: {
1971
+ prompt?: string | undefined;
1972
+ response?: string | undefined;
1973
+ code_prompt?: string | undefined;
1974
+ code_response?: string | undefined;
1975
+ context?: string | undefined;
1976
+ tool_event?: {
1977
+ metadata?: {
1978
+ method: string;
1979
+ ecosystem: string;
1980
+ server_name: string;
1981
+ tool_invoked?: string | undefined;
1982
+ } | undefined;
1983
+ input?: string | undefined;
1984
+ output?: string | undefined;
1985
+ } | undefined;
1986
+ }[];
1987
+ metadata?: {
1988
+ app_name?: string | undefined;
1989
+ app_user?: string | undefined;
1990
+ ai_model?: string | undefined;
1991
+ user_ip?: string | undefined;
1992
+ agent_meta?: {
1993
+ agent_id?: string | undefined;
1994
+ agent_version?: string | undefined;
1995
+ agent_arn?: string | undefined;
1996
+ } | undefined;
1997
+ } | undefined;
1998
+ tr_id?: string | undefined;
1999
+ session_id?: string | undefined;
2000
+ }>;
2001
+ type ScanRequest = z.infer<typeof ScanRequestSchema>;
2002
+
2003
+ interface ContentOptions {
2004
+ prompt?: string;
2005
+ response?: string;
2006
+ context?: string;
2007
+ codePrompt?: string;
2008
+ codeResponse?: string;
2009
+ toolEvent?: ToolEvent;
2010
+ }
2011
+ declare class Content {
2012
+ private _prompt?;
2013
+ private _response?;
2014
+ private _context?;
2015
+ private _codePrompt?;
2016
+ private _codeResponse?;
2017
+ private _toolEvent?;
2018
+ constructor(opts: ContentOptions);
2019
+ get prompt(): string | undefined;
2020
+ set prompt(value: string | undefined);
2021
+ get response(): string | undefined;
2022
+ set response(value: string | undefined);
2023
+ get context(): string | undefined;
2024
+ set context(value: string | undefined);
2025
+ get codePrompt(): string | undefined;
2026
+ set codePrompt(value: string | undefined);
2027
+ get codeResponse(): string | undefined;
2028
+ set codeResponse(value: string | undefined);
2029
+ get toolEvent(): ToolEvent | undefined;
2030
+ set toolEvent(value: ToolEvent | undefined);
2031
+ get length(): number;
2032
+ toJSON(): ScanRequestContentsInner;
2033
+ static fromJSON(json: ScanRequestContentsInner): Content;
2034
+ static fromJSONFile(filePath: string): Content;
2035
+ }
2036
+
2037
+ interface SyncScanOptions {
2038
+ trId?: string;
2039
+ sessionId?: string;
2040
+ metadata?: Metadata;
2041
+ }
2042
+ declare class Scanner {
2043
+ syncScan(aiProfile: AiProfile, content: Content, opts?: SyncScanOptions): Promise<ScanResponse>;
2044
+ asyncScan(scanObjects: AsyncScanObject[]): Promise<AsyncScanResponse>;
2045
+ queryByScanIds(scanIds: string[]): Promise<ScanIdResult[]>;
2046
+ queryByReportIds(reportIds: string[]): Promise<ThreatScanReport[]>;
2047
+ }
2048
+
2049
+ declare enum ErrorType {
2050
+ SERVER_SIDE_ERROR = "AISEC_SERVER_SIDE_ERROR",
2051
+ CLIENT_SIDE_ERROR = "AISEC_CLIENT_SIDE_ERROR",
2052
+ USER_REQUEST_PAYLOAD_ERROR = "AISEC_USER_REQUEST_PAYLOAD_ERROR",
2053
+ MISSING_VARIABLE = "AISEC_MISSING_VARIABLE",
2054
+ AISEC_SDK_ERROR = "AISEC_SDK_ERROR"
2055
+ }
2056
+ declare class AISecSDKException extends Error {
2057
+ readonly errorType?: ErrorType;
2058
+ constructor(message: string, errorType?: ErrorType);
2059
+ }
2060
+
2061
+ declare const PromptDetectionDetailsSchema: z.ZodObject<{
2062
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ topic_guardrails_details?: Record<string, unknown> | undefined;
2065
+ }, {
2066
+ topic_guardrails_details?: Record<string, unknown> | undefined;
2067
+ }>;
2068
+ type PromptDetectionDetails = z.infer<typeof PromptDetectionDetailsSchema>;
2069
+ declare const PromptDetectedSchema: z.ZodObject<{
2070
+ url_cats: z.ZodOptional<z.ZodBoolean>;
2071
+ dlp: z.ZodOptional<z.ZodBoolean>;
2072
+ injection: z.ZodOptional<z.ZodBoolean>;
2073
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
2074
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
2075
+ agent: z.ZodOptional<z.ZodBoolean>;
2076
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ url_cats?: boolean | undefined;
2079
+ dlp?: boolean | undefined;
2080
+ injection?: boolean | undefined;
2081
+ toxic_content?: boolean | undefined;
2082
+ malicious_code?: boolean | undefined;
2083
+ agent?: boolean | undefined;
2084
+ topic_violation?: boolean | undefined;
2085
+ }, {
2086
+ url_cats?: boolean | undefined;
2087
+ dlp?: boolean | undefined;
2088
+ injection?: boolean | undefined;
2089
+ toxic_content?: boolean | undefined;
2090
+ malicious_code?: boolean | undefined;
2091
+ agent?: boolean | undefined;
2092
+ topic_violation?: boolean | undefined;
2093
+ }>;
2094
+ type PromptDetected = z.infer<typeof PromptDetectedSchema>;
2095
+
2096
+ declare const ResponseDetectionDetailsSchema: z.ZodObject<{
2097
+ topic_guardrails_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ topic_guardrails_details?: Record<string, unknown> | undefined;
2100
+ }, {
2101
+ topic_guardrails_details?: Record<string, unknown> | undefined;
2102
+ }>;
2103
+ type ResponseDetectionDetails = z.infer<typeof ResponseDetectionDetailsSchema>;
2104
+ declare const ResponseDetectedSchema: z.ZodObject<{
2105
+ url_cats: z.ZodOptional<z.ZodBoolean>;
2106
+ dlp: z.ZodOptional<z.ZodBoolean>;
2107
+ db_security: z.ZodOptional<z.ZodBoolean>;
2108
+ toxic_content: z.ZodOptional<z.ZodBoolean>;
2109
+ malicious_code: z.ZodOptional<z.ZodBoolean>;
2110
+ agent: z.ZodOptional<z.ZodBoolean>;
2111
+ ungrounded: z.ZodOptional<z.ZodBoolean>;
2112
+ topic_violation: z.ZodOptional<z.ZodBoolean>;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ url_cats?: boolean | undefined;
2115
+ dlp?: boolean | undefined;
2116
+ toxic_content?: boolean | undefined;
2117
+ malicious_code?: boolean | undefined;
2118
+ agent?: boolean | undefined;
2119
+ topic_violation?: boolean | undefined;
2120
+ db_security?: boolean | undefined;
2121
+ ungrounded?: boolean | undefined;
2122
+ }, {
2123
+ url_cats?: boolean | undefined;
2124
+ dlp?: boolean | undefined;
2125
+ toxic_content?: boolean | undefined;
2126
+ malicious_code?: boolean | undefined;
2127
+ agent?: boolean | undefined;
2128
+ topic_violation?: boolean | undefined;
2129
+ db_security?: boolean | undefined;
2130
+ ungrounded?: boolean | undefined;
2131
+ }>;
2132
+ type ResponseDetected = z.infer<typeof ResponseDetectedSchema>;
2133
+
2134
+ declare const DSDetailResultSchema: z.ZodObject<{
2135
+ urlf_report: z.ZodOptional<z.ZodArray<z.ZodObject<{
2136
+ url: z.ZodOptional<z.ZodString>;
2137
+ risk_level: z.ZodOptional<z.ZodString>;
2138
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ url?: string | undefined;
2141
+ risk_level?: string | undefined;
2142
+ categories?: string[] | undefined;
2143
+ }, {
2144
+ url?: string | undefined;
2145
+ risk_level?: string | undefined;
2146
+ categories?: string[] | undefined;
2147
+ }>, "many">>;
2148
+ dlp_report: z.ZodOptional<z.ZodObject<{
2149
+ dlp_report_id: z.ZodOptional<z.ZodString>;
2150
+ dlp_profile_name: z.ZodOptional<z.ZodString>;
2151
+ dlp_profile_id: z.ZodOptional<z.ZodString>;
2152
+ dlp_profile_version: z.ZodOptional<z.ZodNumber>;
2153
+ data_pattern_rule1_verdict: z.ZodOptional<z.ZodString>;
2154
+ data_pattern_rule2_verdict: z.ZodOptional<z.ZodString>;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ dlp_report_id?: string | undefined;
2157
+ dlp_profile_name?: string | undefined;
2158
+ dlp_profile_id?: string | undefined;
2159
+ dlp_profile_version?: number | undefined;
2160
+ data_pattern_rule1_verdict?: string | undefined;
2161
+ data_pattern_rule2_verdict?: string | undefined;
2162
+ }, {
2163
+ dlp_report_id?: string | undefined;
2164
+ dlp_profile_name?: string | undefined;
2165
+ dlp_profile_id?: string | undefined;
2166
+ dlp_profile_version?: number | undefined;
2167
+ data_pattern_rule1_verdict?: string | undefined;
2168
+ data_pattern_rule2_verdict?: string | undefined;
2169
+ }>>;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ urlf_report?: {
2172
+ url?: string | undefined;
2173
+ risk_level?: string | undefined;
2174
+ categories?: string[] | undefined;
2175
+ }[] | undefined;
2176
+ dlp_report?: {
2177
+ dlp_report_id?: string | undefined;
2178
+ dlp_profile_name?: string | undefined;
2179
+ dlp_profile_id?: string | undefined;
2180
+ dlp_profile_version?: number | undefined;
2181
+ data_pattern_rule1_verdict?: string | undefined;
2182
+ data_pattern_rule2_verdict?: string | undefined;
2183
+ } | undefined;
2184
+ }, {
2185
+ urlf_report?: {
2186
+ url?: string | undefined;
2187
+ risk_level?: string | undefined;
2188
+ categories?: string[] | undefined;
2189
+ }[] | undefined;
2190
+ dlp_report?: {
2191
+ dlp_report_id?: string | undefined;
2192
+ dlp_profile_name?: string | undefined;
2193
+ dlp_profile_id?: string | undefined;
2194
+ dlp_profile_version?: number | undefined;
2195
+ data_pattern_rule1_verdict?: string | undefined;
2196
+ data_pattern_rule2_verdict?: string | undefined;
2197
+ } | undefined;
2198
+ }>;
2199
+ type DSDetailResult = z.infer<typeof DSDetailResultSchema>;
2200
+ declare const DSResultMetadataSchema: z.ZodObject<{
2201
+ score: z.ZodOptional<z.ZodNumber>;
2202
+ confidence: z.ZodOptional<z.ZodString>;
2203
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2204
+ score: z.ZodOptional<z.ZodNumber>;
2205
+ confidence: z.ZodOptional<z.ZodString>;
2206
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2207
+ score: z.ZodOptional<z.ZodNumber>;
2208
+ confidence: z.ZodOptional<z.ZodString>;
2209
+ }, z.ZodTypeAny, "passthrough">>;
2210
+ type DSResultMetadata = z.infer<typeof DSResultMetadataSchema>;
2211
+ declare const DetectionServiceResultSchema: z.ZodObject<{
2212
+ data_type: z.ZodOptional<z.ZodString>;
2213
+ detection_service: z.ZodOptional<z.ZodString>;
2214
+ verdict: z.ZodOptional<z.ZodString>;
2215
+ action: z.ZodOptional<z.ZodString>;
2216
+ metadata: z.ZodOptional<z.ZodObject<{
2217
+ score: z.ZodOptional<z.ZodNumber>;
2218
+ confidence: z.ZodOptional<z.ZodString>;
2219
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2220
+ score: z.ZodOptional<z.ZodNumber>;
2221
+ confidence: z.ZodOptional<z.ZodString>;
2222
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2223
+ score: z.ZodOptional<z.ZodNumber>;
2224
+ confidence: z.ZodOptional<z.ZodString>;
2225
+ }, z.ZodTypeAny, "passthrough">>>;
2226
+ result_detail: z.ZodOptional<z.ZodObject<{
2227
+ urlf_report: z.ZodOptional<z.ZodArray<z.ZodObject<{
2228
+ url: z.ZodOptional<z.ZodString>;
2229
+ risk_level: z.ZodOptional<z.ZodString>;
2230
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ url?: string | undefined;
2233
+ risk_level?: string | undefined;
2234
+ categories?: string[] | undefined;
2235
+ }, {
2236
+ url?: string | undefined;
2237
+ risk_level?: string | undefined;
2238
+ categories?: string[] | undefined;
2239
+ }>, "many">>;
2240
+ dlp_report: z.ZodOptional<z.ZodObject<{
2241
+ dlp_report_id: z.ZodOptional<z.ZodString>;
2242
+ dlp_profile_name: z.ZodOptional<z.ZodString>;
2243
+ dlp_profile_id: z.ZodOptional<z.ZodString>;
2244
+ dlp_profile_version: z.ZodOptional<z.ZodNumber>;
2245
+ data_pattern_rule1_verdict: z.ZodOptional<z.ZodString>;
2246
+ data_pattern_rule2_verdict: z.ZodOptional<z.ZodString>;
2247
+ }, "strip", z.ZodTypeAny, {
2248
+ dlp_report_id?: string | undefined;
2249
+ dlp_profile_name?: string | undefined;
2250
+ dlp_profile_id?: string | undefined;
2251
+ dlp_profile_version?: number | undefined;
2252
+ data_pattern_rule1_verdict?: string | undefined;
2253
+ data_pattern_rule2_verdict?: string | undefined;
2254
+ }, {
2255
+ dlp_report_id?: string | undefined;
2256
+ dlp_profile_name?: string | undefined;
2257
+ dlp_profile_id?: string | undefined;
2258
+ dlp_profile_version?: number | undefined;
2259
+ data_pattern_rule1_verdict?: string | undefined;
2260
+ data_pattern_rule2_verdict?: string | undefined;
2261
+ }>>;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ urlf_report?: {
2264
+ url?: string | undefined;
2265
+ risk_level?: string | undefined;
2266
+ categories?: string[] | undefined;
2267
+ }[] | undefined;
2268
+ dlp_report?: {
2269
+ dlp_report_id?: string | undefined;
2270
+ dlp_profile_name?: string | undefined;
2271
+ dlp_profile_id?: string | undefined;
2272
+ dlp_profile_version?: number | undefined;
2273
+ data_pattern_rule1_verdict?: string | undefined;
2274
+ data_pattern_rule2_verdict?: string | undefined;
2275
+ } | undefined;
2276
+ }, {
2277
+ urlf_report?: {
2278
+ url?: string | undefined;
2279
+ risk_level?: string | undefined;
2280
+ categories?: string[] | undefined;
2281
+ }[] | undefined;
2282
+ dlp_report?: {
2283
+ dlp_report_id?: string | undefined;
2284
+ dlp_profile_name?: string | undefined;
2285
+ dlp_profile_id?: string | undefined;
2286
+ dlp_profile_version?: number | undefined;
2287
+ data_pattern_rule1_verdict?: string | undefined;
2288
+ data_pattern_rule2_verdict?: string | undefined;
2289
+ } | undefined;
2290
+ }>>;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ metadata?: z.objectOutputType<{
2293
+ score: z.ZodOptional<z.ZodNumber>;
2294
+ confidence: z.ZodOptional<z.ZodString>;
2295
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2296
+ verdict?: string | undefined;
2297
+ action?: string | undefined;
2298
+ data_type?: string | undefined;
2299
+ detection_service?: string | undefined;
2300
+ result_detail?: {
2301
+ urlf_report?: {
2302
+ url?: string | undefined;
2303
+ risk_level?: string | undefined;
2304
+ categories?: string[] | undefined;
2305
+ }[] | undefined;
2306
+ dlp_report?: {
2307
+ dlp_report_id?: string | undefined;
2308
+ dlp_profile_name?: string | undefined;
2309
+ dlp_profile_id?: string | undefined;
2310
+ dlp_profile_version?: number | undefined;
2311
+ data_pattern_rule1_verdict?: string | undefined;
2312
+ data_pattern_rule2_verdict?: string | undefined;
2313
+ } | undefined;
2314
+ } | undefined;
2315
+ }, {
2316
+ metadata?: z.objectInputType<{
2317
+ score: z.ZodOptional<z.ZodNumber>;
2318
+ confidence: z.ZodOptional<z.ZodString>;
2319
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2320
+ verdict?: string | undefined;
2321
+ action?: string | undefined;
2322
+ data_type?: string | undefined;
2323
+ detection_service?: string | undefined;
2324
+ result_detail?: {
2325
+ urlf_report?: {
2326
+ url?: string | undefined;
2327
+ risk_level?: string | undefined;
2328
+ categories?: string[] | undefined;
2329
+ }[] | undefined;
2330
+ dlp_report?: {
2331
+ dlp_report_id?: string | undefined;
2332
+ dlp_profile_name?: string | undefined;
2333
+ dlp_profile_id?: string | undefined;
2334
+ dlp_profile_version?: number | undefined;
2335
+ data_pattern_rule1_verdict?: string | undefined;
2336
+ data_pattern_rule2_verdict?: string | undefined;
2337
+ } | undefined;
2338
+ } | undefined;
2339
+ }>;
2340
+ type DetectionServiceResult = z.infer<typeof DetectionServiceResultSchema>;
2341
+
2342
+ declare const DlpReportSchema: z.ZodObject<{
2343
+ dlp_report_id: z.ZodOptional<z.ZodString>;
2344
+ dlp_profile_name: z.ZodOptional<z.ZodString>;
2345
+ dlp_profile_id: z.ZodOptional<z.ZodString>;
2346
+ dlp_profile_version: z.ZodOptional<z.ZodNumber>;
2347
+ data_pattern_rule1_verdict: z.ZodOptional<z.ZodString>;
2348
+ data_pattern_rule2_verdict: z.ZodOptional<z.ZodString>;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ dlp_report_id?: string | undefined;
2351
+ dlp_profile_name?: string | undefined;
2352
+ dlp_profile_id?: string | undefined;
2353
+ dlp_profile_version?: number | undefined;
2354
+ data_pattern_rule1_verdict?: string | undefined;
2355
+ data_pattern_rule2_verdict?: string | undefined;
2356
+ }, {
2357
+ dlp_report_id?: string | undefined;
2358
+ dlp_profile_name?: string | undefined;
2359
+ dlp_profile_id?: string | undefined;
2360
+ dlp_profile_version?: number | undefined;
2361
+ data_pattern_rule1_verdict?: string | undefined;
2362
+ data_pattern_rule2_verdict?: string | undefined;
2363
+ }>;
2364
+ type DlpReport = z.infer<typeof DlpReportSchema>;
2365
+
2366
+ declare const UrlfEntrySchema: z.ZodObject<{
2367
+ url: z.ZodOptional<z.ZodString>;
2368
+ risk_level: z.ZodOptional<z.ZodString>;
2369
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ url?: string | undefined;
2372
+ risk_level?: string | undefined;
2373
+ categories?: string[] | undefined;
2374
+ }, {
2375
+ url?: string | undefined;
2376
+ risk_level?: string | undefined;
2377
+ categories?: string[] | undefined;
2378
+ }>;
2379
+ type UrlfEntry = z.infer<typeof UrlfEntrySchema>;
2380
+
2381
+ declare const ErrorResponseSchema: z.ZodObject<{
2382
+ status_code: z.ZodOptional<z.ZodNumber>;
2383
+ message: z.ZodOptional<z.ZodString>;
2384
+ error: z.ZodOptional<z.ZodObject<{
2385
+ message: z.ZodOptional<z.ZodString>;
2386
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2387
+ message: z.ZodOptional<z.ZodString>;
2388
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2389
+ message: z.ZodOptional<z.ZodString>;
2390
+ }, z.ZodTypeAny, "passthrough">>>;
2391
+ retry_after: z.ZodOptional<z.ZodObject<{
2392
+ interval: z.ZodOptional<z.ZodNumber>;
2393
+ unit: z.ZodOptional<z.ZodString>;
2394
+ }, "strip", z.ZodTypeAny, {
2395
+ interval?: number | undefined;
2396
+ unit?: string | undefined;
2397
+ }, {
2398
+ interval?: number | undefined;
2399
+ unit?: string | undefined;
2400
+ }>>;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ message?: string | undefined;
2403
+ error?: z.objectOutputType<{
2404
+ message: z.ZodOptional<z.ZodString>;
2405
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2406
+ status_code?: number | undefined;
2407
+ retry_after?: {
2408
+ interval?: number | undefined;
2409
+ unit?: string | undefined;
2410
+ } | undefined;
2411
+ }, {
2412
+ message?: string | undefined;
2413
+ error?: z.objectInputType<{
2414
+ message: z.ZodOptional<z.ZodString>;
2415
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2416
+ status_code?: number | undefined;
2417
+ retry_after?: {
2418
+ interval?: number | undefined;
2419
+ unit?: string | undefined;
2420
+ } | undefined;
2421
+ }>;
2422
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
2423
+
2424
+ declare const HEADER_API_KEY = "x-pan-token";
2425
+ declare const HEADER_AUTH_TOKEN = "Authorization";
2426
+ declare const PAYLOAD_HASH = "x-payload-hash";
2427
+ declare const BEARER = "Bearer ";
2428
+ declare const DEFAULT_ENDPOINT = "https://service.api.aisecurity.paloaltonetworks.com";
2429
+ declare const AI_SEC_API_KEY = "PANW_AI_SEC_API_KEY";
2430
+ declare const AI_SEC_API_TOKEN = "PANW_AI_SEC_API_TOKEN";
2431
+ declare const AI_SEC_API_ENDPOINT = "PANW_AI_SEC_API_ENDPOINT";
2432
+ declare const MAX_CONTENT_PROMPT_LENGTH: number;
2433
+ declare const MAX_CONTENT_RESPONSE_LENGTH: number;
2434
+ declare const MAX_CONTENT_CONTEXT_LENGTH: number;
2435
+ declare const MAX_API_KEY_LENGTH = 2048;
2436
+ declare const MAX_TOKEN_LENGTH = 2048;
2437
+ declare const MAX_TRANSACTION_ID_STR_LENGTH = 100;
2438
+ declare const MAX_SESSION_ID_STR_LENGTH = 100;
2439
+ declare const MAX_SCAN_ID_STR_LENGTH = 36;
2440
+ declare const MAX_REPORT_ID_STR_LENGTH = 40;
2441
+ declare const MAX_AI_PROFILE_NAME_LENGTH = 100;
2442
+ declare const MAX_NUMBER_OF_SCAN_IDS = 5;
2443
+ declare const MAX_NUMBER_OF_REPORT_IDS = 5;
2444
+ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
2445
+ declare const MAX_CONNECTION_POOL_SIZE = 100;
2446
+ declare const MAX_NUMBER_OF_RETRIES = 5;
2447
+ declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
2448
+ declare const SDK_VERSION = "0.1.0";
2449
+ declare const USER_AGENT = "PAN-AIRS/0.1.0-typescript-sdk";
2450
+ declare const SYNC_SCAN_PATH = "/v1/scan/sync/request";
2451
+ declare const ASYNC_SCAN_PATH = "/v1/scan/async/request";
2452
+ declare const SCAN_RESULTS_PATH = "/v1/scan/results";
2453
+ declare const SCAN_REPORTS_PATH = "/v1/scan/reports";
2454
+
2455
+ export { AISecSDKException, AI_SEC_API_ENDPOINT, AI_SEC_API_KEY, AI_SEC_API_TOKEN, ASYNC_SCAN_PATH, type AgentMeta, AgentMetaSchema, type AiProfile, AiProfileSchema, type AsyncScanObject, AsyncScanObjectSchema, type AsyncScanResponse, AsyncScanResponseSchema, BEARER, Content, type ContentOptions, DEFAULT_ENDPOINT, type DSDetailResult, DSDetailResultSchema, type DSResultMetadata, DSResultMetadataSchema, type DetectionServiceResult, DetectionServiceResultSchema, type DlpReport, DlpReportSchema, type ErrorResponse, ErrorResponseSchema, ErrorType, HEADER_API_KEY, HEADER_AUTH_TOKEN, HTTP_FORCE_RETRY_STATUS_CODES, type IODetected, IODetectedSchema, type InitOptions, MAX_AI_PROFILE_NAME_LENGTH, MAX_API_KEY_LENGTH, MAX_CONNECTION_POOL_SIZE, MAX_CONTENT_CONTEXT_LENGTH, MAX_CONTENT_PROMPT_LENGTH, MAX_CONTENT_RESPONSE_LENGTH, MAX_NUMBER_OF_BATCH_SCAN_OBJECTS, MAX_NUMBER_OF_REPORT_IDS, MAX_NUMBER_OF_RETRIES, MAX_NUMBER_OF_SCAN_IDS, MAX_REPORT_ID_STR_LENGTH, MAX_SCAN_ID_STR_LENGTH, MAX_SESSION_ID_STR_LENGTH, MAX_TOKEN_LENGTH, MAX_TRANSACTION_ID_STR_LENGTH, type MaskedData, MaskedDataSchema, type Metadata, MetadataSchema, PAYLOAD_HASH, type PromptDetected, PromptDetectedSchema, type PromptDetectionDetails, PromptDetectionDetailsSchema, type ResponseDetected, ResponseDetectedSchema, type ResponseDetectionDetails, ResponseDetectionDetailsSchema, SCAN_REPORTS_PATH, SCAN_RESULTS_PATH, SDK_VERSION, SYNC_SCAN_PATH, type ScanIdResult, ScanIdResultSchema, type ScanRequest, type ScanRequestContentsInner, ScanRequestContentsInnerSchema, ScanRequestSchema, type ScanResponse, ScanResponseSchema, type ScanSummary, ScanSummarySchema, Scanner, type SyncScanOptions, type ThreatScanReport, ThreatScanReportSchema, type ToolDetected, ToolDetectedSchema, type ToolEvent, type ToolEventMetadata, ToolEventMetadataSchema, ToolEventSchema, USER_AGENT, type UrlfEntry, UrlfEntrySchema, globalConfiguration, init };