@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,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { LinktError } from '../../core/error';
|
|
4
|
+
|
|
5
|
+
// https://url.spec.whatwg.org/#url-scheme-string
|
|
6
|
+
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
7
|
+
|
|
8
|
+
export const isAbsoluteURL = (url: string): boolean => {
|
|
9
|
+
return startsWithSchemeRegexp.test(url);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export let isArray = (val: unknown): val is unknown[] => ((isArray = Array.isArray), isArray(val));
|
|
13
|
+
export let isReadonlyArray = isArray as (val: unknown) => val is readonly unknown[];
|
|
14
|
+
|
|
15
|
+
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
16
|
+
export function maybeObj(x: unknown): object {
|
|
17
|
+
if (typeof x !== 'object') {
|
|
18
|
+
return {};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return x ?? {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// https://stackoverflow.com/a/34491287
|
|
25
|
+
export function isEmptyObj(obj: Object | null | undefined): boolean {
|
|
26
|
+
if (!obj) return true;
|
|
27
|
+
for (const _k in obj) return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// https://eslint.org/docs/latest/rules/no-prototype-builtins
|
|
32
|
+
export function hasOwn<T extends object = object>(obj: T, key: PropertyKey): key is keyof T {
|
|
33
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function isObj(obj: unknown): obj is Record<string, unknown> {
|
|
37
|
+
return obj != null && typeof obj === 'object' && !Array.isArray(obj);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ensurePresent = <T>(value: T | null | undefined): T => {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
throw new LinktError(`Expected a value to be given but received ${value} instead.`);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return value;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const validatePositiveInteger = (name: string, n: unknown): number => {
|
|
49
|
+
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
50
|
+
throw new LinktError(`${name} must be an integer`);
|
|
51
|
+
}
|
|
52
|
+
if (n < 0) {
|
|
53
|
+
throw new LinktError(`${name} must be a positive integer`);
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const coerceInteger = (value: unknown): number => {
|
|
59
|
+
if (typeof value === 'number') return Math.round(value);
|
|
60
|
+
if (typeof value === 'string') return parseInt(value, 10);
|
|
61
|
+
|
|
62
|
+
throw new LinktError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const coerceFloat = (value: unknown): number => {
|
|
66
|
+
if (typeof value === 'number') return value;
|
|
67
|
+
if (typeof value === 'string') return parseFloat(value);
|
|
68
|
+
|
|
69
|
+
throw new LinktError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const coerceBoolean = (value: unknown): boolean => {
|
|
73
|
+
if (typeof value === 'boolean') return value;
|
|
74
|
+
if (typeof value === 'string') return value === 'true';
|
|
75
|
+
return Boolean(value);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const maybeCoerceInteger = (value: unknown): number | undefined => {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
return coerceInteger(value);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const maybeCoerceFloat = (value: unknown): number | undefined => {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
return coerceFloat(value);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
return coerceBoolean(value);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const safeJSON = (text: string) => {
|
|
100
|
+
try {
|
|
101
|
+
return JSON.parse(text);
|
|
102
|
+
} catch (err) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export * from './utils/values';
|
|
4
|
+
export * from './utils/base64';
|
|
5
|
+
export * from './utils/env';
|
|
6
|
+
export * from './utils/log';
|
|
7
|
+
export * from './utils/uuid';
|
|
8
|
+
export * from './utils/sleep';
|
package/src/lib/.keep
ADDED
package/src/resource.ts
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
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 { type Uploadable } from '../core/uploads';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Files extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get file details by ID.
|
|
13
|
+
*
|
|
14
|
+
* Returns metadata for a specific file including name, size, and processing
|
|
15
|
+
* status. Use this to check if a file is ready for use in workflows.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(fileID: string, options?: RequestOptions): APIPromise<FileRetrieveResponse> {
|
|
18
|
+
return this._client.get(path`/v1/files/${fileID}`, options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* List uploaded files.
|
|
23
|
+
*
|
|
24
|
+
* Returns a paginated list of all files uploaded by your organization. Files can
|
|
25
|
+
* be used as data sources for signal monitoring and ingest tasks.
|
|
26
|
+
*/
|
|
27
|
+
list(
|
|
28
|
+
query: FileListParams | null | undefined = {},
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<FileListResponse> {
|
|
31
|
+
return this._client.get('/v1/files', { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Upload a CSV or XLSX file.
|
|
36
|
+
*
|
|
37
|
+
* Upload a data file for use in signal monitoring or ingest workflows. The file is
|
|
38
|
+
* stored securely and can be referenced when creating tasks. XLSX files are
|
|
39
|
+
* automatically converted to CSV format (first sheet only).
|
|
40
|
+
*/
|
|
41
|
+
upload(body: FileUploadParams, options?: RequestOptions): APIPromise<FileUploadResponse> {
|
|
42
|
+
return this._client.post(
|
|
43
|
+
'/v1/files/upload',
|
|
44
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Processing status for CSV files.
|
|
51
|
+
*/
|
|
52
|
+
export type CsvProcessingStatus = 'pending' | 'processing' | 'completed' | 'failed';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Response model for file details.
|
|
56
|
+
*/
|
|
57
|
+
export interface FileRetrieveResponse {
|
|
58
|
+
/**
|
|
59
|
+
* Content type of the file
|
|
60
|
+
*/
|
|
61
|
+
content_type: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the file
|
|
65
|
+
*/
|
|
66
|
+
file_id: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The name of the file
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* S3 URI of the file
|
|
75
|
+
*/
|
|
76
|
+
s3_uri: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Size of the file in bytes
|
|
80
|
+
*/
|
|
81
|
+
size_bytes: number;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* CSV metadata
|
|
85
|
+
*/
|
|
86
|
+
csv_metadata?: { [key: string]: unknown };
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Original file type if converted (e.g., 'xlsx' if XLSX was converted to CSV)
|
|
90
|
+
*/
|
|
91
|
+
original_file_type?: string | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Processing status
|
|
95
|
+
*/
|
|
96
|
+
processing_status?: CsvProcessingStatus;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Response model for file listing.
|
|
101
|
+
*/
|
|
102
|
+
export interface FileListResponse {
|
|
103
|
+
/**
|
|
104
|
+
* List of files
|
|
105
|
+
*/
|
|
106
|
+
files: Array<FileListResponse.File>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Current page number
|
|
110
|
+
*/
|
|
111
|
+
page: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Number of items per page
|
|
115
|
+
*/
|
|
116
|
+
page_size: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Total number of files
|
|
120
|
+
*/
|
|
121
|
+
total: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace FileListResponse {
|
|
125
|
+
/**
|
|
126
|
+
* File item in list response.
|
|
127
|
+
*/
|
|
128
|
+
export interface File {
|
|
129
|
+
/**
|
|
130
|
+
* The ID of the file
|
|
131
|
+
*/
|
|
132
|
+
file_id: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The name of the file
|
|
136
|
+
*/
|
|
137
|
+
name: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Size of the file in bytes
|
|
141
|
+
*/
|
|
142
|
+
size_bytes: number;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Response model for file upload.
|
|
148
|
+
*/
|
|
149
|
+
export interface FileUploadResponse {
|
|
150
|
+
/**
|
|
151
|
+
* Content type of the file
|
|
152
|
+
*/
|
|
153
|
+
content_type: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The ID of the uploaded file
|
|
157
|
+
*/
|
|
158
|
+
file_id: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The name of the file
|
|
162
|
+
*/
|
|
163
|
+
name: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Processing status
|
|
167
|
+
*/
|
|
168
|
+
processing_status: CsvProcessingStatus;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* S3 URI of the uploaded file
|
|
172
|
+
*/
|
|
173
|
+
s3_uri: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Size of the file in bytes
|
|
177
|
+
*/
|
|
178
|
+
size_bytes: number;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* CSV metadata
|
|
182
|
+
*/
|
|
183
|
+
csv_metadata?: { [key: string]: unknown };
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Original file type if converted (e.g., 'xlsx' if XLSX was converted to CSV)
|
|
187
|
+
*/
|
|
188
|
+
original_file_type?: string | null;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface FileListParams {
|
|
192
|
+
/**
|
|
193
|
+
* Page number (1-based)
|
|
194
|
+
*/
|
|
195
|
+
page?: number;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Items per page
|
|
199
|
+
*/
|
|
200
|
+
page_size?: number;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface FileUploadParams {
|
|
204
|
+
/**
|
|
205
|
+
* CSV or XLSX file to upload
|
|
206
|
+
*/
|
|
207
|
+
file: Uploadable;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export declare namespace Files {
|
|
211
|
+
export {
|
|
212
|
+
type CsvProcessingStatus as CsvProcessingStatus,
|
|
213
|
+
type FileRetrieveResponse as FileRetrieveResponse,
|
|
214
|
+
type FileListResponse as FileListResponse,
|
|
215
|
+
type FileUploadResponse as FileUploadResponse,
|
|
216
|
+
type FileListParams as FileListParams,
|
|
217
|
+
type FileUploadParams as FileUploadParams,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
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 { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Icp extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new Ideal Customer Profile (ICP).
|
|
12
|
+
*
|
|
13
|
+
* ICPs are the foundation of your research workflows. They define WHAT entities to
|
|
14
|
+
* target using business-level descriptions and filters, without specifying
|
|
15
|
+
* technical implementation details.
|
|
16
|
+
*
|
|
17
|
+
* Create an ICP first, then link Sheets to it for entity storage.
|
|
18
|
+
*/
|
|
19
|
+
create(body: IcpCreateParams, options?: RequestOptions): APIPromise<IcpResponse> {
|
|
20
|
+
return this._client.post('/v1/icp', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get a specific ICP by ID.
|
|
25
|
+
*/
|
|
26
|
+
retrieve(icpID: string, options?: RequestOptions): APIPromise<IcpResponse> {
|
|
27
|
+
return this._client.get(path`/v1/icp/${icpID}`, options);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Update an existing ICP.
|
|
32
|
+
*
|
|
33
|
+
* Only provided fields will be updated; omitted fields remain unchanged.
|
|
34
|
+
*/
|
|
35
|
+
update(icpID: string, body: IcpUpdateParams, options?: RequestOptions): APIPromise<IcpResponse> {
|
|
36
|
+
return this._client.put(path`/v1/icp/${icpID}`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* List all ICPs for the organization.
|
|
41
|
+
*
|
|
42
|
+
* Results are scoped to your organization. Use the `mode` filter to separate
|
|
43
|
+
* discovery ICPs (for finding new entities) from monitoring ICPs (for tracking
|
|
44
|
+
* existing entities).
|
|
45
|
+
*/
|
|
46
|
+
list(query: IcpListParams | null | undefined = {}, options?: RequestOptions): APIPromise<IcpListResponse> {
|
|
47
|
+
return this._client.get('/v1/icp', { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Delete an ICP and all related resources.
|
|
52
|
+
*
|
|
53
|
+
* **Cascade delete**: This permanently removes the ICP along with all associated
|
|
54
|
+
* sheets, entities, schedules, tasks, and signals. This operation cannot be
|
|
55
|
+
* undone.
|
|
56
|
+
*/
|
|
57
|
+
delete(icpID: string, options?: RequestOptions): APIPromise<void> {
|
|
58
|
+
return this._client.delete(path`/v1/icp/${icpID}`, {
|
|
59
|
+
...options,
|
|
60
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Get all active runs for an ICP.
|
|
66
|
+
*
|
|
67
|
+
* Returns runs in non-terminal states (RUNNING, SCHEDULED, PENDING). Useful for
|
|
68
|
+
* checking if workflows are currently processing this ICP before making changes.
|
|
69
|
+
*/
|
|
70
|
+
getActiveRuns(icpID: string, options?: RequestOptions): APIPromise<IcpGetActiveRunsResponse> {
|
|
71
|
+
return this._client.get(path`/v1/icp/${icpID}/active_runs`, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Request model for entity target configuration.
|
|
77
|
+
*/
|
|
78
|
+
export interface EntityTargetConfig {
|
|
79
|
+
/**
|
|
80
|
+
* Business description of targets
|
|
81
|
+
*/
|
|
82
|
+
description: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Entity type to target
|
|
86
|
+
*/
|
|
87
|
+
entity_type: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Filters to apply
|
|
91
|
+
*/
|
|
92
|
+
filters?: Array<string>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Response model for ICP.
|
|
97
|
+
*/
|
|
98
|
+
export interface IcpResponse {
|
|
99
|
+
id: string;
|
|
100
|
+
|
|
101
|
+
created_at: string;
|
|
102
|
+
|
|
103
|
+
description: string;
|
|
104
|
+
|
|
105
|
+
entity_targets: Array<IcpResponse.EntityTarget>;
|
|
106
|
+
|
|
107
|
+
name: string;
|
|
108
|
+
|
|
109
|
+
updated_at: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace IcpResponse {
|
|
113
|
+
/**
|
|
114
|
+
* Response model for entity target configuration.
|
|
115
|
+
*/
|
|
116
|
+
export interface EntityTarget {
|
|
117
|
+
description: string;
|
|
118
|
+
|
|
119
|
+
entity_type: string;
|
|
120
|
+
|
|
121
|
+
root: boolean;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Response for listing ICPs.
|
|
127
|
+
*/
|
|
128
|
+
export interface IcpListResponse {
|
|
129
|
+
icps: Array<IcpResponse>;
|
|
130
|
+
|
|
131
|
+
page: number;
|
|
132
|
+
|
|
133
|
+
page_size: number;
|
|
134
|
+
|
|
135
|
+
total: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Response model for ICP running status.
|
|
140
|
+
*/
|
|
141
|
+
export interface IcpGetActiveRunsResponse {
|
|
142
|
+
runs: Array<IcpGetActiveRunsResponse.Run>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export namespace IcpGetActiveRunsResponse {
|
|
146
|
+
/**
|
|
147
|
+
* Individual run status item for API responses.
|
|
148
|
+
*
|
|
149
|
+
* Includes both agent_type (execution context) and task_type (workflow type)
|
|
150
|
+
* fields to support filtering and display during the transition from legacy runs.
|
|
151
|
+
*
|
|
152
|
+
* Attributes: id: Unique run identifier (ObjectId as string) agent_type: HOW the
|
|
153
|
+
* run was triggered ("task", "play") task_type: WHAT workflow runs ("signal",
|
|
154
|
+
* "search", "profile", "ingest"). None for plays or legacy runs without this
|
|
155
|
+
* field. created_at: When the run was created
|
|
156
|
+
*/
|
|
157
|
+
export interface Run {
|
|
158
|
+
/**
|
|
159
|
+
* Run ID
|
|
160
|
+
*/
|
|
161
|
+
id: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Execution context (task, play)
|
|
165
|
+
*/
|
|
166
|
+
agent_type: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Creation timestamp
|
|
170
|
+
*/
|
|
171
|
+
created_at?: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Workflow type for task-based runs (signal, search, profile, ingest)
|
|
175
|
+
*/
|
|
176
|
+
task_type?: string | null;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface IcpCreateParams {
|
|
181
|
+
description: string;
|
|
182
|
+
|
|
183
|
+
entity_targets: Array<EntityTargetConfig>;
|
|
184
|
+
|
|
185
|
+
name: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface IcpUpdateParams {
|
|
189
|
+
description?: string | null;
|
|
190
|
+
|
|
191
|
+
entity_targets?: Array<EntityTargetConfig> | null;
|
|
192
|
+
|
|
193
|
+
name?: string | null;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface IcpListParams {
|
|
197
|
+
/**
|
|
198
|
+
* Filter by ICP mode: 'discovery' or 'monitoring'
|
|
199
|
+
*/
|
|
200
|
+
mode?: 'discovery' | 'monitoring' | null;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Sort order: -1 for descending, 1 for ascending
|
|
204
|
+
*/
|
|
205
|
+
order?: number | null;
|
|
206
|
+
|
|
207
|
+
page?: number;
|
|
208
|
+
|
|
209
|
+
page_size?: number;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Field to sort by (e.g., 'created_at', 'updated_at', 'name')
|
|
213
|
+
*/
|
|
214
|
+
sort_by?: string | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export declare namespace Icp {
|
|
218
|
+
export {
|
|
219
|
+
type EntityTargetConfig as EntityTargetConfig,
|
|
220
|
+
type IcpResponse as IcpResponse,
|
|
221
|
+
type IcpListResponse as IcpListResponse,
|
|
222
|
+
type IcpGetActiveRunsResponse as IcpGetActiveRunsResponse,
|
|
223
|
+
type IcpCreateParams as IcpCreateParams,
|
|
224
|
+
type IcpUpdateParams as IcpUpdateParams,
|
|
225
|
+
type IcpListParams as IcpListParams,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Files,
|
|
5
|
+
type CsvProcessingStatus,
|
|
6
|
+
type FileRetrieveResponse,
|
|
7
|
+
type FileListResponse,
|
|
8
|
+
type FileUploadResponse,
|
|
9
|
+
type FileListParams,
|
|
10
|
+
type FileUploadParams,
|
|
11
|
+
} from './files';
|
|
12
|
+
export {
|
|
13
|
+
Icp,
|
|
14
|
+
type EntityTargetConfig,
|
|
15
|
+
type IcpResponse,
|
|
16
|
+
type IcpListResponse,
|
|
17
|
+
type IcpGetActiveRunsResponse,
|
|
18
|
+
type IcpCreateParams,
|
|
19
|
+
type IcpUpdateParams,
|
|
20
|
+
type IcpListParams,
|
|
21
|
+
} from './icp';
|
|
22
|
+
export {
|
|
23
|
+
Run,
|
|
24
|
+
type RunCreateResponse,
|
|
25
|
+
type RunRetrieveResponse,
|
|
26
|
+
type RunListResponse,
|
|
27
|
+
type RunGetQueueResponse,
|
|
28
|
+
type RunCreateParams,
|
|
29
|
+
type RunListParams,
|
|
30
|
+
type RunGetQueueParams,
|
|
31
|
+
} from './run';
|
|
32
|
+
export {
|
|
33
|
+
SheetResource,
|
|
34
|
+
type EntityType,
|
|
35
|
+
type Sheet,
|
|
36
|
+
type SheetListResponse,
|
|
37
|
+
type SheetExportCsvResponse,
|
|
38
|
+
type SheetGetEntitiesResponse,
|
|
39
|
+
type SheetCreateParams,
|
|
40
|
+
type SheetUpdateParams,
|
|
41
|
+
type SheetListParams,
|
|
42
|
+
type SheetExportCsvParams,
|
|
43
|
+
type SheetGetEntitiesParams,
|
|
44
|
+
} from './sheet/sheet';
|
|
45
|
+
export { Signal, type SignalResponse, type SignalListResponse, type SignalListParams } from './signal';
|
|
46
|
+
export {
|
|
47
|
+
Task,
|
|
48
|
+
type IngestTaskConfig,
|
|
49
|
+
type SearchV2Config,
|
|
50
|
+
type SearchV3Config,
|
|
51
|
+
type SignalCsvConfigInput,
|
|
52
|
+
type SignalSheetConfigInput,
|
|
53
|
+
type SignalTopicConfigInput,
|
|
54
|
+
type SignalTypeConfig,
|
|
55
|
+
type StandardPromptConfig,
|
|
56
|
+
type TaskCreateResponse,
|
|
57
|
+
type TaskRetrieveResponse,
|
|
58
|
+
type TaskListResponse,
|
|
59
|
+
type TaskExecuteResponse,
|
|
60
|
+
type TaskCreateParams,
|
|
61
|
+
type TaskUpdateParams,
|
|
62
|
+
type TaskListParams,
|
|
63
|
+
type TaskExecuteParams,
|
|
64
|
+
} from './task';
|