@linkt/sdk 0.3.0 → 0.4.0

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 (71) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/entity.d.mts +392 -0
  12. package/resources/entity.d.mts.map +1 -0
  13. package/resources/entity.d.ts +392 -0
  14. package/resources/entity.d.ts.map +1 -0
  15. package/resources/entity.js +164 -0
  16. package/resources/entity.js.map +1 -0
  17. package/resources/entity.mjs +160 -0
  18. package/resources/entity.mjs.map +1 -0
  19. package/resources/icp.d.mts +2 -2
  20. package/resources/icp.d.ts +2 -2
  21. package/resources/icp.js +2 -2
  22. package/resources/icp.mjs +2 -2
  23. package/resources/index.d.mts +3 -2
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +3 -2
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +3 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +1 -0
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/sheet/index.d.mts +1 -2
  32. package/resources/sheet/index.d.mts.map +1 -1
  33. package/resources/sheet/index.d.ts +1 -2
  34. package/resources/sheet/index.d.ts.map +1 -1
  35. package/resources/sheet/index.js +1 -3
  36. package/resources/sheet/index.js.map +1 -1
  37. package/resources/sheet/index.mjs +0 -1
  38. package/resources/sheet/index.mjs.map +1 -1
  39. package/resources/sheet/sheet.d.mts +1 -90
  40. package/resources/sheet/sheet.d.mts.map +1 -1
  41. package/resources/sheet/sheet.d.ts +1 -90
  42. package/resources/sheet/sheet.d.ts.map +1 -1
  43. package/resources/sheet/sheet.js +0 -22
  44. package/resources/sheet/sheet.js.map +1 -1
  45. package/resources/sheet/sheet.mjs +0 -22
  46. package/resources/sheet/sheet.mjs.map +1 -1
  47. package/resources/task.d.mts +227 -613
  48. package/resources/task.d.mts.map +1 -1
  49. package/resources/task.d.ts +227 -613
  50. package/resources/task.d.ts.map +1 -1
  51. package/src/client.ts +47 -8
  52. package/src/resources/entity.ts +491 -0
  53. package/src/resources/icp.ts +2 -2
  54. package/src/resources/index.ts +22 -4
  55. package/src/resources/sheet/index.ts +0 -11
  56. package/src/resources/sheet/sheet.ts +0 -136
  57. package/src/resources/task.ts +287 -726
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
  63. package/resources/sheet/entity.d.mts +0 -52
  64. package/resources/sheet/entity.d.mts.map +0 -1
  65. package/resources/sheet/entity.d.ts +0 -52
  66. package/resources/sheet/entity.d.ts.map +0 -1
  67. package/resources/sheet/entity.js +0 -45
  68. package/resources/sheet/entity.js.map +0 -1
  69. package/resources/sheet/entity.mjs +0 -41
  70. package/resources/sheet/entity.mjs.map +0 -1
  71. package/src/resources/sheet/entity.ts +0 -97
@@ -83,6 +83,28 @@ export declare class Task extends APIResource {
83
83
  */
84
84
  execute(taskID: string, body: TaskExecuteParams, options?: RequestOptions): APIPromise<TaskExecuteResponse>;
85
85
  }
86
+ /**
87
+ * Ingest prompt configuration in API responses.
88
+ *
89
+ * Response model for prompt-based ingest task configs that excludes
90
+ * backend-managed fields from the API surface. This is for simple prompt-based
91
+ * ingest workflows, distinct from IngestTaskConfigResponse which is for CSV
92
+ * enrichment tasks.
93
+ *
94
+ * Attributes: type: Config type discriminator (always "ingest-prompt"). prompt:
95
+ * Task prompt template. webhook_url: Webhook URL for completion notification.
96
+ */
97
+ export interface IngestPromptConfigResponse {
98
+ /**
99
+ * Task prompt template
100
+ */
101
+ prompt: string;
102
+ type?: 'ingest-prompt';
103
+ /**
104
+ * Webhook URL for completion notification
105
+ */
106
+ webhook_url?: string | null;
107
+ }
86
108
  /**
87
109
  * CSV enrichment task configuration.
88
110
  *
@@ -119,6 +141,35 @@ export interface IngestTaskConfig {
119
141
  */
