@dalmore/api-contracts 0.0.0-dev.685c0b3 → 0.0.0-dev.74136b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/common/types/account-setting.types.d.ts +64 -0
  2. package/common/types/account-setting.types.js +8 -0
  3. package/common/types/account-setting.types.js.map +1 -1
  4. package/common/types/account.types.d.ts +38 -2
  5. package/common/types/account.types.js +3 -0
  6. package/common/types/account.types.js.map +1 -1
  7. package/common/types/activity.types.d.ts +25 -24
  8. package/common/types/activity.types.js +2 -0
  9. package/common/types/activity.types.js.map +1 -1
  10. package/common/types/auth.types.d.ts +1 -1
  11. package/common/types/auth.types.js +1 -1
  12. package/common/types/auth.types.js.map +1 -1
  13. package/common/types/bonus-tier.types.d.ts +4 -4
  14. package/common/types/cap-table.types.d.ts +8 -8
  15. package/common/types/common.types.d.ts +17 -1
  16. package/common/types/common.types.js +11 -0
  17. package/common/types/common.types.js.map +1 -1
  18. package/common/types/comply-advantage-api.types.d.ts +609 -36
  19. package/common/types/comply-advantage-api.types.js +10 -2
  20. package/common/types/comply-advantage-api.types.js.map +1 -1
  21. package/common/types/dashboard.types.d.ts +7 -7
  22. package/common/types/disbursements.types.d.ts +741 -0
  23. package/common/types/disbursements.types.js +34 -0
  24. package/common/types/disbursements.types.js.map +1 -1
  25. package/common/types/file.types.d.ts +9 -9
  26. package/common/types/investor-account.types.d.ts +4 -4
  27. package/common/types/job-item.types.d.ts +14 -14
  28. package/common/types/note.types.d.ts +15 -15
  29. package/common/types/signer.types.d.ts +15 -3
  30. package/common/types/signer.types.js +16 -1
  31. package/common/types/signer.types.js.map +1 -1
  32. package/common/types/task.types.d.ts +22 -22
  33. package/common/types/trade-line-item.types.d.ts +18 -1
  34. package/common/types/trade-line-item.types.js +12 -1
  35. package/common/types/trade-line-item.types.js.map +1 -1
  36. package/common/types/trade.types.d.ts +62 -45
  37. package/common/types/trade.types.js +11 -4
  38. package/common/types/trade.types.js.map +1 -1
  39. package/common/types/user.types.d.ts +5 -0
  40. package/common/types/user.types.js +1 -0
  41. package/common/types/user.types.js.map +1 -1
  42. package/contracts/clients/files/index.d.ts +3 -3
  43. package/contracts/clients/files-public/index.d.ts +3 -3
  44. package/contracts/clients/index.d.ts +15 -9
  45. package/contracts/clients/trades/index.d.ts +9 -3
  46. package/package.json +1 -1
@@ -183,7 +183,7 @@ export declare const EntitySchema: z.ZodObject<{
183
183
  listing_ended_utc?: string | undefined;
184
184
  source_id?: string | undefined;
185
185
  }>>>;
186
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
187
187
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
188
  public_url: z.ZodOptional<z.ZodString>;
189
189
  source: z.ZodOptional<z.ZodString>;
@@ -290,7 +290,7 @@ export declare const EntitySchema: z.ZodObject<{
290
290
  listing_ended_utc?: string | undefined;
291
291
  source_id?: string | undefined;
292
292
  }>>>;
293
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
293
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
294
294
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
295
295
  public_url: z.ZodOptional<z.ZodString>;
296
296
  source: z.ZodOptional<z.ZodString>;
@@ -397,7 +397,7 @@ export declare const EntitySchema: z.ZodObject<{
397
397
  listing_ended_utc?: string | undefined;
398
398
  source_id?: string | undefined;
399
399
  }>>>;
400
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
401
401
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
402
  public_url: z.ZodOptional<z.ZodString>;
403
403
  source: z.ZodOptional<z.ZodString>;
@@ -511,7 +511,7 @@ export declare const HitSchema: z.ZodObject<{
511
511
  listing_ended_utc?: string | undefined;
512
512
  source_id?: string | undefined;
513
513
  }>>>;
514
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
514
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
515
515
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
516
  public_url: z.ZodOptional<z.ZodString>;
517
517
  source: z.ZodOptional<z.ZodString>;
@@ -618,7 +618,7 @@ export declare const HitSchema: z.ZodObject<{
618
618
  listing_ended_utc?: string | undefined;
619
619
  source_id?: string | undefined;
620
620
  }>>>;
621
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
621
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
622
622
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
623
623
  public_url: z.ZodOptional<z.ZodString>;
624
624
  source: z.ZodOptional<z.ZodString>;
@@ -725,7 +725,7 @@ export declare const HitSchema: z.ZodObject<{
725
725
  listing_ended_utc?: string | undefined;
726
726
  source_id?: string | undefined;
727
727
  }>>>;
728
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
728
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
729
729
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
730
730
  public_url: z.ZodOptional<z.ZodString>;
