@lorikeetai/node-sdk 1.8.1 → 2.1.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 +43 -782
- package/README.md +114 -44
- 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/bin/cli +53 -0
- package/bin/migration-config.json +50 -0
- package/client.d.mts +197 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +197 -0
- package/client.d.ts.map +1 -0
- package/client.js +504 -0
- package/client.js.map +1 -0
- package/client.mjs +500 -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 +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -131
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -130
- package/index.d.ts.map +1 -1
- package/index.js +14 -142
- package/index.js.map +1 -1
- package/index.mjs +6 -114
- package/index.mjs.map +1 -1
- 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 +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.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 +92 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +89 -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/lib/generate-signature.d.mts +7 -0
- package/lib/generate-signature.d.mts.map +1 -0
- package/lib/generate-signature.d.ts +1 -1
- package/lib/generate-signature.d.ts.map +1 -1
- package/lib/generate-signature.js +3 -3
- package/lib/generate-signature.js.map +1 -1
- package/lib/generate-signature.mjs +1 -1
- package/lib/generate-signature.mjs.map +1 -1
- package/lib/poll-until.d.mts +20 -0
- package/lib/poll-until.d.mts.map +1 -0
- package/lib/poll-until.d.ts.map +1 -1
- package/lib/promise.d.mts +55 -0
- package/lib/promise.d.mts.map +1 -0
- package/package.json +123 -73
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/api-keys.d.mts +130 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +7 -6
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +6 -4
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +6 -4
- package/resources/api-keys.mjs.map +1 -1
- package/resources/conversation/chat.d.mts +312 -0
- package/resources/conversation/chat.d.mts.map +1 -0
- package/resources/conversation/chat.d.ts +45 -77
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/chat.js +14 -48
- package/resources/conversation/chat.js.map +1 -1
- package/resources/conversation/chat.mjs +14 -48
- package/resources/conversation/chat.mjs.map +1 -1
- package/resources/conversation/conversation.d.mts +77 -0
- package/resources/conversation/conversation.d.mts.map +1 -0
- package/resources/conversation/conversation.d.ts +1 -1
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js +5 -27
- package/resources/conversation/conversation.js.map +1 -1
- package/resources/conversation/conversation.mjs +1 -1
- package/resources/conversation/email.d.mts +257 -0
- package/resources/conversation/email.d.mts.map +1 -0
- package/resources/conversation/email.d.ts +10 -8
- package/resources/conversation/email.d.ts.map +1 -1
- package/resources/conversation/email.js +6 -6
- package/resources/conversation/email.js.map +1 -1
- package/resources/conversation/email.mjs +6 -6
- package/resources/conversation/email.mjs.map +1 -1
- package/resources/conversation/index.d.mts +5 -0
- package/resources/conversation/index.d.mts.map +1 -0
- package/resources/conversation/index.d.ts +1 -1
- package/resources/conversation/index.d.ts.map +1 -1
- package/resources/conversation/index.js.map +1 -1
- package/resources/conversation/index.mjs.map +1 -1
- package/resources/conversation/voice.d.mts +45 -0
- package/resources/conversation/voice.d.mts.map +1 -0
- package/resources/conversation/voice.d.ts +4 -3
- package/resources/conversation/voice.d.ts.map +1 -1
- package/resources/conversation/voice.js +3 -2
- package/resources/conversation/voice.js.map +1 -1
- package/resources/conversation/voice.mjs +3 -2
- package/resources/conversation/voice.mjs.map +1 -1
- package/resources/conversation.d.mts +2 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts.map +1 -1
- package/resources/conversation.js +2 -15
- package/resources/conversation.js.map +1 -1
- package/resources/customer/customer.d.mts +333 -0
- package/resources/customer/customer.d.mts.map +1 -0
- package/resources/customer/customer.d.ts +7 -7
- package/resources/customer/customer.d.ts.map +1 -1
- package/resources/customer/customer.js +12 -31
- package/resources/customer/customer.js.map +1 -1
- package/resources/customer/customer.mjs +9 -6
- package/resources/customer/customer.mjs.map +1 -1
- package/resources/customer/index.d.mts +4 -0
- package/resources/customer/index.d.mts.map +1 -0
- package/resources/customer/index.d.ts.map +1 -1
- package/resources/customer/profile.d.mts +30 -0
- package/resources/customer/profile.d.mts.map +1 -0
- package/resources/customer/profile.d.ts +4 -3
- package/resources/customer/profile.d.ts.map +1 -1
- package/resources/customer/profile.js +3 -2
- package/resources/customer/profile.js.map +1 -1
- package/resources/customer/profile.mjs +3 -2
- package/resources/customer/profile.mjs.map +1 -1
- package/resources/customer/remote.d.mts +164 -0
- package/resources/customer/remote.d.mts.map +1 -0
- package/resources/customer/remote.d.ts +5 -4
- package/resources/customer/remote.d.ts.map +1 -1
- package/resources/customer/remote.js +6 -5
- package/resources/customer/remote.js.map +1 -1
- package/resources/customer/remote.mjs +6 -5
- package/resources/customer/remote.mjs.map +1 -1
- package/resources/customer.d.mts +2 -0
- package/resources/customer.d.mts.map +1 -0
- package/resources/customer.d.ts.map +1 -1
- package/resources/customer.js +2 -15
- package/resources/customer.js.map +1 -1
- package/resources/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/ingest.d.mts +27 -0
- package/resources/ingest.d.mts.map +1 -0
- package/resources/ingest.d.ts +12 -6
- package/resources/ingest.d.ts.map +1 -1
- package/resources/ingest.js +11 -8
- package/resources/ingest.js.map +1 -1
- package/resources/ingest.mjs +11 -8
- package/resources/ingest.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +835 -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 -130
- package/src/index.ts +6 -275
- 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 +56 -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 +156 -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/generate-signature.ts +2 -2
- package/src/resource.ts +2 -11
- package/src/resources/api-keys.ts +12 -9
- package/src/resources/conversation/chat.ts +60 -95
- package/src/resources/conversation/conversation.ts +1 -1
- package/src/resources/conversation/email.ts +13 -12
- package/src/resources/conversation/index.ts +5 -0
- package/src/resources/conversation/voice.ts +6 -4
- package/src/resources/customer/customer.ts +12 -16
- package/src/resources/customer/profile.ts +6 -8
- package/src/resources/customer/remote.ts +10 -8
- package/src/resources/index.ts +1 -1
- package/src/resources/ingest.ts +23 -17
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -256
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -167
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -156
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -13
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -88
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -77
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -253
- package/core.d.ts.map +0 -1
- package/core.js +0 -929
- package/core.js.map +0 -1
- package/core.mjs +0 -897
- package/core.mjs.map +0 -1
- package/internal/qs/formats.d.ts +0 -6
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -11
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -8
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -279
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -276
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.ts +0 -14
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -229
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/resources/ticket.d.ts +0 -14
- package/resources/ticket.d.ts.map +0 -1
- package/resources/ticket.js +0 -16
- package/resources/ticket.js.map +0 -1
- package/resources/ticket.mjs +0 -12
- package/resources/ticket.mjs.map +0 -1
- package/shims/node.d.ts +0 -26
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -6
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -4
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -6
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -4
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1242
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -9
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -388
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/resources/ticket.ts +0 -30
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/internal/qs/utils.mjs
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { RFC1738 } from "./formats.mjs";
|
|
2
|
-
const has = Object.prototype.hasOwnProperty;
|
|
3
|
-
const is_array = Array.isArray;
|
|
4
|
-
const hex_table = (() => {
|
|
5
|
-
const array = [];
|
|
6
|
-
for (let i = 0; i < 256; ++i) {
|
|
7
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
8
|
-
}
|
|
9
|
-
return array;
|
|
10
|
-
})();
|
|
11
|
-
function compact_queue(queue) {
|
|
12
|
-
while (queue.length > 1) {
|
|
13
|
-
const item = queue.pop();
|
|
14
|
-
if (!item)
|
|
15
|
-
continue;
|
|
16
|
-
const obj = item.obj[item.prop];
|
|
17
|
-
if (is_array(obj)) {
|
|
18
|
-
const compacted = [];
|
|
19
|
-
for (let j = 0; j < obj.length; ++j) {
|
|
20
|
-
if (typeof obj[j] !== 'undefined') {
|
|
21
|
-
compacted.push(obj[j]);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
item.obj[item.prop] = compacted;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function array_to_object(source, options) {
|
|
30
|
-
const obj = options && options.plainObjects ? Object.create(null) : {};
|
|
31
|
-
for (let i = 0; i < source.length; ++i) {
|
|
32
|
-
if (typeof source[i] !== 'undefined') {
|
|
33
|
-
obj[i] = source[i];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return obj;
|
|
37
|
-
}
|
|
38
|
-
export function merge(target, source, options = {}) {
|
|
39
|
-
if (!source) {
|
|
40
|
-
return target;
|
|
41
|
-
}
|
|
42
|
-
if (typeof source !== 'object') {
|
|
43
|
-
if (is_array(target)) {
|
|
44
|
-
target.push(source);
|
|
45
|
-
}
|
|
46
|
-
else if (target && typeof target === 'object') {
|
|
47
|
-
if ((options && (options.plainObjects || options.allowPrototypes)) ||
|
|
48
|
-
!has.call(Object.prototype, source)) {
|
|
49
|
-
target[source] = true;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return [target, source];
|
|
54
|
-
}
|
|
55
|
-
return target;
|
|
56
|
-
}
|
|
57
|
-
if (!target || typeof target !== 'object') {
|
|
58
|
-
return [target].concat(source);
|
|
59
|
-
}
|
|
60
|
-
let mergeTarget = target;
|
|
61
|
-
if (is_array(target) && !is_array(source)) {
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
mergeTarget = array_to_object(target, options);
|
|
64
|
-
}
|
|
65
|
-
if (is_array(target) && is_array(source)) {
|
|
66
|
-
source.forEach(function (item, i) {
|
|
67
|
-
if (has.call(target, i)) {
|
|
68
|
-
const targetItem = target[i];
|
|
69
|
-
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
70
|
-
target[i] = merge(targetItem, item, options);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
target.push(item);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
target[i] = item;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return target;
|
|
81
|
-
}
|
|
82
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
83
|
-
const value = source[key];
|
|
84
|
-
if (has.call(acc, key)) {
|
|
85
|
-
acc[key] = merge(acc[key], value, options);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
acc[key] = value;
|
|
89
|
-
}
|
|
90
|
-
return acc;
|
|
91
|
-
}, mergeTarget);
|
|
92
|
-
}
|
|
93
|
-
export function assign_single_source(target, source) {
|
|
94
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
95
|
-
acc[key] = source[key];
|
|
96
|
-
return acc;
|
|
97
|
-
}, target);
|
|
98
|
-
}
|
|
99
|
-
export function decode(str, _, charset) {
|
|
100
|
-
const strWithoutPlus = str.replace(/\+/g, ' ');
|
|
101
|
-
if (charset === 'iso-8859-1') {
|
|
102
|
-
// unescape never throws, no try...catch needed:
|
|
103
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
104
|
-
}
|
|
105
|
-
// utf-8
|
|
106
|
-
try {
|
|
107
|
-
return decodeURIComponent(strWithoutPlus);
|
|
108
|
-
}
|
|
109
|
-
catch (e) {
|
|
110
|
-
return strWithoutPlus;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const limit = 1024;
|
|
114
|
-
export const encode = (str, _defaultEncoder, charset, _kind, format) => {
|
|
115
|
-
// This code was originally written by Brian White for the io.js core querystring library.
|
|
116
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
117
|
-
if (str.length === 0) {
|
|
118
|
-
return str;
|
|
119
|
-
}
|
|
120
|
-
let string = str;
|
|
121
|
-
if (typeof str === 'symbol') {
|
|
122
|
-
string = Symbol.prototype.toString.call(str);
|
|
123
|
-
}
|
|
124
|
-
else if (typeof str !== 'string') {
|
|
125
|
-
string = String(str);
|
|
126
|
-
}
|
|
127
|
-
if (charset === 'iso-8859-1') {
|
|
128
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
129
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
let out = '';
|
|
133
|
-
for (let j = 0; j < string.length; j += limit) {
|
|
134
|
-
const segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
135
|
-
const arr = [];
|
|
136
|
-
for (let i = 0; i < segment.length; ++i) {
|
|
137
|
-
let c = segment.charCodeAt(i);
|
|
138
|
-
if (c === 0x2d || // -
|
|
139
|
-
c === 0x2e || // .
|
|
140
|
-
c === 0x5f || // _
|
|
141
|
-
c === 0x7e || // ~
|
|
142
|
-
(c >= 0x30 && c <= 0x39) || // 0-9
|
|
143
|
-
(c >= 0x41 && c <= 0x5a) || // a-z
|
|
144
|
-
(c >= 0x61 && c <= 0x7a) || // A-Z
|
|
145
|
-
(format === RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
146
|
-
) {
|
|
147
|
-
arr[arr.length] = segment.charAt(i);
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
if (c < 0x80) {
|
|
151
|
-
arr[arr.length] = hex_table[c];
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
if (c < 0x800) {
|
|
155
|
-
arr[arr.length] = hex_table[0xc0 | (c >> 6)] + hex_table[0x80 | (c & 0x3f)];
|
|
156
|
-
continue;
|
|
157
|
-
}
|
|
158
|
-
if (c < 0xd800 || c >= 0xe000) {
|
|
159
|
-
arr[arr.length] =
|
|
160
|
-
hex_table[0xe0 | (c >> 12)] + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)];
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
i += 1;
|
|
164
|
-
c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff));
|
|
165
|
-
arr[arr.length] =
|
|
166
|
-
hex_table[0xf0 | (c >> 18)] +
|
|
167
|
-
hex_table[0x80 | ((c >> 12) & 0x3f)] +
|
|
168
|
-
hex_table[0x80 | ((c >> 6) & 0x3f)] +
|
|
169
|
-
hex_table[0x80 | (c & 0x3f)];
|
|
170
|
-
}
|
|
171
|
-
out += arr.join('');
|
|
172
|
-
}
|
|
173
|
-
return out;
|
|
174
|
-
};
|
|
175
|
-
export function compact(value) {
|
|
176
|
-
const queue = [{ obj: { o: value }, prop: 'o' }];
|
|
177
|
-
const refs = [];
|
|
178
|
-
for (let i = 0; i < queue.length; ++i) {
|
|
179
|
-
const item = queue[i];
|
|
180
|
-
// @ts-ignore
|
|
181
|
-
const obj = item.obj[item.prop];
|
|
182
|
-
const keys = Object.keys(obj);
|
|
183
|
-
for (let j = 0; j < keys.length; ++j) {
|
|
184
|
-
const key = keys[j];
|
|
185
|
-
const val = obj[key];
|
|
186
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
187
|
-
queue.push({ obj: obj, prop: key });
|
|
188
|
-
refs.push(val);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
compact_queue(queue);
|
|
193
|
-
return value;
|
|
194
|
-
}
|
|
195
|
-
export function is_regexp(obj) {
|
|
196
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
197
|
-
}
|
|
198
|
-
export function is_buffer(obj) {
|
|
199
|
-
if (!obj || typeof obj !== 'object') {
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
203
|
-
}
|
|
204
|
-
export function combine(a, b) {
|
|
205
|
-
return [].concat(a, b);
|
|
206
|
-
}
|
|
207
|
-
export function maybe_map(val, fn) {
|
|
208
|
-
if (is_array(val)) {
|
|
209
|
-
const mapped = [];
|
|
210
|
-
for (let i = 0; i < val.length; i += 1) {
|
|
211
|
-
mapped.push(fn(val[i]));
|
|
212
|
-
}
|
|
213
|
-
return mapped;
|
|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U,OAAO,CAAC,CAAM,EAAE,CAAM;IACpC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,GAAQ,EAAE,EAAe;IACpD,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC"}
|
package/resources/ticket.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Ticket extends APIResource {
|
|
4
|
-
retrieveSse(ticketId: string, query: TicketRetrieveSseParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
5
|
-
}
|
|
6
|
-
export interface TicketRetrieveSseParams {
|
|
7
|
-
sseMessageTypes: Array<string>;
|
|
8
|
-
ticketEventTypes: Array<string>;
|
|
9
|
-
ticketMessageTypes: Array<string>;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace Ticket {
|
|
12
|
-
export { type TicketRetrieveSseParams as TicketRetrieveSseParams };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=ticket.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../src/resources/ticket.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC,WAAW,CACT,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOzB;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
package/resources/ticket.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Ticket = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class Ticket extends resource_1.APIResource {
|
|
7
|
-
retrieveSse(ticketId, query, options) {
|
|
8
|
-
return this._client.get(`/v1/ticket/sse/${ticketId}`, {
|
|
9
|
-
query,
|
|
10
|
-
...options,
|
|
11
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Ticket = Ticket;
|
|
16
|
-
//# sourceMappingURL=ticket.js.map
|
package/resources/ticket.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.js","sourceRoot":"","sources":["../src/resources/ticket.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,sBAAW;IACrC,WAAW,CACT,QAAgB,EAChB,KAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,QAAQ,EAAE,EAAE;YACpD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAZD,wBAYC"}
|
package/resources/ticket.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
export class Ticket extends APIResource {
|
|
4
|
-
retrieveSse(ticketId, query, options) {
|
|
5
|
-
return this._client.get(`/v1/ticket/sse/${ticketId}`, {
|
|
6
|
-
query,
|
|
7
|
-
...options,
|
|
8
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ticket.mjs.map
|
package/resources/ticket.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.mjs","sourceRoot":"","sources":["../src/resources/ticket.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,WAAW,CACT,QAAgB,EAChB,KAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,QAAQ,EAAE,EAAE;YACpD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/shims/node.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as types from "../_shims/node-types.js";
|
|
2
|
-
declare module '../_shims/manual-types' {
|
|
3
|
-
namespace manual {
|
|
4
|
-
type Agent = types.Agent;
|
|
5
|
-
export import fetch = types.fetch;
|
|
6
|
-
type Request = types.Request;
|
|
7
|
-
type RequestInfo = types.RequestInfo;
|
|
8
|
-
type RequestInit = types.RequestInit;
|
|
9
|
-
type Response = types.Response;
|
|
10
|
-
type ResponseInit = types.ResponseInit;
|
|
11
|
-
type ResponseType = types.ResponseType;
|
|
12
|
-
type BodyInit = types.BodyInit;
|
|
13
|
-
type Headers = types.Headers;
|
|
14
|
-
type HeadersInit = types.HeadersInit;
|
|
15
|
-
type BlobPropertyBag = types.BlobPropertyBag;
|
|
16
|
-
type FilePropertyBag = types.FilePropertyBag;
|
|
17
|
-
type FileFromPathOptions = types.FileFromPathOptions;
|
|
18
|
-
export import FormData = types.FormData;
|
|
19
|
-
export import File = types.File;
|
|
20
|
-
export import Blob = types.Blob;
|
|
21
|
-
type Readable = types.Readable;
|
|
22
|
-
type FsReadStream = types.FsReadStream;
|
|
23
|
-
export import ReadableStream = types.ReadableStream;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=node.d.ts.map
|
package/shims/node.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAK9C,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,MAAM,CAAC;QAEtB,KAAY,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAEhC,MAAM,QAAQ,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAElC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAEpC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QAE5C,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QAE5C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAEtC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QAE9C,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QAE9C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAEtC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAEpC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QAE5C,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAEpD,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAEpD,KAAY,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QAE5D,MAAM,QAAQ,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAExC,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QAEhC,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QAEhC,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAEtC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QAE9C,MAAM,QAAQ,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;KACrD;CACF"}
|
package/shims/node.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const registry_1 = require("../_shims/registry.js");
|
|
4
|
-
const node_runtime_1 = require("../_shims/node-runtime.js");
|
|
5
|
-
(0, registry_1.setShims)((0, node_runtime_1.getRuntime)());
|
|
6
|
-
//# sourceMappingURL=node.js.map
|
package/shims/node.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":";;AAEA,oDAA8C;AAC9C,4DAAoD;AACpD,IAAA,mBAAQ,EAAC,IAAA,yBAAU,GAAE,CAAC,CAAC"}
|
package/shims/node.mjs
DELETED
package/shims/node.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.mjs","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC"}
|
package/shims/web.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as types from "../_shims/web-types.js";
|
|
2
|
-
declare module '../_shims/manual-types' {
|
|
3
|
-
namespace manual {
|
|
4
|
-
type Agent = types.Agent;
|
|
5
|
-
export import fetch = types.fetch;
|
|
6
|
-
type Request = types.Request;
|
|
7
|
-
type RequestInfo = types.RequestInfo;
|
|
8
|
-
type RequestInit = types.RequestInit;
|
|
9
|
-
type Response = types.Response;
|
|
10
|
-
type ResponseInit = types.ResponseInit;
|
|
11
|
-
type ResponseType = types.ResponseType;
|
|
12
|
-
type BodyInit = types.BodyInit;
|
|
13
|
-
type Headers = types.Headers;
|
|
14
|
-
type HeadersInit = types.HeadersInit;
|
|
15
|
-
type BlobPropertyBag = types.BlobPropertyBag;
|
|
16
|
-
type FilePropertyBag = types.FilePropertyBag;
|
|
17
|
-
type FileFromPathOptions = types.FileFromPathOptions;
|
|
18
|
-
export import FormData = types.FormData;
|
|
19
|
-
export import File = types.File;
|
|
20
|
-
export import Blob = types.Blob;
|
|
21
|
-
type Readable = types.Readable;
|
|
22
|
-
type FsReadStream = types.FsReadStream;
|
|
23
|
-
export import ReadableStream = types.ReadableStream;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=web.d.ts.map
|
package/shims/web.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAK7C,OAAO,QAAQ,wBAAwB,CAAC;I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1 = require("../_shims/web-runtime.js");
|
|
5
|
-
(0, registry_1.setShims)((0, web_runtime_1.getRuntime)({ manuallyImported: true }));
|
|
6
|
-
//# sourceMappingURL=web.js.map
|
package/shims/web.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":";;AAEA,oDAA8C;AAC9C,0DAAmD;AACnD,IAAA,mBAAQ,EAAC,IAAA,wBAAU,EAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC"}
|
package/shims/web.mjs
DELETED
package/shims/web.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web.mjs","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC"}
|
package/src/_shims/README.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# 👋 Wondering what everything in here does?
|
|
2
|
-
|
|
3
|
-
`@lorikeetai/node-sdk` supports a wide variety of runtime environments like Node.js, Deno, Bun, browsers, and various
|
|
4
|
-
edge runtimes, as well as both CommonJS (CJS) and EcmaScript Modules (ESM).
|
|
5
|
-
|
|
6
|
-
To do this, `@lorikeetai/node-sdk` provides shims for either using `node-fetch` when in Node (because `fetch` is still experimental there) or the global `fetch` API built into the environment when not in Node.
|
|
7
|
-
|
|
8
|
-
It uses [conditional exports](https://nodejs.org/api/packages.html#conditional-exports) to
|
|
9
|
-
automatically select the correct shims for each environment. However, conditional exports are a fairly new
|
|
10
|
-
feature and not supported everywhere. For instance, the TypeScript `"moduleResolution": "node"`
|
|
11
|
-
|
|
12
|
-
setting doesn't consult the `exports` map, compared to `"moduleResolution": "nodeNext"`, which does.
|
|
13
|
-
Unfortunately that's still the default setting, and it can result in errors like
|
|
14
|
-
getting the wrong raw `Response` type from `.asResponse()`, for example.
|
|
15
|
-
|
|
16
|
-
The user can work around these issues by manually importing one of:
|
|
17
|
-
|
|
18
|
-
- `import '@lorikeetai/node-sdk/shims/node'`
|
|
19
|
-
- `import '@lorikeetai/node-sdk/shims/web'`
|
|
20
|
-
|
|
21
|
-
All of the code here in `_shims` handles selecting the automatic default shims or manual overrides.
|
|
22
|
-
|
|
23
|
-
### How it works - Runtime
|
|
24
|
-
|
|
25
|
-
Runtime shims get installed by calling `setShims` exported by `@lorikeetai/node-sdk/_shims/registry`.
|
|
26
|
-
|
|
27
|
-
Manually importing `@lorikeetai/node-sdk/shims/node` or `@lorikeetai/node-sdk/shims/web`, calls `setShims` with the respective runtime shims.
|
|
28
|
-
|
|
29
|
-
All client code imports shims from `@lorikeetai/node-sdk/_shims/index`, which:
|
|
30
|
-
|
|
31
|
-
- checks if shims have been set manually
|
|
32
|
-
- if not, calls `setShims` with the shims from `@lorikeetai/node-sdk/_shims/auto/runtime`
|
|
33
|
-
- re-exports the installed shims from `@lorikeetai/node-sdk/_shims/registry`.
|
|
34
|
-
|
|
35
|
-
`@lorikeetai/node-sdk/_shims/auto/runtime` exports web runtime shims.
|
|
36
|
-
If the `node` export condition is set, the export map replaces it with `@lorikeetai/node-sdk/_shims/auto/runtime-node`.
|
|
37
|
-
|
|
38
|
-
### How it works - Type time
|
|
39
|
-
|
|
40
|
-
All client code imports shim types from `@lorikeetai/node-sdk/_shims/index`, which selects the manual types from `@lorikeetai/node-sdk/_shims/manual-types` if they have been declared, otherwise it exports the auto types from `@lorikeetai/node-sdk/_shims/auto/types`.
|
|
41
|
-
|
|
42
|
-
`@lorikeetai/node-sdk/_shims/manual-types` exports an empty namespace.
|
|
43
|
-
Manually importing `@lorikeetai/node-sdk/shims/node` or `@lorikeetai/node-sdk/shims/web` merges declarations into this empty namespace, so they get picked up by `@lorikeetai/node-sdk/_shims/index`.
|
|
44
|
-
|
|
45
|
-
`@lorikeetai/node-sdk/_shims/auto/types` exports web type definitions.
|
|
46
|
-
If the `node` export condition is set, the export map replaces it with `@lorikeetai/node-sdk/_shims/auto/types-node`, though TS only picks this up if `"moduleResolution": "nodenext"` or `"moduleResolution": "bundler"`.
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
export type Agent = any;
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
declare const _fetch: typeof fetch;
|
|
8
|
-
export { _fetch as fetch };
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
type _Request = Request;
|
|
12
|
-
export { _Request as Request };
|
|
13
|
-
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
type _RequestInfo = RequestInfo;
|
|
16
|
-
export { type _RequestInfo as RequestInfo };
|
|
17
|
-
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
type _RequestInit = RequestInit;
|
|
20
|
-
export { type _RequestInit as RequestInit };
|
|
21
|
-
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
type _Response = Response;
|
|
24
|
-
export { _Response as Response };
|
|
25
|
-
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
type _ResponseInit = ResponseInit;
|
|
28
|
-
export { type _ResponseInit as ResponseInit };
|
|
29
|
-
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
type _ResponseType = ResponseType;
|
|
32
|
-
export { type _ResponseType as ResponseType };
|
|
33
|
-
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
type _BodyInit = BodyInit;
|
|
36
|
-
export { type _BodyInit as BodyInit };
|
|
37
|
-
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
type _Headers = Headers;
|
|
40
|
-
export { _Headers as Headers };
|
|
41
|
-
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
type _HeadersInit = HeadersInit;
|
|
44
|
-
export { type _HeadersInit as HeadersInit };
|
|
45
|
-
|
|
46
|
-
type EndingType = 'native' | 'transparent';
|
|
47
|
-
|
|
48
|
-
export interface BlobPropertyBag {
|
|
49
|
-
endings?: EndingType;
|
|
50
|
-
type?: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface FilePropertyBag extends BlobPropertyBag {
|
|
54
|
-
lastModified?: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
|
58
|
-
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
type _FormData = FormData;
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
declare const _FormData: typeof FormData;
|
|
63
|
-
export { _FormData as FormData };
|
|
64
|
-
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
type _File = File;
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
declare const _File: typeof File;
|
|
69
|
-
export { _File as File };
|
|
70
|
-
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
type _Blob = Blob;
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
declare const _Blob: typeof Blob;
|
|
75
|
-
export { _Blob as Blob };
|
|
76
|
-
|
|
77
|
-
export declare class Readable {
|
|
78
|
-
readable: boolean;
|
|
79
|
-
readonly readableEnded: boolean;
|
|
80
|
-
readonly readableFlowing: boolean | null;
|
|
81
|
-
readonly readableHighWaterMark: number;
|
|
82
|
-
readonly readableLength: number;
|
|
83
|
-
readonly readableObjectMode: boolean;
|
|
84
|
-
destroyed: boolean;
|
|
85
|
-
read(size?: number): any;
|
|
86
|
-
pause(): this;
|
|
87
|
-
resume(): this;
|
|
88
|
-
isPaused(): boolean;
|
|
89
|
-
destroy(error?: Error): this;
|
|
90
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export declare class FsReadStream extends Readable {
|
|
94
|
-
path: {}; // node type is string | Buffer
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
type _ReadableStream<R = any> = ReadableStream<R>;
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
declare const _ReadableStream: typeof ReadableStream;
|
|
101
|
-
export { _ReadableStream as ReadableStream };
|
package/src/_shims/auto/types.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { type Shims } from './registry';
|
|
5
|
-
import { getRuntime as getWebRuntime } from './web-runtime';
|
|
6
|
-
import { ReadStream as FsReadStream } from 'node:fs';
|
|
7
|
-
|
|
8
|
-
export function getRuntime(): Shims {
|
|
9
|
-
const runtime = getWebRuntime();
|
|
10
|
-
function isFsReadStream(value: any): value is FsReadStream {
|
|
11
|
-
return value instanceof FsReadStream;
|
|
12
|
-
}
|
|
13
|
-
return { ...runtime, isFsReadStream };
|
|
14
|
-
}
|