@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
@@ -120,6 +120,31 @@ export class Task extends APIResource {
120
120
  }
121
121
  }
122
122
 
123
+ /**
124
+ * Ingest prompt configuration in API responses.
125
+ *
126
+ * Response model for prompt-based ingest task configs that excludes
127
+ * backend-managed fields from the API surface. This is for simple prompt-based
128
+ * ingest workflows, distinct from IngestTaskConfigResponse which is for CSV
129
+ * enrichment tasks.
130
+ *
131
+ * Attributes: type: Config type discriminator (always "ingest-prompt"). prompt:
132
+ * Task prompt template. webhook_url: Webhook URL for completion notification.
133
+ */
134
+ export interface IngestPromptConfigResponse {
135
+ /**
136
+ * Task prompt template
137
+ */
138
+ prompt: string;
139
+
140
+ type?: 'ingest-prompt';
141
+
142
+ /**
143
+ * Webhook URL for completion notification
144
+ */
145
+ webhook_url?: string | null;
146
+ }
147
+
123
148
  /**
124
149
  * CSV enrichment task configuration.
125
150
  *
@@ -161,6 +186,40 @@ export interface IngestTaskConfig {
161
186
  webhook_url?: string | null;
162
187
  }
163
188
 
189
+ /**
190
+ * Ingest task configuration in API responses.
191
+ *
192
+ * Response model for CSV enrichment task configs that excludes backend-managed
193
+ * fields from the API surface.
194
+ *
195
+ * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
196
+ * the CSV file. primary_column: Column containing entity names. csv_entity_type:
197
+ * Entity type in CSV. webhook_url: Webhook URL for completion notification.
198
+ */
199
+ export interface IngestTaskConfigResponse {
200
+ /**
201
+ * Entity type in CSV
202
+ */
203
+ csv_entity_type: string;
204
+
205
+ /**
206
+ * ID of the CSV file
207
+ */
208
+ file_id: string;
209
+
210
+ /**
211
+ * Column containing entity names
212
+ */
213
+ primary_column: string;
214
+
215
+ type?: 'ingest';
216
+
217
+ /**
218
+ * Webhook URL for completion notification
219
+ */
220
+ webhook_url?: string | null;
221
+ }
222
+
164
223
  /**
165
224
  * Profile prompt task configuration.
166
225
  *
@@ -190,6 +249,29 @@ export interface ProfilePromptConfig {
190
249
  webhook_url?: string | null;
191
250
  }
192
251
 
252
+ /**
253
+ * Profile prompt configuration in API responses.
254
+ *
255
+ * Response model for profile prompt task configs that excludes backend-managed
256
+ * fields from the API surface.
257
+ *
258
+ * Attributes: type: Config type discriminator (always "profile"). prompt: Task
259
+ * prompt template. webhook_url: Webhook URL for completion notification.
260
+ */
261
+ export interface ProfilePromptConfigResponse {
262
+ /**
263
+ * Task prompt template
264
+ */
265
+ prompt: string;
266
+
267
+ type?: 'profile';
268
+
269
+ /**
270
+ * Webhook URL for completion notification
271
+ */
272
+ webhook_url?: string | null;
273
+ }
274
+
193
275
  /**
194
276
  * Search task configuration for finding companies and contacts.
195
277
  *
@@ -226,6 +308,36 @@ export interface SearchTaskConfig {
226
308
  webhook_url?: string | null;
227
309
  }
228
310
 
311
+ /**
312
+ * Search task configuration in API responses.
313
+ *
314
+ * Response model for search task configs that excludes backend-managed fields
315
+ * (version, config_type) from the API surface.
316
+ *
317
+ * Attributes: type: Config type discriminator (always "search").
318
+ * desired_contact_count: Number of contacts to find per company. user_feedback:
319
+ * Feedback to refine search behavior. webhook_url: Webhook URL for completion
320
+ * notification.
321
+ */
322
+ export interface SearchTaskConfigResponse {
323
+ /**
324
+ * Number of contacts to find per company
325
+ */
326
+ desired_contact_count: number;
327
+
328
+ /**
329
+ * Feedback to refine search behavior
330
+ */
331
+ user_feedback: string;
332
+
333
+ type?: 'search';
334
+
335
+ /**
336
+ * Webhook URL for completion notification
337
+ */
338
+ webhook_url?: string | null;
339
+ }
340
+
229
341
  /**
230
342
  * CSV-based signal monitoring configuration.
231
343
  *
@@ -278,6 +390,51 @@ export interface SignalCsvConfig {
278
390
  webhook_url?: string | null;
279
391
  }
280
392
 
393
+ /**
394
+ * Signal CSV configuration in API responses.
395
+ *
396
+ * Response model for CSV-based signal monitoring configs.
397
+ *
398
+ * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
399
+ * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
400
+ * being monitored. primary_column: Primary column for entity names.
401
+ * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
402
+ * for completion notification.
403
+ */
404
+ export interface SignalCsvConfigResponse {
405
+ /**
406
+ * Entity type
407
+ */
408
+ entity_type: SheetAPI.EntityType;
409
+
410
+ /**
411
+ * CSV file ID
412
+ */
413
+ file_id: string;
414
+
415
+ /**
416
+ * Monitoring frequency
417
+ */
418
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
419
+
420
+ /**
421
+ * Primary column
422
+ */
423
+ primary_column: string;
424
+
425
+ /**
426
+ * Signal types
427
+ */
428
+ signal_types: Array<SignalTypeConfig>;
429
+
430
+ type?: 'signal-csv';
431
+
432
+ /**
433
+ * Webhook URL for completion notification
434
+ */
435
+ webhook_url?: string | null;
436
+ }
437
+
281
438
  /**
282
439
  * Sheet-based signal monitoring configuration.
283
440
  *
@@ -330,6 +487,52 @@ export interface SignalSheetConfig {
330
487
  webhook_url?: string | null;
331
488
  }
332
489
 
490
+ /**
491
+ * Signal sheet configuration in API responses.
492
+ *
493
+ * Response model for sheet-based signal monitoring configs.
494
+ *
495
+ * Attributes: type: Config type discriminator (always "signal-sheet").
496
+ * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
497
+ * of signals to monitor. entity_type: Type of entity being monitored.
498
+ * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
499
+ * How often to check for signals. webhook_url: Webhook URL for completion
500
+ * notification.
501
+ */
502
+ export interface SignalSheetConfigResponse {
503
+ /**
504
+ * Entity type
505
+ */
506
+ entity_type: SheetAPI.EntityType;
507
+
508
+ /**
509
+ * Monitoring frequency
510
+ */
511
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
512
+
513
+ /**
514
+ * Signal types
515
+ */
516
+ signal_types: Array<SignalTypeConfig>;
517
+
518
+ /**
519
+ * Source ICP ID
520
+ */
521
+ source_icp_id: string;
522
+
523
+ /**
524
+ * Entity filters
525
+ */
526
+ entity_filters?: { [key: string]: unknown } | null;
527
+
528
+ type?: 'signal-sheet';
529
+
530
+ /**
531
+ * Webhook URL for completion notification
532
+ */
533
+ webhook_url?: string | null;
534
+ }
535
+
333
536
  /**
334
537
  * Topic-based signal monitoring configuration.
335
538
  *
@@ -396,6 +599,62 @@ export interface SignalTopicConfig {
396
599
  webhook_url?: string | null;
397
600
  }
398
601
 
602
+ /**
603
+ * Signal topic configuration in API responses.
604
+ *
605
+ * Response model for topic-based signal monitoring configs.
606
+ *
607
+ * Attributes: type: Config type discriminator (always "signal-topic").
608
+ * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
609
+ * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
610
+ * often to check for signals. geographic_filters: Geographic regions to focus on.
611
+ * industry_filters: Industries to focus on. company_size_filters: Company size
612
+ * criteria. webhook_url: Webhook URL for completion notification.
613
+ */
614
+ export interface SignalTopicConfigResponse {
615
+ /**
616
+ * Entity type
617
+ */
618
+ entity_type: SheetAPI.EntityType;
619
+
620
+ /**
621
+ * Monitoring frequency
622
+ */
623
+ monitoring_frequency: 'daily' | 'weekly' | 'monthly';
624
+
625
+ /**
626
+ * Signal types
627
+ */
628
+ signal_types: Array<SignalTypeConfig>;
629
+
630
+ /**
631
+ * Topic criteria
632
+ */
633
+ topic_criteria: string;
634
+
635
+ /**
636
+ * Size filters
637
+ */
638
+ company_size_filters?: Array<string> | null;
639
+
640
+ /**
641
+ * Geographic filters
642
+ */
643
+ geographic_filters?: Array<string> | null;
644
+
645
+ /**
646
+ * Industry filters
647
+ */
648
+ industry_filters?: Array<string> | null;
649
+
650
+ type?: 'signal-topic';
651
+
652
+ /**
653
+ * Webhook URL for completion notification
654
+ */
655
+ webhook_url?: string | null;
656
+ }
657
+
399
658
  /**
400
659
  * Configuration for a single signal type to monitor.
401
660
  *
@@ -497,251 +756,16 @@ export interface TaskCreateResponse {
497
756
  * Flow-specific task configuration
498
757
  */