731
731
  source: z.ZodOptional<z.ZodString>;
@@ -773,7 +773,7 @@ export declare const HitSchema: z.ZodObject<{
773
773
  tag?: string | undefined;
774
774
  locale?: string | undefined;
775
775
  }[] | undefined;
776
- keywords?: string[] | undefined;
776
+ keywords?: string | string[] | undefined;
777
777
  first_name?: string | undefined;
778
778
  last_name?: string | undefined;
779
779
  types?: string[] | undefined;
@@ -830,7 +830,7 @@ export declare const HitSchema: z.ZodObject<{
830
830
  tag?: string | undefined;
831
831
  locale?: string | undefined;
832
832
  }[] | undefined;
833
- keywords?: string[] | undefined;
833
+ keywords?: string | string[] | undefined;
834
834
  first_name?: string | undefined;
835
835
  last_name?: string | undefined;
836
836
  types?: string[] | undefined;
@@ -1127,7 +1127,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1127
1127
  listing_ended_utc?: string | undefined;
1128
1128
  source_id?: string | undefined;
1129
1129
  }>>>;
1130
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1130
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
1131
1131
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1132
1132
  public_url: z.ZodOptional<z.ZodString>;
1133
1133
  source: z.ZodOptional<z.ZodString>;
@@ -1234,7 +1234,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1234
1234
  listing_ended_utc?: string | undefined;
1235
1235
  source_id?: string | undefined;
1236
1236
  }>>>;
1237
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1237
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
1238
1238
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1239
1239
  public_url: z.ZodOptional<z.ZodString>;
1240
1240
  source: z.ZodOptional<z.ZodString>;
@@ -1341,7 +1341,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1341
1341
  listing_ended_utc?: string | undefined;
1342
1342
  source_id?: string | undefined;
1343
1343
  }>>>;
1344
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1344
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
1345
1345
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1346
1346
  public_url: z.ZodOptional<z.ZodString>;
1347
1347
  source: z.ZodOptional<z.ZodString>;
@@ -1389,7 +1389,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1389
1389
  tag?: string | undefined;
1390
1390
  locale?: string | undefined;
1391
1391
  }[] | undefined;
1392
- keywords?: string[] | undefined;
1392
+ keywords?: string | string[] | undefined;
1393
1393
  first_name?: string | undefined;
1394
1394
  last_name?: string | undefined;
1395
1395
  types?: string[] | undefined;
@@ -1446,7 +1446,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1446
1446
  tag?: string | undefined;
1447
1447
  locale?: string | undefined;
1448
1448
  }[] | undefined;
1449
- keywords?: string[] | undefined;
1449
+ keywords?: string | string[] | undefined;
1450
1450
  first_name?: string | undefined;
1451
1451
  last_name?: string | undefined;
1452
1452
  types?: string[] | undefined;
@@ -1562,7 +1562,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1562
1562
  tag?: string | undefined;
1563
1563
  locale?: string | undefined;
1564
1564
  }[] | undefined;
1565
- keywords?: string[] | undefined;
1565
+ keywords?: string | string[] | undefined;
1566
1566
  first_name?: string | undefined;
1567
1567
  last_name?: string | undefined;
1568
1568
  types?: string[] | undefined;
@@ -1678,7 +1678,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1678
1678
  tag?: string | undefined;
1679
1679
  locale?: string | undefined;
1680
1680
  }[] | undefined;
1681
- keywords?: string[] | undefined;
1681
+ keywords?: string | string[] | undefined;
1682
1682
  first_name?: string | undefined;
1683
1683
  last_name?: string | undefined;
1684
1684
  types?: string[] | undefined;
@@ -1796,7 +1796,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1796
1796
  tag?: string | undefined;
1797
1797
  locale?: string | undefined;
1798
1798
  }[] | undefined;
1799
- keywords?: string[] | undefined;
1799
+ keywords?: string | string[] | undefined;
1800
1800
  first_name?: string | undefined;
1801
1801
  last_name?: string | undefined;
1802
1802
  types?: string[] | undefined;
@@ -1914,7 +1914,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
1914
1914
  tag?: string | undefined;
1915
1915
  locale?: string | undefined;
1916
1916
  }[] | undefined;
1917
- keywords?: string[] | undefined;
1917
+ keywords?: string | string[] | undefined;
1918
1918
  first_name?: string | undefined;
1919
1919
  last_name?: string | undefined;
1920
1920
  types?: string[] | undefined;
@@ -2036,7 +2036,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
2036
2036
  tag?: string | undefined;
2037
2037
  locale?: string | undefined;
2038
2038
  }[] | undefined;
2039
- keywords?: string[] | undefined;
2039
+ keywords?: string | string[] | undefined;
2040
2040
  first_name?: string | undefined;
2041
2041
  last_name?: string | undefined;
2042
2042
  types?: string[] | undefined;
@@ -2159,7 +2159,7 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
2159
2159
  tag?: string | undefined;
2160
2160
  locale?: string | undefined;
2161
2161
  }[] | undefined;