120
142
  webhook_url?: string | null;
121
143
  }
144
+ /**
145
+ * Ingest task configuration in API responses.
146
+ *
147
+ * Response model for CSV enrichment task configs that excludes backend-managed
148
+ * fields from the API surface.
149
+ *
150
+ * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
151
+ * the CSV file. primary_column: Column containing entity names. csv_entity_type:
152
+ * Entity type in CSV. webhook_url: Webhook URL for completion notification.
153
+ */
154
+ export interface IngestTaskConfigResponse {
155
+ /**
156
+ * Entity type in CSV
157
+ */
158
+ csv_entity_type: string;
159
+ /**
160
+ * ID of the CSV file
161
+ */
162
+ file_id: string;
163
+ /**
164
+ * Column containing entity names
165
+ */
166
+ primary_column: string;
167
+ type?: 'ingest';
168
+ /**
169
+ * Webhook URL for completion notification
170
+ */
171
+ webhook_url?: string | null;
172
+ }
122
173
  /**
123
174
  * Profile prompt task configuration.
124
175
  *
@@ -145,6 +196,26 @@ export interface ProfilePromptConfig {
145
196
  */
146
197
  webhook_url?: string | null;
147
198
  }
199
+ /**
200
+ * Profile prompt configuration in API responses.
201
+ *
202
+ * Response model for profile prompt task configs that excludes backend-managed
203
+ * fields from the API surface.
204
+ *
205
+ * Attributes: type: Config type discriminator (always "profile"). prompt: Task
206
+ * prompt template. webhook_url: Webhook URL for completion notification.
207
+ */
208
+ export interface ProfilePromptConfigResponse {
209
+ /**
210
+ * Task prompt template
211
+ */
212
+ prompt: string;
213
+ type?: 'profile';
214
+ /**
215
+ * Webhook URL for completion notification
216
+ */
217
+ webhook_url?: string | null;
218
+ }
148
219
  /**
149
220
  * Search task configuration for finding companies and contacts.
150
221
  *
@@ -177,6 +248,32 @@ export interface SearchTaskConfig {
177
248
  */
178
249
  webhook_url?: string | null;
179
250
  }
251
+ /**
252
+ * Search task configuration in API responses.
253
+ *
254
+ * Response model for search task configs that excludes backend-managed fields
255
+ * (version, config_type) from the API surface.
256
+ *
257
+ * Attributes: type: Config type discriminator (always "search").
258
+ * desired_contact_count: Number of contacts to find per company. user_feedback:
259
+ * Feedback to refine search behavior. webhook_url: Webhook URL for completion
260
+ * notification.
261
+ */
262
+ export interface SearchTaskConfigResponse {
263
+ /**
264
+ * Number of contacts to find per company
265
+ */
266
+ desired_contact_count: number;
267
+ /**
268
+ * Feedback to refine search behavior
269
+ */
270
+ user_feedback: string;
271
+ type?: 'search';
272
+ /**
273
+ * Webhook URL for completion notification
274
+ */
275
+ webhook_url?: string | null;
276
+ }
180
277
  /**
181
278
  * CSV-based signal monitoring configuration.
182
279
  *
@@ -222,6 +319,44 @@ export interface SignalCsvConfig {
222
319
  */
223
320
  webhook_url?: string | null;
224
321
  }
322
+ /**
323
+ * Signal CSV configuration in API responses.
324
+ *
325
+ * Response model for CSV-based signal monitoring configs.
326
+ *
327
+ * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
328
+ * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
329
+ * being monitored. primary_column: Primary column for entity names.
330
+ * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
331
+ * for completion notification.
332
+ */
333
+ export interface SignalCsvConfigResponse {
334
+ /**
335
+ * Entity type
336
+ */
337
+ entity_type: SheetAPI.EntityType;
338
+ /**
339
+ * CSV file ID
340
+ */
341
+ file_id: string;
342
+ /**
343
+ * Monitoring frequency
344
+ */
345
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
346
+ /**
347
+ * Primary column
348
+ */
349
+ primary_column: string;
350
+ /**
351
+ * Signal types
352
+ */
353
+ signal_types: Array<SignalTypeConfig>;
354
+ type?: 'signal-csv';
355
+ /**
356
+ * Webhook URL for completion notification
357
+ */
358
+ webhook_url?: string | null;
359
+ }
225
360
  /**
226
361
  * Sheet-based signal monitoring configuration.
227
362
  *
@@ -269,6 +404,47 @@ export interface SignalSheetConfig {
269
404
  */