499
758
  task_config?:
500
- | TaskCreateResponse.SearchTaskConfigResponse
501
- | TaskCreateResponse.IngestTaskConfigResponse
502
- | TaskCreateResponse.ProfilePromptConfigResponse
503
- | TaskCreateResponse.SignalTopicConfigResponse
504
- | TaskCreateResponse.SignalCsvConfigResponse
505
- | TaskCreateResponse.SignalSheetConfigResponse
759
+ | SearchTaskConfigResponse
760
+ | IngestTaskConfigResponse
761
+ | IngestPromptConfigResponse
762
+ | ProfilePromptConfigResponse
763
+ | SignalTopicConfigResponse
764
+ | SignalCsvConfigResponse
765
+ | SignalSheetConfigResponse
506
766
  | null;
507
767
  }
508
768
 
509
- export namespace TaskCreateResponse {
510
- /**
511
- * Search task configuration in API responses.
512
- *
513
- * Response model for search task configs that excludes backend-managed fields
514
- * (version, config_type) from the API surface.
515
- *
516
- * Attributes: type: Config type discriminator (always "search").
517
- * desired_contact_count: Number of contacts to find per company. user_feedback:
518
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
519
- * notification.
520
- */
521
- export interface SearchTaskConfigResponse {
522
- /**
523
- * Number of contacts to find per company
524
- */
525
- desired_contact_count: number;
526
-
527
- /**
528
- * Feedback to refine search behavior
529
- */
530
- user_feedback: string;
531
-
532
- type?: 'search';
533
-
534
- /**
535
- * Webhook URL for completion notification
536
- */
537
- webhook_url?: string | null;
538
- }
539
-
540
- /**
541
- * Ingest task configuration in API responses.
542
- *
543
- * Response model for CSV enrichment task configs that excludes backend-managed
544
- * fields from the API surface.
545
- *
546
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
547
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
548
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
549
- */
550
- export interface IngestTaskConfigResponse {
551
- /**
552
- * Entity type in CSV
553
- */
554
- csv_entity_type: string;
555
-
556
- /**
557
- * ID of the CSV file
558
- */
559
- file_id: string;
560
-
561
- /**
562
- * Column containing entity names
563
- */
564
- primary_column: string;
565
-
566
- type?: 'ingest';
567
-
568
- /**
569
- * Webhook URL for completion notification
570
- */
571
- webhook_url?: string | null;
572
- }
573
-
574
- /**
575
- * Profile prompt configuration in API responses.
576
- *
577
- * Response model for profile prompt task configs that excludes backend-managed
578
- * fields from the API surface.
579
- *
580
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
581
- * prompt template. webhook_url: Webhook URL for completion notification.
582
- */
583
- export interface ProfilePromptConfigResponse {
584
- /**
585
- * Task prompt template
586
- */
587
- prompt: string;
588
-
589
- type?: 'profile';
590
-
591
- /**
592
- * Webhook URL for completion notification
593
- */
594
- webhook_url?: string | null;
595
- }
596
-
597
- /**
598
- * Signal topic configuration in API responses.
599
- *
600
- * Response model for topic-based signal monitoring configs.
601
- *
602
- * Attributes: type: Config type discriminator (always "signal-topic").
603
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
604
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
605
- * often to check for signals. geographic_filters: Geographic regions to focus on.
606
- * industry_filters: Industries to focus on. company_size_filters: Company size
607
- * criteria. webhook_url: Webhook URL for completion notification.
608
- */
609
- export interface SignalTopicConfigResponse {
610
- /**
611
- * Entity type
612
- */
613
- entity_type: SheetAPI.EntityType;
614
-
615
- /**
616
- * Monitoring frequency
617
- */
618
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
619
-
620
- /**
621
- * Signal types
622
- */
623
- signal_types: Array<TaskAPI.SignalTypeConfig>;
624
-
625
- /**
626
- * Topic criteria
627
- */
628
- topic_criteria: string;
629
-
630
- /**
631
- * Size filters
632
- */
633
- company_size_filters?: Array<string> | null;
634
-
635
- /**
636
- * Geographic filters
637
- */
638
- geographic_filters?: Array<string> | null;
639
-
640
- /**
641
- * Industry filters
642
- */
643
- industry_filters?: Array<string> | null;
644
-
645
- type?: 'signal-topic';
646
-
647
- /**
648
- * Webhook URL for completion notification
649
- */
650
- webhook_url?: string | null;
651
- }
652
-
653
- /**
654
- * Signal CSV configuration in API responses.
655
- *
656
- * Response model for CSV-based signal monitoring configs.
657
- *
658
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
659
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
660
- * being monitored. primary_column: Primary column for entity names.
661
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
662
- * for completion notification.
663
- */
664
- export interface SignalCsvConfigResponse {
665
- /**
666
- * Entity type
667
- */
668
- entity_type: SheetAPI.EntityType;
669
-
670
- /**
671
- * CSV file ID
672
- */
673
- file_id: string;
674
-
675
- /**
676
- * Monitoring frequency
677
- */
678
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
679
-
680
- /**
681
- * Primary column
682
- */
683
- primary_column: string;
684
-
685
- /**
686
- * Signal types
687
- */
688
- signal_types: Array<TaskAPI.SignalTypeConfig>;
689
-
690
- type?: 'signal-csv';
691
-
692
- /**
693
- * Webhook URL for completion notification
694
- */
695
- webhook_url?: string | null;
696
- }
697
-
698
- /**
699
- * Signal sheet configuration in API responses.
700
- *
701
- * Response model for sheet-based signal monitoring configs.
702
- *
703
- * Attributes: type: Config type discriminator (always "signal-sheet").
704
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
705
- * of signals to monitor. entity_type: Type of entity being monitored.
706
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
707
- * How often to check for signals. webhook_url: Webhook URL for completion
708
- * notification.
709
- */
710
- export interface SignalSheetConfigResponse {
711
- /**
712
- * Entity type
713
- */
714
- entity_type: SheetAPI.EntityType;
715
-
716
- /**
717
- * Monitoring frequency
718
- */
719
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
720
-
721
- /**
722
- * Signal types
723
- */
724
- signal_types: Array<TaskAPI.SignalTypeConfig>;
725
-
726
- /**
727
- * Source ICP ID
728
- */
729
- source_icp_id: string;
730
-
731
- /**
732
- * Entity filters
733
- */
734
- entity_filters?: { [key: string]: unknown } | null;
735
-
736
- type?: 'signal-sheet';
737
-
738
- /**
739
- * Webhook URL for completion notification
740
- */
741
- webhook_url?: string | null;
742
- }
743
- }
744
-
745
769
  /**
746
770
  * Response model for task data.
747
771
  *
@@ -804,251 +828,16 @@ export interface TaskRetrieveResponse {
804
828
  * Flow-specific task configuration
805
829
  */