2162
- keywords?: string[] | undefined;
2162
+ keywords?: string | string[] | undefined;
2163
2163
  first_name?: string | undefined;
2164
2164
  last_name?: string | undefined;
2165
2165
  types?: string[] | undefined;
@@ -2201,9 +2201,582 @@ export declare const CreateSearchResponseSchema: z.ZodObject<{
2201
2201
  }>;
2202
2202
  export type CreateSearchResponse = z.infer<typeof CreateSearchResponseSchema>;
2203
2203
  /**
2204
- * GET /searches/{ref}/entities/comply - Get search entities response
2204
+ * GET /searches/{ref}/entities/comply - Get search entities API response wrapper
2205
2205
  * @see https://docs.complyadvantage.com/api-docs/#get-searchesrefentitiesentity_provider
2206
2206
  */
2207
+ export declare const GetSearchEntitiesApiResponseSchema: z.ZodObject<{
2208
+ code: z.ZodNumber;
2209
+ status: z.ZodEnum<["success", "failure"]>;
2210
+ content: z.ZodArray<z.ZodObject<{
2211
+ doc: z.ZodObject<{
2212
+ id: z.ZodString;
2213
+ entity_type: z.ZodOptional<z.ZodString>;
2214
+ last_updated_utc: z.ZodOptional<z.ZodString>;
2215
+ name: z.ZodString;
2216
+ first_name: z.ZodOptional<z.ZodString>;
2217
+ middle_name: z.ZodOptional<z.ZodString>;
2218
+ last_name: z.ZodOptional<z.ZodString>;
2219
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2220
+ types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2221
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2222
+ name: z.ZodString;
2223
+ tag: z.ZodOptional<z.ZodString>;
2224
+ value: z.ZodString;
2225
+ source: z.ZodOptional<z.ZodString>;
2226
+ locale: z.ZodOptional<z.ZodString>;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ value: string;
2229
+ name: string;
2230
+ source?: string | undefined;
2231
+ tag?: string | undefined;
2232
+ locale?: string | undefined;
2233
+ }, {
2234
+ value: string;
2235
+ name: string;
2236
+ source?: string | undefined;
2237
+ tag?: string | undefined;
2238
+ locale?: string | undefined;
2239
+ }>, "many">>;
2240
+ aka: z.ZodOptional<z.ZodArray<z.ZodObject<{
2241
+ name: z.ZodString;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ name: string;
2244
+ }, {
2245
+ name: string;
2246
+ }>, "many">>;
2247
+ associates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2248
+ name: z.ZodString;
2249
+ association: z.ZodOptional<z.ZodString>;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ name: string;
2252
+ association?: string | undefined;
2253
+ }, {
2254
+ name: string;
2255
+ association?: string | undefined;
2256
+ }>, "many">>;
2257
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
2258
+ date: z.ZodOptional<z.ZodString>;
2259
+ snippet: z.ZodOptional<z.ZodString>;
2260
+ title: z.ZodOptional<z.ZodString>;
2261
+ url: z.ZodString;
2262
+ pdf_url: z.ZodOptional<z.ZodString>;
2263
+ }, "strip", z.ZodTypeAny, {
2264
+ url: string;
2265
+ date?: string | undefined;
2266
+ title?: string | undefined;
2267
+ snippet?: string | undefined;
2268
+ pdf_url?: string | undefined;
2269
+ }, {
2270
+ url: string;
2271
+ date?: string | undefined;
2272
+ title?: string | undefined;
2273
+ snippet?: string | undefined;
2274
+ pdf_url?: string | undefined;
2275
+ }>, "many">>;
2276
+ source_notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2277
+ aml_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2278
+ country_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2279
+ listing_started_utc: z.ZodOptional<z.ZodString>;
2280
+ listing_ended_utc: z.ZodOptional<z.ZodString>;
2281
+ name: z.ZodOptional<z.ZodString>;
2282
+ source_id: z.ZodOptional<z.ZodString>;
2283
+ url: z.ZodOptional<z.ZodString>;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ name?: string | undefined;
2286
+ url?: string | undefined;
2287
+ country_codes?: string[] | undefined;
2288
+ aml_types?: string[] | undefined;
2289
+ listing_started_utc?: string | undefined;
2290
+ listing_ended_utc?: string | undefined;
2291
+ source_id?: string | undefined;
2292
+ }, {
2293
+ name?: string | undefined;
2294
+ url?: string | undefined;
2295
+ country_codes?: string[] | undefined;
2296
+ aml_types?: string[] | undefined;
2297
+ listing_started_utc?: string | undefined;
2298
+ listing_ended_utc?: string | undefined;
2299
+ source_id?: string | undefined;
2300
+ }>>>;
2301
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2302
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2303
+ public_url: z.ZodOptional<z.ZodString>;
2304
+ source: z.ZodOptional<z.ZodString>;
2305
+ type: z.ZodOptional<z.ZodString>;
2306
+ url: z.ZodString;
2307
+ }, "strip", z.ZodTypeAny, {
2308
+ url: string;
2309
+ type?: string | undefined;
2310
+ public_url?: string | undefined;
2311
+ source?: string | undefined;
2312
+ }, {
2313
+ url: string;
2314
+ type?: string | undefined;
2315
+ public_url?: string | undefined;
2316
+ source?: string | undefined;
2317
+ }>, "many">>;
2318
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2319
+ id: z.ZodString;
2320
+ entity_type: z.ZodOptional<z.ZodString>;
2321
+ last_updated_utc: z.ZodOptional<z.ZodString>;
2322
+ name: z.ZodString;
2323
+ first_name: z.ZodOptional<z.ZodString>;
2324
+ middle_name: z.ZodOptional<z.ZodString>;
2325
+ last_name: z.ZodOptional<z.ZodString>;
2326
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2327
+ types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2328
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2329
+ name: z.ZodString;
2330
+ tag: z.ZodOptional<z.ZodString>;
2331
+ value: z.ZodString;
2332
+ source: z.ZodOptional<z.ZodString>;
2333
+ locale: z.ZodOptional<z.ZodString>;
2334
+ }, "strip", z.ZodTypeAny, {
2335
+ value: string;
2336
+ name: string;
2337
+ source?: string | undefined;
2338
+ tag?: string | undefined;
2339
+ locale?: string | undefined;
2340
+ }, {
2341
+ value: string;
2342
+ name: string;
2343
+ source?: string | undefined;
2344
+ tag?: string | undefined;
2345
+ locale?: string | undefined;
2346
+ }>, "many">>;
2347
+ aka: z.ZodOptional<z.ZodArray<z.ZodObject<{
2348
+ name: z.ZodString;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ name: string;
2351
+ }, {
2352
+ name: string;
2353
+ }>, "many">>;
2354
+ associates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2355
+ name: z.ZodString;
2356
+ association: z.ZodOptional<z.ZodString>;
2357
+ }, "strip", z.ZodTypeAny, {
2358
+ name: string;
2359
+ association?: string | undefined;
2360
+ }, {
2361
+ name: string;
2362
+ association?: string | undefined;
2363
+ }>, "many">>;
2364
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
2365
+ date: z.ZodOptional<z.ZodString>;
2366
+ snippet: z.ZodOptional<z.ZodString>;
2367
+ title: z.ZodOptional<z.ZodString>;
2368
+ url: z.ZodString;
2369
+ pdf_url: z.ZodOptional<z.ZodString>;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ url: string;
2372
+ date?: string | undefined;
2373
+ title?: string | undefined;
2374
+ snippet?: string | undefined;
2375
+ pdf_url?: string | undefined;
2376
+ }, {
2377
+ url: string;
2378
+ date?: string | undefined;
2379
+ title?: string | undefined;
2380
+ snippet?: string | undefined;
2381
+ pdf_url?: string | undefined;
2382
+ }>, "many">>;
2383
+ source_notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2384
+ aml_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2385
+ country_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2386
+ listing_started_utc: z.ZodOptional<z.ZodString>;
2387
+ listing_ended_utc: z.ZodOptional<z.ZodString>;
2388
+ name: z.ZodOptional<z.ZodString>;
2389
+ source_id: z.ZodOptional<z.ZodString>;
2390
+ url: z.ZodOptional<z.ZodString>;
2391
+ }, "strip", z.ZodTypeAny, {
2392
+ name?: string | undefined;
2393
+ url?: string | undefined;
2394
+ country_codes?: string[] | undefined;
2395
+ aml_types?: string[] | undefined;
2396
+ listing_started_utc?: string | undefined;
2397
+ listing_ended_utc?: string | undefined;
2398
+ source_id?: string | undefined;
2399
+ }, {
2400
+ name?: string | undefined;
2401
+ url?: string | undefined;
2402
+ country_codes?: string[] | undefined;
2403
+ aml_types?: string[] | undefined;
2404
+ listing_started_utc?: string | undefined;
2405
+ listing_ended_utc?: string | undefined;
2406
+ source_id?: string | undefined;
2407
+ }>>>;
2408
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2409
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2410
+ public_url: z.ZodOptional<z.ZodString>;
2411
+ source: z.ZodOptional<z.ZodString>;
2412
+ type: z.ZodOptional<z.ZodString>;
2413
+ url: z.ZodString;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ url: string;
2416
+ type?: string | undefined;
2417
+ public_url?: string | undefined;
2418
+ source?: string | undefined;
2419
+ }, {
2420
+ url: string;
2421
+ type?: string | undefined;
2422
+ public_url?: string | undefined;
2423
+ source?: string | undefined;
2424
+ }>, "many">>;
2425
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2426
+ id: z.ZodString;
2427
+ entity_type: z.ZodOptional<z.ZodString>;
2428
+ last_updated_utc: z.ZodOptional<z.ZodString>;
2429
+ name: z.ZodString;
2430
+ first_name: z.ZodOptional<z.ZodString>;
2431
+ middle_name: z.ZodOptional<z.ZodString>;
2432
+ last_name: z.ZodOptional<z.ZodString>;
2433
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2434
+ types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2435
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2436
+ name: z.ZodString;
2437
+ tag: z.ZodOptional<z.ZodString>;
2438
+ value: z.ZodString;
2439
+ source: z.ZodOptional<z.ZodString>;
2440
+ locale: z.ZodOptional<z.ZodString>;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ value: string;
2443
+ name: string;
2444
+ source?: string | undefined;
2445
+ tag?: string | undefined;
2446
+ locale?: string | undefined;
2447
+ }, {
2448
+ value: string;
2449
+ name: string;
2450
+ source?: string | undefined;
2451
+ tag?: string | undefined;
2452
+ locale?: string | undefined;
2453
+ }>, "many">>;
2454
+ aka: z.ZodOptional<z.ZodArray<z.ZodObject<{
2455
+ name: z.ZodString;
2456
+ }, "strip", z.ZodTypeAny, {
2457
+ name: string;
2458
+ }, {
2459
+ name: string;
2460
+ }>, "many">>;
2461
+ associates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2462
+ name: z.ZodString;
2463
+ association: z.ZodOptional<z.ZodString>;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ name: string;
2466
+ association?: string | undefined;
2467
+ }, {
2468
+ name: string;
2469
+ association?: string | undefined;
2470
+ }>, "many">>;
2471
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
2472
+ date: z.ZodOptional<z.ZodString>;
2473
+ snippet: z.ZodOptional<z.ZodString>;
2474
+ title: z.ZodOptional<z.ZodString>;
2475
+ url: z.ZodString;
2476
+ pdf_url: z.ZodOptional<z.ZodString>;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ url: string;
2479
+ date?: string | undefined;
2480
+ title?: string | undefined;
2481
+ snippet?: string | undefined;
2482
+ pdf_url?: string | undefined;
2483
+ }, {
2484
+ url: string;
2485
+ date?: string | undefined;
2486
+ title?: string | undefined;
2487
+ snippet?: string | undefined;
2488
+ pdf_url?: string | undefined;
2489
+ }>, "many">>;
2490
+ source_notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2491
+ aml_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2492
+ country_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2493
+ listing_started_utc: z.ZodOptional<z.ZodString>;
2494
+ listing_ended_utc: z.ZodOptional<z.ZodString>;
2495
+ name: z.ZodOptional<z.ZodString>;
2496
+ source_id: z.ZodOptional<z.ZodString>;
2497
+ url: z.ZodOptional<z.ZodString>;
2498
+ }, "strip", z.ZodTypeAny, {
2499
+ name?: string | undefined;
2500
+ url?: string | undefined;
2501
+ country_codes?: string[] | undefined;
2502
+ aml_types?: string[] | undefined;
2503
+ listing_started_utc?: string | undefined;
2504
+ listing_ended_utc?: string | undefined;
2505
+ source_id?: string | undefined;
2506
+ }, {
2507
+ name?: string | undefined;
2508
+ url?: string | undefined;
2509
+ country_codes?: string[] | undefined;
2510
+ aml_types?: string[] | undefined;
2511
+ listing_started_utc?: string | undefined;
2512
+ listing_ended_utc?: string | undefined;
2513
+ source_id?: string | undefined;
2514
+ }>>>;
2515
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2516
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2517
+ public_url: z.ZodOptional<z.ZodString>;
2518
+ source: z.ZodOptional<z.ZodString>;
2519
+ type: z.ZodOptional<z.ZodString>;
2520
+ url: z.ZodString;
2521
+ }, "strip", z.ZodTypeAny, {
2522
+ url: string;
2523
+ type?: string | undefined;
2524
+ public_url?: string | undefined;
2525
+ source?: string | undefined;
2526
+ }, {
2527
+ url: string;
2528
+ type?: string | undefined;
2529
+ public_url?: string | undefined;
2530
+ source?: string | undefined;
2531
+ }>, "many">>;
2532
+ }, z.ZodTypeAny, "passthrough">>;
2533
+ is_whitelisted: z.ZodOptional<z.ZodBoolean>;
2534
+ match_types: z.ZodArray<z.ZodString, "many">;
2535
+ match_types_details: z.ZodOptional<z.ZodAny>;
2536
+ score: z.ZodNumber;
2537
+ match_status: z.ZodOptional<z.ZodNativeEnum<typeof ComplyAdvantageStatus>>;
2538
+ risk_level: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "unknown"]>>;
2539
+ }, "strip", z.ZodTypeAny, {
2540
+ doc: {
2541
+ id: string;
2542
+ name: string;
2543
+ media?: {
2544
+ url: string;
2545
+ date?: string | undefined;
2546
+ title?: string | undefined;
2547
+ snippet?: string | undefined;
2548
+ pdf_url?: string | undefined;
2549
+ }[] | undefined;
2550
+ assets?: {
2551
+ url: string;
2552
+ type?: string | undefined;
2553
+ public_url?: string | undefined;
2554
+ source?: string | undefined;
2555
+ }[] | undefined;
2556
+ fields?: {
2557
+ value: string;
2558
+ name: string;
2559
+ source?: string | undefined;
2560
+ tag?: string | undefined;
2561
+ locale?: string | undefined;
2562
+ }[] | undefined;
2563
+ keywords?: string | string[] | undefined;
2564
+ first_name?: string | undefined;
2565
+ last_name?: string | undefined;
2566
+ types?: string[] | undefined;
2567
+ entity_type?: string | undefined;
2568
+ last_updated_utc?: string | undefined;
2569
+ middle_name?: string | undefined;
2570
+ sources?: string[] | undefined;
2571
+ aka?: {
2572
+ name: string;
2573
+ }[] | undefined;
2574
+ associates?: {
2575
+ name: string;
2576
+ association?: string | undefined;
2577
+ }[] | undefined;
2578
+ source_notes?: Record<string, {
2579
+ name?: string | undefined;
2580
+ url?: string | undefined;
2581
+ country_codes?: string[] | undefined;
2582
+ aml_types?: string[] | undefined;
2583
+ listing_started_utc?: string | undefined;
2584
+ listing_ended_utc?: string | undefined;
2585
+ source_id?: string | undefined;
2586
+ }> | undefined;
2587
+ } & {
2588
+ [k: string]: unknown;
2589
+ };
2590
+ match_types: string[];
2591
+ score: number;
2592
+ match_status?: ComplyAdvantageStatus | undefined;
2593
+ is_whitelisted?: boolean | undefined;
2594
+ match_types_details?: any;
2595
+ risk_level?: "unknown" | "low" | "medium" | "high" | undefined;
2596
+ }, {
2597
+ doc: {
2598
+ id: string;
2599
+ name: string;
2600
+ media?: {
2601
+ url: string;
2602
+ date?: string | undefined;
2603
+ title?: string | undefined;
2604
+ snippet?: string | undefined;
2605
+ pdf_url?: string | undefined;
2606
+ }[] | undefined;
2607
+ assets?: {
2608
+ url: string;
2609
+ type?: string | undefined;
2610
+ public_url?: string | undefined;
2611
+ source?: string | undefined;
2612
+ }[] | undefined;
2613
+ fields?: {
2614
+ value: string;
2615
+ name: string;
2616
+ source?: string | undefined;
2617
+ tag?: string | undefined;
2618
+ locale?: string | undefined;
2619
+ }[] | undefined;
2620
+ keywords?: string | string[] | undefined;
2621
+ first_name?: string | undefined;
2622
+ last_name?: string | undefined;
2623
+ types?: string[] | undefined;
2624
+ entity_type?: string | undefined;
2625
+ last_updated_utc?: string | undefined;
2626
+ middle_name?: string | undefined;
2627
+ sources?: string[] | undefined;
2628
+ aka?: {
2629
+ name: string;
2630
+ }[] | undefined;
2631
+ associates?: {
2632
+ name: string;
2633
+ association?: string | undefined;
2634
+ }[] | undefined;
2635
+ source_notes?: Record<string, {
2636
+ name?: string | undefined;
2637
+ url?: string | undefined;
2638
+ country_codes?: string[] | undefined;
2639
+ aml_types?: string[] | undefined;
2640
+ listing_started_utc?: string | undefined;
2641
+ listing_ended_utc?: string | undefined;
2642
+ source_id?: string | undefined;
2643
+ }> | undefined;
2644
+ } & {
2645
+ [k: string]: unknown;
2646
+ };
2647
+ match_types: string[];
2648
+ score: number;
2649
+ match_status?: ComplyAdvantageStatus | undefined;
2650
+ is_whitelisted?: boolean | undefined;
2651
+ match_types_details?: any;
2652
+ risk_level?: "unknown" | "low" | "medium" | "high" | undefined;
2653
+ }>, "many">;
2654
+ }, "strip", z.ZodTypeAny, {
2655
+ code: number;
2656
+ status: "success" | "failure";
2657
+ content: {
2658
+ doc: {
2659
+ id: string;
2660
+ name: string;
2661
+ media?: {
2662
+ url: string;
2663
+ date?: string | undefined;
2664
+ title?: string | undefined;
2665
+ snippet?: string | undefined;
2666
+ pdf_url?: string | undefined;
2667
+ }[] | undefined;
2668
+ assets?: {
2669
+ url: string;
2670
+ type?: string | undefined;
2671
+ public_url?: string | undefined;
2672
+ source?: string | undefined;
2673
+ }[] | undefined;
2674
+ fields?: {
2675
+ value: string;
2676
+ name: string;
2677
+ source?: string | undefined;
2678
+ tag?: string | undefined;
2679
+ locale?: string | undefined;
2680
+ }[] | undefined;
2681
+ keywords?: string | string[] | undefined;
2682
+ first_name?: string | undefined;
2683
+ last_name?: string | undefined;
2684
+ types?: string[] | undefined;
2685
+ entity_type?: string | undefined;
2686
+ last_updated_utc?: string | undefined;
2687
+ middle_name?: string | undefined;
2688
+ sources?: string[] | undefined;
2689
+ aka?: {
2690
+ name: string;
2691
+ }[] | undefined;
2692
+ associates?: {
2693
+ name: string;
2694
+ association?: string | undefined;
2695
+ }[] | undefined;
2696
+ source_notes?: Record<string, {
2697
+ name?: string | undefined;
2698
+ url?: string | undefined;
2699
+ country_codes?: string[] | undefined;
2700
+ aml_types?: string[] | undefined;
2701
+ listing_started_utc?: string | undefined;
2702
+ listing_ended_utc?: string | undefined;
2703
+ source_id?: string | undefined;
2704
+ }> | undefined;
2705
+ } & {
2706
+ [k: string]: unknown;
2707
+ };
2708
+ match_types: string[];
2709
+ score: number;
2710
+ match_status?: ComplyAdvantageStatus | undefined;
2711
+ is_whitelisted?: boolean | undefined;
2712
+ match_types_details?: any;
2713
+ risk_level?: "unknown" | "low" | "medium" | "high" | undefined;
2714
+ }[];
2715
+ }, {
2716
+ code: number;
2717
+ status: "success" | "failure";
2718
+ content: {
2719
+ doc: {
2720
+ id: string;
2721
+ name: string;
2722
+ media?: {
2723
+ url: string;
2724
+ date?: string | undefined;
2725
+ title?: string | undefined;
2726
+ snippet?: string | undefined;
2727
+ pdf_url?: string | undefined;
2728
+ }[] | undefined;
2729
+ assets?: {
2730
+ url: string;
2731
+ type?: string | undefined;
2732
+ public_url?: string | undefined;
2733
+ source?: string | undefined;
2734
+ }[] | undefined;
2735
+ fields?: {
2736
+ value: string;
2737
+ name: string;
2738
+ source?: string | undefined;
2739
+ tag?: string | undefined;
2740
+ locale?: string | undefined;
2741
+ }[] | undefined;
2742
+ keywords?: string | string[] | undefined;
2743
+ first_name?: string | undefined;
2744
+ last_name?: string | undefined;
2745
+ types?: string[] | undefined;
2746
+ entity_type?: string | undefined;
2747
+ last_updated_utc?: string | undefined;
2748
+ middle_name?: string | undefined;
2749
+ sources?: string[] | undefined;
2750
+ aka?: {
2751
+ name: string;
2752
+ }[] | undefined;
2753
+ associates?: {
2754
+ name: string;
2755
+ association?: string | undefined;
2756
+ }[] | undefined;
2757
+ source_notes?: Record<string, {
2758
+ name?: string | undefined;
2759
+ url?: string | undefined;
2760
+ country_codes?: string[] | undefined;
2761
+ aml_types?: string[] | undefined;
2762
+ listing_started_utc?: string | undefined;
2763
+ listing_ended_utc?: string | undefined;
2764
+ source_id?: string | undefined;
2765
+ }> | undefined;
2766
+ } & {
2767
+ [k: string]: unknown;
2768
+ };
2769
+ match_types: string[];
2770
+ score: number;
2771
+ match_status?: ComplyAdvantageStatus | undefined;
2772
+ is_whitelisted?: boolean | undefined;
2773
+ match_types_details?: any;
2774
+ risk_level?: "unknown" | "low" | "medium" | "high" | undefined;
2775
+ }[];
2776
+ }>;
2777
+ /**
2778
+ * GET /searches/{ref}/entities/comply - Get search entities response (unwrapped array)
2779
+ */
2207
2780
  export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2208
