@linkt/sdk 0.6.0 → 0.7.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 (103) hide show
  1. package/CHANGELOG.md +30 -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 +27 -2
  8. package/client.js.map +1 -1
  9. package/client.mjs +27 -2
  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 +1 -1
  25. package/resources/entity.d.mts +3 -3
  26. package/resources/entity.d.ts +3 -3
  27. package/resources/files.d.mts +4 -2
  28. package/resources/files.d.mts.map +1 -1
  29. package/resources/files.d.ts +4 -2
  30. package/resources/files.d.ts.map +1 -1
  31. package/resources/files.js +3 -0
  32. package/resources/files.js.map +1 -1
  33. package/resources/files.mjs +3 -0
  34. package/resources/files.mjs.map +1 -1
  35. package/resources/icp.d.mts +31 -0
  36. package/resources/icp.d.mts.map +1 -1
  37. package/resources/icp.d.ts +31 -0
  38. package/resources/icp.d.ts.map +1 -1
  39. package/resources/icp.js +3 -0
  40. package/resources/icp.js.map +1 -1
  41. package/resources/icp.mjs +3 -0
  42. package/resources/icp.mjs.map +1 -1
  43. package/resources/run.d.mts +3 -0
  44. package/resources/run.d.mts.map +1 -1
  45. package/resources/run.d.ts +3 -0
  46. package/resources/run.d.ts.map +1 -1
  47. package/resources/run.js +3 -0
  48. package/resources/run.js.map +1 -1
  49. package/resources/run.mjs +3 -0
  50. package/resources/run.mjs.map +1 -1
  51. package/resources/schedule.d.mts +1 -4
  52. package/resources/schedule.d.mts.map +1 -1
  53. package/resources/schedule.d.ts +1 -4
  54. package/resources/schedule.d.ts.map +1 -1
  55. package/resources/sheet/schema.d.mts +3 -0
  56. package/resources/sheet/schema.d.mts.map +1 -1
  57. package/resources/sheet/schema.d.ts +3 -0
  58. package/resources/sheet/schema.d.ts.map +1 -1
  59. package/resources/sheet/schema.js +3 -0
  60. package/resources/sheet/schema.js.map +1 -1
  61. package/resources/sheet/schema.mjs +3 -0
  62. package/resources/sheet/schema.mjs.map +1 -1
  63. package/resources/sheet/sheet.d.mts +3 -0
  64. package/resources/sheet/sheet.d.mts.map +1 -1
  65. package/resources/sheet/sheet.d.ts +3 -0
  66. package/resources/sheet/sheet.d.ts.map +1 -1
  67. package/resources/sheet/sheet.js +3 -0
  68. package/resources/sheet/sheet.js.map +1 -1
  69. package/resources/sheet/sheet.mjs +3 -0
  70. package/resources/sheet/sheet.mjs.map +1 -1
  71. package/resources/signal.d.mts +3 -0
  72. package/resources/signal.d.mts.map +1 -1
  73. package/resources/signal.d.ts +3 -0
  74. package/resources/signal.d.ts.map +1 -1
  75. package/resources/signal.js +3 -0
  76. package/resources/signal.js.map +1 -1
  77. package/resources/signal.mjs +3 -0
  78. package/resources/signal.mjs.map +1 -1
  79. package/resources/task.d.mts +233 -5
  80. package/resources/task.d.mts.map +1 -1
  81. package/resources/task.d.ts +233 -5
  82. package/resources/task.d.ts.map +1 -1
  83. package/resources/task.js +3 -0
  84. package/resources/task.js.map +1 -1
  85. package/resources/task.mjs +3 -0
  86. package/resources/task.mjs.map +1 -1
  87. package/src/client.ts +31 -5
  88. package/src/internal/utils/query.ts +7 -0
  89. package/src/internal/utils.ts +1 -0
  90. package/src/resources/entity.ts +3 -3
  91. package/src/resources/files.ts +4 -2
  92. package/src/resources/icp.ts +36 -0
  93. package/src/resources/run.ts +3 -0
  94. package/src/resources/schedule.ts +1 -4
  95. package/src/resources/sheet/schema.ts +3 -0
  96. package/src/resources/sheet/sheet.ts +3 -0
  97. package/src/resources/signal.ts +3 -0
  98. package/src/resources/task.ts +258 -0
  99. package/src/version.ts +1 -1
  100. package/version.d.mts +1 -1
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
  103. 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.