806
830
  task_config?:
807
- | TaskRetrieveResponse.SearchTaskConfigResponse
808
- | TaskRetrieveResponse.IngestTaskConfigResponse
809
- | TaskRetrieveResponse.ProfilePromptConfigResponse
810
- | TaskRetrieveResponse.SignalTopicConfigResponse
811
- | TaskRetrieveResponse.SignalCsvConfigResponse
812
- | TaskRetrieveResponse.SignalSheetConfigResponse
831
+ | SearchTaskConfigResponse
832
+ | IngestTaskConfigResponse
833
+ | IngestPromptConfigResponse
834
+ | ProfilePromptConfigResponse
835
+ | SignalTopicConfigResponse
836
+ | SignalCsvConfigResponse
837
+ | SignalSheetConfigResponse
813
838
  | null;
814
839
  }
815
840
 
816
- export namespace TaskRetrieveResponse {
817
- /**
818
- * Search task configuration in API responses.
819
- *
820
- * Response model for search task configs that excludes backend-managed fields
821
- * (version, config_type) from the API surface.
822
- *
823
- * Attributes: type: Config type discriminator (always "search").
824
- * desired_contact_count: Number of contacts to find per company. user_feedback:
825
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
826
- * notification.
827
- */
828
- export interface SearchTaskConfigResponse {
829
- /**
830
- * Number of contacts to find per company
831
- */
832
- desired_contact_count: number;
833
-
834
- /**
835
- * Feedback to refine search behavior
836
- */
837
- user_feedback: string;
838
-
839
- type?: 'search';
840
-
841
- /**
842
- * Webhook URL for completion notification
843
- */
844
- webhook_url?: string | null;
845
- }
846
-
847
- /**
848
- * Ingest task configuration in API responses.
849
- *
850
- * Response model for CSV enrichment task configs that excludes backend-managed
851
- * fields from the API surface.
852
- *
853
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
854
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
855
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
856
- */
857
- export interface IngestTaskConfigResponse {
858
- /**
859
- * Entity type in CSV
860
- */
861
- csv_entity_type: string;
862
-
863
- /**
864
- * ID of the CSV file
865
- */
866
- file_id: string;
867
-
868
- /**
869
- * Column containing entity names
870
- */
871
- primary_column: string;
872
-
873
- type?: 'ingest';
874
-
875
- /**
876
- * Webhook URL for completion notification
877
- */
878
- webhook_url?: string | null;
879
- }
880
-
881
- /**
882
- * Profile prompt configuration in API responses.
883
- *
884
- * Response model for profile prompt task configs that excludes backend-managed
885
- * fields from the API surface.
886
- *
887
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
888
- * prompt template. webhook_url: Webhook URL for completion notification.
889
- */
890
- export interface ProfilePromptConfigResponse {
891
- /**
892
- * Task prompt template
893
- */
894
- prompt: string;
895
-
896
- type?: 'profile';
897
-
898
- /**
899
- * Webhook URL for completion notification
900
- */
901
- webhook_url?: string | null;
902
- }
903
-
904
- /**
905
- * Signal topic configuration in API responses.
906
- *
907
- * Response model for topic-based signal monitoring configs.
908
- *
909
- * Attributes: type: Config type discriminator (always "signal-topic").
910
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
911
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
912
- * often to check for signals. geographic_filters: Geographic regions to focus on.
913
- * industry_filters: Industries to focus on. company_size_filters: Company size
914
- * criteria. webhook_url: Webhook URL for completion notification.
915
- */
916
- export interface SignalTopicConfigResponse {
917
- /**
918
- * Entity type
919
- */
920
- entity_type: SheetAPI.EntityType;
921
-
922
- /**
923
- * Monitoring frequency
924
- */
925
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
926
-
927
- /**
928
- * Signal types
929
- */
930
- signal_types: Array<TaskAPI.SignalTypeConfig>;
931
-
932
- /**
933
- * Topic criteria
934
- */
935
- topic_criteria: string;
936
-
937
- /**
938
- * Size filters
939
- */
940
- company_size_filters?: Array<string> | null;
941
-
942
- /**
943
- * Geographic filters
944
- */
945
- geographic_filters?: Array<string> | null;
946
-
947
- /**
948
- * Industry filters
949
- */
950
- industry_filters?: Array<string> | null;
951
-
952
- type?: 'signal-topic';
953
-
954
- /**
955
- * Webhook URL for completion notification
956
- */
957
- webhook_url?: string | null;
958
- }
959
-
960
- /**
961
- * Signal CSV configuration in API responses.
962
- *
963
- * Response model for CSV-based signal monitoring configs.
964
- *
965
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
966
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
967
- * being monitored. primary_column: Primary column for entity names.
968
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
969
- * for completion notification.
970
- */
971
- export interface SignalCsvConfigResponse {
972
- /**
973
- * Entity type
974
- */
975
- entity_type: SheetAPI.EntityType;
976
-
977
- /**
978
- * CSV file ID
979
- */
980
- file_id: string;
981
-
982
- /**
983
- * Monitoring frequency
984
- */
985
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
986
-
987
- /**
988
- * Primary column
989
- */
990
- primary_column: string;
991
-
992
- /**
993
- * Signal types
994
- */
995
- signal_types: Array<TaskAPI.SignalTypeConfig>;
996
-
997
- type?: 'signal-csv';
998
-
999
- /**
1000
- * Webhook URL for completion notification
1001
- */
1002
- webhook_url?: string | null;
1003
- }
1004
-
1005
- /**
1006
- * Signal sheet configuration in API responses.
1007
- *
1008
- * Response model for sheet-based signal monitoring configs.
1009
- *
1010
- * Attributes: type: Config type discriminator (always "signal-sheet").
1011
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
1012
- * of signals to monitor. entity_type: Type of entity being monitored.
1013
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
1014
- * How often to check for signals. webhook_url: Webhook URL for completion
1015
- * notification.
1016
- */
1017
- export interface SignalSheetConfigResponse {
1018
- /**
1019
- * Entity type
1020
- */
1021
- entity_type: SheetAPI.EntityType;
1022
-
1023
- /**
1024
- * Monitoring frequency
1025
- */
1026
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1027
-
1028
- /**
1029
- * Signal types
1030
- */
1031
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1032
-
1033
- /**
1034
- * Source ICP ID
1035
- */
1036
- source_icp_id: string;
1037
-
1038
- /**
1039
- * Entity filters
1040
- */
1041
- entity_filters?: { [key: string]: unknown } | null;
1042
-
1043
- type?: 'signal-sheet';
1044
-
1045
- /**
1046
- * Webhook URL for completion notification
1047
- */
1048
- webhook_url?: string | null;
1049
- }
1050
- }
1051
-
1052
841
  /**
1053
842
  * Response model for paginated task list.
1054
843
  *
@@ -1140,250 +929,15 @@ export namespace TaskListResponse {
1140
929
  * Flow-specific task configuration
1141
930
  */
