@linkt/sdk 0.2.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 +25 -0
- package/LICENSE +201 -0
- package/README.md +424 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +206 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +206 -0
- package/client.d.ts.map +1 -0
- package/client.js +473 -0
- package/client.js.map +1 -0
- package/client.mjs +469 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/files.d.mts +170 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +170 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +39 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +35 -0
- package/resources/files.mjs.map +1 -0
- package/resources/icp.d.mts +162 -0
- package/resources/icp.d.mts.map +1 -0
- package/resources/icp.d.ts +162 -0
- package/resources/icp.d.ts.map +1 -0
- package/resources/icp.js +69 -0
- package/resources/icp.js.map +1 -0
- package/resources/icp.mjs +65 -0
- package/resources/icp.mjs.map +1 -0
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +7 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +17 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -0
- package/resources/run.d.mts +224 -0
- package/resources/run.d.mts.map +1 -0
- package/resources/run.d.ts +224 -0
- package/resources/run.d.ts.map +1 -0
- package/resources/run.js +107 -0
- package/resources/run.js.map +1 -0
- package/resources/run.mjs +103 -0
- package/resources/run.mjs.map +1 -0
- package/resources/sheet/entity.d.mts +52 -0
- package/resources/sheet/entity.d.mts.map +1 -0
- package/resources/sheet/entity.d.ts +52 -0
- package/resources/sheet/entity.d.ts.map +1 -0
- package/resources/sheet/entity.js +45 -0
- package/resources/sheet/entity.js.map +1 -0
- package/resources/sheet/entity.mjs +41 -0
- package/resources/sheet/entity.mjs.map +1 -0
- package/resources/sheet/index.d.mts +4 -0
- package/resources/sheet/index.d.mts.map +1 -0
- package/resources/sheet/index.d.ts +4 -0
- package/resources/sheet/index.d.ts.map +1 -0
- package/resources/sheet/index.js +11 -0
- package/resources/sheet/index.js.map +1 -0
- package/resources/sheet/index.mjs +5 -0
- package/resources/sheet/index.mjs.map +1 -0
- package/resources/sheet/schema.d.mts +207 -0
- package/resources/sheet/schema.d.mts.map +1 -0
- package/resources/sheet/schema.d.ts +207 -0
- package/resources/sheet/schema.d.ts.map +1 -0
- package/resources/sheet/schema.js +65 -0
- package/resources/sheet/schema.js.map +1 -0
- package/resources/sheet/schema.mjs +61 -0
- package/resources/sheet/schema.mjs.map +1 -0
- package/resources/sheet/sheet.d.mts +195 -0
- package/resources/sheet/sheet.d.mts.map +1 -0
- package/resources/sheet/sheet.d.ts +195 -0
- package/resources/sheet/sheet.d.ts.map +1 -0
- package/resources/sheet/sheet.js +90 -0
- package/resources/sheet/sheet.js.map +1 -0
- package/resources/sheet/sheet.mjs +85 -0
- package/resources/sheet/sheet.mjs.map +1 -0
- package/resources/sheet.d.mts +2 -0
- package/resources/sheet.d.mts.map +1 -0
- package/resources/sheet.d.ts +2 -0
- package/resources/sheet.d.ts.map +1 -0
- package/resources/sheet.js +6 -0
- package/resources/sheet.js.map +1 -0
- package/resources/sheet.mjs +3 -0
- package/resources/sheet.mjs.map +1 -0
- package/resources/signal.d.mts +79 -0
- package/resources/signal.d.mts.map +1 -0
- package/resources/signal.d.ts +79 -0
- package/resources/signal.d.ts.map +1 -0
- package/resources/signal.js +26 -0
- package/resources/signal.js.map +1 -0
- package/resources/signal.mjs +22 -0
- package/resources/signal.mjs.map +1 -0
- package/resources/task.d.mts +717 -0
- package/resources/task.d.mts.map +1 -0
- package/resources/task.d.ts +717 -0
- package/resources/task.d.ts.map +1 -0
- package/resources/task.js +108 -0
- package/resources/task.js.map +1 -0
- package/resources/task.mjs +104 -0
- package/resources/task.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +877 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/files.ts +219 -0
- package/src/resources/icp.ts +227 -0
- package/src/resources/index.ts +64 -0
- package/src/resources/run.ts +293 -0
- package/src/resources/sheet/entity.ts +97 -0
- package/src/resources/sheet/index.ts +30 -0
- package/src/resources/sheet/schema.ts +246 -0
- package/src/resources/sheet/sheet.ts +318 -0
- package/src/resources/sheet.ts +3 -0
- package/src/resources/signal.ts +117 -0
- package/src/resources/task.ts +912 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
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
|
+
import * as SchemaAPI from './schema';
|
|
13
|
+
import {
|
|
14
|
+
Schema,
|
|
15
|
+
SchemaAddFieldsParams,
|
|
16
|
+
SchemaDeleteFieldsParams,
|
|
17
|
+
SchemaGetDefaultResponse,
|
|
18
|
+
SchemaGetFieldDefinitionsResponse,
|
|
19
|
+
SchemaGetResponse,
|
|
20
|
+
} from './schema';
|
|
21
|
+
import { APIPromise } from '../../core/api-promise';
|
|
22
|
+
import { buildHeaders } from '../../internal/headers';
|
|
23
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
24
|
+
import { path } from '../../internal/utils/path';
|
|
25
|
+
|
|
26
|
+
export class SheetResource extends APIResource {
|
|
27
|
+
entity: EntityAPI.Entity = new EntityAPI.Entity(this._client);
|
|
28
|
+
schema: SchemaAPI.Schema = new SchemaAPI.Schema(this._client);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Create a new sheet linked to an ICP.
|
|
32
|
+
*
|
|
33
|
+
* Sheets hold entities of a single type (company or person) and must reference an
|
|
34
|
+
* ICP. The entity type must match one of the ICP's configured entity targets.
|
|
35
|
+
*/
|
|
36
|
+
create(body: SheetCreateParams, options?: RequestOptions): APIPromise<Sheet> {
|
|
37
|
+
return this._client.post('/v1/sheet', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get a specific sheet by ID.
|
|
42
|
+
*/
|
|
43
|
+
retrieve(sheetID: string, options?: RequestOptions): APIPromise<Sheet> {
|
|
44
|
+
return this._client.get(path`/v1/sheet/${sheetID}`, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Update an existing sheet.
|
|
49
|
+
*
|
|
50
|
+
* Only provided fields will be updated; omitted fields remain unchanged. The ICP
|
|
51
|
+
* reference and entity_type cannot be changed after creation.
|
|
52
|
+
*/
|
|
53
|
+
update(sheetID: string, body: SheetUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
54
|
+
return this._client.put(path`/v1/sheet/${sheetID}`, {
|
|
55
|
+
body,
|
|
56
|
+
...options,
|
|
57
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* List all sheets for the organization.
|
|
63
|
+
*
|
|
64
|
+
* Filter by ICP to see sheets for a specific targeting profile, or by entity type
|
|
65
|
+
* to see all company or person sheets.
|
|
66
|
+
*/
|
|
67
|
+
list(
|
|
68
|
+
query: SheetListParams | null | undefined = {},
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): APIPromise<SheetListResponse> {
|
|
71
|
+
return this._client.get('/v1/sheet', { query, ...options });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Delete a sheet and all its entities.
|
|
76
|
+
*
|
|
77
|
+
* **Cascade delete**: This permanently removes the sheet and all entities within
|
|
78
|
+
* it. This operation cannot be undone.
|
|
79
|
+
*/
|
|
80
|
+
delete(sheetID: string, options?: RequestOptions): APIPromise<void> {
|
|
81
|
+
return this._client.delete(path`/v1/sheet/${sheetID}`, {
|
|
82
|
+
...options,
|
|
83
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
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
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Valid entity types for sheets.
|
|
118
|
+
*/
|
|
119
|
+
export type EntityType = 'company' | 'person' | 'job_board' | 'school_district' | 'product';
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Response model for sheet.
|
|
123
|
+
*/
|
|
124
|
+
export interface Sheet {
|
|
125
|
+
id: string;
|
|
126
|
+
|
|
127
|
+
created_at: string;
|
|
128
|
+
|
|
129
|
+
description: string;
|
|
130
|
+
|
|
131
|
+
entity_schema: { [key: string]: unknown };
|
|
132
|
+
|
|
133
|
+
icp_id: string;
|
|
134
|
+
|
|
135
|
+
name: string;
|
|
136
|
+
|
|
137
|
+
updated_at: string;
|
|
138
|
+
|
|
139
|
+
entity_type?: string | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Response model for sheet list.
|
|
144
|
+
*/
|
|
145
|
+
export interface SheetListResponse {
|
|
146
|
+
page: number;
|
|
147
|
+
|
|
148
|
+
page_size: number;
|
|
149
|
+
|
|
150
|
+
sheets: Array<{ [key: string]: unknown }>;
|
|
151
|
+
|
|
152
|
+
total: number;
|
|
153
|
+
}
|
|
154
|
+
|
|
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
|
+
export interface SheetCreateParams {
|
|
178
|
+
description: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Type of entities to store
|
|
182
|
+
*/
|
|
183
|
+
entity_type: EntityType;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* ICP this sheet belongs to
|
|
187
|
+
*/
|
|
188
|
+
icp_id: string;
|
|
189
|
+
|
|
190
|
+
name: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface SheetUpdateParams {
|
|
194
|
+
description?: string | null;
|
|
195
|
+
|
|
196
|
+
icp_id?: string | null;
|
|
197
|
+
|
|
198
|
+
name?: string | null;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface SheetListParams {
|
|
202
|
+
entity_type?: string | null;
|
|
203
|
+
|
|
204
|
+
icp_id?: string | null;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Sort order: -1 for descending, 1 for ascending
|
|
208
|
+
*/
|
|
209
|
+
order?: number | null;
|
|
210
|
+
|
|
211
|
+
page?: number;
|
|
212
|
+
|
|
213
|
+
page_size?: number;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Field to sort by (e.g., 'created_at', 'updated_at', 'name')
|
|
217
|
+
*/
|
|
218
|
+
sort_by?: string | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
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
|
+
SheetResource.Schema = Schema;
|
|
287
|
+
|
|
288
|
+
export declare namespace SheetResource {
|
|
289
|
+
export {
|
|
290
|
+
type EntityType as EntityType,
|
|
291
|
+
type Sheet as Sheet,
|
|
292
|
+
type SheetListResponse as SheetListResponse,
|
|
293
|
+
type SheetExportCsvResponse as SheetExportCsvResponse,
|
|
294
|
+
type SheetGetEntitiesResponse as SheetGetEntitiesResponse,
|
|
295
|
+
type SheetCreateParams as SheetCreateParams,
|
|
296
|
+
type SheetUpdateParams as SheetUpdateParams,
|
|
297
|
+
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
|
+
};
|
|
309
|
+
|
|
310
|
+
export {
|
|
311
|
+
Schema as Schema,
|
|
312
|
+
type SchemaGetResponse as SchemaGetResponse,
|
|
313
|
+
type SchemaGetDefaultResponse as SchemaGetDefaultResponse,
|
|
314
|
+
type SchemaGetFieldDefinitionsResponse as SchemaGetFieldDefinitionsResponse,
|
|
315
|
+
type SchemaAddFieldsParams as SchemaAddFieldsParams,
|
|
316
|
+
type SchemaDeleteFieldsParams as SchemaDeleteFieldsParams,
|
|
317
|
+
};
|
|
318
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Signal extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a specific signal by ID (read-only).
|
|
11
|
+
*/
|
|
12
|
+
retrieve(signalID: string, options?: RequestOptions): APIPromise<SignalResponse> {
|
|
13
|
+
return this._client.get(path`/v1/signal/${signalID}`, options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List signals for the organization (read-only).
|
|
18
|
+
*
|
|
19
|
+
* Signals are immutable event records detected by AI agents, such as funding
|
|
20
|
+
* rounds, hiring events, and leadership changes. They cannot be created or
|
|
21
|
+
* modified through the API.
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
query: SignalListParams | null | undefined = {},
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<SignalListResponse> {
|
|
27
|
+
return this._client.get('/v1/signal', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Response model for signals (read-only).
|
|
33
|
+
*/
|
|
34
|
+
export interface SignalResponse {
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
created_at: string;
|
|
38
|
+
|
|
39
|
+
entity_ids: Array<string>;
|
|
40
|
+
|
|
41
|
+
icp_id: string;
|
|
42
|
+
|
|
43
|
+
references: Array<string>;
|
|
44
|
+
|
|
45
|
+
signal_type: string | null;
|
|
46
|
+
|
|
47
|
+
strength: string | null;
|
|
48
|
+
|
|
49
|
+
summary: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Response for listing signals.
|
|
54
|
+
*/
|
|
55
|
+
export interface SignalListResponse {
|
|
56
|
+
page: number;
|
|
57
|
+
|
|
58
|
+
page_size: number;
|
|
59
|
+
|
|
60
|
+
signals: Array<SignalResponse>;
|
|
61
|
+
|
|
62
|
+
total: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface SignalListParams {
|
|
66
|
+
/**
|
|
67
|
+
* Number of days to look back
|
|
68
|
+
*/
|
|
69
|
+
days?: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Filter by entity
|
|
73
|
+
*/
|
|
74
|
+
entity_id?: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Filter by ICP
|
|
78
|
+
*/
|
|
79
|
+
icp_id?: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Sort order: -1 for descending, 1 for ascending
|
|
83
|
+
*/
|
|
84
|
+
order?: number | null;
|
|
85
|
+
|
|
86
|
+
page?: number;
|
|
87
|
+
|
|
88
|
+
page_size?: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Search in signal summary or type
|
|
92
|
+
*/
|
|
93
|
+
search_term?: string | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Filter by type
|
|
97
|
+
*/
|
|
98
|
+
signal_type?: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Field to sort by (e.g., 'created_at', 'updated_at', 'signal_type', 'strength')
|
|
102
|
+
*/
|
|
103
|
+
sort_by?: string | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Filter by strength
|
|
107
|
+
*/
|
|
108
|
+
strength?: string | null;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare namespace Signal {
|
|
112
|
+
export {
|
|
113
|
+
type SignalResponse as SignalResponse,
|
|
114
|
+
type SignalListResponse as SignalListResponse,
|
|
115
|
+
type SignalListParams as SignalListParams,
|
|
116
|
+
};
|
|
117
|
+
}
|