270
405
  webhook_url?: string | null;
271
406
  }
407
+ /**
408
+ * Signal sheet configuration in API responses.
409
+ *
410
+ * Response model for sheet-based signal monitoring configs.
411
+ *
412
+ * Attributes: type: Config type discriminator (always "signal-sheet").
413
+ * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
414
+ * of signals to monitor. entity_type: Type of entity being monitored.
415
+ * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
416
+ * How often to check for signals. webhook_url: Webhook URL for completion
417
+ * notification.
418
+ */
419
+ export interface SignalSheetConfigResponse {
420
+ /**
421
+ * Entity type
422
+ */
423
+ entity_type: SheetAPI.EntityType;
424
+ /**
425
+ * Monitoring frequency
426
+ */
427
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
428
+ /**
429
+ * Signal types
430
+ */
431
+ signal_types: Array<SignalTypeConfig>;
432
+ /**
433
+ * Source ICP ID
434
+ */
435
+ source_icp_id: string;
436
+ /**
437
+ * Entity filters
438
+ */
439
+ entity_filters?: {
440
+ [key: string]: unknown;
441
+ } | null;
442
+ type?: 'signal-sheet';
443
+ /**
444
+ * Webhook URL for completion notification
445
+ */
446
+ webhook_url?: string | null;
447
+ }
272
448
  /**
273
449
  * Topic-based signal monitoring configuration.
274
450
  *
@@ -326,6 +502,53 @@ export interface SignalTopicConfig {
326
502
  */
327
503
  webhook_url?: string | null;
328
504
  }
505
+ /**
506
+ * Signal topic configuration in API responses.
507
+ *
508
+ * Response model for topic-based signal monitoring configs.
509
+ *
510
+ * Attributes: type: Config type discriminator (always "signal-topic").
511
+ * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
512
+ * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
513
+ * often to check for signals. geographic_filters: Geographic regions to focus on.
514
+ * industry_filters: Industries to focus on. company_size_filters: Company size
515
+ * criteria. webhook_url: Webhook URL for completion notification.
516
+ */
517
+ export interface SignalTopicConfigResponse {
518
+ /**
519
+ * Entity type
520
+ */
521
+ entity_type: SheetAPI.EntityType;
522
+ /**
523
+ * Monitoring frequency
524
+ */
525
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
526
+ /**
527
+ * Signal types
528
+ */
529
+ signal_types: Array<SignalTypeConfig>;
530
+ /**
531
+ * Topic criteria
532
+ */
533
+ topic_criteria: string;
534
+ /**
535
+ * Size filters
536
+ */
537
+ company_size_filters?: Array<string> | null;
538
+ /**
539
+ * Geographic filters
540
+ */
541
+ geographic_filters?: Array<string> | null;
542
+ /**
543
+ * Industry filters
544
+ */
545
+ industry_filters?: Array<string> | null;
546
+ type?: 'signal-topic';
547
+ /**
548
+ * Webhook URL for completion notification
549
+ */
550
+ webhook_url?: string | null;
551
+ }
329
552
  /**
330
553
  * Configuration for a single signal type to monitor.
331
554
  *
@@ -397,210 +620,7 @@ export interface TaskCreateResponse {
397
620
  /**
398
621
  * Flow-specific task configuration
399
622
  */
