@fiberai/sdk 0.0.1

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/index.cjs ADDED
@@ -0,0 +1,1606 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ addCompaniesToExclusionList: () => addCompaniesToExclusionList,
24
+ addProspectsToExclusionList: () => addProspectsToExclusionList,
25
+ bulkCompanyLogos: () => bulkCompanyLogos,
26
+ checkGoogleMapsResults: () => checkGoogleMapsResults,
27
+ client: () => client,
28
+ combinedSearch: () => combinedSearch,
29
+ companyCount: () => companyCount,
30
+ companyLiveEnrich: () => companyLiveEnrich,
31
+ companyPostsLiveFetch: () => companyPostsLiveFetch,
32
+ companySearch: () => companySearch,
33
+ companyTypeahead: () => companyTypeahead,
34
+ createClient: () => createClient,
35
+ createCompanyExclusionList: () => createCompanyExclusionList,
36
+ createCompanyExclusionListFromAudience: () => createCompanyExclusionListFromAudience,
37
+ createConfig: () => createConfig,
38
+ createProspectExclusionList: () => createProspectExclusionList,
39
+ createProspectExclusionListFromAudience: () => createProspectExclusionListFromAudience,
40
+ createSavedSearch: () => createSavedSearch,
41
+ deleteCompanyExclusionList: () => deleteCompanyExclusionList,
42
+ deleteProspectExclusionList: () => deleteProspectExclusionList,
43
+ domainLookupPolling: () => domainLookupPolling,
44
+ domainLookupTrigger: () => domainLookupTrigger,
45
+ emailBounceDetection: () => emailBounceDetection,
46
+ getAccelerators: () => getAccelerators,
47
+ getCompanyExclusionLists: () => getCompanyExclusionLists,
48
+ getCurrentCompaniesInSavedSearch: () => getCurrentCompaniesInSavedSearch,
49
+ getCurrentProfilesInSavedSearch: () => getCurrentProfilesInSavedSearch,
50
+ getExcludedCompaniesForExclusionList: () => getExcludedCompaniesForExclusionList,
51
+ getExcludedProspectsForExclusionList: () => getExcludedProspectsForExclusionList,
52
+ getIndustries: () => getIndustries,
53
+ getLanguages: () => getLanguages,
54
+ getLatestSavedSearchRun: () => getLatestSavedSearchRun,
55
+ getNaicsCodes: () => getNaicsCodes,
56
+ getOpenApi: () => getOpenApi,
57
+ getOrgCredits: () => getOrgCredits,
58
+ getProspectExclusionLists: () => getProspectExclusionLists,
59
+ getRegions: () => getRegions,
60
+ getSavedSearchRun: () => getSavedSearchRun,
61
+ getSavedSearchRunCompanies: () => getSavedSearchRunCompanies,
62
+ getSavedSearchRunProfiles: () => getSavedSearchRunProfiles,
63
+ getSavedSearchRunStatus: () => getSavedSearchRunStatus,
64
+ getTags: () => getTags,
65
+ getTimeZones: () => getTimeZones,
66
+ googleMapsSearch: () => googleMapsSearch,
67
+ healthCheck: () => healthCheck,
68
+ investmentSearch: () => investmentSearch,
69
+ investorSearch: () => investorSearch,
70
+ jobPostingSearch: () => jobPostingSearch,
71
+ jobPostingSearchCount: () => jobPostingSearchCount,
72
+ kitchenSinkBulkCompany: () => kitchenSinkBulkCompany,
73
+ kitchenSinkBulkProfile: () => kitchenSinkBulkProfile,
74
+ kitchenSinkCompany: () => kitchenSinkCompany,
75
+ kitchenSinkProfile: () => kitchenSinkProfile,
76
+ listSavedSearch: () => listSavedSearch,
77
+ listSavedSearchRuns: () => listSavedSearchRuns,
78
+ locationTypeahead: () => locationTypeahead,
79
+ manuallySpawnSavedSearchRun: () => manuallySpawnSavedSearchRun,
80
+ peopleSearch: () => peopleSearch,
81
+ peopleSearchCount: () => peopleSearchCount,
82
+ pollBatchContactEnrichment: () => pollBatchContactEnrichment,
83
+ pollCombinedSearch: () => pollCombinedSearch,
84
+ pollContactEnrichmentResult: () => pollContactEnrichmentResult,
85
+ pollGoogleMapsResults: () => pollGoogleMapsResults,
86
+ pollLocalBusinessSearch: () => pollLocalBusinessSearch,
87
+ postCommentsLiveFetch: () => postCommentsLiveFetch,
88
+ postReactionsLiveFetch: () => postReactionsLiveFetch,
89
+ profileCommentsLiveFetch: () => profileCommentsLiveFetch,
90
+ profileLiveEnrich: () => profileLiveEnrich,
91
+ profilePostsLiveFetch: () => profilePostsLiveFetch,
92
+ profileReactionsLiveFetch: () => profileReactionsLiveFetch,
93
+ removeCompanyFromExclusionList: () => removeCompanyFromExclusionList,
94
+ removeProspectFromExclusionList: () => removeProspectFromExclusionList,
95
+ reverseEmailLookup: () => reverseEmailLookup,
96
+ startBatchContactEnrichment: () => startBatchContactEnrichment,
97
+ startLocalBusinessSearch: () => startLocalBusinessSearch,
98
+ syncCombinedSearch: () => syncCombinedSearch,
99
+ syncContactEnrichment: () => syncContactEnrichment,
100
+ textToCombinedSearch: () => textToCombinedSearch,
101
+ textToCompanySearch: () => textToCompanySearch,
102
+ textToCompanySearchParams: () => textToCompanySearchParams,
103
+ textToProfileSearch: () => textToProfileSearch,
104
+ textToProfileSearchParams: () => textToProfileSearchParams,
105
+ triggerContactEnrichment: () => triggerContactEnrichment,
106
+ updateSavedSearch: () => updateSavedSearch
107
+ });
108
+ module.exports = __toCommonJS(index_exports);
109
+
110
+ // src/generated/core/bodySerializer.gen.ts
111
+ var jsonBodySerializer = {
112
+ bodySerializer: (body) => JSON.stringify(
113
+ body,
114
+ (_key, value) => typeof value === "bigint" ? value.toString() : value
115
+ )
116
+ };
117
+
118
+ // src/generated/core/params.gen.ts
119
+ var extraPrefixesMap = {
120
+ $body_: "body",
121
+ $headers_: "headers",
122
+ $path_: "path",
123
+ $query_: "query"
124
+ };
125
+ var extraPrefixes = Object.entries(extraPrefixesMap);
126
+
127
+ // src/generated/core/serverSentEvents.gen.ts
128
+ var createSseClient = ({
129
+ onRequest,
130
+ onSseError,
131
+ onSseEvent,
132
+ responseTransformer,
133
+ responseValidator,
134
+ sseDefaultRetryDelay,
135
+ sseMaxRetryAttempts,
136
+ sseMaxRetryDelay,
137
+ sseSleepFn,
138
+ url,
139
+ ...options
140
+ }) => {
141
+ let lastEventId;
142
+ const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
143
+ const createStream = async function* () {
144
+ let retryDelay = sseDefaultRetryDelay ?? 3e3;
145
+ let attempt = 0;
146
+ const signal = options.signal ?? new AbortController().signal;
147
+ while (true) {
148
+ if (signal.aborted) break;
149
+ attempt++;
150
+ const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
151
+ if (lastEventId !== void 0) {
152
+ headers.set("Last-Event-ID", lastEventId);
153
+ }
154
+ try {
155
+ const requestInit = {
156
+ redirect: "follow",
157
+ ...options,
158
+ body: options.serializedBody,
159
+ headers,
160
+ signal
161
+ };
162
+ let request = new Request(url, requestInit);
163
+ if (onRequest) {
164
+ request = await onRequest(url, requestInit);
165
+ }
166
+ const _fetch = options.fetch ?? globalThis.fetch;
167
+ const response = await _fetch(request);
168
+ if (!response.ok)
169
+ throw new Error(
170
+ `SSE failed: ${response.status} ${response.statusText}`
171
+ );
172
+ if (!response.body) throw new Error("No body in SSE response");
173
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
174
+ let buffer = "";
175
+ const abortHandler = () => {
176
+ try {
177
+ reader.cancel();
178
+ } catch {
179
+ }
180
+ };
181
+ signal.addEventListener("abort", abortHandler);
182
+ try {
183
+ while (true) {
184
+ const { done, value } = await reader.read();
185
+ if (done) break;
186
+ buffer += value;
187
+ buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
188
+ const chunks = buffer.split("\n\n");
189
+ buffer = chunks.pop() ?? "";
190
+ for (const chunk of chunks) {
191
+ const lines = chunk.split("\n");
192
+ const dataLines = [];
193
+ let eventName;
194
+ for (const line of lines) {
195
+ if (line.startsWith("data:")) {
196
+ dataLines.push(line.replace(/^data:\s*/, ""));
197
+ } else if (line.startsWith("event:")) {
198
+ eventName = line.replace(/^event:\s*/, "");
199
+ } else if (line.startsWith("id:")) {
200
+ lastEventId = line.replace(/^id:\s*/, "");
201
+ } else if (line.startsWith("retry:")) {
202
+ const parsed = Number.parseInt(
203
+ line.replace(/^retry:\s*/, ""),
204
+ 10
205
+ );
206
+ if (!Number.isNaN(parsed)) {
207
+ retryDelay = parsed;
208
+ }
209
+ }
210
+ }
211
+ let data;
212
+ let parsedJson = false;
213
+ if (dataLines.length) {
214
+ const rawData = dataLines.join("\n");
215
+ try {
216
+ data = JSON.parse(rawData);
217
+ parsedJson = true;
218
+ } catch {
219
+ data = rawData;
220
+ }
221
+ }
222
+ if (parsedJson) {
223
+ if (responseValidator) {
224
+ await responseValidator(data);
225
+ }
226
+ if (responseTransformer) {
227
+ data = await responseTransformer(data);
228
+ }
229
+ }
230
+ onSseEvent?.({
231
+ data,
232
+ event: eventName,
233
+ id: lastEventId,
234
+ retry: retryDelay
235
+ });
236
+ if (dataLines.length) {
237
+ yield data;
238
+ }
239
+ }
240
+ }
241
+ } finally {
242
+ signal.removeEventListener("abort", abortHandler);
243
+ reader.releaseLock();
244
+ }
245
+ break;
246
+ } catch (error) {
247
+ onSseError?.(error);
248
+ if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
249
+ break;
250
+ }
251
+ const backoff = Math.min(
252
+ retryDelay * 2 ** (attempt - 1),
253
+ sseMaxRetryDelay ?? 3e4
254
+ );
255
+ await sleep(backoff);
256
+ }
257
+ }
258
+ };
259
+ const stream = createStream();
260
+ return { stream };
261
+ };
262
+
263
+ // src/generated/core/pathSerializer.gen.ts
264
+ var separatorArrayExplode = (style) => {
265
+ switch (style) {
266
+ case "label":
267
+ return ".";
268
+ case "matrix":
269
+ return ";";
270
+ case "simple":
271
+ return ",";
272
+ default:
273
+ return "&";
274
+ }
275
+ };
276
+ var separatorArrayNoExplode = (style) => {
277
+ switch (style) {
278
+ case "form":
279
+ return ",";
280
+ case "pipeDelimited":
281
+ return "|";
282
+ case "spaceDelimited":
283
+ return "%20";
284
+ default:
285
+ return ",";
286
+ }
287
+ };
288
+ var separatorObjectExplode = (style) => {
289
+ switch (style) {
290
+ case "label":
291
+ return ".";
292
+ case "matrix":
293
+ return ";";
294
+ case "simple":
295
+ return ",";
296
+ default:
297
+ return "&";
298
+ }
299
+ };
300
+ var serializeArrayParam = ({
301
+ allowReserved,
302
+ explode,
303
+ name,
304
+ style,
305
+ value
306
+ }) => {
307
+ if (!explode) {
308
+ const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
309
+ switch (style) {
310
+ case "label":
311
+ return `.${joinedValues2}`;
312
+ case "matrix":
313
+ return `;${name}=${joinedValues2}`;
314
+ case "simple":
315
+ return joinedValues2;
316
+ default:
317
+ return `${name}=${joinedValues2}`;
318
+ }
319
+ }
320
+ const separator = separatorArrayExplode(style);
321
+ const joinedValues = value.map((v) => {
322
+ if (style === "label" || style === "simple") {
323
+ return allowReserved ? v : encodeURIComponent(v);
324
+ }
325
+ return serializePrimitiveParam({
326
+ allowReserved,
327
+ name,
328
+ value: v
329
+ });
330
+ }).join(separator);
331
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
332
+ };
333
+ var serializePrimitiveParam = ({
334
+ allowReserved,
335
+ name,
336
+ value
337
+ }) => {
338
+ if (value === void 0 || value === null) {
339
+ return "";
340
+ }
341
+ if (typeof value === "object") {
342
+ throw new Error(
343
+ "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
344
+ );
345
+ }
346
+ return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
347
+ };
348
+ var serializeObjectParam = ({
349
+ allowReserved,
350
+ explode,
351
+ name,
352
+ style,
353
+ value,
354
+ valueOnly
355
+ }) => {
356
+ if (value instanceof Date) {
357
+ return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
358
+ }
359
+ if (style !== "deepObject" && !explode) {
360
+ let values = [];
361
+ Object.entries(value).forEach(([key, v]) => {
362
+ values = [
363
+ ...values,
364
+ key,
365
+ allowReserved ? v : encodeURIComponent(v)
366
+ ];
367
+ });
368
+ const joinedValues2 = values.join(",");
369
+ switch (style) {
370
+ case "form":
371
+ return `${name}=${joinedValues2}`;
372
+ case "label":
373
+ return `.${joinedValues2}`;
374
+ case "matrix":
375
+ return `;${name}=${joinedValues2}`;
376
+ default:
377
+ return joinedValues2;
378
+ }
379
+ }
380
+ const separator = separatorObjectExplode(style);
381
+ const joinedValues = Object.entries(value).map(
382
+ ([key, v]) => serializePrimitiveParam({
383
+ allowReserved,
384
+ name: style === "deepObject" ? `${name}[${key}]` : key,
385
+ value: v
386
+ })
387
+ ).join(separator);
388
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
389
+ };
390
+
391
+ // src/generated/core/utils.gen.ts
392
+ var PATH_PARAM_RE = /\{[^{}]+\}/g;
393
+ var defaultPathSerializer = ({ path, url: _url }) => {
394
+ let url = _url;
395
+ const matches = _url.match(PATH_PARAM_RE);
396
+ if (matches) {
397
+ for (const match of matches) {
398
+ let explode = false;
399
+ let name = match.substring(1, match.length - 1);
400
+ let style = "simple";
401
+ if (name.endsWith("*")) {
402
+ explode = true;
403
+ name = name.substring(0, name.length - 1);
404
+ }
405
+ if (name.startsWith(".")) {
406
+ name = name.substring(1);
407
+ style = "label";
408
+ } else if (name.startsWith(";")) {
409
+ name = name.substring(1);
410
+ style = "matrix";
411
+ }
412
+ const value = path[name];
413
+ if (value === void 0 || value === null) {
414
+ continue;
415
+ }
416
+ if (Array.isArray(value)) {
417
+ url = url.replace(
418
+ match,
419
+ serializeArrayParam({ explode, name, style, value })
420
+ );
421
+ continue;
422
+ }
423
+ if (typeof value === "object") {
424
+ url = url.replace(
425
+ match,
426
+ serializeObjectParam({
427
+ explode,
428
+ name,
429
+ style,
430
+ value,
431
+ valueOnly: true
432
+ })
433
+ );
434
+ continue;
435
+ }
436
+ if (style === "matrix") {
437
+ url = url.replace(
438
+ match,
439
+ `;${serializePrimitiveParam({
440
+ name,
441
+ value
442
+ })}`
443
+ );
444
+ continue;
445
+ }
446
+ const replaceValue = encodeURIComponent(
447
+ style === "label" ? `.${value}` : value
448
+ );
449
+ url = url.replace(match, replaceValue);
450
+ }
451
+ }
452
+ return url;
453
+ };
454
+ var getUrl = ({
455
+ baseUrl,
456
+ path,
457
+ query,
458
+ querySerializer,
459
+ url: _url
460
+ }) => {
461
+ const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
462
+ let url = (baseUrl ?? "") + pathUrl;
463
+ if (path) {
464
+ url = defaultPathSerializer({ path, url });
465
+ }
466
+ let search = query ? querySerializer(query) : "";
467
+ if (search.startsWith("?")) {
468
+ search = search.substring(1);
469
+ }
470
+ if (search) {
471
+ url += `?${search}`;
472
+ }
473
+ return url;
474
+ };
475
+ function getValidRequestBody(options) {
476
+ const hasBody = options.body !== void 0;
477
+ const isSerializedBody = hasBody && options.bodySerializer;
478
+ if (isSerializedBody) {
479
+ if ("serializedBody" in options) {
480
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
481
+ return hasSerializedBody ? options.serializedBody : null;
482
+ }
483
+ return options.body !== "" ? options.body : null;
484
+ }
485
+ if (hasBody) {
486
+ return options.body;
487
+ }
488
+ return void 0;
489
+ }
490
+
491
+ // src/generated/core/auth.gen.ts
492
+ var getAuthToken = async (auth, callback) => {
493
+ const token = typeof callback === "function" ? await callback(auth) : callback;
494
+ if (!token) {
495
+ return;
496
+ }
497
+ if (auth.scheme === "bearer") {
498
+ return `Bearer ${token}`;
499
+ }
500
+ if (auth.scheme === "basic") {
501
+ return `Basic ${btoa(token)}`;
502
+ }
503
+ return token;
504
+ };
505
+
506
+ // src/generated/client/utils.gen.ts
507
+ var createQuerySerializer = ({
508
+ parameters = {},
509
+ ...args
510
+ } = {}) => {
511
+ const querySerializer = (queryParams) => {
512
+ const search = [];
513
+ if (queryParams && typeof queryParams === "object") {
514
+ for (const name in queryParams) {
515
+ const value = queryParams[name];
516
+ if (value === void 0 || value === null) {
517
+ continue;
518
+ }
519
+ const options = parameters[name] || args;
520
+ if (Array.isArray(value)) {
521
+ const serializedArray = serializeArrayParam({
522
+ allowReserved: options.allowReserved,
523
+ explode: true,
524
+ name,
525
+ style: "form",
526
+ value,
527
+ ...options.array
528
+ });
529
+ if (serializedArray) search.push(serializedArray);
530
+ } else if (typeof value === "object") {
531
+ const serializedObject = serializeObjectParam({
532
+ allowReserved: options.allowReserved,
533
+ explode: true,
534
+ name,
535
+ style: "deepObject",
536
+ value,
537
+ ...options.object
538
+ });
539
+ if (serializedObject) search.push(serializedObject);
540
+ } else {
541
+ const serializedPrimitive = serializePrimitiveParam({
542
+ allowReserved: options.allowReserved,
543
+ name,
544
+ value
545
+ });
546
+ if (serializedPrimitive) search.push(serializedPrimitive);
547
+ }
548
+ }
549
+ }
550
+ return search.join("&");
551
+ };
552
+ return querySerializer;
553
+ };
554
+ var getParseAs = (contentType) => {
555
+ if (!contentType) {
556
+ return "stream";
557
+ }
558
+ const cleanContent = contentType.split(";")[0]?.trim();
559
+ if (!cleanContent) {
560
+ return;
561
+ }
562
+ if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
563
+ return "json";
564
+ }
565
+ if (cleanContent === "multipart/form-data") {
566
+ return "formData";
567
+ }
568
+ if (["application/", "audio/", "image/", "video/"].some(
569
+ (type) => cleanContent.startsWith(type)
570
+ )) {
571
+ return "blob";
572
+ }
573
+ if (cleanContent.startsWith("text/")) {
574
+ return "text";
575
+ }
576
+ return;
577
+ };
578
+ var checkForExistence = (options, name) => {
579
+ if (!name) {
580
+ return false;
581
+ }
582
+ if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
583
+ return true;
584
+ }
585
+ return false;
586
+ };
587
+ var setAuthParams = async ({
588
+ security,
589
+ ...options
590
+ }) => {
591
+ for (const auth of security) {
592
+ if (checkForExistence(options, auth.name)) {
593
+ continue;
594
+ }
595
+ const token = await getAuthToken(auth, options.auth);
596
+ if (!token) {
597
+ continue;
598
+ }
599
+ const name = auth.name ?? "Authorization";
600
+ switch (auth.in) {
601
+ case "query":
602
+ if (!options.query) {
603
+ options.query = {};
604
+ }
605
+ options.query[name] = token;
606
+ break;
607
+ case "cookie":
608
+ options.headers.append("Cookie", `${name}=${token}`);
609
+ break;
610
+ case "header":
611
+ default:
612
+ options.headers.set(name, token);
613
+ break;
614
+ }
615
+ }
616
+ };
617
+ var buildUrl = (options) => getUrl({
618
+ baseUrl: options.baseUrl,
619
+ path: options.path,
620
+ query: options.query,
621
+ querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
622
+ url: options.url
623
+ });
624
+ var mergeConfigs = (a, b) => {
625
+ const config = { ...a, ...b };
626
+ if (config.baseUrl?.endsWith("/")) {
627
+ config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
628
+ }
629
+ config.headers = mergeHeaders(a.headers, b.headers);
630
+ return config;
631
+ };
632
+ var headersEntries = (headers) => {
633
+ const entries = [];
634
+ headers.forEach((value, key) => {
635
+ entries.push([key, value]);
636
+ });
637
+ return entries;
638
+ };
639
+ var mergeHeaders = (...headers) => {
640
+ const mergedHeaders = new Headers();
641
+ for (const header of headers) {
642
+ if (!header) {
643
+ continue;
644
+ }
645
+ const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
646
+ for (const [key, value] of iterator) {
647
+ if (value === null) {
648
+ mergedHeaders.delete(key);
649
+ } else if (Array.isArray(value)) {
650
+ for (const v of value) {
651
+ mergedHeaders.append(key, v);
652
+ }
653
+ } else if (value !== void 0) {
654
+ mergedHeaders.set(
655
+ key,
656
+ typeof value === "object" ? JSON.stringify(value) : value
657
+ );
658
+ }
659
+ }
660
+ }
661
+ return mergedHeaders;
662
+ };
663
+ var Interceptors = class {
664
+ fns = [];
665
+ clear() {
666
+ this.fns = [];
667
+ }
668
+ eject(id) {
669
+ const index = this.getInterceptorIndex(id);
670
+ if (this.fns[index]) {
671
+ this.fns[index] = null;
672
+ }
673
+ }
674
+ exists(id) {
675
+ const index = this.getInterceptorIndex(id);
676
+ return Boolean(this.fns[index]);
677
+ }
678
+ getInterceptorIndex(id) {
679
+ if (typeof id === "number") {
680
+ return this.fns[id] ? id : -1;
681
+ }
682
+ return this.fns.indexOf(id);
683
+ }
684
+ update(id, fn) {
685
+ const index = this.getInterceptorIndex(id);
686
+ if (this.fns[index]) {
687
+ this.fns[index] = fn;
688
+ return id;
689
+ }
690
+ return false;
691
+ }
692
+ use(fn) {
693
+ this.fns.push(fn);
694
+ return this.fns.length - 1;
695
+ }
696
+ };
697
+ var createInterceptors = () => ({
698
+ error: new Interceptors(),
699
+ request: new Interceptors(),
700
+ response: new Interceptors()
701
+ });
702
+ var defaultQuerySerializer = createQuerySerializer({
703
+ allowReserved: false,
704
+ array: {
705
+ explode: true,
706
+ style: "form"
707
+ },
708
+ object: {
709
+ explode: true,
710
+ style: "deepObject"
711
+ }
712
+ });
713
+ var defaultHeaders = {
714
+ "Content-Type": "application/json"
715
+ };
716
+ var createConfig = (override = {}) => ({
717
+ ...jsonBodySerializer,
718
+ headers: defaultHeaders,
719
+ parseAs: "auto",
720
+ querySerializer: defaultQuerySerializer,
721
+ ...override
722
+ });
723
+
724
+ // src/generated/client/client.gen.ts
725
+ var createClient = (config = {}) => {
726
+ let _config = mergeConfigs(createConfig(), config);
727
+ const getConfig = () => ({ ..._config });
728
+ const setConfig = (config2) => {
729
+ _config = mergeConfigs(_config, config2);
730
+ return getConfig();
731
+ };
732
+ const interceptors = createInterceptors();
733
+ const beforeRequest = async (options) => {
734
+ const opts = {
735
+ ..._config,
736
+ ...options,
737
+ fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
738
+ headers: mergeHeaders(_config.headers, options.headers),
739
+ serializedBody: void 0
740
+ };
741
+ if (opts.security) {
742
+ await setAuthParams({
743
+ ...opts,
744
+ security: opts.security
745
+ });
746
+ }
747
+ if (opts.requestValidator) {
748
+ await opts.requestValidator(opts);
749
+ }
750
+ if (opts.body !== void 0 && opts.bodySerializer) {
751
+ opts.serializedBody = opts.bodySerializer(opts.body);
752
+ }
753
+ if (opts.body === void 0 || opts.serializedBody === "") {
754
+ opts.headers.delete("Content-Type");
755
+ }
756
+ const url = buildUrl(opts);
757
+ return { opts, url };
758
+ };
759
+ const request = async (options) => {
760
+ const { opts, url } = await beforeRequest(options);
761
+ const requestInit = {
762
+ redirect: "follow",
763
+ ...opts,
764
+ body: getValidRequestBody(opts)
765
+ };
766
+ let request2 = new Request(url, requestInit);
767
+ for (const fn of interceptors.request.fns) {
768
+ if (fn) {
769
+ request2 = await fn(request2, opts);
770
+ }
771
+ }
772
+ const _fetch = opts.fetch;
773
+ let response;
774
+ try {
775
+ response = await _fetch(request2);
776
+ } catch (error2) {
777
+ let finalError2 = error2;
778
+ for (const fn of interceptors.error.fns) {
779
+ if (fn) {
780
+ finalError2 = await fn(
781
+ error2,
782
+ void 0,
783
+ request2,
784
+ opts
785
+ );
786
+ }
787
+ }
788
+ finalError2 = finalError2 || {};
789
+ if (opts.throwOnError) {
790
+ throw finalError2;
791
+ }
792
+ return opts.responseStyle === "data" ? void 0 : {
793
+ error: finalError2,
794
+ request: request2,
795
+ response: void 0
796
+ };
797
+ }
798
+ for (const fn of interceptors.response.fns) {
799
+ if (fn) {
800
+ response = await fn(response, request2, opts);
801
+ }
802
+ }
803
+ const result = {
804
+ request: request2,
805
+ response
806
+ };
807
+ if (response.ok) {
808
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
809
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
810
+ let emptyData;
811
+ switch (parseAs) {
812
+ case "arrayBuffer":
813
+ case "blob":
814
+ case "text":
815
+ emptyData = await response[parseAs]();
816
+ break;
817
+ case "formData":
818
+ emptyData = new FormData();
819
+ break;
820
+ case "stream":
821
+ emptyData = response.body;
822
+ break;
823
+ case "json":
824
+ default:
825
+ emptyData = {};
826
+ break;
827
+ }
828
+ return opts.responseStyle === "data" ? emptyData : {
829
+ data: emptyData,
830
+ ...result
831
+ };
832
+ }
833
+ let data;
834
+ switch (parseAs) {
835
+ case "arrayBuffer":
836
+ case "blob":
837
+ case "formData":
838
+ case "text":
839
+ data = await response[parseAs]();
840
+ break;
841
+ case "json": {
842
+ const text = await response.text();
843
+ data = text ? JSON.parse(text) : {};
844
+ break;
845
+ }
846
+ case "stream":
847
+ return opts.responseStyle === "data" ? response.body : {
848
+ data: response.body,
849
+ ...result
850
+ };
851
+ }
852
+ if (parseAs === "json") {
853
+ if (opts.responseValidator) {
854
+ await opts.responseValidator(data);
855
+ }
856
+ if (opts.responseTransformer) {
857
+ data = await opts.responseTransformer(data);
858
+ }
859
+ }
860
+ return opts.responseStyle === "data" ? data : {
861
+ data,
862
+ ...result
863
+ };
864
+ }
865
+ const textError = await response.text();
866
+ let jsonError;
867
+ try {
868
+ jsonError = JSON.parse(textError);
869
+ } catch {
870
+ }
871
+ const error = jsonError ?? textError;
872
+ let finalError = error;
873
+ for (const fn of interceptors.error.fns) {
874
+ if (fn) {
875
+ finalError = await fn(error, response, request2, opts);
876
+ }
877
+ }
878
+ finalError = finalError || {};
879
+ if (opts.throwOnError) {
880
+ throw finalError;
881
+ }
882
+ return opts.responseStyle === "data" ? void 0 : {
883
+ error: finalError,
884
+ ...result
885
+ };
886
+ };
887
+ const makeMethodFn = (method) => (options) => request({ ...options, method });
888
+ const makeSseFn = (method) => async (options) => {
889
+ const { opts, url } = await beforeRequest(options);
890
+ return createSseClient({
891
+ ...opts,
892
+ body: opts.body,
893
+ headers: opts.headers,
894
+ method,
895
+ onRequest: async (url2, init) => {
896
+ let request2 = new Request(url2, init);
897
+ for (const fn of interceptors.request.fns) {
898
+ if (fn) {
899
+ request2 = await fn(request2, opts);
900
+ }
901
+ }
902
+ return request2;
903
+ },
904
+ serializedBody: getValidRequestBody(opts),
905
+ url
906
+ });
907
+ };
908
+ return {
909
+ buildUrl,
910
+ connect: makeMethodFn("CONNECT"),
911
+ delete: makeMethodFn("DELETE"),
912
+ get: makeMethodFn("GET"),
913
+ getConfig,
914
+ head: makeMethodFn("HEAD"),
915
+ interceptors,
916
+ options: makeMethodFn("OPTIONS"),
917
+ patch: makeMethodFn("PATCH"),
918
+ post: makeMethodFn("POST"),
919
+ put: makeMethodFn("PUT"),
920
+ request,
921
+ setConfig,
922
+ sse: {
923
+ connect: makeSseFn("CONNECT"),
924
+ delete: makeSseFn("DELETE"),
925
+ get: makeSseFn("GET"),
926
+ head: makeSseFn("HEAD"),
927
+ options: makeSseFn("OPTIONS"),
928
+ patch: makeSseFn("PATCH"),
929
+ post: makeSseFn("POST"),
930
+ put: makeSseFn("PUT"),
931
+ trace: makeSseFn("TRACE")
932
+ },
933
+ trace: makeMethodFn("TRACE")
934
+ };
935
+ };
936
+
937
+ // src/generated/client.gen.ts
938
+ var client = createClient(createConfig({ baseUrl: "https://alpha.api.fiber.ai" }));
939
+
940
+ // src/generated/sdk.gen.ts
941
+ var getOpenApi = (options) => (options?.client ?? client).get({ url: "/openapi.json", ...options });
942
+ var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
943
+ var getOrgCredits = (options) => (options.client ?? client).get({ url: "/v1/get-org-credits", ...options });
944
+ var pollCombinedSearch = (options) => (options.client ?? client).post({
945
+ url: "/v1/combined-search/poll",
946
+ ...options,
947
+ headers: {
948
+ "Content-Type": "application/json",
949
+ ...options.headers
950
+ }
951
+ });
952
+ var pollContactEnrichmentResult = (options) => (options.client ?? client).post({
953
+ url: "/v1/contact-details/poll",
954
+ ...options,
955
+ headers: {
956
+ "Content-Type": "application/json",
957
+ ...options.headers
958
+ }
959
+ });
960
+ var pollBatchContactEnrichment = (options) => (options.client ?? client).post({
961
+ url: "/v1/contact-enrich/batch/poll",
962
+ ...options,
963
+ headers: {
964
+ "Content-Type": "application/json",
965
+ ...options.headers
966
+ }
967
+ });
968
+ var pollGoogleMapsResults = (options) => (options.client ?? client).post({
969
+ url: "/v1/google-maps-search/poll",
970
+ ...options,
971
+ headers: {
972
+ "Content-Type": "application/json",
973
+ ...options.headers
974
+ }
975
+ });
976
+ var pollLocalBusinessSearch = (options) => (options.client ?? client).post({
977
+ url: "/v1/local-business-search/poll",
978
+ ...options,
979
+ headers: {
980
+ "Content-Type": "application/json",
981
+ ...options.headers
982
+ }
983
+ });
984
+ var checkGoogleMapsResults = (options) => (options.client ?? client).post({
985
+ url: "/v1/google-maps-search/check",
986
+ ...options,
987
+ headers: {
988
+ "Content-Type": "application/json",
989
+ ...options.headers
990
+ }
991
+ });
992
+ var domainLookupPolling = (options) => (options.client ?? client).post({
993
+ url: "/v1/domain-lookup/polling",
994
+ ...options,
995
+ headers: {
996
+ "Content-Type": "application/json",
997
+ ...options.headers
998
+ }
999
+ });
1000
+ var getCompanyExclusionLists = (options) => (options.client ?? client).post({
1001
+ url: "/v1/exclusions/companies/get-lists",
1002
+ ...options,
1003
+ headers: {
1004
+ "Content-Type": "application/json",
1005
+ ...options.headers
1006
+ }
1007
+ });
1008
+ var createCompanyExclusionList = (options) => (options.client ?? client).post({
1009
+ url: "/v1/exclusions/companies/create-list",
1010
+ ...options,
1011
+ headers: {
1012
+ "Content-Type": "application/json",
1013
+ ...options.headers
1014
+ }
1015
+ });
1016
+ var deleteCompanyExclusionList = (options) => (options.client ?? client).post({
1017
+ url: "/v1/exclusions/companies/delete-list",
1018
+ ...options,
1019
+ headers: {
1020
+ "Content-Type": "application/json",
1021
+ ...options.headers
1022
+ }
1023
+ });
1024
+ var addCompaniesToExclusionList = (options) => (options.client ?? client).post({
1025
+ url: "/v1/exclusions/companies/add-to-list",
1026
+ ...options,
1027
+ headers: {
1028
+ "Content-Type": "application/json",
1029
+ ...options.headers
1030
+ }
1031
+ });
1032
+ var removeCompanyFromExclusionList = (options) => (options.client ?? client).post({
1033
+ url: "/v1/exclusions/companies/remove-from-list",
1034
+ ...options,
1035
+ headers: {
1036
+ "Content-Type": "application/json",
1037
+ ...options.headers
1038
+ }
1039
+ });
1040
+ var getExcludedCompaniesForExclusionList = (options) => (options.client ?? client).post({
1041
+ url: "/v1/exclusions/companies/read-from-list",
1042
+ ...options,
1043
+ headers: {
1044
+ "Content-Type": "application/json",
1045
+ ...options.headers
1046
+ }
1047
+ });
1048
+ var createCompanyExclusionListFromAudience = (options) => (options.client ?? client).post({
1049
+ url: "/v1/exclusions/companies/audience/create-list",
1050
+ ...options,
1051
+ headers: {
1052
+ "Content-Type": "application/json",
1053
+ ...options.headers
1054
+ }
1055
+ });
1056
+ var getProspectExclusionLists = (options) => (options.client ?? client).post({
1057
+ url: "/v1/exclusions/prospects/get-lists",
1058
+ ...options,
1059
+ headers: {
1060
+ "Content-Type": "application/json",
1061
+ ...options.headers
1062
+ }
1063
+ });
1064
+ var createProspectExclusionList = (options) => (options.client ?? client).post({
1065
+ url: "/v1/exclusions/prospects/create-list",
1066
+ ...options,
1067
+ headers: {
1068
+ "Content-Type": "application/json",
1069
+ ...options.headers
1070
+ }
1071
+ });
1072
+ var deleteProspectExclusionList = (options) => (options.client ?? client).post({
1073
+ url: "/v1/exclusions/prospects/delete-list",
1074
+ ...options,
1075
+ headers: {
1076
+ "Content-Type": "application/json",
1077
+ ...options.headers
1078
+ }
1079
+ });
1080
+ var addProspectsToExclusionList = (options) => (options.client ?? client).post({
1081
+ url: "/v1/exclusions/prospects/add-to-list",
1082
+ ...options,
1083
+ headers: {
1084
+ "Content-Type": "application/json",
1085
+ ...options.headers
1086
+ }
1087
+ });
1088
+ var removeProspectFromExclusionList = (options) => (options.client ?? client).post({
1089
+ url: "/v1/exclusions/prospects/remove-from-list",
1090
+ ...options,
1091
+ headers: {
1092
+ "Content-Type": "application/json",
1093
+ ...options.headers
1094
+ }
1095
+ });
1096
+ var getExcludedProspectsForExclusionList = (options) => (options.client ?? client).post({
1097
+ url: "/v1/exclusions/prospects/read-from-list",
1098
+ ...options,
1099
+ headers: {
1100
+ "Content-Type": "application/json",
1101
+ ...options.headers
1102
+ }
1103
+ });
1104
+ var createProspectExclusionListFromAudience = (options) => (options.client ?? client).post({
1105
+ url: "/v1/exclusions/prospects/audience/create-list",
1106
+ ...options,
1107
+ headers: {
1108
+ "Content-Type": "application/json",
1109
+ ...options.headers
1110
+ }
1111
+ });
1112
+ var getRegions = (options) => (options.client ?? client).get({ url: "/v1/enums/regions", ...options });
1113
+ var getLanguages = (options) => (options.client ?? client).get({ url: "/v1/enums/languages", ...options });
1114
+ var getTimeZones = (options) => (options.client ?? client).get({ url: "/v1/enums/time-zones", ...options });
1115
+ var getIndustries = (options) => (options.client ?? client).get({ url: "/v1/enums/industries", ...options });
1116
+ var getTags = (options) => (options.client ?? client).get({ url: "/v1/enums/tags", ...options });
1117
+ var getNaicsCodes = (options) => (options.client ?? client).get({ url: "/v1/enums/naics-codes", ...options });
1118
+ var getAccelerators = (options) => (options.client ?? client).get({ url: "/v1/enums/accelerators", ...options });
1119
+ var companySearch = (options) => (options.client ?? client).post({
1120
+ url: "/v1/company-search",
1121
+ ...options,
1122
+ headers: {
1123
+ "Content-Type": "application/json",
1124
+ ...options.headers
1125
+ }
1126
+ });
1127
+ var companyCount = (options) => (options.client ?? client).post({
1128
+ url: "/v1/company-count",
1129
+ ...options,
1130
+ headers: {
1131
+ "Content-Type": "application/json",
1132
+ ...options.headers
1133
+ }
1134
+ });
1135
+ var investorSearch = (options) => (options.client ?? client).post({
1136
+ url: "/v1/investor-search",
1137
+ ...options,
1138
+ headers: {
1139
+ "Content-Type": "application/json",
1140
+ ...options.headers
1141
+ }
1142
+ });
1143
+ var investmentSearch = (options) => (options.client ?? client).post({
1144
+ url: "/v1/investment-search",
1145
+ ...options,
1146
+ headers: {
1147
+ "Content-Type": "application/json",
1148
+ ...options.headers
1149
+ }
1150
+ });
1151
+ var jobPostingSearch = (options) => (options.client ?? client).post({
1152
+ url: "/v1/job-search",
1153
+ ...options,
1154
+ headers: {
1155
+ "Content-Type": "application/json",
1156
+ ...options.headers
1157
+ }
1158
+ });
1159
+ var jobPostingSearchCount = (options) => (options.client ?? client).post({
1160
+ url: "/v1/job-search/count",
1161
+ ...options,
1162
+ headers: {
1163
+ "Content-Type": "application/json",
1164
+ ...options.headers
1165
+ }
1166
+ });
1167
+ var peopleSearch = (options) => (options.client ?? client).post({
1168
+ url: "/v1/people-search",
1169
+ ...options,
1170
+ headers: {
1171
+ "Content-Type": "application/json",
1172
+ ...options.headers
1173
+ }
1174
+ });
1175
+ var peopleSearchCount = (options) => (options.client ?? client).post({
1176
+ url: "/v1/people-search/count",
1177
+ ...options,
1178
+ headers: {
1179
+ "Content-Type": "application/json",
1180
+ ...options.headers
1181
+ }
1182
+ });
1183
+ var combinedSearch = (options) => (options.client ?? client).post({
1184
+ url: "/v1/combined-search/start",
1185
+ ...options,
1186
+ headers: {
1187
+ "Content-Type": "application/json",
1188
+ ...options.headers
1189
+ }
1190
+ });
1191
+ var syncCombinedSearch = (options) => (options.client ?? client).post({
1192
+ url: "/v1/combined-search/sync",
1193
+ ...options,
1194
+ headers: {
1195
+ "Content-Type": "application/json",
1196
+ ...options.headers
1197
+ }
1198
+ });
1199
+ var bulkCompanyLogos = (options) => (options.client ?? client).post({
1200
+ url: "/v1/company-logos/bulk",
1201
+ ...options,
1202
+ headers: {
1203
+ "Content-Type": "application/json",
1204
+ ...options.headers
1205
+ }
1206
+ });
1207
+ var triggerContactEnrichment = (options) => (options.client ?? client).post({
1208
+ url: "/v1/contact-details/start",
1209
+ ...options,
1210
+ headers: {
1211
+ "Content-Type": "application/json",
1212
+ ...options.headers
1213
+ }
1214
+ });
1215
+ var syncContactEnrichment = (options) => (options.client ?? client).post({
1216
+ url: "/v1/contact-details/sync",
1217
+ ...options,
1218
+ headers: {
1219
+ "Content-Type": "application/json",
1220
+ ...options.headers
1221
+ }
1222
+ });
1223
+ var startBatchContactEnrichment = (options) => (options.client ?? client).post({
1224
+ url: "/v1/contact-enrich/batch/start",
1225
+ ...options,
1226
+ headers: {
1227
+ "Content-Type": "application/json",
1228
+ ...options.headers
1229
+ }
1230
+ });
1231
+ var profileLiveEnrich = (options) => (options.client ?? client).post({
1232
+ url: "/v1/linkedin-live-fetch/profile/single",
1233
+ ...options,
1234
+ headers: {
1235
+ "Content-Type": "application/json",
1236
+ ...options.headers
1237
+ }
1238
+ });
1239
+ var companyLiveEnrich = (options) => (options.client ?? client).post({
1240
+ url: "/v1/linkedin-live-fetch/company/single",
1241
+ ...options,
1242
+ headers: {
1243
+ "Content-Type": "application/json",
1244
+ ...options.headers
1245
+ }
1246
+ });
1247
+ var profilePostsLiveFetch = (options) => (options.client ?? client).post({
1248
+ url: "/v1/linkedin-live-fetch/profile-posts",
1249
+ ...options,
1250
+ headers: {
1251
+ "Content-Type": "application/json",
1252
+ ...options.headers
1253
+ }
1254
+ });
1255
+ var companyPostsLiveFetch = (options) => (options.client ?? client).post({
1256
+ url: "/v1/linkedin-live-fetch/company-posts",
1257
+ ...options,
1258
+ headers: {
1259
+ "Content-Type": "application/json",
1260
+ ...options.headers
1261
+ }
1262
+ });
1263
+ var postCommentsLiveFetch = (options) => (options.client ?? client).post({
1264
+ url: "/v1/linkedin-live-fetch/post-comments",
1265
+ ...options,
1266
+ headers: {
1267
+ "Content-Type": "application/json",
1268
+ ...options.headers
1269
+ }
1270
+ });
1271
+ var postReactionsLiveFetch = (options) => (options.client ?? client).post({
1272
+ url: "/v1/linkedin-live-fetch/post-reactions",
1273
+ ...options,
1274
+ headers: {
1275
+ "Content-Type": "application/json",
1276
+ ...options.headers
1277
+ }
1278
+ });
1279
+ var profileCommentsLiveFetch = (options) => (options.client ?? client).post({
1280
+ url: "/v1/linkedin-live-fetch/profile-comments",
1281
+ ...options,
1282
+ headers: {
1283
+ "Content-Type": "application/json",
1284
+ ...options.headers
1285
+ }
1286
+ });
1287
+ var profileReactionsLiveFetch = (options) => (options.client ?? client).post({
1288
+ url: "/v1/linkedin-live-fetch/profile-reactions",
1289
+ ...options,
1290
+ headers: {
1291
+ "Content-Type": "application/json",
1292
+ ...options.headers
1293
+ }
1294
+ });
1295
+ var reverseEmailLookup = (options) => (options.client ?? client).post({
1296
+ url: "/v1/email-to-person/single",
1297
+ ...options,
1298
+ headers: {
1299
+ "Content-Type": "application/json",
1300
+ ...options.headers
1301
+ }
1302
+ });
1303
+ var googleMapsSearch = (options) => (options.client ?? client).post({
1304
+ url: "/v1/google-maps-search/start",
1305
+ ...options,
1306
+ headers: {
1307
+ "Content-Type": "application/json",
1308
+ ...options.headers
1309
+ }
1310
+ });
1311
+ var kitchenSinkProfile = (options) => (options.client ?? client).post({
1312
+ url: "/v1/kitchen-sink/person",
1313
+ ...options,
1314
+ headers: {
1315
+ "Content-Type": "application/json",
1316
+ ...options.headers
1317
+ }
1318
+ });
1319
+ var kitchenSinkCompany = (options) => (options.client ?? client).post({
1320
+ url: "/v1/kitchen-sink/company",
1321
+ ...options,
1322
+ headers: {
1323
+ "Content-Type": "application/json",
1324
+ ...options.headers
1325
+ }
1326
+ });
1327
+ var kitchenSinkBulkProfile = (options) => (options.client ?? client).post({
1328
+ url: "/v1/kitchen-sink/bulk/profile",
1329
+ ...options,
1330
+ headers: {
1331
+ "Content-Type": "application/json",
1332
+ ...options.headers
1333
+ }
1334
+ });
1335
+ var kitchenSinkBulkCompany = (options) => (options.client ?? client).post({
1336
+ url: "/v1/kitchen-sink/bulk/company",
1337
+ ...options,
1338
+ headers: {
1339
+ "Content-Type": "application/json",
1340
+ ...options.headers
1341
+ }
1342
+ });
1343
+ var companyTypeahead = (options) => (options.client ?? client).post({
1344
+ url: "/v1/typeahead/company",
1345
+ ...options,
1346
+ headers: {
1347
+ "Content-Type": "application/json",
1348
+ ...options.headers
1349
+ }
1350
+ });
1351
+ var locationTypeahead = (options) => (options.client ?? client).post({
1352
+ url: "/v1/typeahead/location",
1353
+ ...options,
1354
+ headers: {
1355
+ "Content-Type": "application/json",
1356
+ ...options.headers
1357
+ }
1358
+ });
1359
+ var emailBounceDetection = (options) => (options.client ?? client).post({
1360
+ url: "/v1/validate-email/single",
1361
+ ...options,
1362
+ headers: {
1363
+ "Content-Type": "application/json",
1364
+ ...options.headers
1365
+ }
1366
+ });
1367
+ var textToCompanySearchParams = (options) => (options.client ?? client).post({
1368
+ url: "/v1/text-to-search-params/companies",
1369
+ ...options,
1370
+ headers: {
1371
+ "Content-Type": "application/json",
1372
+ ...options.headers
1373
+ }
1374
+ });
1375
+ var textToCompanySearch = (options) => (options.client ?? client).post({
1376
+ url: "/v1/natural-language-search/companies",
1377
+ ...options,
1378
+ headers: {
1379
+ "Content-Type": "application/json",
1380
+ ...options.headers
1381
+ }
1382
+ });
1383
+ var textToProfileSearchParams = (options) => (options.client ?? client).post({
1384
+ url: "/v1/text-to-search-params/profiles",
1385
+ ...options,
1386
+ headers: {
1387
+ "Content-Type": "application/json",
1388
+ ...options.headers
1389
+ }
1390
+ });
1391
+ var textToProfileSearch = (options) => (options.client ?? client).post({
1392
+ url: "/v1/natural-language-search/profiles",
1393
+ ...options,
1394
+ headers: {
1395
+ "Content-Type": "application/json",
1396
+ ...options.headers
1397
+ }
1398
+ });
1399
+ var textToCombinedSearch = (options) => (options.client ?? client).post({
1400
+ url: "/v1/natural-language-search/combined/sync",
1401
+ ...options,
1402
+ headers: {
1403
+ "Content-Type": "application/json",
1404
+ ...options.headers
1405
+ }
1406
+ });
1407
+ var createSavedSearch = (options) => (options.client ?? client).post({
1408
+ url: "/v1/saved-search/create",
1409
+ ...options,
1410
+ headers: {
1411
+ "Content-Type": "application/json",
1412
+ ...options.headers
1413
+ }
1414
+ });
1415
+ var getSavedSearchRun = (options) => (options.client ?? client).post({
1416
+ url: "/v1/saved-search/run/get",
1417
+ ...options,
1418
+ headers: {
1419
+ "Content-Type": "application/json",
1420
+ ...options.headers
1421
+ }
1422
+ });
1423
+ var manuallySpawnSavedSearchRun = (options) => (options.client ?? client).post({
1424
+ url: "/v1/saved-search/spawn",
1425
+ ...options,
1426
+ headers: {
1427
+ "Content-Type": "application/json",
1428
+ ...options.headers
1429
+ }
1430
+ });
1431
+ var updateSavedSearch = (options) => (options.client ?? client).post({
1432
+ url: "/v1/saved-search/update",
1433
+ ...options,
1434
+ headers: {
1435
+ "Content-Type": "application/json",
1436
+ ...options.headers
1437
+ }
1438
+ });
1439
+ var listSavedSearchRuns = (options) => (options.client ?? client).post({
1440
+ url: "/v1/saved-search/run/list",
1441
+ ...options,
1442
+ headers: {
1443
+ "Content-Type": "application/json",
1444
+ ...options.headers
1445
+ }
1446
+ });
1447
+ var listSavedSearch = (options) => (options.client ?? client).post({
1448
+ url: "/v1/saved-search/list",
1449
+ ...options,
1450
+ headers: {
1451
+ "Content-Type": "application/json",
1452
+ ...options.headers
1453
+ }
1454
+ });
1455
+ var getSavedSearchRunStatus = (options) => (options.client ?? client).post({
1456
+ url: "/v1/saved-search/run/status",
1457
+ ...options,
1458
+ headers: {
1459
+ "Content-Type": "application/json",
1460
+ ...options.headers
1461
+ }
1462
+ });
1463
+ var getCurrentProfilesInSavedSearch = (options) => (options.client ?? client).post({
1464
+ url: "/v1/saved-search/current/profiles",
1465
+ ...options,
1466
+ headers: {
1467
+ "Content-Type": "application/json",
1468
+ ...options.headers
1469
+ }
1470
+ });
1471
+ var getCurrentCompaniesInSavedSearch = (options) => (options.client ?? client).post({
1472
+ url: "/v1/saved-search/current/companies",
1473
+ ...options,
1474
+ headers: {
1475
+ "Content-Type": "application/json",
1476
+ ...options.headers
1477
+ }
1478
+ });
1479
+ var getSavedSearchRunProfiles = (options) => (options.client ?? client).post({
1480
+ url: "/v1/saved-search/run/profiles",
1481
+ ...options,
1482
+ headers: {
1483
+ "Content-Type": "application/json",
1484
+ ...options.headers
1485
+ }
1486
+ });
1487
+ var getSavedSearchRunCompanies = (options) => (options.client ?? client).post({
1488
+ url: "/v1/saved-search/run/companies",
1489
+ ...options,
1490
+ headers: {
1491
+ "Content-Type": "application/json",
1492
+ ...options.headers
1493
+ }
1494
+ });
1495
+ var getLatestSavedSearchRun = (options) => (options.client ?? client).post({
1496
+ url: "/v1/saved-search/run/get-latest",
1497
+ ...options,
1498
+ headers: {
1499
+ "Content-Type": "application/json",
1500
+ ...options.headers
1501
+ }
1502
+ });
1503
+ var startLocalBusinessSearch = (options) => (options.client ?? client).post({
1504
+ url: "/v1/local-business-search/start",
1505
+ ...options,
1506
+ headers: {
1507
+ "Content-Type": "application/json",
1508
+ ...options.headers
1509
+ }
1510
+ });
1511
+ var domainLookupTrigger = (options) => (options.client ?? client).post({
1512
+ url: "/v1/domain-lookup/trigger",
1513
+ ...options,
1514
+ headers: {
1515
+ "Content-Type": "application/json",
1516
+ ...options.headers
1517
+ }
1518
+ });
1519
+ // Annotate the CommonJS export names for ESM import in node:
1520
+ 0 && (module.exports = {
1521
+ addCompaniesToExclusionList,
1522
+ addProspectsToExclusionList,
1523
+ bulkCompanyLogos,
1524
+ checkGoogleMapsResults,
1525
+ client,
1526
+ combinedSearch,
1527
+ companyCount,
1528
+ companyLiveEnrich,
1529
+ companyPostsLiveFetch,
1530
+ companySearch,
1531
+ companyTypeahead,
1532
+ createClient,
1533
+ createCompanyExclusionList,
1534
+ createCompanyExclusionListFromAudience,
1535
+ createConfig,
1536
+ createProspectExclusionList,
1537
+ createProspectExclusionListFromAudience,
1538
+ createSavedSearch,
1539
+ deleteCompanyExclusionList,
1540
+ deleteProspectExclusionList,
1541
+ domainLookupPolling,
1542
+ domainLookupTrigger,
1543
+ emailBounceDetection,
1544
+ getAccelerators,
1545
+ getCompanyExclusionLists,
1546
+ getCurrentCompaniesInSavedSearch,
1547
+ getCurrentProfilesInSavedSearch,
1548
+ getExcludedCompaniesForExclusionList,
1549
+ getExcludedProspectsForExclusionList,
1550
+ getIndustries,
1551
+ getLanguages,
1552
+ getLatestSavedSearchRun,
1553
+ getNaicsCodes,
1554
+ getOpenApi,
1555
+ getOrgCredits,
1556
+ getProspectExclusionLists,
1557
+ getRegions,
1558
+ getSavedSearchRun,
1559
+ getSavedSearchRunCompanies,
1560
+ getSavedSearchRunProfiles,
1561
+ getSavedSearchRunStatus,
1562
+ getTags,
1563
+ getTimeZones,
1564
+ googleMapsSearch,
1565
+ healthCheck,
1566
+ investmentSearch,
1567
+ investorSearch,
1568
+ jobPostingSearch,
1569
+ jobPostingSearchCount,
1570
+ kitchenSinkBulkCompany,
1571
+ kitchenSinkBulkProfile,
1572
+ kitchenSinkCompany,
1573
+ kitchenSinkProfile,
1574
+ listSavedSearch,
1575
+ listSavedSearchRuns,
1576
+ locationTypeahead,
1577
+ manuallySpawnSavedSearchRun,
1578
+ peopleSearch,
1579
+ peopleSearchCount,
1580
+ pollBatchContactEnrichment,
1581
+ pollCombinedSearch,
1582
+ pollContactEnrichmentResult,
1583
+ pollGoogleMapsResults,
1584
+ pollLocalBusinessSearch,
1585
+ postCommentsLiveFetch,
1586
+ postReactionsLiveFetch,
1587
+ profileCommentsLiveFetch,
1588
+ profileLiveEnrich,
1589
+ profilePostsLiveFetch,
1590
+ profileReactionsLiveFetch,
1591
+ removeCompanyFromExclusionList,
1592
+ removeProspectFromExclusionList,
1593
+ reverseEmailLookup,
1594
+ startBatchContactEnrichment,
1595
+ startLocalBusinessSearch,
1596
+ syncCombinedSearch,
1597
+ syncContactEnrichment,
1598
+ textToCombinedSearch,
1599
+ textToCompanySearch,
1600
+ textToCompanySearchParams,
1601
+ textToProfileSearch,
1602
+ textToProfileSearchParams,
1603
+ triggerContactEnrichment,
1604
+ updateSavedSearch
1605
+ });
1606
+ //# sourceMappingURL=index.cjs.map