@linkt/sdk 0.6.0 → 0.8.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 (105) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +0 -29
  3. package/client.d.mts +19 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +19 -1
  6. package/client.d.ts.map +1 -1
  7. package/client.js +33 -7
  8. package/client.js.map +1 -1
  9. package/client.mjs +33 -7
  10. package/client.mjs.map +1 -1
  11. package/internal/utils/query.d.mts +2 -0
  12. package/internal/utils/query.d.mts.map +1 -0
  13. package/internal/utils/query.d.ts +2 -0
  14. package/internal/utils/query.d.ts.map +1 -0
  15. package/internal/utils/query.js +10 -0
  16. package/internal/utils/query.js.map +1 -0
  17. package/internal/utils/query.mjs +6 -0
  18. package/internal/utils/query.mjs.map +1 -0
  19. package/internal/utils.d.mts +1 -0
  20. package/internal/utils.d.ts +1 -0
  21. package/internal/utils.js +1 -0
  22. package/internal/utils.js.map +1 -1
  23. package/internal/utils.mjs +1 -0
  24. package/package.json +7 -1
  25. package/resources/entity.d.mts +8 -3
  26. package/resources/entity.d.mts.map +1 -1
  27. package/resources/entity.d.ts +8 -3
  28. package/resources/entity.d.ts.map +1 -1
  29. package/resources/files.d.mts +4 -2
  30. package/resources/files.d.mts.map +1 -1
  31. package/resources/files.d.ts +4 -2
  32. package/resources/files.d.ts.map +1 -1
  33. package/resources/files.js +3 -0
  34. package/resources/files.js.map +1 -1
  35. package/resources/files.mjs +3 -0
  36. package/resources/files.mjs.map +1 -1
  37. package/resources/icp.d.mts +31 -0
  38. package/resources/icp.d.mts.map +1 -1
  39. package/resources/icp.d.ts +31 -0
  40. package/resources/icp.d.ts.map +1 -1
  41. package/resources/icp.js +3 -0
  42. package/resources/icp.js.map +1 -1
  43. package/resources/icp.mjs +3 -0
  44. package/resources/icp.mjs.map +1 -1
  45. package/resources/run.d.mts +3 -0
  46. package/resources/run.d.mts.map +1 -1
  47. package/resources/run.d.ts +3 -0
  48. package/resources/run.d.ts.map +1 -1
  49. package/resources/run.js +3 -0
  50. package/resources/run.js.map +1 -1
  51. package/resources/run.mjs +3 -0
  52. package/resources/run.mjs.map +1 -1
  53. package/resources/schedule.d.mts +1 -4
  54. package/resources/schedule.d.mts.map +1 -1
  55. package/resources/schedule.d.ts +1 -4
  56. package/resources/schedule.d.ts.map +1 -1
  57. package/resources/sheet/schema.d.mts +3 -0
  58. package/resources/sheet/schema.d.mts.map +1 -1
  59. package/resources/sheet/schema.d.ts +3 -0
  60. package/resources/sheet/schema.d.ts.map +1 -1
  61. package/resources/sheet/schema.js +3 -0
  62. package/resources/sheet/schema.js.map +1 -1
  63. package/resources/sheet/schema.mjs +3 -0
  64. package/resources/sheet/schema.mjs.map +1 -1
  65. package/resources/sheet/sheet.d.mts +3 -0
  66. package/resources/sheet/sheet.d.mts.map +1 -1
  67. package/resources/sheet/sheet.d.ts +3 -0
  68. package/resources/sheet/sheet.d.ts.map +1 -1
  69. package/resources/sheet/sheet.js +3 -0
  70. package/resources/sheet/sheet.js.map +1 -1
  71. package/resources/sheet/sheet.mjs +3 -0
  72. package/resources/sheet/sheet.mjs.map +1 -1
  73. package/resources/signal.d.mts +3 -0
  74. package/resources/signal.d.mts.map +1 -1
  75. package/resources/signal.d.ts +3 -0
  76. package/resources/signal.d.ts.map +1 -1
  77. package/resources/signal.js +3 -0
  78. package/resources/signal.js.map +1 -1
  79. package/resources/signal.mjs +3 -0
  80. package/resources/signal.mjs.map +1 -1
  81. package/resources/task.d.mts +241 -5
  82. package/resources/task.d.mts.map +1 -1
  83. package/resources/task.d.ts +241 -5
  84. package/resources/task.d.ts.map +1 -1
  85. package/resources/task.js +3 -0
  86. package/resources/task.js.map +1 -1
  87. package/resources/task.mjs +3 -0
  88. package/resources/task.mjs.map +1 -1
  89. package/src/client.ts +37 -10
  90. package/src/internal/utils/query.ts +7 -0
  91. package/src/internal/utils.ts +1 -0
  92. package/src/resources/entity.ts +9 -3
  93. package/src/resources/files.ts +4 -2
  94. package/src/resources/icp.ts +36 -0
  95. package/src/resources/run.ts +3 -0
  96. package/src/resources/schedule.ts +1 -4
  97. package/src/resources/sheet/schema.ts +3 -0
  98. package/src/resources/sheet/sheet.ts +3 -0
  99. package/src/resources/signal.ts +3 -0
  100. package/src/resources/task.ts +268 -0
  101. package/src/version.ts +1 -1
  102. package/version.d.mts +1 -1
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
  105. package/version.mjs +1 -1