@@ -758,6 +761,7 @@ export interface TaskCreateResponse {
758
761
  task_config?:
759
762
  | SearchTaskConfigResponse
760
763
  | IngestTaskConfigResponse
764
+ | TaskCreateResponse.OnDemandIngestTaskConfigResponse
761
765
  | IngestPromptConfigResponse
762
766
  | ProfilePromptConfigResponse
763
767
  | SignalTopicConfigResponse
@@ -766,6 +770,54 @@ export interface TaskCreateResponse {
766
770
  | null;
767
771
  }
768
772
 
773
+ export namespace TaskCreateResponse {
774
+ /**
775
+ * On-demand ingest task configuration in API responses.
776
+ *
777
+ * Response model for on-demand ingest task configs that excludes backend-managed
778
+ * fields from the API surface.
779
+ *
780
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
781
+ * ID of the CSV file. primary_column: Column containing entity names.
782
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
783
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
784
+ * schema. webhook_url: Webhook URL for completion notification.
785
+ */
786
+ export interface OnDemandIngestTaskConfigResponse {
787
+ /**
788
+ * Entity type in CSV
789
+ */
790
+ csv_entity_type: string;
791
+
792
+ /**
793
+ * ID of the CSV file
794
+ */
795
+ file_id: string;
796
+
797
+ /**
798
+ * Column containing entity names
799
+ */
800
+ primary_column: string;
801
+
802
+ /**
803
+ * Existing sheet fields allowed to be nullable
804
+ */
805
+ ignored_fields?: Array<string>;
806
+
807
+ /**
808
+ * New enrichment fields added to sheet schema
809
+ */
810
+ new_custom_fields?: Array<{ [key: string]: string }>;
811
+
812
+ type?: 'ingest-ondemand';
813
+
814
+ /**
815
+ * Webhook URL for completion notification
816
+ */
817
+ webhook_url?: string | null;
818
+ }
819
+ }
820
+
769
821
  /**
770
822
  * Response model for task data.
771
823
  *
@@ -830,6 +882,7 @@ export interface TaskRetrieveResponse {
830
882
  task_config?:
831
883
  | SearchTaskConfigResponse
832
884
  | IngestTaskConfigResponse
885
+ | TaskRetrieveResponse.OnDemandIngestTaskConfigResponse
833
886
  | IngestPromptConfigResponse
834
887
  | ProfilePromptConfigResponse
835
888
  | SignalTopicConfigResponse
@@ -838,6 +891,54 @@ export interface TaskRetrieveResponse {
838
891
  | null;
839
892
  }
840
893
 
894
+ export namespace TaskRetrieveResponse {
895
+ /**
896
+ * On-demand ingest task configuration in API responses.
897
+ *
898
+ * Response model for on-demand ingest task configs that excludes backend-managed
899
+ * fields from the API surface.
900
+ *
901
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
902
+ * ID of the CSV file. primary_column: Column containing entity names.
903
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
904
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
905
+ * schema. webhook_url: Webhook URL for completion notification.
906
+ */
907
+ export interface OnDemandIngestTaskConfigResponse {
908
+ /**
909
+ * Entity type in CSV
910
+ */
911
+ csv_entity_type: string;
912
+
913
+ /**
914
+ * ID of the CSV file
915
+ */
916
+ file_id: string;
917
+
918
+ /**
919
+ * Column containing entity names
920
+ */
921
+ primary_column: string;
922
+
923
+ /**
924
+ * Existing sheet fields allowed to be nullable
925
+ */
926
+ ignored_fields?: Array<string>;
927
+
928
+ /**
929
+ * New enrichment fields added to sheet schema
930
+ */
931
+ new_custom_fields?: Array<{ [key: string]: string }>;
932
+
933
+ type?: 'ingest-ondemand';
934
+
935
+ /**
936
+ * Webhook URL for completion notification
937
+ */
938
+ webhook_url?: string | null;
939
+ }
940
+ }
941
+
841
942
  /**
842
943
  * Response model for paginated task list.
843
944
  *
@@ -931,6 +1032,7 @@ export namespace TaskListResponse {
931
1032
  task_config?:
932
1033
  | TaskAPI.SearchTaskConfigResponse
933
1034
  | TaskAPI.IngestTaskConfigResponse
1035
+ | Task.OnDemandIngestTaskConfigResponse
934
1036
  | TaskAPI.IngestPromptConfigResponse
935
1037
  | TaskAPI.ProfilePromptConfigResponse
936
1038
  | TaskAPI.SignalTopicConfigResponse
@@ -938,6 +1040,54 @@ export namespace TaskListResponse {
938
1040
  | TaskAPI.SignalSheetConfigResponse
939
1041
  | null;
940
1042
  }
1043
+
1044
+ export namespace Task {
1045
+ /**
1046
+ * On-demand ingest task configuration in API responses.
1047
+ *
1048
+ * Response model for on-demand ingest task configs that excludes backend-managed
1049
+ * fields from the API surface.
1050
+ *
1051
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1052
+ * ID of the CSV file. primary_column: Column containing entity names.
1053
+ * csv_entity_type: Entity type in CSV. ignored_fields: Existing sheet fields
1054
+ * allowed to be nullable. new_custom_fields: New enrichment fields added to sheet
1055
+ * schema. webhook_url: Webhook URL for completion notification.
1056
+ */
1057
+ export interface OnDemandIngestTaskConfigResponse {
1058
+ /**
1059
+ * Entity type in CSV
1060
+ */
1061
+ csv_entity_type: string;
1062
+
1063
+ /**
1064
+ * ID of the CSV file
1065
+ */
1066
+ file_id: string;
1067
+
1068
+ /**
1069
+ * Column containing entity names
1070
+ */
1071
+ primary_column: string;
1072
+
1073
+ /**
1074
+ * Existing sheet fields allowed to be nullable
1075
+ */
1076
+ ignored_fields?: Array<string>;
1077
+
1078
+ /**
1079
+ * New enrichment fields added to sheet schema
1080
+ */
1081
+ new_custom_fields?: Array<{ [key: string]: string }>;
1082
+
1083
+ type?: 'ingest-ondemand';
1084
+
1085
+ /**
1086
+ * Webhook URL for completion notification
1087
+ */
1088
+ webhook_url?: string | null;
1089
+ }
1090
+ }
941
1091
  }
