@linkt/sdk 0.5.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.
- package/CHANGELOG.md +53 -0
- package/README.md +0 -29
- package/client.d.mts +23 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -1
- package/client.d.ts.map +1 -1
- package/client.js +38 -4
- package/client.js.map +1 -1
- package/client.mjs +38 -4
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/entity.d.mts +34 -19
- package/resources/entity.d.mts.map +1 -1
- package/resources/entity.d.ts +34 -19
- package/resources/entity.d.ts.map +1 -1
- package/resources/entity.js +15 -8
- package/resources/entity.js.map +1 -1
- package/resources/entity.mjs +15 -8
- package/resources/entity.mjs.map +1 -1
- package/resources/files.d.mts +4 -2
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +4 -2
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -0
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -0
- package/resources/files.mjs.map +1 -1
- package/resources/icp.d.mts +31 -0
- package/resources/icp.d.mts.map +1 -1
- package/resources/icp.d.ts +31 -0
- package/resources/icp.d.ts.map +1 -1
- package/resources/icp.js +3 -0
- package/resources/icp.js.map +1 -1
- package/resources/icp.mjs +3 -0
- package/resources/icp.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/run.d.mts +3 -0
- package/resources/run.d.mts.map +1 -1
- package/resources/run.d.ts +3 -0
- package/resources/run.d.ts.map +1 -1
- package/resources/run.js +3 -0
- package/resources/run.js.map +1 -1
- package/resources/run.mjs +3 -0
- package/resources/run.mjs.map +1 -1
- package/resources/schedule.d.mts +305 -0
- package/resources/schedule.d.mts.map +1 -0
- package/resources/schedule.d.ts +305 -0
- package/resources/schedule.d.ts.map +1 -0
- package/resources/schedule.js +84 -0
- package/resources/schedule.js.map +1 -0
- package/resources/schedule.mjs +80 -0
- package/resources/schedule.mjs.map +1 -0
- package/resources/sheet/schema.d.mts +3 -0
- package/resources/sheet/schema.d.mts.map +1 -1
- package/resources/sheet/schema.d.ts +3 -0
- package/resources/sheet/schema.d.ts.map +1 -1
- package/resources/sheet/schema.js +3 -0
- package/resources/sheet/schema.js.map +1 -1
- package/resources/sheet/schema.mjs +3 -0
- package/resources/sheet/schema.mjs.map +1 -1
- package/resources/sheet/sheet.d.mts +3 -0
- package/resources/sheet/sheet.d.mts.map +1 -1
- package/resources/sheet/sheet.d.ts +3 -0
- package/resources/sheet/sheet.d.ts.map +1 -1
- package/resources/sheet/sheet.js +3 -0
- package/resources/sheet/sheet.js.map +1 -1
- package/resources/sheet/sheet.mjs +3 -0
- package/resources/sheet/sheet.mjs.map +1 -1
- package/resources/signal.d.mts +4 -0
- package/resources/signal.d.mts.map +1 -1
- package/resources/signal.d.ts +4 -0
- package/resources/signal.d.ts.map +1 -1
- package/resources/signal.js +3 -0
- package/resources/signal.js.map +1 -1
- package/resources/signal.mjs +3 -0
- package/resources/signal.mjs.map +1 -1
- package/resources/task.d.mts +233 -5
- package/resources/task.d.mts.map +1 -1
- package/resources/task.d.ts +233 -5
- package/resources/task.d.ts.map +1 -1
- package/resources/task.js +3 -0
- package/resources/task.js.map +1 -1
- package/resources/task.mjs +3 -0
- package/resources/task.mjs.map +1 -1
- package/src/client.ts +63 -7
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/entity.ts +36 -19
- package/src/resources/files.ts +4 -2
- package/src/resources/icp.ts +36 -0
- package/src/resources/index.ts +10 -0
- package/src/resources/run.ts +3 -0
- package/src/resources/schedule.ts +375 -0
- package/src/resources/sheet/schema.ts +3 -0
- package/src/resources/sheet/sheet.ts +3 -0
- package/src/resources/signal.ts +5 -0
- package/src/resources/task.ts +258 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/task.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|