400
- task_config?: TaskCreateResponse.SearchTaskConfigResponse | TaskCreateResponse.IngestTaskConfigResponse | TaskCreateResponse.ProfilePromptConfigResponse | TaskCreateResponse.SignalTopicConfigResponse | TaskCreateResponse.SignalCsvConfigResponse | TaskCreateResponse.SignalSheetConfigResponse | null;
401
- }
402
- export declare namespace TaskCreateResponse {
403
- /**
404
- * Search task configuration in API responses.
405
- *
406
- * Response model for search task configs that excludes backend-managed fields
407
- * (version, config_type) from the API surface.
408
- *
409
- * Attributes: type: Config type discriminator (always "search").
410
- * desired_contact_count: Number of contacts to find per company. user_feedback:
411
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
412
- * notification.
413
- */
414
- interface SearchTaskConfigResponse {
415
- /**
416
- * Number of contacts to find per company
417
- */
418
- desired_contact_count: number;
419
- /**
420
- * Feedback to refine search behavior
421
- */
422
- user_feedback: string;
423
- type?: 'search';
424
- /**
425
- * Webhook URL for completion notification
426
- */
427
- webhook_url?: string | null;
428
- }
429
- /**
430
- * Ingest task configuration in API responses.
431
- *
432
- * Response model for CSV enrichment task configs that excludes backend-managed
433
- * fields from the API surface.
434
- *
435
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
436
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
437
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
438
- */
439
- interface IngestTaskConfigResponse {
440
- /**
441
- * Entity type in CSV
442
- */
443
- csv_entity_type: string;
444
- /**
445
- * ID of the CSV file
446
- */
447
- file_id: string;
448
- /**
449
- * Column containing entity names
450
- */
451
- primary_column: string;
452
- type?: 'ingest';
453
- /**
454
- * Webhook URL for completion notification
455
- */
456
- webhook_url?: string | null;
457
- }
458
- /**
459
- * Profile prompt configuration in API responses.
460
- *
461
- * Response model for profile prompt task configs that excludes backend-managed
462
- * fields from the API surface.
463
- *
464
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
465
- * prompt template. webhook_url: Webhook URL for completion notification.
466
- */
467
- interface ProfilePromptConfigResponse {
468
- /**
469
- * Task prompt template
470
- */
471
- prompt: string;
472
- type?: 'profile';
473
- /**
474
- * Webhook URL for completion notification
475
- */
476
- webhook_url?: string | null;
477
- }
478
- /**
479
- * Signal topic configuration in API responses.
480
- *
481
- * Response model for topic-based signal monitoring configs.
482
- *
483
- * Attributes: type: Config type discriminator (always "signal-topic").
484
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
485
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
486
- * often to check for signals. geographic_filters: Geographic regions to focus on.
487
- * industry_filters: Industries to focus on. company_size_filters: Company size
488
- * criteria. webhook_url: Webhook URL for completion notification.
489
- */
490
- interface SignalTopicConfigResponse {
491
- /**
492
- * Entity type
493
- */
494
- entity_type: SheetAPI.EntityType;
495
- /**
496
- * Monitoring frequency
497
- */
498
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
499
- /**
500
- * Signal types
501
- */
502
- signal_types: Array<TaskAPI.SignalTypeConfig>;
503
- /**
504
- * Topic criteria
505
- */
506
- topic_criteria: string;
507
- /**
508
- * Size filters
509
- */
510
- company_size_filters?: Array<string> | null;
511
- /**
512
- * Geographic filters
513
- */
514
- geographic_filters?: Array<string> | null;
515
- /**
516
- * Industry filters
517
- */
518
- industry_filters?: Array<string> | null;
519
- type?: 'signal-topic';
520
- /**
521
- * Webhook URL for completion notification
522
- */
523
- webhook_url?: string | null;
524
- }
525
- /**
526
- * Signal CSV configuration in API responses.
527
- *
528
- * Response model for CSV-based signal monitoring configs.
529
- *
530
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
531
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
532
- * being monitored. primary_column: Primary column for entity names.
533
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
534
- * for completion notification.
535
- */
536
- interface SignalCsvConfigResponse {
537
- /**
538
- * Entity type
539
- */
540
- entity_type: SheetAPI.EntityType;
541
- /**
542
- * CSV file ID
543
- */
544
- file_id: string;
545
- /**
546
- * Monitoring frequency
547
- */
548
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
549
- /**
550
- * Primary column
551
- */
552
- primary_column: string;
553
- /**
554
- * Signal types
555
- */
556
- signal_types: Array<TaskAPI.SignalTypeConfig>;
557
- type?: 'signal-csv';
558
- /**
559
- * Webhook URL for completion notification
560
- */
561
- webhook_url?: string | null;
562
- }
563
- /**
564
- * Signal sheet configuration in API responses.
565
- *
566
- * Response model for sheet-based signal monitoring configs.
567
- *
568
- * Attributes: type: Config type discriminator (always "signal-sheet").
569
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
570
- * of signals to monitor. entity_type: Type of entity being monitored.
571
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
572
- * How often to check for signals. webhook_url: Webhook URL for completion
573
- * notification.
574
- */
575
- interface SignalSheetConfigResponse {
576
- /**
577
- * Entity type
578
- */
579
- entity_type: SheetAPI.EntityType;
580
- /**
581
- * Monitoring frequency
582
- */
583
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
584
- /**
585
- * Signal types
586
- */
587
- signal_types: Array<TaskAPI.SignalTypeConfig>;
588
- /**
589
- * Source ICP ID
590
- */
591
- source_icp_id: string;
592
- /**
593
- * Entity filters
594
- */
595
- entity_filters?: {
596
- [key: string]: unknown;
597
- } | null;
598
- type?: 'signal-sheet';
599
- /**
600
- * Webhook URL for completion notification
601
- */
602
- webhook_url?: string | null;
603
- }
623
+ task_config?: SearchTaskConfigResponse | IngestTaskConfigResponse | IngestPromptConfigResponse | ProfilePromptConfigResponse | SignalTopicConfigResponse | SignalCsvConfigResponse | SignalSheetConfigResponse | null;
604
624
  }