942
1092
 
943
1093
  /**
@@ -1000,6 +1150,7 @@ export interface TaskCreateParams {
1000
1150
  task_config?:
1001
1151
  | SearchTaskConfig
1002
1152
  | IngestTaskConfig
1153
+ | TaskCreateParams.OnDemandIngestTaskConfigRequest
1003
1154
  | ProfilePromptConfig
1004
1155
  | SignalTopicConfig
1005
1156
  | SignalCsvConfig
@@ -1007,6 +1158,59 @@ export interface TaskCreateParams {
1007
1158
  | null;
1008
1159
  }
1009
1160
 
1161
+ export namespace TaskCreateParams {
1162
+ /**
1163
+ * On-demand ingest task configuration for adding entities to existing ICPs.
1164
+ *
1165
+ * Creates a task that ingests additional entities from a CSV file into an existing
1166
+ * ICP. Supports declaring which existing sheet fields can be nullable for the new
1167
+ * entities and adding new enrichment fields to the sheet schema.
1168
+ *
1169
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1170
+ * ID of the uploaded CSV file to process. primary_column: Column containing entity
1171
+ * names for matching. csv_entity_type: Entity type in the CSV (e.g., 'person',
1172
+ * 'company'). ignored_fields: Existing sheet fields allowed to be nullable for new
1173
+ * entities. new_custom_fields: New enrichment fields to add to the sheet schema.
1174
+ * webhook_url: Optional webhook URL for completion notification.
1175
+ */
1176
+ export interface OnDemandIngestTaskConfigRequest {
1177
+ /**
1178
+ * Entity type in the CSV (e.g., 'person', 'company')
1179
+ */
1180
+ csv_entity_type: string;
1181
+
1182
+ /**
1183
+ * ID of the uploaded CSV file to process
1184
+ */
1185
+ file_id: string;
1186
+
1187
+ /**
1188
+ * Column containing entity names for matching
1189
+ */
1190
+ primary_column: string;
1191
+
1192
+ /**
1193
+ * Existing sheet fields allowed to be nullable for new entities
1194
+ */
1195
+ ignored_fields?: Array<string>;
1196
+
1197
+ /**
1198
+ * New enrichment fields to add to sheet schema ({name, description})
1199
+ */
1200
+ new_custom_fields?: Array<{ [key: string]: string }>;
1201
+
1202
+ /**
1203
+ * Config type discriminator
1204
+ */
1205
+ type?: 'ingest-ondemand';
1206
+
1207
+ /**
1208
+ * Optional webhook URL to notify when workflow completes
1209
+ */
1210
+ webhook_url?: string | null;
1211
+ }
1212
+ }
1213
+
1010
1214
  export interface TaskUpdateParams {
1011
1215
  /**
1012
1216
  * Updated deployment name
@@ -1039,6 +1243,7 @@ export interface TaskUpdateParams {
1039
1243
  task_config?:
1040
1244
  | SearchTaskConfig
1041
1245
  | IngestTaskConfig
1246
+ | TaskUpdateParams.OnDemandIngestTaskConfigRequest
1042
1247
  | ProfilePromptConfig
1043
1248
  | SignalTopicConfig
1044
1249
  | SignalCsvConfig
@@ -1046,6 +1251,59 @@ export interface TaskUpdateParams {
1046
1251
  | null;
1047
1252
  }
1048
1253
 
1254
+ export namespace TaskUpdateParams {
1255
+ /**
1256
+ * On-demand ingest task configuration for adding entities to existing ICPs.
1257
+ *
1258
+ * Creates a task that ingests additional entities from a CSV file into an existing
1259
+ * ICP. Supports declaring which existing sheet fields can be nullable for the new
1260
+ * entities and adding new enrichment fields to the sheet schema.
1261
+ *
1262
+ * Attributes: type: Config type discriminator (always "ingest-ondemand"). file_id:
1263
+ * ID of the uploaded CSV file to process. primary_column: Column containing entity
1264
+ * names for matching. csv_entity_type: Entity type in the CSV (e.g., 'person',
1265
+ * 'company'). ignored_fields: Existing sheet fields allowed to be nullable for new
1266
+ * entities. new_custom_fields: New enrichment fields to add to the sheet schema.
1267
+ * webhook_url: Optional webhook URL for completion notification.
1268
+ */
1269
+ export interface OnDemandIngestTaskConfigRequest {
1270
+ /**
1271
+ * Entity type in the CSV (e.g., 'person', 'company')
1272
+ */
1273
+ csv_entity_type: string;
1274
+
1275
+ /**
1276
+ * ID of the uploaded CSV file to process
1277
+ */
1278
+ file_id: string;
1279
+
1280
+ /**
1281
+ * Column containing entity names for matching
1282
+ */
1283
+ primary_column: string;
1284
+
1285
+ /**
1286
+ * Existing sheet fields allowed to be nullable for new entities
1287
+ */
1288
+ ignored_fields?: Array<string>;
1289
+
1290
+ /**
1291
+ * New enrichment fields to add to sheet schema ({name, description})
1292
+ */
1293
+ new_custom_fields?: Array<{ [key: string]: string }>;
1294
+
1295
+ /**
1296
+ * Config type discriminator
1297
+ */
1298
+ type?: 'ingest-ondemand';
1299
+
1300
+ /**
1301
+ * Optional webhook URL to notify when workflow completes
1302
+ */
1303
+ webhook_url?: string | null;
1304
+ }
1305
+ }
1306
+
1049
1307
  export interface TaskListParams {
1050
1308
  /**
1051
1309
  * 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.7.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.7.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.7.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.7.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.7.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map