2781
  doc: z.ZodObject<{
2209
2782
  id: z.ZodString;
@@ -2295,7 +2868,7 @@ export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2295
2868
  listing_ended_utc?: string | undefined;
2296
2869
  source_id?: string | undefined;
2297
2870
  }>>>;
2298
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2871
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2299
2872
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2300
2873
  public_url: z.ZodOptional<z.ZodString>;
2301
2874
  source: z.ZodOptional<z.ZodString>;
@@ -2402,7 +2975,7 @@ export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2402
2975
  listing_ended_utc?: string | undefined;
2403
2976
  source_id?: string | undefined;
2404
2977
  }>>>;
2405
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2978
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2406
2979
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2407
2980
  public_url: z.ZodOptional<z.ZodString>;
2408
2981
  source: z.ZodOptional<z.ZodString>;
@@ -2509,7 +3082,7 @@ export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2509
3082
  listing_ended_utc?: string | undefined;
2510
3083
  source_id?: string | undefined;
2511
3084
  }>>>;
2512
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3085
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2513
3086
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2514
3087
  public_url: z.ZodOptional<z.ZodString>;
2515
3088
  source: z.ZodOptional<z.ZodString>;
@@ -2557,7 +3130,7 @@ export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2557
3130
  tag?: string | undefined;