605
625
  /**
606
626
  * Response model for task data.
@@ -654,210 +674,7 @@ export interface TaskRetrieveResponse {
654
674
  /**
655
675
  * Flow-specific task configuration
656
676
  */
657
- task_config?: TaskRetrieveResponse.SearchTaskConfigResponse | TaskRetrieveResponse.IngestTaskConfigResponse | TaskRetrieveResponse.ProfilePromptConfigResponse | TaskRetrieveResponse.SignalTopicConfigResponse | TaskRetrieveResponse.SignalCsvConfigResponse | TaskRetrieveResponse.SignalSheetConfigResponse | null;
658
- }
659
- export declare namespace TaskRetrieveResponse {
660
- /**
661
- * Search task configuration in API responses.
662
- *
663
- * Response model for search task configs that excludes backend-managed fields
664
- * (version, config_type) from the API surface.
665
- *
666
- * Attributes: type: Config type discriminator (always "search").
667
- * desired_contact_count: Number of contacts to find per company. user_feedback:
668
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
669
- * notification.
670
- */
671
- interface SearchTaskConfigResponse {
672
- /**
673
- * Number of contacts to find per company
674
- */
675
- desired_contact_count: number;
676
- /**
677
- * Feedback to refine search behavior
678
- */
679
- user_feedback: string;
680
- type?: 'search';
681
- /**
682
- * Webhook URL for completion notification
683
- */
684
- webhook_url?: string | null;
685
- }
686
- /**
687
- * Ingest task configuration in API responses.
688
- *
689
- * Response model for CSV enrichment task configs that excludes backend-managed
690
- * fields from the API surface.
691
- *
692
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
693
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
694
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
695
- */
696
- interface IngestTaskConfigResponse {
697
- /**
698
- * Entity type in CSV
699
- */
700
- csv_entity_type: string;
701
- /**
702
- * ID of the CSV file
703
- */
704
- file_id: string;
705
- /**
706
- * Column containing entity names
707
- */
708
- primary_column: string;
709
- type?: 'ingest';
710
- /**
711
- * Webhook URL for completion notification
712
- */
713
- webhook_url?: string | null;
714
- }
715
- /**
716
- * Profile prompt configuration in API responses.
717
- *
718
- * Response model for profile prompt task configs that excludes backend-managed
719
- * fields from the API surface.
720
- *
721
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
722
- * prompt template. webhook_url: Webhook URL for completion notification.
723
- */
724
- interface ProfilePromptConfigResponse {
725
- /**
726
- * Task prompt template
727
- */
728
- prompt: string;
729
- type?: 'profile';
730
- /**
731
- * Webhook URL for completion notification
732
- */
733
- webhook_url?: string | null;
734
- }
735
- /**
736
- * Signal topic configuration in API responses.
737
- *
738
- * Response model for topic-based signal monitoring configs.
739
- *
740
- * Attributes: type: Config type discriminator (always "signal-topic").
741
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
742
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
743
- * often to check for signals. geographic_filters: Geographic regions to focus on.
744
- * industry_filters: Industries to focus on. company_size_filters: Company size
745
- * criteria. webhook_url: Webhook URL for completion notification.
746
- */
747
- interface SignalTopicConfigResponse {
748
- /**
749
- * Entity type
750
- */
751
- entity_type: SheetAPI.EntityType;
752
- /**
753
- * Monitoring frequency
754
- */
755
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
756
- /**
757
- * Signal types
758
- */
759
- signal_types: Array<TaskAPI.SignalTypeConfig>;
760
- /**
761
- * Topic criteria
762
- */
763
- topic_criteria: string;
764
- /**
765
- * Size filters
766
- */
767
- company_size_filters?: Array<string> | null;
768
- /**
769
- * Geographic filters
770
- */
771
- geographic_filters?: Array<string> | null;
772
- /**
773
- * Industry filters
774
- */
775
- industry_filters?: Array<string> | null;
776
- type?: 'signal-topic';
777
- /**
778
- * Webhook URL for completion notification
779
- */
780
- webhook_url?: string | null;
781
- }
782
- /**
783
- * Signal CSV configuration in API responses.
784
- *
785
- * Response model for CSV-based signal monitoring configs.
786
- *
787
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
788
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
789
- * being monitored. primary_column: Primary column for entity names.
790
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
791
- * for completion notification.
792
- */
793
- interface SignalCsvConfigResponse {
794
- /**
795
- * Entity type
796
- */
797
- entity_type: SheetAPI.EntityType;
798
- /**
799
- * CSV file ID
800
- */
801
- file_id: string;
802
- /**
803
- * Monitoring frequency
804
- */
805
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
806
- /**
807
- * Primary column
808
- */
809
- primary_column: string;
810
- /**
811
- * Signal types
812
- */
813
- signal_types: Array<TaskAPI.SignalTypeConfig>;
814
- type?: 'signal-csv';
815
- /**
816
- * Webhook URL for completion notification
817
- */
818
- webhook_url?: string | null;
819
- }
820
- /**
821
- * Signal sheet configuration in API responses.
822
- *
823
- * Response model for sheet-based signal monitoring configs.
824
- *
825
- * Attributes: type: Config type discriminator (always "signal-sheet").
826
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
827
- * of signals to monitor. entity_type: Type of entity being monitored.
828
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
829
- * How often to check for signals. webhook_url: Webhook URL for completion
830
- * notification.
831
- */
832
- interface SignalSheetConfigResponse {
833
- /**
834
- * Entity type
835
- */
836
- entity_type: SheetAPI.EntityType;
837
- /**
838
- * Monitoring frequency
839
- */
840
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
841
- /**
842
- * Signal types
843
- */
844
- signal_types: Array<TaskAPI.SignalTypeConfig>;
845
- /**
846
- * Source ICP ID
847
- */
848
- source_icp_id: string;
849
- /**
850
- * Entity filters
851
- */
852
- entity_filters?: {
853
- [key: string]: unknown;
854
- } | null;
855
- type?: 'signal-sheet';
856
- /**
857
- * Webhook URL for completion notification
858
- */
859
- webhook_url?: string | null;
860
- }
677
+ task_config?: SearchTaskConfigResponse | IngestTaskConfigResponse | IngestPromptConfigResponse | ProfilePromptConfigResponse | SignalTopicConfigResponse | SignalCsvConfigResponse | SignalSheetConfigResponse | null;
861
678
  }