1142
931
  task_config?:
1143
- | Task.SearchTaskConfigResponse
1144
- | Task.IngestTaskConfigResponse
1145
- | Task.ProfilePromptConfigResponse
1146
- | Task.SignalTopicConfigResponse
1147
- | Task.SignalCsvConfigResponse
1148
- | Task.SignalSheetConfigResponse
932
+ | TaskAPI.SearchTaskConfigResponse
933
+ | TaskAPI.IngestTaskConfigResponse
934
+ | TaskAPI.IngestPromptConfigResponse
935
+ | TaskAPI.ProfilePromptConfigResponse
936
+ | TaskAPI.SignalTopicConfigResponse
937
+ | TaskAPI.SignalCsvConfigResponse
938
+ | TaskAPI.SignalSheetConfigResponse
1149
939
  | null;
1150
940
  }
1151
-
1152
- export namespace Task {
1153
- /**
1154
- * Search task configuration in API responses.
1155
- *
1156
- * Response model for search task configs that excludes backend-managed fields
1157
- * (version, config_type) from the API surface.
1158
- *
1159
- * Attributes: type: Config type discriminator (always "search").
1160
- * desired_contact_count: Number of contacts to find per company. user_feedback:
1161
- * Feedback to refine search behavior. webhook_url: Webhook URL for completion
1162
- * notification.
1163
- */
1164
- export interface SearchTaskConfigResponse {
1165
- /**
1166
- * Number of contacts to find per company
1167
- */
1168
- desired_contact_count: number;
1169
-
1170
- /**
1171
- * Feedback to refine search behavior
1172
- */
1173
- user_feedback: string;
1174
-
1175
- type?: 'search';
1176
-
1177
- /**
1178
- * Webhook URL for completion notification
1179
- */
1180
- webhook_url?: string | null;
1181
- }
1182
-
1183
- /**
1184
- * Ingest task configuration in API responses.
1185
- *
1186
- * Response model for CSV enrichment task configs that excludes backend-managed
1187
- * fields from the API surface.
1188
- *
1189
- * Attributes: type: Config type discriminator (always "ingest"). file_id: ID of
1190
- * the CSV file. primary_column: Column containing entity names. csv_entity_type:
1191
- * Entity type in CSV. webhook_url: Webhook URL for completion notification.
1192
- */
1193
- export interface IngestTaskConfigResponse {
1194
- /**
1195
- * Entity type in CSV
1196
- */
1197
- csv_entity_type: string;
1198
-
1199
- /**
1200
- * ID of the CSV file
1201
- */
1202
- file_id: string;
1203
-
1204
- /**
1205
- * Column containing entity names
1206
- */
1207
- primary_column: string;
1208
-
1209
- type?: 'ingest';
1210
-
1211
- /**
1212
- * Webhook URL for completion notification
1213
- */
1214
- webhook_url?: string | null;
1215
- }
1216
-
1217
- /**
1218
- * Profile prompt configuration in API responses.
1219
- *
1220
- * Response model for profile prompt task configs that excludes backend-managed
1221
- * fields from the API surface.
1222
- *
1223
- * Attributes: type: Config type discriminator (always "profile"). prompt: Task
1224
- * prompt template. webhook_url: Webhook URL for completion notification.
1225
- */
1226
- export interface ProfilePromptConfigResponse {
1227
- /**
1228
- * Task prompt template
1229
- */
1230
- prompt: string;
1231
-
1232
- type?: 'profile';
1233
-
1234
- /**
1235
- * Webhook URL for completion notification
1236
- */
1237
- webhook_url?: string | null;
1238
- }
1239
-
1240
- /**
1241
- * Signal topic configuration in API responses.
1242
- *
1243
- * Response model for topic-based signal monitoring configs.
1244
- *
1245
- * Attributes: type: Config type discriminator (always "signal-topic").
1246
- * topic_criteria: Topic criteria for monitoring. signal_types: Types of signals to
1247
- * monitor. entity_type: Type of entity being monitored. monitoring_frequency: How
1248
- * often to check for signals. geographic_filters: Geographic regions to focus on.
1249
- * industry_filters: Industries to focus on. company_size_filters: Company size
1250
- * criteria. webhook_url: Webhook URL for completion notification.
1251
- */
1252
- export interface SignalTopicConfigResponse {
1253
- /**
1254
- * Entity type
1255
- */
1256
- entity_type: SheetAPI.EntityType;
1257
-
1258
- /**
1259
- * Monitoring frequency
1260
- */
1261
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1262
-
1263
- /**
1264
- * Signal types
1265
- */
1266
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1267
-
1268
- /**
1269
- * Topic criteria
1270
- */
1271
- topic_criteria: string;
1272
-
1273
- /**
1274
- * Size filters
1275
- */
1276
- company_size_filters?: Array<string> | null;
1277
-
1278
- /**
1279
- * Geographic filters
1280
- */
1281
- geographic_filters?: Array<string> | null;
1282
-
1283
- /**
1284
- * Industry filters
1285
- */
1286
- industry_filters?: Array<string> | null;
1287
-
1288
- type?: 'signal-topic';
1289
-
1290
- /**
1291
- * Webhook URL for completion notification
1292
- */
1293
- webhook_url?: string | null;
1294
- }
1295
-
1296
- /**
1297
- * Signal CSV configuration in API responses.
1298
- *
1299
- * Response model for CSV-based signal monitoring configs.
1300
- *
1301
- * Attributes: type: Config type discriminator (always "signal-csv"). file_id: CSV
1302
- * file ID. signal_types: Types of signals to monitor. entity_type: Type of entity
1303
- * being monitored. primary_column: Primary column for entity names.
1304
- * monitoring_frequency: How often to check for signals. webhook_url: Webhook URL
1305
- * for completion notification.
1306
- */
1307
- export interface SignalCsvConfigResponse {
1308
- /**
1309
- * Entity type
1310
- */
1311
- entity_type: SheetAPI.EntityType;
1312
-
1313
- /**
1314
- * CSV file ID
1315
- */
1316
- file_id: string;
1317
-
1318
- /**
1319
- * Monitoring frequency
1320
- */
1321
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1322
-
1323
- /**
1324
- * Primary column
1325
- */
1326
- primary_column: string;
1327
-
1328
- /**
1329
- * Signal types
1330
- */
1331
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1332
-
1333
- type?: 'signal-csv';
1334
-
1335
- /**
1336
- * Webhook URL for completion notification
1337
- */
1338
- webhook_url?: string | null;
1339
- }
1340
-
1341
- /**
1342
- * Signal sheet configuration in API responses.
1343
- *
1344
- * Response model for sheet-based signal monitoring configs.
1345
- *
1346
- * Attributes: type: Config type discriminator (always "signal-sheet").
1347
- * source_icp_id: Source ICP ID containing entities to monitor. signal_types: Types
1348
- * of signals to monitor. entity_type: Type of entity being monitored.
1349
- * entity_filters: Optional MongoDB query to filter entities. monitoring_frequency:
1350
- * How often to check for signals. webhook_url: Webhook URL for completion
1351
- * notification.
1352
- */
1353
- export interface SignalSheetConfigResponse {
1354
- /**
1355
- * Entity type
1356
- */
1357
- entity_type: SheetAPI.EntityType;
1358
-
1359
- /**
1360
- * Monitoring frequency
1361
- */
1362
- monitoring_frequency: 'daily' | 'weekly' | 'monthly';
1363
-
1364
- /**
1365
- * Signal types
1366
- */
1367
- signal_types: Array<TaskAPI.SignalTypeConfig>;
1368
-
1369
- /**
1370
- * Source ICP ID
1371
- */
1372
- source_icp_id: string;
1373
-
1374
- /**
1375
- * Entity filters
1376
- */
1377
- entity_filters?: { [key: string]: unknown } | null;
1378
-
1379
- type?: 'signal-sheet';
1380
-
1381
- /**
1382
- * Webhook URL for completion notification
1383
- */
1384
- webhook_url?: string | null;
1385
- }
1386
- }
1387
941
  }