2558
3131
  locale?: string | undefined;
2559
3132
  }[] | undefined;
2560
- keywords?: string[] | undefined;
3133
+ keywords?: string | string[] | undefined;
2561
3134
  first_name?: string | undefined;
2562
3135
  last_name?: string | undefined;
2563
3136
  types?: string[] | undefined;
@@ -2614,7 +3187,7 @@ export declare const GetSearchEntitiesResponseSchema: z.ZodArray<z.ZodObject<{
2614
3187
  tag?: string | undefined;
2615
3188
  locale?: string | undefined;
2616
3189
  }[] | undefined;
2617
- keywords?: string[] | undefined;
3190
+ keywords?: string | string[] | undefined;
2618
3191
  first_name?: string | undefined;
2619
3192
  last_name?: string | undefined;
2620
3193
  types?: string[] | undefined;
@@ -2865,7 +3438,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
2865
3438
  listing_ended_utc?: string | undefined;
2866
3439
  source_id?: string | undefined;
2867
3440
  }>>>;
2868
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3441
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2869
3442
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2870
3443
  public_url: z.ZodOptional<z.ZodString>;
2871
3444
  source: z.ZodOptional<z.ZodString>;
@@ -2972,7 +3545,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
2972
3545
  listing_ended_utc?: string | undefined;