862
679
  /**
863
680
  * Response model for paginated task list.
@@ -936,210 +753,7 @@ export declare namespace TaskListResponse {
936
753
  /**
937
754
  * Flow-specific task configuration
938
755
  */
939
- task_config?: Task.SearchTaskConfigResponse | Task.IngestTaskConfigResponse | Task.ProfilePromptConfigResponse | Task.SignalTopicConfigResponse | Task.SignalCsvConfigResponse | Task.SignalSheetConfigResponse | null;
940
- }
941
- namespace Task {
942
- /**
943
- * Search task configuration in API responses.
944
- *
945
- * Response model for search task configs that excludes backend-managed fields
946
- * (version, config_type) from the API surface.
947
- *
948
- * Attributes: type: Config type discriminator (always "search").
949
- * desired_contact_count: Number of contacts to find per company. user_feedback:
950
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
951
- * notification.
952
- */
953
- interface SearchTaskConfigResponse {
954
- /**
955
- * Number of contacts to find per company
956
- */
957
- desired_contact_count: number;
958
- /**
959
- * Feedback to refine search behavior
960
- */
961
- user_feedback: string;
962
- type?: 'search';
963
- /**
964
- * Webhook URL for completion notification
965
- */
966
- webhook_url?: string | null;
967
- }
968
- /**
969
- * Ingest task configuration in API responses.
970
- *
971
- * Response model for CSV enrichment task configs that excludes backend-managed
972
- * fields from the API surface.
973
- *
974
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
975
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
976
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
977
- */
978
- interface IngestTaskConfigResponse {
979
- /**
980
- * Entity type in CSV
981
- */
982
- csv_entity_type: string;
983
- /**
984
- * ID of the CSV file
985
- */
986
- file_id: string;
987
- /**
988
- * Column containing entity names
989
- */
990
- primary_column: string;
991
- type?: 'ingest';
992
- /**
993
- * Webhook URL for completion notification
994
- */
995
- webhook_url?: string | null;
996
- }
997
- /**
998
- * Profile prompt configuration in API responses.
999
- *
1000
- * Response model for profile prompt task configs that excludes backend-managed
1001
- * fields from the API surface.
1002
- *
1003
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
1004
- * prompt template. webhook_url: Webhook URL for completion notification.
1005
- */
1006
- interface ProfilePromptConfigResponse {
1007
- /**
1008
- * Task prompt template
1009
- */
1010
- prompt: string;
1011
- type?: 'profile';
1012
- /**
1013
- * Webhook URL for completion notification
1014
- */
1015
- webhook_url?: string | null;
1016
- }
1017
- /**
1018
- * Signal topic configuration in API responses.
1019
- *
1020
- * Response model for topic-based signal monitoring configs.
1021
- *
1022
- * Attributes: type: Config type discriminator (always "signal-topic").
1023
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
1024
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
1025
- * often to check for signals. geographic_filters: Geographic regions to focus on.
1026
- * industry_filters: Industries to focus on. company_size_filters: Company size
1027
- * criteria. webhook_url: Webhook URL for completion notification.
1028
- */
1029
- interface SignalTopicConfigResponse {
1030
- /**
1031
- * Entity type
1032
- */
1033
- entity_type: SheetAPI.EntityType;
1034
- /**
1035
- * Monitoring frequency
1036
- */
1037
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1038
- /**
1039
- * Signal types
1040
- */
1041
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1042
- /**
1043
- * Topic criteria
1044
- */
1045
- topic_criteria: string;
1046
- /**
1047
- * Size filters
1048
- */
1049
- company_size_filters?: Array<string> | null;
1050
- /**
1051
- * Geographic filters
1052
- */
1053
- geographic_filters?: Array<string> | null;
1054
- /**
1055
- * Industry filters
1056
- */
1057
- industry_filters?: Array<string> | null;
1058
- type?: 'signal-topic';
1059
- /**
1060
- * Webhook URL for completion notification
1061
- */
1062
- webhook_url?: string | null;
1063
- }
1064
- /**
1065
- * Signal CSV configuration in API responses.
1066
- *
1067
- * Response model for CSV-based signal monitoring configs.
1068
- *
1069
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
1070
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
1071
- * being monitored. primary_column: Primary column for entity names.
1072
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
1073
- * for completion notification.
1074
- */
1075
- interface SignalCsvConfigResponse {
1076
- /**
1077
- * Entity type
1078
- */
1079
- entity_type: SheetAPI.EntityType;
1080
- /**
1081
- * CSV file ID
1082
- */
1083
- file_id: string;
1084
- /**
1085
- * Monitoring frequency
1086
- */
1087
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1088
- /**
1089
- * Primary column
1090
- */
1091
- primary_column: string;
1092
- /**
1093
- * Signal types
1094
- */
1095
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1096
- type?: 'signal-csv';
1097
- /**
1098
- * Webhook URL for completion notification
1099
- */
1100
- webhook_url?: string | null;
1101
- }
1102
- /**
1103
- * Signal sheet configuration in API responses.
1104
- *
1105
- * Response model for sheet-based signal monitoring configs.
1106
- *
1107
- * Attributes: type: Config type discriminator (always "signal-sheet").
1108
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
1109
- * of signals to monitor. entity_type: Type of entity being monitored.
1110
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
1111
- * How often to check for signals. webhook_url: Webhook URL for completion
1112
- * notification.
1113
- */
1114
- interface SignalSheetConfigResponse {
1115
- /**
1116
- * Entity type
1117
- */
1118
- entity_type: SheetAPI.EntityType;
1119
- /**
1120
- * Monitoring frequency
1121
- */
1122
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1123
- /**
1124
- * Signal types
1125
- */
1126
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1127
- /**
1128
- * Source ICP ID
1129
- */
1130
- source_icp_id: string;
1131
- /**
1132
- * Entity filters
1133
- */
1134
- entity_filters?: {
1135
- [key: string]: unknown;
1136
- } | null;
1137
- type?: 'signal-sheet';
1138
- /**
1139
- * Webhook URL for completion notification
1140
- */
1141
- webhook_url?: string | null;
1142
- }
756
+ task_config?: TaskAPI.SearchTaskConfigResponse | TaskAPI.IngestTaskConfigResponse | TaskAPI.IngestPromptConfigResponse | TaskAPI.ProfilePromptConfigResponse | TaskAPI.SignalTopicConfigResponse | TaskAPI.SignalCsvConfigResponse | TaskAPI.SignalSheetConfigResponse | null;
1143
757
  }
