@leadpoet/client 0.0.0-stage → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,896 @@
1
+ import { type ClientOperationId } from "./workspace-operations.js";
2
+ export type Json = null | boolean | number | string | Json[] | {
3
+ [key: string]: Json;
4
+ };
5
+ export type JsonObject = {
6
+ [key: string]: Json;
7
+ };
8
+ export type ApiResult<T = Json> = {
9
+ data: T;
10
+ request_id: string;
11
+ };
12
+ export type CallInput = {
13
+ params?: Record<string, string>;
14
+ query?: Record<string, string | number | boolean | readonly string[]>;
15
+ body?: JsonObject;
16
+ /** Caller-owned identity. Persist alongside the body before a durable create. */
17
+ idempotencyKey?: string;
18
+ signal?: AbortSignal;
19
+ /** Explicitly allow this call to authorize delivery. Does not grant API scopes. */
20
+ allowSend?: boolean;
21
+ };
22
+ export declare class LeadpoetError extends Error {
23
+ readonly status: number;
24
+ readonly code: string;
25
+ readonly requestId?: string | undefined;
26
+ readonly details?: Json | undefined;
27
+ readonly retryAfterSeconds?: number | undefined;
28
+ constructor(message: string, status: number, code: string, requestId?: string | undefined, details?: Json | undefined, retryAfterSeconds?: number | undefined);
29
+ }
30
+ export declare const operations: ({
31
+ method: "post";
32
+ path: "/requests";
33
+ id: "createRequest";
34
+ scope: "lead_engine:write";
35
+ bodyScopes: {
36
+ readonly recurrence: readonly ["outreach:send"];
37
+ };
38
+ retry: "header";
39
+ } | {
40
+ method: "get";
41
+ path: "/requests/contact-settings";
42
+ id: "getContactAllowance";
43
+ scope: "lead_engine:read";
44
+ retry: "none";
45
+ } | {
46
+ method: "get";
47
+ path: "/requests";
48
+ id: "listRequests";
49
+ scope: "lead_engine:read";
50
+ retry: "none";
51
+ } | {
52
+ method: "get";
53
+ path: "/requests/:id";
54
+ id: "getRequest";
55
+ scope: "lead_engine:read";
56
+ retry: "none";
57
+ } | {
58
+ method: "get";
59
+ path: "/pipeline";
60
+ id: "getPipeline";
61
+ scope: "pipeline:read";
62
+ retry: "none";
63
+ } | {
64
+ method: "patch";
65
+ path: "/pipeline/companies/:id";
66
+ id: "updateCompany";
67
+ scope: "pipeline:write";
68
+ retry: "state";
69
+ } | {
70
+ method: "get";
71
+ path: "/pipeline/contact-enrichment/readiness";
72
+ id: "getContactReadiness";
73
+ scope: "pipeline:read";
74
+ retry: "none";
75
+ } | {
76
+ method: "post";
77
+ path: "/pipeline/companies/:id/contact-requests";
78
+ id: "requestContacts";
79
+ scope: "pipeline:write";
80
+ retry: "header";
81
+ } | {
82
+ method: "get";
83
+ path: "/pipeline/companies/:cardId/contact-requests/:requestId";
84
+ id: "getContactRequest";
85
+ scope: "pipeline:read";
86
+ retry: "none";
87
+ } | {
88
+ method: "get";
89
+ path: "/pipeline/companies/:cardId/contact-requests/latest";
90
+ id: "getLatestContactRequest";
91
+ scope: "pipeline:read";
92
+ retry: "none";
93
+ } | {
94
+ method: "get";
95
+ path: "/icps";
96
+ id: "listIcps";
97
+ scope: "lead_engine:read";
98
+ retry: "none";
99
+ } | {
100
+ method: "post";
101
+ path: "/icps/audiences";
102
+ id: "createIcp";
103
+ scope: "lead_engine:write";
104
+ retry: "header";
105
+ } | {
106
+ method: "get";
107
+ path: "/icps/:icpId";
108
+ id: "getIcp";
109
+ scope: "lead_engine:read";
110
+ retry: "none";
111
+ } | {
112
+ method: "get";
113
+ path: "/icps/:icpId/versions";
114
+ id: "listIcpVersions";
115
+ scope: "lead_engine:read";
116
+ retry: "none";
117
+ } | {
118
+ method: "post";
119
+ path: "/icps/:icpId/draft";
120
+ id: "createIcpDraft";
121
+ scope: "lead_engine:write";
122
+ retry: "none";
123
+ } | {
124
+ method: "patch";
125
+ path: "/icps/:icpId/drafts/:draftId";
126
+ id: "updateIcpDraft";
127
+ scope: "lead_engine:write";
128
+ retry: "state";
129
+ } | {
130
+ method: "post";
131
+ path: "/icps/:icpId/drafts/:draftId/publish";
132
+ id: "publishIcp";
133
+ scope: "lead_engine:write";
134
+ retry: "header";
135
+ } | {
136
+ method: "post";
137
+ path: "/icps/:icpId/archive";
138
+ id: "archiveIcp";
139
+ scope: "lead_engine:write";
140
+ retry: "header";
141
+ } | {
142
+ method: "get";
143
+ path: "/pipeline/contacts";
144
+ id: "listPipelineContacts";
145
+ scope: "pipeline:read";
146
+ retry: "none";
147
+ } | {
148
+ method: "patch";
149
+ path: "/pipeline/contacts/:engagementId/stage";
150
+ id: "moveContact";
151
+ scope: "pipeline:write";
152
+ retry: "body";
153
+ } | {
154
+ method: "patch";
155
+ path: "/pipeline/contacts/:engagementId/pin";
156
+ id: "pinContact";
157
+ scope: "pipeline:write";
158
+ retry: "state";
159
+ } | {
160
+ method: "get";
161
+ path: "/pipeline/deals";
162
+ id: "listDeals";
163
+ scope: "pipeline:read";
164
+ retry: "none";
165
+ } | {
166
+ method: "post";
167
+ path: "/pipeline/companies/:cardId/deals";
168
+ id: "createDeal";
169
+ scope: "pipeline:write";
170
+ retry: "header";
171
+ } | {
172
+ method: "patch";
173
+ path: "/pipeline/deals/:dealId";
174
+ id: "updateDeal";
175
+ scope: "pipeline:write";
176
+ retry: "state";
177
+ } | {
178
+ method: "patch";
179
+ path: "/pipeline/deals/:dealId/stage";
180
+ id: "moveDeal";
181
+ scope: "pipeline:write";
182
+ retry: "body";
183
+ } | {
184
+ method: "get";
185
+ path: "/pipeline/configuration";
186
+ id: "getPipelineConfiguration";
187
+ scope: "pipeline:read";
188
+ retry: "none";
189
+ } | {
190
+ method: "get";
191
+ path: "/pipeline/companies/:cardId/notes";
192
+ id: "listCompanyNotes";
193
+ scope: "pipeline:read";
194
+ retry: "none";
195
+ } | {
196
+ method: "post";
197
+ path: "/pipeline/companies/:cardId/notes";
198
+ id: "createCompanyNote";
199
+ scope: "pipeline:write";
200
+ retry: "header_uuid";
201
+ } | {
202
+ method: "get";
203
+ path: "/outreach/accounts";
204
+ id: "listSendingAccounts";
205
+ scope: "outreach:read";
206
+ retry: "none";
207
+ } | {
208
+ method: "get";
209
+ path: "/outreach/conversations";
210
+ id: "listConversations";
211
+ scope: "outreach:read";
212
+ retry: "none";
213
+ } | {
214
+ method: "get";
215
+ path: "/outreach/profile";
216
+ id: "getOutreachProfile";
217
+ scope: "outreach:read";
218
+ retry: "none";
219
+ } | {
220
+ method: "put";
221
+ path: "/outreach/profile";
222
+ id: "updateOutreachProfile";
223
+ scope: "outreach:write";
224
+ retry: "state";
225
+ } | {
226
+ method: "get";
227
+ path: "/outreach/audience-sources";
228
+ id: "listAudienceSources";
229
+ scope: "outreach:read";
230
+ retry: "none";
231
+ } | {
232
+ method: "get";
233
+ path: "/outreach/audience-contacts";
234
+ id: "listAudienceContacts";
235
+ scope: "outreach:read";
236
+ retry: "none";
237
+ } | {
238
+ method: "post";
239
+ path: "/outreach/audiences/preview";
240
+ id: "previewAudience";
241
+ scope: "outreach:write";
242
+ retry: "operation_id";
243
+ } | {
244
+ method: "post";
245
+ path: "/outreach/audiences";
246
+ id: "createAudience";
247
+ scope: "outreach:write";
248
+ retry: "operation_id";
249
+ } | {
250
+ method: "get";
251
+ path: "/outreach/campaigns";
252
+ id: "listCampaigns";
253
+ scope: "outreach:read";
254
+ retry: "none";
255
+ } | {
256
+ method: "get";
257
+ path: "/outreach/campaign-product-descriptions";
258
+ id: "listCampaignProductDescriptions";
259
+ scope: "outreach:read";
260
+ retry: "none";
261
+ } | {
262
+ method: "post";
263
+ path: "/outreach/campaigns";
264
+ id: "createCampaign";
265
+ scope: "outreach:write";
266
+ retry: "operation_id";
267
+ } | {
268
+ method: "get";
269
+ path: "/outreach/campaigns/:id";
270
+ id: "getCampaign";
271
+ scope: "outreach:read";
272
+ retry: "none";
273
+ } | {
274
+ method: "put";
275
+ path: "/outreach/campaigns/:id";
276
+ id: "updateCampaign";
277
+ scope: "outreach:write";
278
+ retry: "state";
279
+ } | {
280
+ method: "post";
281
+ path: "/outreach/campaigns/:id/preview";
282
+ id: "previewCampaign";
283
+ scope: "outreach:read";
284
+ retry: "safe";
285
+ } | {
286
+ method: "post";
287
+ path: "/outreach/campaigns/:id/contract-proposal";
288
+ id: "proposeCampaignContract";
289
+ scope: "outreach:read";
290
+ retry: "safe";
291
+ } | {
292
+ method: "post";
293
+ path: "/outreach/campaigns/:id/launch";
294
+ id: "launchCampaign";
295
+ scope: "outreach:send";
296
+ retry: "bound";
297
+ } | {
298
+ method: "post";
299
+ path: "/outreach/campaigns/:id/pause";
300
+ id: "pauseCampaign";
301
+ scope: "outreach:write";
302
+ retry: "state";
303
+ } | {
304
+ method: "post";
305
+ path: "/outreach/campaigns/:id/resume";
306
+ id: "resumeCampaign";
307
+ scope: "outreach:send";
308
+ retry: "state";
309
+ } | {
310
+ method: "get";
311
+ path: "/outreach/review";
312
+ id: "listReview";
313
+ scope: "outreach:read";
314
+ retry: "none";
315
+ } | {
316
+ method: "post";
317
+ path: "/outreach/review/:messageId/deny";
318
+ id: "denyMessage";
319
+ scope: "outreach:write";
320
+ retry: "bound";
321
+ } | {
322
+ method: "post";
323
+ path: "/outreach/review/:messageId/skip";
324
+ id: "skipMessage";
325
+ scope: "outreach:write";
326
+ retry: "bound";
327
+ } | {
328
+ method: "get";
329
+ path: "/outreach/replies";
330
+ id: "listReplies";
331
+ scope: "outreach:read";
332
+ retry: "none";
333
+ } | {
334
+ method: "get";
335
+ path: "/outreach/analytics";
336
+ id: "getOutreachAnalytics";
337
+ scope: "outreach:read";
338
+ retry: "none";
339
+ } | {
340
+ method: "post";
341
+ path: "/outreach/review/approve";
342
+ id: "approveMessages";
343
+ scope: "outreach:send";
344
+ retry: "bound";
345
+ } | {
346
+ method: "post";
347
+ path: "/outreach/conversations/:id/reply";
348
+ id: "replyToConversation";
349
+ scope: "outreach:send";
350
+ retry: "request_id";
351
+ } | {
352
+ method: "post";
353
+ path: "/outreach/campaigns/:id/archive";
354
+ id: "archiveCampaign";
355
+ scope: "outreach:write";
356
+ retry: "state";
357
+ } | {
358
+ method: "get";
359
+ path: "/outreach/sequence-templates";
360
+ id: "listSequenceTemplates";
361
+ scope: "outreach:read";
362
+ retry: "none";
363
+ } | {
364
+ method: "get";
365
+ path: "/outreach/sequence-templates/:id";
366
+ id: "getSequenceTemplate";
367
+ scope: "outreach:read";
368
+ retry: "none";
369
+ } | {
370
+ method: "get";
371
+ path: "/outreach/campaigns/:id/sequence";
372
+ id: "getCampaignSequence";
373
+ scope: "outreach:read";
374
+ retry: "none";
375
+ } | {
376
+ method: "post";
377
+ path: "/outreach/sequence-templates";
378
+ id: "createSequenceTemplate";
379
+ scope: "outreach:write";
380
+ retry: "operation_id";
381
+ } | {
382
+ method: "post";
383
+ path: "/outreach/sequence-templates/:id/duplicate";
384
+ id: "duplicateSequenceTemplate";
385
+ scope: "outreach:write";
386
+ retry: "operation_id";
387
+ } | {
388
+ method: "post";
389
+ path: "/outreach/sequence-templates/:id/archive";
390
+ id: "archiveSequenceTemplate";
391
+ scope: "outreach:write";
392
+ retry: "state";
393
+ } | {
394
+ method: "get";
395
+ path: "/outreach/campaigns/:id/messaging";
396
+ id: "getCampaignMessaging";
397
+ scope: "outreach:read";
398
+ retry: "none";
399
+ } | {
400
+ method: "put";
401
+ path: "/outreach/campaigns/:id/messaging";
402
+ id: "updateCampaignMessaging";
403
+ scope: "outreach:send";
404
+ retry: "operation_id";
405
+ } | {
406
+ method: "get";
407
+ path: "/recurring-requests";
408
+ id: "listRecurringRequests";
409
+ scope: "lead_engine:read";
410
+ retry: "none";
411
+ } | {
412
+ method: "get";
413
+ path: "/recurring-requests/options";
414
+ id: "getRecurringRequestOptions";
415
+ scope: "lead_engine:read";
416
+ retry: "none";
417
+ } | {
418
+ method: "post";
419
+ path: "/recurring-requests";
420
+ id: "createRecurringRequest";
421
+ scope: "lead_engine:write";
422
+ retry: "operation_id";
423
+ additionalScopes: readonly ["outreach:send"];
424
+ } | {
425
+ method: "patch";
426
+ path: "/recurring-requests/setups/:id";
427
+ id: "updateRecurringSetup";
428
+ scope: "lead_engine:write";
429
+ retry: "bound";
430
+ additionalScopes: readonly ["outreach:send"];
431
+ } | {
432
+ method: "patch";
433
+ path: "/recurring-requests/:id";
434
+ id: "updateRecurringRequest";
435
+ scope: "lead_engine:write";
436
+ retry: "bound";
437
+ additionalScopes: readonly ["outreach:send"];
438
+ } | {
439
+ method: "get";
440
+ path: "/outreach/queued";
441
+ id: "listQueuedMessages";
442
+ scope: "outreach:read";
443
+ retry: "none";
444
+ } | {
445
+ method: "get";
446
+ path: "/outreach/queued/:messageId";
447
+ id: "getQueuedMessage";
448
+ scope: "outreach:read";
449
+ retry: "none";
450
+ } | {
451
+ method: "get";
452
+ path: "/outreach/queued/:messageId/outcome";
453
+ id: "getMessageOutcome";
454
+ scope: "outreach:read";
455
+ retry: "none";
456
+ } | {
457
+ method: "post";
458
+ path: "/outreach/queued/priority";
459
+ id: "prioritizeMessages";
460
+ scope: "outreach:send";
461
+ retry: "request_id";
462
+ } | {
463
+ method: "post";
464
+ path: "/outreach/queued/:messageId/cancel";
465
+ id: "cancelQueuedMessage";
466
+ scope: "outreach:write";
467
+ retry: "bound";
468
+ } | {
469
+ method: "post";
470
+ path: "/outreach/queued/:messageId/return-to-review";
471
+ id: "returnQueuedMessageToReview";
472
+ scope: "outreach:write";
473
+ retry: "bound";
474
+ } | {
475
+ method: "get";
476
+ path: "/outreach/queued/:messageId/edit-session";
477
+ id: "getQueuedMessageEditSession";
478
+ scope: "outreach:read";
479
+ retry: "none";
480
+ } | {
481
+ method: "post";
482
+ path: "/outreach/queued/:messageId/resume-unchanged";
483
+ id: "resumeQueuedMessageUnchanged";
484
+ scope: "outreach:send";
485
+ retry: "bound";
486
+ } | {
487
+ method: "post";
488
+ path: "/outreach/queued/:messageId/send-now";
489
+ id: "sendQueuedMessageNow";
490
+ scope: "outreach:send";
491
+ retry: "bound";
492
+ } | {
493
+ method: "post";
494
+ path: "/outreach/queued/:messageId/send-sooner";
495
+ id: "sendQueuedMessageSooner";
496
+ scope: "outreach:send";
497
+ retry: "bound";
498
+ } | {
499
+ method: "patch";
500
+ path: "/outreach/campaigns/:id/name";
501
+ id: "renameCampaign";
502
+ scope: "outreach:write";
503
+ retry: "state";
504
+ } | {
505
+ method: "post";
506
+ path: "/outreach/campaigns/:id/restore";
507
+ id: "restoreCampaign";
508
+ scope: "outreach:write";
509
+ retry: "state";
510
+ } | {
511
+ method: "post";
512
+ path: "/outreach/sender-allocations/preview";
513
+ id: "previewSenderAllocations";
514
+ scope: "outreach:read";
515
+ retry: "safe";
516
+ } | {
517
+ method: "put";
518
+ path: "/outreach/campaigns/:id/sending-schedule";
519
+ id: "updateCampaignSchedule";
520
+ scope: "outreach:send";
521
+ retry: "state";
522
+ } | {
523
+ method: "get";
524
+ path: "/outreach/campaigns/:id/activity";
525
+ id: "getCampaignActivity";
526
+ scope: "outreach:read";
527
+ retry: "none";
528
+ } | {
529
+ method: "get";
530
+ path: "/outreach/campaigns/:id/decisions";
531
+ id: "getCampaignDecisions";
532
+ scope: "outreach:read";
533
+ retry: "none";
534
+ } | {
535
+ method: "get";
536
+ path: "/outreach/campaigns/:id/reviews";
537
+ id: "getCampaignReviews";
538
+ scope: "outreach:read";
539
+ retry: "none";
540
+ } | {
541
+ method: "get";
542
+ path: "/outreach/audiences";
543
+ id: "listAudiences";
544
+ scope: "outreach:read";
545
+ retry: "none";
546
+ } | {
547
+ method: "get";
548
+ path: "/outreach/audiences/:id/funnel";
549
+ id: "getAudienceFunnel";
550
+ scope: "outreach:read";
551
+ retry: "none";
552
+ } | {
553
+ method: "get";
554
+ path: "/outreach/audiences/:snapshotId/preflight";
555
+ id: "getAudiencePreflight";
556
+ scope: "outreach:read";
557
+ retry: "none";
558
+ } | {
559
+ method: "post";
560
+ path: "/outreach/campaigns/:id/message-preview";
561
+ id: "previewCampaignMessage";
562
+ scope: "outreach:read";
563
+ retry: "safe";
564
+ } | {
565
+ method: "post";
566
+ path: "/outreach/safety-attention/delivery-unknown/:messageId/check";
567
+ id: "checkMessageDelivery";
568
+ scope: "outreach:write";
569
+ retry: "state";
570
+ } | {
571
+ method: "post";
572
+ path: "/icps";
573
+ id: "createManualIcp";
574
+ scope: "lead_engine:write";
575
+ retry: "header";
576
+ } | {
577
+ method: "get";
578
+ path: "/icps/:icpId/usage";
579
+ id: "getIcpUsage";
580
+ scope: "lead_engine:read";
581
+ retry: "none";
582
+ } | {
583
+ method: "get";
584
+ path: "/outreach/campaigns/:id/description";
585
+ id: "getCampaignDescription";
586
+ scope: "outreach:read";
587
+ retry: "none";
588
+ } | {
589
+ method: "put";
590
+ path: "/outreach/campaigns/:id/description";
591
+ id: "updateCampaignDescription";
592
+ scope: "outreach:send";
593
+ retry: "operation_id";
594
+ } | {
595
+ method: "get";
596
+ path: "/outreach/analytics/filters";
597
+ id: "getAnalyticsFilters";
598
+ scope: "outreach:read";
599
+ retry: "none";
600
+ } | {
601
+ method: "get";
602
+ path: "/outreach/analytics/report";
603
+ id: "getAnalyticsReport";
604
+ scope: "outreach:read";
605
+ retry: "none";
606
+ } | {
607
+ method: "post";
608
+ path: "/icps/lead-engine-audience";
609
+ id: "saveLeadEngineAudience";
610
+ scope: "lead_engine:write";
611
+ retry: "header";
612
+ } | {
613
+ method: "post";
614
+ path: "/icps/from-scan";
615
+ id: "createIcpFromScan";
616
+ scope: "lead_engine:write";
617
+ retry: "header";
618
+ } | {
619
+ method: "post";
620
+ path: "/icps/:icpId/apply-preview";
621
+ id: "previewIcpApplication";
622
+ scope: "lead_engine:read";
623
+ retry: "safe";
624
+ } | {
625
+ method: "post";
626
+ path: "/icps/:icpId/promote-overrides";
627
+ id: "promoteIcpOverrides";
628
+ scope: "lead_engine:write";
629
+ retry: "header";
630
+ } | {
631
+ method: "get";
632
+ path: "/pipeline/deal-summaries";
633
+ id: "getDealSummaries";
634
+ scope: "pipeline:read";
635
+ retry: "none";
636
+ } | {
637
+ method: "get";
638
+ path: "/pipeline/revenue-insights";
639
+ id: "getRevenueInsights";
640
+ scope: "pipeline:read";
641
+ retry: "none";
642
+ } | {
643
+ method: "get";
644
+ path: "/pipeline/companies/:cardId/deals";
645
+ id: "listCompanyDeals";
646
+ scope: "pipeline:read";
647
+ retry: "none";
648
+ } | {
649
+ method: "patch";
650
+ path: "/pipeline/deals/:dealId/pin";
651
+ id: "pinDeal";
652
+ scope: "pipeline:write";
653
+ retry: "state";
654
+ } | {
655
+ method: "patch";
656
+ path: "/pipeline/deals/:dealId/attribution";
657
+ id: "updateDealAttribution";
658
+ scope: "pipeline:write";
659
+ retry: "state";
660
+ } | {
661
+ method: "patch";
662
+ path: "/pipeline/deals/actions/bulk-stage";
663
+ id: "moveDeals";
664
+ scope: "pipeline:write";
665
+ retry: "body";
666
+ } | {
667
+ method: "patch";
668
+ path: "/pipeline/contacts/actions/bulk-stage";
669
+ id: "moveContacts";
670
+ scope: "pipeline:write";
671
+ retry: "body";
672
+ } | {
673
+ method: "post";
674
+ path: "/pipeline/contacts/:engagementId/qualification-deal/undo";
675
+ id: "undoContactQualification";
676
+ scope: "pipeline:write";
677
+ retry: "body";
678
+ } | {
679
+ method: "get";
680
+ path: "/pipeline/companies/:cardId/note-counts";
681
+ id: "getCompanyNoteCounts";
682
+ scope: "pipeline:read";
683
+ retry: "none";
684
+ } | {
685
+ method: "post";
686
+ path: "/pipeline/companies/:cardId/notes/archive";
687
+ id: "archiveCompanyNotes";
688
+ scope: "pipeline:write";
689
+ retry: "state";
690
+ } | {
691
+ method: "post";
692
+ path: "/outreach/campaigns/:id/audience/preview";
693
+ id: "previewCampaignAudience";
694
+ scope: "outreach:write";
695
+ retry: "operation_id";
696
+ retryIdentity: "campaignAudience";
697
+ } | {
698
+ method: "post";
699
+ path: "/outreach/campaigns/:id/audience/add";
700
+ id: "addCampaignAudience";
701
+ scope: "outreach:send";
702
+ retry: "operation_id";
703
+ retryIdentity: "campaignAudience";
704
+ } | {
705
+ method: "get";
706
+ path: "/outreach/campaigns/:id/audience/contacts";
707
+ id: "listCampaignContacts";
708
+ scope: "outreach:read";
709
+ retry: "none";
710
+ } | {
711
+ method: "post";
712
+ path: "/outreach/campaigns/:id/audience/contacts/:enrollmentId/remove";
713
+ id: "removePendingCampaignContact";
714
+ scope: "outreach:write";
715
+ retry: "state";
716
+ } | {
717
+ method: "post";
718
+ path: "/outreach/conversations/:id/sequence";
719
+ id: "updateConversationSequence";
720
+ scope: "outreach:send";
721
+ retry: "state";
722
+ } | {
723
+ method: "put";
724
+ path: "/outreach/campaigns/:id/contact-cap";
725
+ id: "updateCampaignContactCap";
726
+ scope: "outreach:send";
727
+ retry: "operation_id";
728
+ } | {
729
+ method: "put";
730
+ path: "/outreach/campaigns/:id/sender-allocations";
731
+ id: "updateSenderAllocations";
732
+ scope: "outreach:send";
733
+ retry: "state";
734
+ } | {
735
+ method: "put";
736
+ path: "/outreach/campaigns/:id/sending-days";
737
+ id: "updateSendingDays";
738
+ scope: "outreach:send";
739
+ retry: "state";
740
+ } | {
741
+ method: "post";
742
+ path: "/outreach/campaigns/:id/change-mode";
743
+ id: "changeCampaignMode";
744
+ scope: "outreach:send";
745
+ retry: "bound";
746
+ } | {
747
+ method: "post";
748
+ path: "/outreach/campaigns/:id/discard";
749
+ id: "discardCampaign";
750
+ scope: "outreach:write";
751
+ retry: "state";
752
+ } | {
753
+ method: "post";
754
+ path: "/outreach/campaigns/:id/drafts/restore";
755
+ id: "restoreCampaignDrafts";
756
+ scope: "outreach:write";
757
+ retry: "state";
758
+ } | {
759
+ method: "post";
760
+ path: "/outreach/safety-attention/delivery-unknown/:messageId/resolve";
761
+ id: "resolveUnknownDelivery";
762
+ scope: "outreach:send";
763
+ retry: "bound";
764
+ } | {
765
+ method: "post";
766
+ path: "/outreach/review/bulk-approve";
767
+ id: "bulkApproveMessages";
768
+ scope: "outreach:send";
769
+ retry: "bound";
770
+ } | {
771
+ method: "post";
772
+ path: "/outreach/review/bulk-deny";
773
+ id: "bulkDenyMessages";
774
+ scope: "outreach:write";
775
+ retry: "bound";
776
+ } | {
777
+ method: "post";
778
+ path: "/outreach/review/bulk-skip";
779
+ id: "bulkSkipMessages";
780
+ scope: "outreach:write";
781
+ retry: "bound";
782
+ } | {
783
+ method: "post";
784
+ path: "/outreach/review/:messageId/recheck-autopilot";
785
+ id: "recheckMessageAutopilot";
786
+ scope: "outreach:send";
787
+ retry: "bound";
788
+ } | {
789
+ method: "get";
790
+ path: "/pricing";
791
+ id: "getPricing";
792
+ scope: "";
793
+ retry: "none";
794
+ } | {
795
+ method: "get";
796
+ path: "/me";
797
+ id: "getApiIdentity";
798
+ scope: "";
799
+ retry: "none";
800
+ } | {
801
+ method: "get";
802
+ path: "/credits";
803
+ id: "getCredits";
804
+ scope: "credits:read";
805
+ retry: "none";
806
+ } | {
807
+ method: "get";
808
+ path: "/reference/countries";
809
+ id: "listCountries";
810
+ scope: "";
811
+ retry: "none";
812
+ } | {
813
+ method: "get";
814
+ path: "/reference/states";
815
+ id: "listStates";
816
+ scope: "";
817
+ retry: "none";
818
+ } | {
819
+ method: "get";
820
+ path: "/reference/cities";
821
+ id: "listCities";
822
+ scope: "";
823
+ retry: "none";
824
+ } | {
825
+ method: "get";
826
+ path: "/reference/company-sizes";
827
+ id: "listCompanySizes";
828
+ scope: "";
829
+ retry: "none";
830
+ } | {
831
+ method: "get";
832
+ path: "/reference/lead-types";
833
+ id: "listLeadTypes";
834
+ scope: "";
835
+ retry: "none";
836
+ } | {
837
+ method: "get";
838
+ path: "/lead-requests";
839
+ id: "listLeadRequests";
840
+ scope: "lead_requests:read";
841
+ retry: "none";
842
+ } | {
843
+ method: "post";
844
+ path: "/lead-requests";
845
+ id: "createLeadRequest";
846
+ scope: "lead_requests:write";
847
+ additionalScopes: readonly ["leads:read"];
848
+ retry: "header";
849
+ } | {
850
+ method: "get";
851
+ path: "/lead-requests/:id";
852
+ id: "getLeadRequest";
853
+ scope: "lead_requests:read";
854
+ retry: "none";
855
+ } | {
856
+ method: "post";
857
+ path: "/company-requests";
858
+ id: "createCompanyRequest";
859
+ scope: "company_requests:write";
860
+ additionalScopes: readonly ["company_requests:read"];
861
+ retry: "header";
862
+ } | {
863
+ method: "get";
864
+ path: "/company-requests/:id";
865
+ id: "getCompanyRequest";
866
+ scope: "company_requests:read";
867
+ retry: "none";
868
+ })[];
869
+ /** One credential per instance. No global credential store, cookies, or ambient session. */
870
+ export declare class LeadpoetClient {
871
+ #private;
872
+ readonly baseUrl: string;
873
+ private readonly fetcher;
874
+ private readonly timeoutMs;
875
+ constructor(options: {
876
+ baseUrl: string;
877
+ apiKey: string;
878
+ fetch?: typeof fetch;
879
+ timeoutMs?: number;
880
+ });
881
+ openapi(signal?: AbortSignal): Promise<JsonObject>;
882
+ call<T = Json>(operationId: ClientOperationId, input?: CallInput): Promise<ApiResult<T>>;
883
+ /** Bounded paging for the request history contract. Other cursors are operation-specific. */
884
+ requestPages(options?: {
885
+ page?: number;
886
+ limit?: number;
887
+ maxPages?: number;
888
+ signal?: AbortSignal;
889
+ }): AsyncGenerator<ApiResult<JsonObject>>;
890
+ waitForRequest(id: string, options?: {
891
+ timeoutMs?: number;
892
+ intervalMs?: number;
893
+ signal?: AbortSignal;
894
+ }): Promise<ApiResult<JsonObject>>;
895
+ private request;
896
+ }