@@ -8,6 +8,9 @@ import { buildHeaders } from '../internal/headers';
8
8
  import { RequestOptions } from '../internal/request-options';
9
9
  import { path } from '../internal/utils/path';
10
10
 
11
+ /**
12
+ * **Tasks** are reusable workflow templates that define HOW research is executed. Tasks reference Prefect flow deployments and can be configured with prompts and parameters. Create a task once, then execute it multiple times to generate runs. Each execution creates a new run that can be monitored independently.
13
+ */
11
14
  export class Task extends APIResource {
12
15
  /**
13
16
  * Create a new task template.
@@ -287,6 +290,11 @@ export interface ProfilePromptConfigResponse {
287
290
  * mongo_config = config.to_mongo_config() >>> mongo_config.version 'v3.0'
288
291
  */
289
292
  export interface SearchTaskConfig {
293
+ /**
294
+ * Known company name or URL for company lookup mode
295
+ */
296
+ company_input?: string | null;
297
+
290
298
  /**
291
299
  * Number of contacts to find per company (minimum: 1)
292
300
  */
@@ -330,6 +338,11 @@ export interface SearchTaskConfigResponse {
330
338
  */
331
339
  user_feedback: string;
332
340
 
341
+ /**
342
+ * Known company name or URL for company lookup mode
343
+ */
344
+ company_input?: string | null;
345
+
333
346
  type?: 'search';
334
347
 
335
348
  /**
@@ -758,6 +771,7 @@ export interface TaskCreateResponse {
758
771
  task_config?:
759
772
  | SearchTaskConfigResponse
760
773
  | IngestTaskConfigResponse
774
+ | TaskCreateResponse.OnDemandIngestTaskConfigResponse
761
775
  | IngestPromptConfigResponse
762
776
  | ProfilePromptConfigResponse
763
777
  | SignalTopicConfigResponse
@@ -766,6 +780,54 @@ export interface TaskCreateResponse {
766
780
  | null;
767
781
  }
768
782
 
783
+ export namespace TaskCreateResponse {
784
+ /**
785
+ * On-demand ingest task configuration in API responses.
786
+ *
787
+ * Response model for on-demand ingest task configs that excludes backend-managed
788
+ * fields from the API surface.
789
+ *
790
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
791
+ * ID of the CSV file. primary_column: Column containing entity names.
792
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
793
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
794
+ * schema. webhook_url: Webhook URL for completion notification.
795
+ */
796
+ export interface OnDemandIngestTaskConfigResponse {
797
+ /**
798
+ * Entity type in CSV
799
+ */
800
+ csv_entity_type: string;
801
+
802
+ /**
803
+ * ID of the CSV file
804
+ */
805
+ file_id: string;
806
+
807
+ /**
808
+ * Column containing entity names
809
+ */
810
+ primary_column: string;
811
+
812
+ /**
813
+ * Existing sheet fields allowed to be nullable
814
+ */
815
+ ignored_fields?: Array<string>;
816
+
817
+ /**
818
+ * New enrichment fields added to sheet schema
819
+ */
820
+ new_custom_fields?: Array<{ [key: string]: string }>;
821
+
822
+ type?: 'ingest-ondemand';
823
+
824
+ /**
825
+ * Webhook URL for completion notification
826
+ */
827
+ webhook_url?: string | null;
828
+ }
829
+ }
830
+
769
831
  /**
770
832
  * Response model for task data.
771
833
  *
@@ -830,6 +892,7 @@ export interface TaskRetrieveResponse {
830
892
  task_config?:
831
893
  | SearchTaskConfigResponse
832
894
  | IngestTaskConfigResponse
895
+ | TaskRetrieveResponse.OnDemandIngestTaskConfigResponse
833
896
  | IngestPromptConfigResponse
834
897
  | ProfilePromptConfigResponse
835
898
  | SignalTopicConfigResponse
@@ -838,6 +901,54 @@ export interface TaskRetrieveResponse {
838
901
  | null;
839
902
  }
840
903
 
904
+ export namespace TaskRetrieveResponse {
905
+ /**
906
+ * On-demand ingest task configuration in API responses.
907
+ *
908
+ * Response model for on-demand ingest task configs that excludes backend-managed
909
+ * fields from the API surface.
910
+ *
911
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
912
+ * ID of the CSV file. primary_column: Column containing entity names.
913
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
914
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
915
+ * schema. webhook_url: Webhook URL for completion notification.
916
+ */
917
+ export interface OnDemandIngestTaskConfigResponse {
918
+ /**
919
+ * Entity type in CSV
920
+ */
921
+ csv_entity_type: string;
922
+
923
+ /**
924
+ * ID of the CSV file
925
+ */
926
+ file_id: string;
927
+
928
+ /**
929
+ * Column containing entity names
930
+ */
931
+ primary_column: string;
932
+
933
+ /**
934
+ * Existing sheet fields allowed to be nullable
935
+ */
936
+ ignored_fields?: Array<string>;
937
+
938
+ /**
939
+ * New enrichment fields added to sheet schema
940
+ */
941
+ new_custom_fields?: Array<{ [key: string]: string }>;
942
+
943
+ type?: 'ingest-ondemand';
944
+
945
+ /**
946
+ * Webhook URL for completion notification
947
+ */
948
+ webhook_url?: string | null;
949
+ }
950
+ }
951
+
841
952
  /**
842
953
  * Response model for paginated task list.
843
954
  *
@@ -931,6 +1042,7 @@ export namespace TaskListResponse {
931
1042
  task_config?:
932
1043
  | TaskAPI.SearchTaskConfigResponse
933
1044
  | TaskAPI.IngestTaskConfigResponse
1045
+ | Task.OnDemandIngestTaskConfigResponse
934
1046
  | TaskAPI.IngestPromptConfigResponse
935
1047
  | TaskAPI.ProfilePromptConfigResponse
936
1048
  | TaskAPI.SignalTopicConfigResponse
@@ -938,6 +1050,54 @@ export namespace TaskListResponse {
938
1050
  | TaskAPI.SignalSheetConfigResponse
939
1051
  | null;
940
1052
  }
1053
+
1054
+ export namespace Task {
1055
+ /**
1056
+ * On-demand ingest task configuration in API responses.
1057
+ *
1058
+ * Response model for on-demand ingest task configs that excludes backend-managed
1059
+ * fields from the API surface.
1060
+ *
1061
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1062
+ * ID of the CSV file. primary_column: Column containing entity names.
1063
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
1064
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
1065
+ * schema. webhook_url: Webhook URL for completion notification.
1066
+ */
1067
+ export interface OnDemandIngestTaskConfigResponse {
1068
+ /**
1069
+ * Entity type in CSV
1070
+ */
1071
+ csv_entity_type: string;
1072
+
1073
+ /**
1074
+ * ID of the CSV file
1075
+ */
1076
+ file_id: string;
1077
+
1078
+ /**
1079
+ * Column containing entity names
1080
+ */
1081
+ primary_column: string;
1082
+
1083
+ /**
1084
+ * Existing sheet fields allowed to be nullable
1085
+ */
1086
+ ignored_fields?: Array<string>;
1087
+
1088
+ /**
1089
+ * New enrichment fields added to sheet schema
1090
+ */
1091
+ new_custom_fields?: Array<{ [key: string]: string }>;
1092
+
1093
+ type?: 'ingest-ondemand';
1094
+
1095
+ /**
1096
+ * Webhook URL for completion notification
1097
+ */
1098
+ webhook_url?: string | null;
1099
+ }
1100
+ }
941
1101
  }