2973
3546
  source_id?: string | undefined;
2974
3547
  }>>>;
2975
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3548
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
2976
3549
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2977
3550
  public_url: z.ZodOptional<z.ZodString>;
2978
3551
  source: z.ZodOptional<z.ZodString>;
@@ -3079,7 +3652,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3079
3652
  listing_ended_utc?: string | undefined;
3080
3653
  source_id?: string | undefined;
3081
3654
  }>>>;
3082
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3655
+ keywords: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
3083
3656
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3084
3657
  public_url: z.ZodOptional<z.ZodString>;
3085
3658
  source: z.ZodOptional<z.ZodString>;
@@ -3127,7 +3700,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3127
3700
  tag?: string | undefined;
3128
3701
  locale?: string | undefined;
3129
3702
  }[] | undefined;
3130
- keywords?: string[] | undefined;
3703
+ keywords?: string | string[] | undefined;
3131
3704
  first_name?: string | undefined;
3132
3705
  last_name?: string | undefined;
3133
3706
  types?: string[] | undefined;
@@ -3184,7 +3757,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3184
3757
  tag?: string | undefined;
3185
3758
  locale?: string | undefined;
3186
3759
  }[] | undefined;
3187
- keywords?: string[] | undefined;
3760
+ keywords?: string | string[] | undefined;
3188
3761
  first_name?: string | undefined;
