abuseipdb-client 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/index.d.ts +10 -38
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -357,16 +357,10 @@ interface AbuseIPDBClientOptions extends z.TypeOf<typeof abuseIPDBClientOptionsS
|
|
|
357
357
|
/**
|
|
358
358
|
* @group Input - Validator
|
|
359
359
|
*/
|
|
360
|
-
declare const abuseIPDBClientSchema: z.ZodObject<
|
|
361
|
-
/** Client API Key, must be generated at AbuseIPDB's client dashboard. */
|
|
360
|
+
declare const abuseIPDBClientSchema: z.ZodObject<{
|
|
362
361
|
apiKey: z.ZodString;
|
|
363
|
-
}, {
|
|
364
|
-
/**
|
|
365
|
-
* Overrides the default AbuseIPDB base API url, can be used to proxy client requests.
|
|
366
|
-
* @defaultValue `https://api.abuseipdb.com/api/v2`
|
|
367
|
-
*/
|
|
368
362
|
url: z.ZodOptional<z.ZodString>;
|
|
369
|
-
}
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
364
|
url?: string | undefined;
|
|
371
365
|
apiKey: string;
|
|
372
366
|
}, {
|
|
@@ -415,15 +409,11 @@ interface CheckOptions extends z.TypeOf<typeof checkOptionsSchema> {
|
|
|
415
409
|
/**
|
|
416
410
|
* @group Input - Validator
|
|
417
411
|
*/
|
|
418
|
-
declare const checkSchema: z.ZodEffects<z.ZodObject<
|
|
419
|
-
/** Single IPv4/IPv6 address. */
|
|
412
|
+
declare const checkSchema: z.ZodEffects<z.ZodObject<{
|
|
420
413
|
ipAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
421
|
-
}, {
|
|
422
|
-
/** Show latest reports based on `n` days. Accepted values between 1 and 365, defaults to `30` by the API. */
|
|
423
414
|
maxAgeInDays: z.ZodOptional<z.ZodNumber>;
|
|
424
|
-
/** Includes in the client response all the reports (Limited to 10,000) and country name entries, based on the `maxAgeInDays` parameter. Defaults to `false` by the API. */
|
|
425
415
|
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
-
}
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
417
|
maxAgeInDays?: number | undefined;
|
|
428
418
|
verbose?: boolean | undefined;
|
|
429
419
|
ipAddress: string;
|
|
@@ -461,17 +451,12 @@ interface ReportsOptions extends z.infer<typeof reportsOptionsSchema> {
|
|
|
461
451
|
/**
|
|
462
452
|
* @group Input - Validator
|
|
463
453
|
*/
|
|
464
|
-
declare const reportsSchema: z.ZodObject<
|
|
465
|
-
/** Single IPv4/IPv6 address. */
|
|
454
|
+
declare const reportsSchema: z.ZodObject<{
|
|
466
455
|
ipAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
467
|
-
}, {
|
|
468
|
-
/** Show latest reports based on `n` days. Accepted values between 1 and 365, defaults to `30` by the API. */
|
|
469
456
|
maxAgeInDays: z.ZodOptional<z.ZodNumber>;
|
|
470
|
-
/** Pagination number based on the `perPage` parameter. Minimum accepted value is 1, defaults to `1` by the API. */
|
|
471
457
|
page: z.ZodOptional<z.ZodNumber>;
|
|
472
|
-
/** Amount of reports per page. Accepted values between 1 and 100, defaults to `25` by the API. */
|
|
473
458
|
perPage: z.ZodOptional<z.ZodNumber>;
|
|
474
|
-
}
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
460
|
maxAgeInDays?: number | undefined;
|
|
476
461
|
page?: number | undefined;
|
|
477
462
|
perPage?: number | undefined;
|
|
@@ -586,15 +571,11 @@ interface ReportOptions extends z.TypeOf<typeof reportOptionsSchema> {
|
|
|
586
571
|
/**
|
|
587
572
|
* @group Input - Validator
|
|
588
573
|
*/
|
|
589
|
-
declare const reportSchema: z.ZodObject<
|
|
590
|
-
/** Single IPv4/IPv6 address. */
|
|
574
|
+
declare const reportSchema: z.ZodObject<{
|
|
591
575
|
ip: z.ZodEffects<z.ZodString, string, string>;
|
|
592
|
-
/** Array of categories */
|
|
593
576
|
categories: z.ZodArray<z.ZodNumber, "many">;
|
|
594
|
-
}, {
|
|
595
|
-
/** Message to be added to the report, limited to 1024 characters. */
|
|
596
577
|
comment: z.ZodOptional<z.ZodString>;
|
|
597
|
-
}
|
|
578
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
579
|
comment?: string | undefined;
|
|
599
580
|
ip: string;
|
|
600
581
|
categories: number[];
|
|
@@ -623,19 +604,10 @@ interface CheckBlockOptions extends z.TypeOf<typeof checkBlockOptionsSchema> {
|
|
|
623
604
|
/**
|
|
624
605
|
* @group Input - Validator
|
|
625
606
|
*/
|
|
626
|
-
declare const checkBlockSchema: z.ZodObject<
|
|
627
|
-
/**
|
|
628
|
-
* Single IPv4/IPv6 address block in CIDR format.
|
|
629
|
-
* The value is capped by your current subscription tier. (Up to /24 on Standard, /20 on Basic, /16 on Premium).
|
|
630
|
-
*/
|
|
607
|
+
declare const checkBlockSchema: z.ZodObject<{
|
|
631
608
|
network: z.ZodEffects<z.ZodString, string, string>;
|
|
632
|
-
}, {
|
|
633
|
-
/**
|
|
634
|
-
* Show latest reports based on `n` days. Accepted values between 1 and 365, defaults to `30` by the API.
|
|
635
|
-
* The value is capped by your current subscription tier. (Up to 30 on Standard, 60 on Basic, 365 on Premium).
|
|
636
|
-
*/
|
|
637
609
|
maxAgeInDays: z.ZodOptional<z.ZodNumber>;
|
|
638
|
-
}
|
|
610
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
611
|
maxAgeInDays?: number | undefined;
|
|
640
612
|
network: string;
|
|
641
613
|
}, {
|