@indiciaosint/sdk 1.2.7 → 1.2.9

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.
@@ -91,15 +91,29 @@ export type Breachvip = {
91
91
  password?: string | undefined;
92
92
  };
93
93
 
94
+ export type Breach = string | any;
95
+
94
96
  export type SearchWebDatabasesBreach = {
95
97
  id: string;
98
+ address?: string | undefined;
99
+ city?: string | undefined;
100
+ county?: string | undefined;
101
+ dob?: string | undefined;
96
102
  email?: string | undefined;
103
+ firstname?: string | undefined;
97
104
  importedAt?: string | undefined;
105
+ lastname?: string | undefined;
106
+ middlename?: string | undefined;
98
107
  password?: string | undefined;
108
+ phone?: string | undefined;
99
109
  source?: string | undefined;
100
110
  sourceDate?: string | undefined;
101
111
  sourceName?: string | undefined;
112
+ ssn?: string | undefined;
113
+ state?: string | undefined;
102
114
  username?: string | undefined;
115
+ zip?: string | undefined;
116
+ additionalProperties?: { [k: string]: string | any } | undefined;
103
117
  };
104
118
 
105
119
  export type CloudsintData = {
@@ -145,14 +159,14 @@ export type Hackcheck = {
145
159
  results?: Results | undefined;
146
160
  };
147
161
 
148
- export type ItemTag = {
162
+ export type RawTag = {
149
163
  class: number;
150
164
  value: string;
151
165
  };
152
166
 
153
- export type ItemType = number | string;
167
+ export type RawType = number | string;
154
168
 
155
- export type Item = {
169
+ export type RawItem = {
156
170
  accesslevel?: number | undefined;
157
171
  added?: string | undefined;
158
172
  bucket?: string | undefined;
@@ -168,38 +182,41 @@ export type Item = {
168
182
  size?: number | undefined;
169
183
  storageid?: string | undefined;
170
184
  systemid?: string | undefined;
171
- tags?: Array<ItemTag> | undefined;
185
+ tags?: Array<RawTag> | undefined;
172
186
  type?: number | string | undefined;
173
187
  xscore?: number | undefined;
174
188
  };
175
189
 
190
+ export type SearchWebDatabasesRaw = {
191
+ item?: RawItem | undefined;
192
+ linea?: string | undefined;
193
+ lineraw?: string | undefined;
194
+ linesafterraw?: string | null | undefined;
195
+ linesbeforeraw?: string | null | undefined;
196
+ positionabsolute?: number | undefined;
197
+ positionline?: number | undefined;
198
+ positionsize?: number | undefined;
199
+ [additionalProperties: string]: unknown;
200
+ };
201
+
176
202
  export type Tag = {
177
203
  class: number;
178
204
  value: string;
179
205
  };
180
206
 
181
- export type SearchWebDatabasesType = number | string;
207
+ export type ItemType = number | string;
182
208
 
183
- export type Identityportal = {
209
+ export type Item = {
184
210
  accesslevel?: number | undefined;
185
211
  added?: string | undefined;
186
212
  bucket?: string | undefined;
187
213
  date?: string | undefined;
188
214
  description?: string | undefined;
189
215
  instore?: boolean | undefined;
190
- item?: Item | undefined;
191
216
  keyvalues?: any | undefined;
192
- line?: string | undefined;
193
- linea?: string | undefined;
194
- lineraw?: string | undefined;
195
- linesafterraw?: string | null | undefined;
196
- linesbeforeraw?: string | null | undefined;
197
217
  media?: number | undefined;
198
218
  name?: string | undefined;
199
219
  owner?: string | undefined;
200
- positionabsolute?: number | undefined;
201
- positionline?: number | undefined;
202
- positionsize?: number | undefined;
203
220
  relations?: any | undefined;
204
221
  simhash?: number | undefined;
205
222
  size?: number | undefined;
@@ -210,6 +227,35 @@ export type Identityportal = {
210
227
  xscore?: number | undefined;
211
228
  };
212
229
 
230
+ export type SearchWebDatabasesType = number | string;
231
+
232
+ export type Identityportal = {
233
+ raw?: SearchWebDatabasesRaw | undefined;
234
+ bucket?: string | undefined;
235
+ fileDate?: string | undefined;
236
+ fileName?: string | undefined;
237
+ fileSize?: number | undefined;
238
+ instore?: boolean | undefined;
239
+ item?: Item | undefined;
240
+ line?: string | undefined;
241
+ lineRaw?: string | null | undefined;
242
+ linea?: string | undefined;
243
+ lineraw?: string | undefined;
244
+ positionAbsolute?: number | undefined;
245
+ positionLine?: number | undefined;
246
+ query?: string | undefined;
247
+ source?: string | undefined;
248
+ sourceDb?: string | undefined;
249
+ storageid?: string | undefined;
250
+ systemid?: string | undefined;
251
+ tags?: Array<string> | undefined;
252
+ timestamp?: string | undefined;
253
+ totalResults?: number | undefined;
254
+ type?: number | string | undefined;
255
+ xscore?: number | undefined;
256
+ [additionalProperties: string]: unknown;
257
+ };
258
+
213
259
  export type Intelligencex = {
214
260
  identityportal?: Array<Identityportal> | undefined;
215
261
  };
@@ -398,21 +444,55 @@ export function breachvipFromJSON(
398
444
  );
399
445
  }
400
446
 
447
+ /** @internal */
448
+ export const Breach$inboundSchema: z.ZodMiniType<Breach, unknown> = smartUnion([
449
+ types.string(),
450
+ z.any(),
451
+ ]);
452
+
453
+ export function breachFromJSON(
454
+ jsonString: string,
455
+ ): SafeParseResult<Breach, SDKValidationError> {
456
+ return safeParse(
457
+ jsonString,
458
+ (x) => Breach$inboundSchema.parse(JSON.parse(x)),
459
+ `Failed to parse 'Breach' from JSON`,
460
+ );
461
+ }
462
+
401
463
  /** @internal */
402
464
  export const SearchWebDatabasesBreach$inboundSchema: z.ZodMiniType<
403
465
  SearchWebDatabasesBreach,
404
466
  unknown
405
467
  > = z.pipe(
406
- z.object({
407
- id: types.string(),
408
- email: types.optional(types.string()),
409
- imported_at: types.optional(types.string()),
410
- password: types.optional(types.string()),
411
- source: types.optional(types.string()),
412
- source_date: types.optional(types.string()),
413
- source_name: types.optional(types.string()),
414
- username: types.optional(types.string()),
415
- }),
468
+ collectExtraKeys$(
469
+ z.catchall(
470
+ z.object({
471
+ id: types.string(),
472
+ address: types.optional(types.string()),
473
+ city: types.optional(types.string()),
474
+ county: types.optional(types.string()),
475
+ dob: types.optional(types.string()),
476
+ email: types.optional(types.string()),
477
+ firstname: types.optional(types.string()),
478
+ imported_at: types.optional(types.string()),
479
+ lastname: types.optional(types.string()),
480
+ middlename: types.optional(types.string()),
481
+ password: types.optional(types.string()),
482
+ phone: types.optional(types.string()),
483
+ source: types.optional(types.string()),
484
+ source_date: types.optional(types.string()),
485
+ source_name: types.optional(types.string()),
486
+ ssn: types.optional(types.string()),
487
+ state: types.optional(types.string()),
488
+ username: types.optional(types.string()),
489
+ zip: types.optional(types.string()),
490
+ }),
491
+ smartUnion([types.string(), z.any()]),
492
+ ),
493
+ "additionalProperties",
494
+ true,
495
+ ),
416
496
  z.transform((v) => {
417
497
  return remap$(v, {
418
498
  "imported_at": "importedAt",
@@ -579,37 +659,37 @@ export function hackcheckFromJSON(
579
659
  }
580
660
 
581
661
  /** @internal */
582
- export const ItemTag$inboundSchema: z.ZodMiniType<ItemTag, unknown> = z.object({
662
+ export const RawTag$inboundSchema: z.ZodMiniType<RawTag, unknown> = z.object({
583
663
  class: types.number(),
584
664
  value: types.string(),
585
665
  });
586
666
 
587
- export function itemTagFromJSON(
667
+ export function rawTagFromJSON(
588
668
  jsonString: string,
589
- ): SafeParseResult<ItemTag, SDKValidationError> {
669
+ ): SafeParseResult<RawTag, SDKValidationError> {
590
670
  return safeParse(
591
671
  jsonString,
592
- (x) => ItemTag$inboundSchema.parse(JSON.parse(x)),
593
- `Failed to parse 'ItemTag' from JSON`,
672
+ (x) => RawTag$inboundSchema.parse(JSON.parse(x)),
673
+ `Failed to parse 'RawTag' from JSON`,
594
674
  );
595
675
  }
596
676
 
597
677
  /** @internal */
598
- export const ItemType$inboundSchema: z.ZodMiniType<ItemType, unknown> =
678
+ export const RawType$inboundSchema: z.ZodMiniType<RawType, unknown> =
599
679
  smartUnion([types.number(), types.string()]);
600
680
 
601
- export function itemTypeFromJSON(
681
+ export function rawTypeFromJSON(
602
682
  jsonString: string,
603
- ): SafeParseResult<ItemType, SDKValidationError> {
683
+ ): SafeParseResult<RawType, SDKValidationError> {
604
684
  return safeParse(
605
685
  jsonString,
606
- (x) => ItemType$inboundSchema.parse(JSON.parse(x)),
607
- `Failed to parse 'ItemType' from JSON`,
686
+ (x) => RawType$inboundSchema.parse(JSON.parse(x)),
687
+ `Failed to parse 'RawType' from JSON`,
608
688
  );
609
689
  }
610
690
 
611
691
  /** @internal */
612
- export const Item$inboundSchema: z.ZodMiniType<Item, unknown> = z.object({
692
+ export const RawItem$inboundSchema: z.ZodMiniType<RawItem, unknown> = z.object({
613
693
  accesslevel: types.optional(types.number()),
614
694
  added: types.optional(types.string()),
615
695
  bucket: types.optional(types.string()),
@@ -625,18 +705,46 @@ export const Item$inboundSchema: z.ZodMiniType<Item, unknown> = z.object({
625
705
  size: types.optional(types.number()),
626
706
  storageid: types.optional(types.string()),
627
707
  systemid: types.optional(types.string()),
628
- tags: types.optional(z.array(z.lazy(() => ItemTag$inboundSchema))),
708
+ tags: types.optional(z.array(z.lazy(() => RawTag$inboundSchema))),
629
709
  type: types.optional(smartUnion([types.number(), types.string()])),
630
710
  xscore: types.optional(types.number()),
631
711
  });
632
712
 
633
- export function itemFromJSON(
713
+ export function rawItemFromJSON(
634
714
  jsonString: string,
635
- ): SafeParseResult<Item, SDKValidationError> {
715
+ ): SafeParseResult<RawItem, SDKValidationError> {
636
716
  return safeParse(
637
717
  jsonString,
638
- (x) => Item$inboundSchema.parse(JSON.parse(x)),
639
- `Failed to parse 'Item' from JSON`,
718
+ (x) => RawItem$inboundSchema.parse(JSON.parse(x)),
719
+ `Failed to parse 'RawItem' from JSON`,
720
+ );
721
+ }
722
+
723
+ /** @internal */
724
+ export const SearchWebDatabasesRaw$inboundSchema: z.ZodMiniType<
725
+ SearchWebDatabasesRaw,
726
+ unknown
727
+ > = z.catchall(
728
+ z.object({
729
+ item: types.optional(z.lazy(() => RawItem$inboundSchema)),
730
+ linea: types.optional(types.string()),
731
+ lineraw: types.optional(types.string()),
732
+ linesafterraw: z.optional(z.nullable(types.string())),
733
+ linesbeforeraw: z.optional(z.nullable(types.string())),
734
+ positionabsolute: types.optional(types.number()),
735
+ positionline: types.optional(types.number()),
736
+ positionsize: types.optional(types.number()),
737
+ }),
738
+ z.any(),
739
+ );
740
+
741
+ export function searchWebDatabasesRawFromJSON(
742
+ jsonString: string,
743
+ ): SafeParseResult<SearchWebDatabasesRaw, SDKValidationError> {
744
+ return safeParse(
745
+ jsonString,
746
+ (x) => SearchWebDatabasesRaw$inboundSchema.parse(JSON.parse(x)),
747
+ `Failed to parse 'SearchWebDatabasesRaw' from JSON`,
640
748
  );
641
749
  }
642
750
 
@@ -657,45 +765,31 @@ export function tagFromJSON(
657
765
  }
658
766
 
659
767
  /** @internal */
660
- export const SearchWebDatabasesType$inboundSchema: z.ZodMiniType<
661
- SearchWebDatabasesType,
662
- unknown
663
- > = smartUnion([types.number(), types.string()]);
768
+ export const ItemType$inboundSchema: z.ZodMiniType<ItemType, unknown> =
769
+ smartUnion([types.number(), types.string()]);
664
770
 
665
- export function searchWebDatabasesTypeFromJSON(
771
+ export function itemTypeFromJSON(
666
772
  jsonString: string,
667
- ): SafeParseResult<SearchWebDatabasesType, SDKValidationError> {
773
+ ): SafeParseResult<ItemType, SDKValidationError> {
668
774
  return safeParse(
669
775
  jsonString,
670
- (x) => SearchWebDatabasesType$inboundSchema.parse(JSON.parse(x)),
671
- `Failed to parse 'SearchWebDatabasesType' from JSON`,
776
+ (x) => ItemType$inboundSchema.parse(JSON.parse(x)),
777
+ `Failed to parse 'ItemType' from JSON`,
672
778
  );
673
779
  }
674
780
 
675
781
  /** @internal */
676
- export const Identityportal$inboundSchema: z.ZodMiniType<
677
- Identityportal,
678
- unknown
679
- > = z.object({
782
+ export const Item$inboundSchema: z.ZodMiniType<Item, unknown> = z.object({
680
783
  accesslevel: types.optional(types.number()),
681
784
  added: types.optional(types.string()),
682
785
  bucket: types.optional(types.string()),
683
786
  date: types.optional(types.string()),
684
787
  description: types.optional(types.string()),
685
788
  instore: types.optional(types.boolean()),
686
- item: types.optional(z.lazy(() => Item$inboundSchema)),
687
789
  keyvalues: types.optional(z.any()),
688
- line: types.optional(types.string()),
689
- linea: types.optional(types.string()),
690
- lineraw: types.optional(types.string()),
691
- linesafterraw: z.optional(z.nullable(types.string())),
692
- linesbeforeraw: z.optional(z.nullable(types.string())),
693
790
  media: types.optional(types.number()),
694
791
  name: types.optional(types.string()),
695
792
  owner: types.optional(types.string()),
696
- positionabsolute: types.optional(types.number()),
697
- positionline: types.optional(types.number()),
698
- positionsize: types.optional(types.number()),
699
793
  relations: types.optional(z.any()),
700
794
  simhash: types.optional(types.number()),
701
795
  size: types.optional(types.number()),
@@ -706,6 +800,79 @@ export const Identityportal$inboundSchema: z.ZodMiniType<
706
800
  xscore: types.optional(types.number()),
707
801
  });
708
802
 
803
+ export function itemFromJSON(
804
+ jsonString: string,
805
+ ): SafeParseResult<Item, SDKValidationError> {
806
+ return safeParse(
807
+ jsonString,
808
+ (x) => Item$inboundSchema.parse(JSON.parse(x)),
809
+ `Failed to parse 'Item' from JSON`,
810
+ );
811
+ }
812
+
813
+ /** @internal */
814
+ export const SearchWebDatabasesType$inboundSchema: z.ZodMiniType<
815
+ SearchWebDatabasesType,
816
+ unknown
817
+ > = smartUnion([types.number(), types.string()]);
818
+
819
+ export function searchWebDatabasesTypeFromJSON(
820
+ jsonString: string,
821
+ ): SafeParseResult<SearchWebDatabasesType, SDKValidationError> {
822
+ return safeParse(
823
+ jsonString,
824
+ (x) => SearchWebDatabasesType$inboundSchema.parse(JSON.parse(x)),
825
+ `Failed to parse 'SearchWebDatabasesType' from JSON`,
826
+ );
827
+ }
828
+
829
+ /** @internal */
830
+ export const Identityportal$inboundSchema: z.ZodMiniType<
831
+ Identityportal,
832
+ unknown
833
+ > = z.pipe(
834
+ z.catchall(
835
+ z.object({
836
+ _raw: types.optional(z.lazy(() => SearchWebDatabasesRaw$inboundSchema)),
837
+ bucket: types.optional(types.string()),
838
+ file_date: types.optional(types.string()),
839
+ file_name: types.optional(types.string()),
840
+ file_size: types.optional(types.number()),
841
+ instore: types.optional(types.boolean()),
842
+ item: types.optional(z.lazy(() => Item$inboundSchema)),
843
+ line: types.optional(types.string()),
844
+ line_raw: z.optional(z.nullable(types.string())),
845
+ linea: types.optional(types.string()),
846
+ lineraw: types.optional(types.string()),
847
+ position_absolute: types.optional(types.number()),
848
+ position_line: types.optional(types.number()),
849
+ query: types.optional(types.string()),
850
+ source: types.optional(types.string()),
851
+ source_db: types.optional(types.string()),
852
+ storageid: types.optional(types.string()),
853
+ systemid: types.optional(types.string()),
854
+ tags: types.optional(z.array(types.string())),
855
+ timestamp: types.optional(types.string()),
856
+ totalResults: types.optional(types.number()),
857
+ type: types.optional(smartUnion([types.number(), types.string()])),
858
+ xscore: types.optional(types.number()),
859
+ }),
860
+ z.any(),
861
+ ),
862
+ z.transform((v) => {
863
+ return remap$(v, {
864
+ "_raw": "raw",
865
+ "file_date": "fileDate",
866
+ "file_name": "fileName",
867
+ "file_size": "fileSize",
868
+ "line_raw": "lineRaw",
869
+ "position_absolute": "positionAbsolute",
870
+ "position_line": "positionLine",
871
+ "source_db": "sourceDb",
872
+ });
873
+ }),
874
+ );
875
+
709
876
  export function identityportalFromJSON(
710
877
  jsonString: string,
711
878
  ): SafeParseResult<Identityportal, SDKValidationError> {
@@ -17,7 +17,7 @@ export type Dates = {
17
17
  expires?: string | undefined;
18
18
  };
19
19
 
20
- export type Raw = {};
20
+ export type SearchWhoisRaw = {};
21
21
 
22
22
  export type Registrar = {
23
23
  abuseEmail: string;
@@ -32,7 +32,7 @@ export type SearchWhoisData = {
32
32
  dnssec: { [k: string]: any };
33
33
  domain: string;
34
34
  nameservers: Array<{ [k: string]: any }>;
35
- raw: Raw;
35
+ raw: SearchWhoisRaw;
36
36
  registrar: Registrar;
37
37
  status: Array<string>;
38
38
  };
@@ -84,15 +84,18 @@ export function datesFromJSON(
84
84
  }
85
85
 
86
86
  /** @internal */
87
- export const Raw$inboundSchema: z.ZodMiniType<Raw, unknown> = z.object({});
87
+ export const SearchWhoisRaw$inboundSchema: z.ZodMiniType<
88
+ SearchWhoisRaw,
89
+ unknown
90
+ > = z.object({});
88
91
 
89
- export function rawFromJSON(
92
+ export function searchWhoisRawFromJSON(
90
93
  jsonString: string,
91
- ): SafeParseResult<Raw, SDKValidationError> {
94
+ ): SafeParseResult<SearchWhoisRaw, SDKValidationError> {
92
95
  return safeParse(
93
96
  jsonString,
94
- (x) => Raw$inboundSchema.parse(JSON.parse(x)),
95
- `Failed to parse 'Raw' from JSON`,
97
+ (x) => SearchWhoisRaw$inboundSchema.parse(JSON.parse(x)),
98
+ `Failed to parse 'SearchWhoisRaw' from JSON`,
96
99
  );
97
100
  }
98
101
 
@@ -125,7 +128,7 @@ export const SearchWhoisData$inboundSchema: z.ZodMiniType<
125
128
  dnssec: z.record(z.string(), z.any()),
126
129
  domain: types.string(),
127
130
  nameservers: z.array(z.record(z.string(), z.any())),
128
- raw: z.lazy(() => Raw$inboundSchema),
131
+ raw: z.lazy(() => SearchWhoisRaw$inboundSchema),
129
132
  registrar: z.lazy(() => Registrar$inboundSchema),
130
133
  status: z.array(types.string()),
131
134
  });