3189
3762
  last_name?: string | undefined;
3190
3763
  types?: string[] | undefined;
@@ -3256,7 +3829,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3256
3829
  tag?: string | undefined;
3257
3830
  locale?: string | undefined;
3258
3831
  }[] | undefined;
3259
- keywords?: string[] | undefined;
3832
+ keywords?: string | string[] | undefined;
3260
3833
  first_name?: string | undefined;
3261
3834
  last_name?: string | undefined;
3262
3835
  types?: string[] | undefined;
@@ -3371,7 +3944,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3371
3944
  tag?: string | undefined;
3372
3945
  locale?: string | undefined;
3373
3946
  }[] | undefined;
3374
- keywords?: string[] | undefined;
3947
+ keywords?: string | string[] | undefined;
3375
3948
  first_name?: string | undefined;
3376
3949
  last_name?: string | undefined;
3377
3950
  types?: string[] | undefined;
@@ -3488,7 +4061,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3488
4061
  tag?: string | undefined;
3489
4062
  locale?: string | undefined;
3490
4063
  }[] | undefined;
3491
- keywords?: string[] | undefined;
4064
+ keywords?: string | string[] | undefined;
3492
4065
  first_name?: string | undefined;
3493
4066
  last_name?: string | undefined;
3494
4067
  types?: string[] | undefined;