1388
942
 
1389
943
  /**
@@ -1533,12 +1087,19 @@ export interface TaskExecuteParams {
1533
1087
 
1534
1088
  export declare namespace Task {
1535
1089
  export {
1090
+ type IngestPromptConfigResponse as IngestPromptConfigResponse,
1536
1091
  type IngestTaskConfig as IngestTaskConfig,
1092
+ type IngestTaskConfigResponse as IngestTaskConfigResponse,
1537
1093
  type ProfilePromptConfig as ProfilePromptConfig,
1094
+ type ProfilePromptConfigResponse as ProfilePromptConfigResponse,
1538
1095
  type SearchTaskConfig as SearchTaskConfig,
1096
+ type SearchTaskConfigResponse as SearchTaskConfigResponse,
1539
1097
  type SignalCsvConfig as SignalCsvConfig,
1098
+ type SignalCsvConfigResponse as SignalCsvConfigResponse,
1540
1099
  type SignalSheetConfig as SignalSheetConfig,
1100
+ type SignalSheetConfigResponse as SignalSheetConfigResponse,
1541
1101
  type SignalTopicConfig as SignalTopicConfig,
1102
+ type SignalTopicConfigResponse as SignalTopicConfigResponse,
1542
1103
  type SignalTypeConfig as SignalTypeConfig,
1543
1104
  type TaskCreateResponse as TaskCreateResponse,
1544
1105
  type TaskRetrieveResponse as TaskRetrieveResponse,