@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
@@ -1,5 +1,20 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Entity,
5
+ type EntityResponse,
6
+ type EntityListResponse,
7
+ type EntityBulkUpdateStatusResponse,
8
+ type EntityExportResponse,
9
+ type EntityGetCountsResponse,
10
+ type EntitySearchResponse,
11
+ type EntityUpdateParams,
12
+ type EntityListParams,
13
+ type EntityBulkUpdateStatusParams,
14
+ type EntityExportParams,
15
+ type EntityGetCountsParams,
16
+ type EntitySearchParams,
17
+ } from './entity';
3
18
  export {
4
19
  Files,
5
20
  type CsvProcessingStatus,
@@ -34,23 +49,26 @@ export {
34
49
  type EntityType,
35
50
  type Sheet,
36
51
  type SheetListResponse,
37
- type SheetExportCsvResponse,
38
- type SheetGetEntitiesResponse,
39
52
  type SheetCreateParams,
40
53
  type SheetUpdateParams,
41
54
  type SheetListParams,
42
- type SheetExportCsvParams,
43
- type SheetGetEntitiesParams,
44
55
  } from './sheet/sheet';
45
56
  export { Signal, type SignalResponse, type SignalListResponse, type SignalListParams } from './signal';
46
57
  export {
47
58
  Task,
59
+ type IngestPromptConfigResponse,
48
60
  type IngestTaskConfig,
61
+ type IngestTaskConfigResponse,
49
62
  type ProfilePromptConfig,
63
+ type ProfilePromptConfigResponse,
50
64
  type SearchTaskConfig,
65
+ type SearchTaskConfigResponse,
51
66
  type SignalCsvConfig,
67
+ type SignalCsvConfigResponse,
52
68
  type SignalSheetConfig,
69
+ type SignalSheetConfigResponse,
53
70
  type SignalTopicConfig,
71
+ type SignalTopicConfigResponse,
54
72
  type SignalTypeConfig,
55
73
  type TaskCreateResponse,
56
74
  type TaskRetrieveResponse,
@@ -1,12 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- Entity,
5
- type EntityRetrieveResponse,
6
- type EntityRetrieveParams,
7
- type EntityUpdateCommentsParams,
8
- type EntityUpdateStatusParams,
9
- } from './entity';
10
3
  export {
11
4
  Schema,
12
5
  type SchemaGetResponse,
@@ -20,11 +13,7 @@ export {
20
13
  type EntityType,
21
14
  type Sheet,
22
15
  type SheetListResponse,
23
- type SheetExportCsvResponse,
24
- type SheetGetEntitiesResponse,
25
16
  type SheetCreateParams,
26
17
  type SheetUpdateParams,
27
18
  type SheetListParams,
28
- type SheetExportCsvParams,
29
- type SheetGetEntitiesParams,
30
19
  } from './sheet';
@@ -1,14 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
- import * as EntityAPI from './entity';
5
- import {
6
- Entity,
7
- EntityRetrieveParams,
8
- EntityRetrieveResponse,
9
- EntityUpdateCommentsParams,
10
- EntityUpdateStatusParams,
11
- } from './entity';
12
4
  import * as SchemaAPI from './schema';
13
5
  import {
14
6
  Schema,
@@ -24,7 +16,6 @@ import { RequestOptions } from '../../internal/request-options';
24
16
  import { path } from '../../internal/utils/path';
25
17
 
26
18
  export class SheetResource extends APIResource {
27
- entity: EntityAPI.Entity = new EntityAPI.Entity(this._client);
28
19
  schema: SchemaAPI.Schema = new SchemaAPI.Schema(this._client);
29
20
 
30
21
  /**
@@ -83,34 +74,6 @@ export class SheetResource extends APIResource {
83
74
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
84
75
  });
85
76
  }
86
-
87
- /**
88
- * Export sheet entities as a CSV file.
89
- *
90
- * Exports entities with proper field formatting based on the sheet's schema. Pass
91
- * specific entity_ids to export a subset, or omit to export all entities.
92
- */
93
- exportCsv(
94
- sheetID: string,
95
- query: SheetExportCsvParams | null | undefined = {},
96
- options?: RequestOptions,
97
- ): APIPromise<unknown> {
98
- return this._client.get(path`/v1/sheet/${sheetID}/export-csv`, { query, ...options });
99
- }
100
-
101
- /**
102
- * List all entities in a sheet.
103
- *
104
- * Supports text search across name/company fields and comprehensive filtering by
105
- * status, comments, and date ranges.
106
- */
107
- getEntities(
108
- sheetID: string,
109
- query: SheetGetEntitiesParams | null | undefined = {},
110
- options?: RequestOptions,
111
- ): APIPromise<SheetGetEntitiesResponse> {
112
- return this._client.get(path`/v1/sheet/${sheetID}/entities`, { query, ...options });
113
- }
114
77
  }
115
78
 
116
79
  /**
@@ -152,28 +115,6 @@ export interface SheetListResponse {
152
115
  total: number;
153
116
  }
154
117
 
155
- export type SheetExportCsvResponse = unknown;
156
-
157
- /**
158
- * Response schema for paginated list of sheet entities.
159
- *
160
- * Uses EntityForHTTP which automatically excludes embedding data for efficient API
161
- * responses.
162
- *
163
- * Attributes: entities: List of EntityForHTTP objects for the current page total:
164
- * Total number of entities matching the filter criteria page: Current page number
165
- * (1-based) page_size: Number of items per page
166
- */
167
- export interface SheetGetEntitiesResponse {
168
- entities: Array<{ [key: string]: unknown }>;
169
-
170
- page: number;
171
-
172
- page_size: number;
173
-
174
- total: number;
175
- }
176
-
177
118
  export interface SheetCreateParams {
178
119
  description: string;
179
120
 
@@ -218,71 +159,6 @@ export interface SheetListParams {
218
159
  sort_by?: string | null;
219
160
  }
220
161
 
221
- export interface SheetExportCsvParams {
222
- /**
223
- * Optional list of entity IDs to export. If not provided, exports all entities.
224
- */
225
- entity_ids?: Array<string> | null;
226
- }
227
-
228
- export interface SheetGetEntitiesParams {
229
- /**
230
- * Filter entities created after this date (ISO 8601 format: 2024-01-15T10:30:00Z)
231
- */
232
- created_after?: string | null;
233
-
234
- /**
235
- * Filter entities created before this date (ISO 8601 format)
236
- */
237
- created_before?: string | null;
238
-
239
- /**
240
- * Filter entities with or without user comments
241
- */
242
- has_comments?: boolean | null;
243
-
244
- /**
245
- * Sort order: -1 for descending, 1 for ascending
246
- */
247
- order?: number | null;
248
-
249
- /**
250
- * Page number (1-based)
251
- */
252
- page?: number;
253
-
254
- /**
255
- * Items per page (max 100, default 50)
256
- */
257
- page_size?: number;
258
-
259
- /**
260
- * Search entities by name or company
261
- */
262
- search?: string | null;
263
-
264
- /**
265
- * Field to sort by (e.g., 'created_at', 'updated_at', 'status')
266
- */
267
- sort_by?: string | null;
268
-
269
- /**
270
- * Filter by entity status (true=active, false=inactive)
271
- */
272
- status?: boolean | null;
273
-
274
- /**
275
- * Filter entities updated after this date (ISO 8601 format)
276
- */
277
- updated_after?: string | null;
278
-
279
- /**
280
- * Filter entities updated before this date (ISO 8601 format)
281
- */
282
- updated_before?: string | null;
283
- }
284
-
285
- SheetResource.Entity = Entity;
286
162
  SheetResource.Schema = Schema;
287
163
 
288
164
  export declare namespace SheetResource {
@@ -290,21 +166,9 @@ export declare namespace SheetResource {
290
166
  type EntityType as EntityType,
291
167
  type Sheet as Sheet,
292
168
  type SheetListResponse as SheetListResponse,
293
- type SheetExportCsvResponse as SheetExportCsvResponse,
294
- type SheetGetEntitiesResponse as SheetGetEntitiesResponse,
295
169
  type SheetCreateParams as SheetCreateParams,
296
170
  type SheetUpdateParams as SheetUpdateParams,
297
171
  type SheetListParams as SheetListParams,
298
- type SheetExportCsvParams as SheetExportCsvParams,
299
- type SheetGetEntitiesParams as SheetGetEntitiesParams,
300
- };
301
-
302
- export {
303
- Entity as Entity,
304
- type EntityRetrieveResponse as EntityRetrieveResponse,
305
- type EntityRetrieveParams as EntityRetrieveParams,
306
- type EntityUpdateCommentsParams as EntityUpdateCommentsParams,
307
- type EntityUpdateStatusParams as EntityUpdateStatusParams,
308
172
  };
309
173
 
310
174
  export {