@inconvoai/node 0.0.1-alpha.1
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 +39 -0
- package/LICENSE +201 -0
- package/README.md +392 -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 +183 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +183 -0
- package/client.d.ts.map +1 -0
- package/client.js +456 -0
- package/client.js.map +1 -0
- package/client.mjs +452 -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/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.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/sse-stream.d.mts +14 -0
- package/core/sse-stream.d.mts.map +1 -0
- package/core/sse-stream.d.ts +14 -0
- package/core/sse-stream.d.ts.map +1 -0
- package/core/sse-stream.js +59 -0
- package/core/sse-stream.js.map +1 -0
- package/core/sse-stream.mjs +53 -0
- package/core/sse-stream.mjs.map +1 -0
- package/core/streaming-events.d.mts +22 -0
- package/core/streaming-events.d.mts.map +1 -0
- package/core/streaming-events.d.ts +22 -0
- package/core/streaming-events.d.ts.map +1 -0
- package/core/streaming-events.js +3 -0
- package/core/streaming-events.js.map +1 -0
- package/core/streaming-events.mjs +2 -0
- package/core/streaming-events.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 +9 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -0
- package/index.js +34 -0
- package/index.js.map +1 -0
- package/index.mjs +9 -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 +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -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 +145 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -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/conversations/conversations.d.mts +76 -0
- package/resources/conversations/conversations.d.mts.map +1 -0
- package/resources/conversations/conversations.d.ts +76 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +40 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +35 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.mts +3 -0
- package/resources/conversations/index.d.mts.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +9 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +4 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/response/feedback.d.mts +54 -0
- package/resources/conversations/response/feedback.d.mts.map +1 -0
- package/resources/conversations/response/feedback.d.ts +54 -0
- package/resources/conversations/response/feedback.d.ts.map +1 -0
- package/resources/conversations/response/feedback.js +30 -0
- package/resources/conversations/response/feedback.js.map +1 -0
- package/resources/conversations/response/feedback.mjs +26 -0
- package/resources/conversations/response/feedback.mjs.map +1 -0
- package/resources/conversations/response/index.d.mts +3 -0
- package/resources/conversations/response/index.d.mts.map +1 -0
- package/resources/conversations/response/index.d.ts +3 -0
- package/resources/conversations/response/index.d.ts.map +1 -0
- package/resources/conversations/response/index.js +9 -0
- package/resources/conversations/response/index.js.map +1 -0
- package/resources/conversations/response/index.mjs +4 -0
- package/resources/conversations/response/index.mjs.map +1 -0
- package/resources/conversations/response/response.d.mts +55 -0
- package/resources/conversations/response/response.d.mts.map +1 -0
- package/resources/conversations/response/response.d.ts +55 -0
- package/resources/conversations/response/response.d.ts.map +1 -0
- package/resources/conversations/response/response.js +44 -0
- package/resources/conversations/response/response.js.map +1 -0
- package/resources/conversations/response/response.mjs +39 -0
- package/resources/conversations/response/response.mjs.map +1 -0
- package/resources/conversations/response.d.mts +2 -0
- package/resources/conversations/response.d.mts.map +1 -0
- package/resources/conversations/response.d.ts +2 -0
- package/resources/conversations/response.d.ts.map +1 -0
- package/resources/conversations/response.js +6 -0
- package/resources/conversations/response.js.map +1 -0
- package/resources/conversations/response.mjs +3 -0
- package/resources/conversations/response.mjs.map +1 -0
- package/resources/conversations.d.mts +2 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +6 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +3 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.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 +752 -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/pagination.ts +160 -0
- package/src/core/resource.ts +11 -0
- package/src/core/sse-stream.ts +62 -0
- package/src/core/streaming-events.ts +26 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +31 -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 +126 -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/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/conversations/conversations.ts +122 -0
- package/src/resources/conversations/index.ts +18 -0
- package/src/resources/conversations/response/feedback.ts +85 -0
- package/src/resources/conversations/response/index.ts +15 -0
- package/src/resources/conversations/response/response.ts +124 -0
- package/src/resources/conversations/response.ts +3 -0
- package/src/resources/conversations.ts +3 -0
- package/src/resources/index.ts +11 -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 { InconvoError } 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 InconvoError(`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 InconvoError(`${name} must be an integer`);
|
|
51
|
+
}
|
|
52
|
+
if (n < 0) {
|
|
53
|
+
throw new InconvoError(`${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 InconvoError(`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 InconvoError(`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 === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
return coerceInteger(value);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const maybeCoerceFloat = (value: unknown): number | undefined => {
|
|
86
|
+
if (value === undefined) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
return coerceFloat(value);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
|
|
93
|
+
if (value === undefined) {
|
|
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,122 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ResponseAPI from './response/response';
|
|
5
|
+
import { Chart, Response, ResponseCreateParams, ResponseCreateResponse, Table } from './response/response';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from '../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Conversations extends APIResource {
|
|
12
|
+
response: ResponseAPI.Response = new ResponseAPI.Response(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create conversation
|
|
16
|
+
*/
|
|
17
|
+
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse> {
|
|
18
|
+
return this._client.post('/conversations', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve conversation
|
|
23
|
+
*/
|
|
24
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<InconvoConversation> {
|
|
25
|
+
return this._client.get(path`/conversations/${id}`, options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List conversations
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
query: ConversationListParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse> {
|
|
35
|
+
return this._client.getAPIList('/conversations', ConversationsCursor<ConversationListResponse>, {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type ConversationListResponsesConversationsCursor = ConversationsCursor<ConversationListResponse>;
|
|
43
|
+
|
|
44
|
+
export interface InconvoConversation {
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
context: { [key: string]: string | number };
|
|
48
|
+
|
|
49
|
+
messages: Array<InconvoConversation.Message>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace InconvoConversation {
|
|
53
|
+
export interface Message {
|
|
54
|
+
message: string;
|
|
55
|
+
|
|
56
|
+
type: 'text' | 'chart' | 'table';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Present on Inconvo responses only
|
|
60
|
+
*/
|
|
61
|
+
id?: string;
|
|
62
|
+
|
|
63
|
+
chart?: ResponseAPI.Chart;
|
|
64
|
+
|
|
65
|
+
table?: ResponseAPI.Table;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ConversationCreateResponse {
|
|
70
|
+
id?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ConversationListResponse {
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
createdAt: string;
|
|
77
|
+
|
|
78
|
+
requestContext: { [key: string]: string | number };
|
|
79
|
+
|
|
80
|
+
title: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ConversationCreateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Context key-values used for tenancy / filtering.
|
|
86
|
+
*/
|
|
87
|
+
context: { [key: string]: unknown };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface ConversationListParams extends ConversationsCursorParams {
|
|
91
|
+
context?: ConversationListParams.Context;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace ConversationListParams {
|
|
95
|
+
export interface Context {
|
|
96
|
+
/**
|
|
97
|
+
* Filter by arbitrary context key/value.
|
|
98
|
+
*/
|
|
99
|
+
'{key}'?: string | number;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
Conversations.Response = Response;
|
|
104
|
+
|
|
105
|
+
export declare namespace Conversations {
|
|
106
|
+
export {
|
|
107
|
+
type InconvoConversation as InconvoConversation,
|
|
108
|
+
type ConversationCreateResponse as ConversationCreateResponse,
|
|
109
|
+
type ConversationListResponse as ConversationListResponse,
|
|
110
|
+
type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor,
|
|
111
|
+
type ConversationCreateParams as ConversationCreateParams,
|
|
112
|
+
type ConversationListParams as ConversationListParams,
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
Response as Response,
|
|
117
|
+
type Chart as Chart,
|
|
118
|
+
type Table as Table,
|
|
119
|
+
type ResponseCreateResponse as ResponseCreateResponse,
|
|
120
|
+
type ResponseCreateParams as ResponseCreateParams,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Conversations,
|
|
5
|
+
type InconvoConversation,
|
|
6
|
+
type ConversationCreateResponse,
|
|
7
|
+
type ConversationListResponse,
|
|
8
|
+
type ConversationCreateParams,
|
|
9
|
+
type ConversationListParams,
|
|
10
|
+
type ConversationListResponsesConversationsCursor,
|
|
11
|
+
} from './conversations';
|
|
12
|
+
export {
|
|
13
|
+
Response,
|
|
14
|
+
type Chart,
|
|
15
|
+
type Table,
|
|
16
|
+
type ResponseCreateResponse,
|
|
17
|
+
type ResponseCreateParams,
|
|
18
|
+
} from './response/index';
|
|
@@ -0,0 +1,85 @@
|
|
|
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 FeedbackResource extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create feedback
|
|
11
|
+
*/
|
|
12
|
+
create(responseID: string, params: FeedbackCreateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
13
|
+
const { id, ...body } = params;
|
|
14
|
+
return this._client.post(path`/conversations/${id}/response/${responseID}/feedback`, {
|
|
15
|
+
body,
|
|
16
|
+
...options,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Update feedback
|
|
22
|
+
*/
|
|
23
|
+
update(feedbackID: string, params: FeedbackUpdateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
24
|
+
const { id, response_id, ...body } = params;
|
|
25
|
+
return this._client.patch(path`/conversations/${id}/response/${response_id}/feedback/${feedbackID}`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Feedback {
|
|
33
|
+
id: string;
|
|
34
|
+
|
|
35
|
+
rating: 'positive' | 'negative';
|
|
36
|
+
|
|
37
|
+
comment?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface FeedbackCreateParams {
|
|
41
|
+
/**
|
|
42
|
+
* Path param:
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Body param:
|
|
48
|
+
*/
|
|
49
|
+
rating: 'positive' | 'negative';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Body param:
|
|
53
|
+
*/
|
|
54
|
+
comment?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface FeedbackUpdateParams {
|
|
58
|
+
/**
|
|
59
|
+
* Path param:
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Path param:
|
|
65
|
+
*/
|
|
66
|
+
response_id: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Body param:
|
|
70
|
+
*/
|
|
71
|
+
comment?: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Body param:
|
|
75
|
+
*/
|
|
76
|
+
rating?: 'positive' | 'negative';
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare namespace FeedbackResource {
|
|
80
|
+
export {
|
|
81
|
+
type Feedback as Feedback,
|
|
82
|
+
type FeedbackCreateParams as FeedbackCreateParams,
|
|
83
|
+
type FeedbackUpdateParams as FeedbackUpdateParams,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
FeedbackResource,
|
|
5
|
+
type Feedback,
|
|
6
|
+
type FeedbackCreateParams,
|
|
7
|
+
type FeedbackUpdateParams,
|
|
8
|
+
} from './feedback';
|
|
9
|
+
export {
|
|
10
|
+
Response,
|
|
11
|
+
type Chart,
|
|
12
|
+
type Table,
|
|
13
|
+
type ResponseCreateResponse,
|
|
14
|
+
type ResponseCreateParams,
|
|
15
|
+
} from './response';
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as FeedbackAPI from './feedback';
|
|
5
|
+
import { Feedback, FeedbackCreateParams, FeedbackResource, FeedbackUpdateParams } from './feedback';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
import { SSEStream, createSSEStream } from '../../../core/sse-stream';
|
|
10
|
+
|
|
11
|
+
export class Response extends APIResource {
|
|
12
|
+
feedback: FeedbackAPI.FeedbackResource = new FeedbackAPI.FeedbackResource(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create response (sync or streamed)
|
|
16
|
+
*/
|
|
17
|
+
create(
|
|
18
|
+
id: string,
|
|
19
|
+
body: ResponseCreateParams,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<ResponseCreateResponse>;
|
|
22
|
+
create(
|
|
23
|
+
id: string,
|
|
24
|
+
body: ResponseCreateParams & { stream?: false },
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<ResponseCreateResponse>;
|
|
27
|
+
create(id: string, body: ResponseCreateParams & { stream: true }, options?: RequestOptions): SSEStream;
|
|
28
|
+
create(
|
|
29
|
+
id: string,
|
|
30
|
+
body: ResponseCreateParams,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<ResponseCreateResponse> | SSEStream {
|
|
33
|
+
if (body.stream === true) {
|
|
34
|
+
return this._createStreaming(id, body, options);
|
|
35
|
+
}
|
|
36
|
+
return this._client.post(path`/conversations/${id}/response`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
private _createStreaming(id: string, body: ResponseCreateParams, options?: RequestOptions): SSEStream {
|
|
40
|
+
// Create a controller for aborting the request if needed
|
|
41
|
+
const controller =
|
|
42
|
+
(globalThis as any).AbortController ? new (globalThis as any).AbortController() : undefined;
|
|
43
|
+
|
|
44
|
+
const requestOptions = {
|
|
45
|
+
...options,
|
|
46
|
+
headers: {
|
|
47
|
+
...options?.headers,
|
|
48
|
+
Accept: 'text/event-stream',
|
|
49
|
+
},
|
|
50
|
+
signal: controller?.signal,
|
|
51
|
+
__binaryResponse: true,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// When __binaryResponse is true, post() returns the raw Response directly
|
|
55
|
+
const responsePromise = this._client.post(path`/conversations/${id}/response`, {
|
|
56
|
+
body,
|
|
57
|
+
...requestOptions,
|
|
58
|
+
}) as Promise<globalThis.Response>;
|
|
59
|
+
|
|
60
|
+
return createSSEStream(responsePromise, controller);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface Chart {
|
|
65
|
+
data: Array<Chart.Data>;
|
|
66
|
+
|
|
67
|
+
type: 'line' | 'bar';
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export namespace Chart {
|
|
71
|
+
export interface Data {
|
|
72
|
+
label: string;
|
|
73
|
+
|
|
74
|
+
value: number;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface Table {
|
|
79
|
+
body: Array<Array<string>>;
|
|
80
|
+
|
|
81
|
+
head: Array<string>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface ResponseCreateResponse {
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
conversationId: string;
|
|
88
|
+
|
|
89
|
+
message: string;
|
|
90
|
+
|
|
91
|
+
type: 'text' | 'chart' | 'table';
|
|
92
|
+
|
|
93
|
+
chart?: Chart;
|
|
94
|
+
|
|
95
|
+
table?: Table;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface ResponseCreateParams {
|
|
99
|
+
message: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* If true and the client sets `Accept: text/event-stream`, the API returns an SSE
|
|
103
|
+
* stream instead of a single JSON body.
|
|
104
|
+
*/
|
|
105
|
+
stream?: boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
Response.FeedbackResource = FeedbackResource;
|
|
109
|
+
|
|
110
|
+
export declare namespace Response {
|
|
111
|
+
export {
|
|
112
|
+
type Chart as Chart,
|
|
113
|
+
type Table as Table,
|
|
114
|
+
type ResponseCreateResponse as ResponseCreateResponse,
|
|
115
|
+
type ResponseCreateParams as ResponseCreateParams,
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export {
|
|
119
|
+
FeedbackResource as FeedbackResource,
|
|
120
|
+
type Feedback as Feedback,
|
|
121
|
+
type FeedbackCreateParams as FeedbackCreateParams,
|
|
122
|
+
type FeedbackUpdateParams as FeedbackUpdateParams,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Conversations,
|
|
5
|
+
type InconvoConversation,
|
|
6
|
+
type ConversationCreateResponse,
|
|
7
|
+
type ConversationListResponse,
|
|
8
|
+
type ConversationCreateParams,
|
|
9
|
+
type ConversationListParams,
|
|
10
|
+
type ConversationListResponsesConversationsCursor,
|
|
11
|
+
} from './conversations/conversations';
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.0.1-alpha.1'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/uploads.js"), exports);
|
|
6
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
|
package/uploads.mjs
ADDED
package/uploads.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/version.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.d.ts
ADDED
package/version.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.js
ADDED
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
ADDED
package/version.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|