1144
758
  }
1145
759
  /**
@@ -1253,6 +867,6 @@ export interface TaskExecuteParams {
1253
867
  };
1254
868
  }
1255
869
  export declare namespace Task {
1256
- export { type IngestTaskConfig as IngestTaskConfig, type ProfilePromptConfig as ProfilePromptConfig, type SearchTaskConfig as SearchTaskConfig, type SignalCsvConfig as SignalCsvConfig, type SignalSheetConfig as SignalSheetConfig, type SignalTopicConfig as SignalTopicConfig, type SignalTypeConfig as SignalTypeConfig, type TaskCreateResponse as TaskCreateResponse, type TaskRetrieveResponse as TaskRetrieveResponse, type TaskListResponse as TaskListResponse, type TaskExecuteResponse as TaskExecuteResponse, type TaskCreateParams as TaskCreateParams, type TaskUpdateParams as TaskUpdateParams, type TaskListParams as TaskListParams, type TaskExecuteParams as TaskExecuteParams, };
870
+ export { type IngestPromptConfigResponse as IngestPromptConfigResponse, type IngestTaskConfig as IngestTaskConfig, type IngestTaskConfigResponse as IngestTaskConfigResponse, type ProfilePromptConfig as ProfilePromptConfig, type ProfilePromptConfigResponse as ProfilePromptConfigResponse, type SearchTaskConfig as SearchTaskConfig, type SearchTaskConfigResponse as SearchTaskConfigResponse, type SignalCsvConfig as SignalCsvConfig, type SignalCsvConfigResponse as SignalCsvConfigResponse, type SignalSheetConfig as SignalSheetConfig, type SignalSheetConfigResponse as SignalSheetConfigResponse, type SignalTopicConfig as SignalTopicConfig, type SignalTopicConfigResponse as SignalTopicConfigResponse, type SignalTypeConfig as SignalTypeConfig, type TaskCreateResponse as TaskCreateResponse, type TaskRetrieveResponse as TaskRetrieveResponse, type TaskListResponse as TaskListResponse, type TaskExecuteResponse as TaskExecuteResponse, type TaskCreateParams as TaskCreateParams, type TaskUpdateParams as TaskUpdateParams, type TaskListParams as TaskListParams, type TaskExecuteParams as TaskExecuteParams, };
1257
871
  }
1258
872
  //# sourceMappingURL=task.d.mts.map