942
1102
 
943
1103
  /**
@@ -1000,6 +1160,7 @@ export interface TaskCreateParams {
1000
1160
  task_config?:
1001
1161
  | SearchTaskConfig
1002
1162
  | IngestTaskConfig
1163
+ | TaskCreateParams.OnDemandIngestTaskConfigRequest
1003
1164
  | ProfilePromptConfig
1004
1165
  | SignalTopicConfig
1005
1166
  | SignalCsvConfig
@@ -1007,6 +1168,59 @@ export interface TaskCreateParams {
1007
1168
  | null;
1008
1169
  }
1009
1170
 
1171
+ export namespace TaskCreateParams {
1172
+ /**
1173
+ * On-demand ingest task configuration for adding entities to existing ICPs.
1174
+ *
1175
+ * Creates a task that ingests additional entities from a CSV file into an existing
1176
+ * ICP. Supports declaring which existing sheet fields can be nullable for the new
1177
+ * entities and adding new enrichment fields to the sheet schema.
1178
+ *
1179
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1180
+ * ID of the uploaded CSV file to process. primary_column: Column containing entity
1181
+ * names for matching. csv_entity_type: Entity type in the CSV (e.g., 'person',
1182
+ * 'company'). ignored_fields: Existing sheet fields allowed to be nullable for new
1183
+ * entities. new_custom_fields: New enrichment fields to add to the sheet schema.
1184
+ * webhook_url: Optional webhook URL for completion notification.
1185
+ */
1186
+ export interface OnDemandIngestTaskConfigRequest {
1187
+ /**
1188
+ * Entity type in the CSV (e.g., 'person', 'company')
1189
+ */
1190
+ csv_entity_type: string;
1191
+
1192
+ /**
1193
+ * ID of the uploaded CSV file to process
1194
+ */
1195
+ file_id: string;
1196
+
1197
+ /**
1198
+ * Column containing entity names for matching
1199
+ */
1200
+ primary_column: string;
1201
+
1202
+ /**
1203
+ * Existing sheet fields allowed to be nullable for new entities
1204
+ */
1205
+ ignored_fields?: Array<string>;
1206
+
1207
+ /**
1208
+ * New enrichment fields to add to sheet schema ({name, description})
1209
+ */
1210
+ new_custom_fields?: Array<{ [key: string]: string }>;
1211
+
1212
+ /**
1213
+ * Config type discriminator
1214
+ */
1215
+ type?: 'ingest-ondemand';
1216
+
1217
+ /**
1218
+ * Optional webhook URL to notify when workflow completes
1219
+ */
1220
+ webhook_url?: string | null;
1221
+ }
1222
+ }
1223
+
1010
1224
  export interface TaskUpdateParams {
1011
1225
  /**
1012
1226
  * Updated deployment name
@@ -1039,6 +1253,7 @@ export interface TaskUpdateParams {
1039
1253
  task_config?:
1040
1254
  | SearchTaskConfig
1041
1255
  | IngestTaskConfig
1256
+ | TaskUpdateParams.OnDemandIngestTaskConfigRequest
1042
1257
  | ProfilePromptConfig
1043
1258
  | SignalTopicConfig
1044
1259
  | SignalCsvConfig
@@ -1046,6 +1261,59 @@ export interface TaskUpdateParams {
1046
1261
  | null;
1047
1262
  }
1048
1263
 
1264
+ export namespace TaskUpdateParams {
1265
+ /**
1266
+ * On-demand ingest task configuration for adding entities to existing ICPs.
1267
+ *
1268
+ * Creates a task that ingests additional entities from a CSV file into an existing
1269
+ * ICP. Supports declaring which existing sheet fields can be nullable for the new
1270
+ * entities and adding new enrichment fields to the sheet schema.
1271
+ *
1272
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1273
+ * ID of the uploaded CSV file to process. primary_column: Column containing entity
1274
+ * names for matching. csv_entity_type: Entity type in the CSV (e.g., 'person',
1275
+ * 'company'). ignored_fields: Existing sheet fields allowed to be nullable for new
1276
+ * entities. new_custom_fields: New enrichment fields to add to the sheet schema.
1277
+ * webhook_url: Optional webhook URL for completion notification.
1278
+ */
1279
+ export interface OnDemandIngestTaskConfigRequest {
1280
+ /**
1281
+ * Entity type in the CSV (e.g., 'person', 'company')
1282
+ */
1283
+ csv_entity_type: string;
1284
+
1285
+ /**
1286
+ * ID of the uploaded CSV file to process
1287
+ */
1288
+ file_id: string;
1289
+
1290
+ /**
1291
+ * Column containing entity names for matching
1292
+ */
1293
+ primary_column: string;
1294
+
1295
+ /**
1296
+ * Existing sheet fields allowed to be nullable for new entities
1297
+ */
1298
+ ignored_fields?: Array<string>;
1299
+
1300
+ /**
1301
+ * New enrichment fields to add to sheet schema ({name, description})
1302
+ */
1303
+ new_custom_fields?: Array<{ [key: string]: string }>;
1304
+
1305
+ /**
1306
+ * Config type discriminator
1307
+ */
1308
+ type?: 'ingest-ondemand';
1309
+
1310
+ /**
1311
+ * Optional webhook URL to notify when workflow completes
1312
+ */
1313
+ webhook_url?: string | null;
1314
+ }
1315
+ }
1316
+
1049
1317
  export interface TaskListParams {
1050
1318
  /**
1051
1319
  * Filter by flow name
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.6.0'; // x-release-please-version
1
+ export const VERSION = '0.8.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.6.0";
1
+ export declare const VERSION = "0.8.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.6.0";
1
+ export declare const VERSION = "0.8.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.6.0'; // x-release-please-version
4
+ exports.VERSION = '0.8.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.6.0'; // x-release-please-version
1
+ export const VERSION = '0.8.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map