@@ -3605,7 +4178,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3605
4178
  tag?: string | undefined;
3606
4179
  locale?: string | undefined;
3607
4180
  }[] | undefined;
3608
- keywords?: string[] | undefined;
4181
+ keywords?: string | string[] | undefined;
3609
4182
  first_name?: string | undefined;
3610
4183
  last_name?: string | undefined;
3611
4184
  types?: string[] | undefined;
@@ -3727,7 +4300,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3727
4300
  tag?: string | undefined;
3728
4301
  locale?: string | undefined;
3729
4302
  }[] | undefined;
3730
- keywords?: string[] | undefined;
4303
+ keywords?: string | string[] | undefined;
3731
4304
  first_name?: string | undefined;
3732
4305
  last_name?: string | undefined;
3733
4306
  types?: string[] | undefined;
@@ -3849,7 +4422,7 @@ export declare const GetSearchDetailsResponseSchema: z.ZodObject<{
3849
4422
  tag?: string | undefined;
3850
4423
  locale?: string | undefined;
3851
4424
  }[] | undefined;
3852
- keywords?: string[] | undefined;
4425
+ keywords?: string | string[] | undefined;
3853
4426
  first_name?: string | undefined;
3854
4427
  last_name?: string | undefined;
3855
4428
  types?: string[] | undefined;