@lorikeetai/node-sdk 1.4.0 → 2.0.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 +55 -713
- package/LICENSE +1 -1
- package/README.md +125 -49
- 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 -144
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -143
- package/index.d.ts.map +1 -1
- package/index.js +14 -157
- package/index.js.map +1 -1
- package/index.mjs +6 -129
- 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/{src/resources/oauth.ts → internal/builtin-types.mjs} +2 -2
- 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/{resources/top-level.mjs → internal/shim-types.mjs} +1 -1
- 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/{resources/top-level.js → internal/types.js} +1 -1
- package/internal/types.js.map +1 -0
- package/{src/resources/top-level.ts → internal/types.mjs} +1 -1
- 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 +125 -74
- 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 +130 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +63 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +59 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/conversation/chat.d.mts +312 -0
- package/resources/conversation/chat.d.mts.map +1 -0
- package/resources/conversation/chat.d.ts +60 -78
- 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 +2 -59
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js +5 -63
- package/resources/conversation/conversation.js.map +1 -1
- package/resources/conversation/conversation.mjs +1 -37
- package/resources/conversation/conversation.mjs.map +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 +25 -9
- 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 +2 -2
- package/resources/conversation/index.d.ts.map +1 -1
- package/resources/conversation/index.js.map +1 -1
- package/resources/conversation/index.mjs +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 +7 -4
- 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 +43 -10
- package/resources/customer/customer.d.ts.map +1 -1
- package/resources/customer/customer.js +9 -32
- package/resources/customer/customer.js.map +1 -1
- package/resources/customer/customer.mjs +6 -7
- 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 +1 -1
- package/resources/customer/index.d.ts.map +1 -1
- package/resources/customer/index.js.map +1 -1
- package/resources/customer/index.mjs.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 +7 -48
- 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 +17 -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 +4 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -5
- 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 +15 -10
- package/resources/ingest.d.ts.map +1 -1
- package/resources/ingest.js +11 -11
- package/resources/ingest.js.map +1 -1
- package/resources/ingest.mjs +11 -11
- 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 -297
- 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 +171 -0
- package/src/resources/conversation/chat.ts +76 -96
- package/src/resources/conversation/conversation.ts +1 -91
- package/src/resources/conversation/email.ts +29 -13
- package/src/resources/conversation/index.ts +6 -10
- package/src/resources/conversation/voice.ts +9 -5
- package/src/resources/customer/customer.ts +58 -12
- package/src/resources/customer/index.ts +1 -0
- package/src/resources/customer/profile.ts +9 -62
- package/src/resources/customer/remote.ts +25 -8
- package/src/resources/index.ts +9 -10
- package/src/resources/ingest.ts +26 -24
- 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 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- 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/file.d.ts +0 -7
- package/resources/file.d.ts.map +0 -1
- package/resources/file.js +0 -21
- package/resources/file.js.map +0 -1
- package/resources/file.mjs +0 -17
- package/resources/file.mjs.map +0 -1
- package/resources/oauth/authorization.d.ts +0 -6
- package/resources/oauth/authorization.d.ts.map +0 -1
- package/resources/oauth/authorization.js +0 -15
- package/resources/oauth/authorization.js.map +0 -1
- package/resources/oauth/authorization.mjs +0 -11
- package/resources/oauth/authorization.mjs.map +0 -1
- package/resources/oauth/index.d.ts +0 -3
- package/resources/oauth/index.d.ts.map +0 -1
- package/resources/oauth/index.js +0 -9
- package/resources/oauth/index.js.map +0 -1
- package/resources/oauth/index.mjs +0 -4
- package/resources/oauth/index.mjs.map +0 -1
- package/resources/oauth/oauth.d.ts +0 -24
- package/resources/oauth/oauth.d.ts.map +0 -1
- package/resources/oauth/oauth.js +0 -65
- package/resources/oauth/oauth.js.map +0 -1
- package/resources/oauth/oauth.mjs +0 -38
- package/resources/oauth/oauth.mjs.map +0 -1
- package/resources/oauth.d.ts +0 -2
- package/resources/oauth.d.ts.map +0 -1
- package/resources/oauth.js +0 -19
- package/resources/oauth.js.map +0 -1
- package/resources/oauth.mjs +0 -3
- package/resources/oauth.mjs.map +0 -1
- package/resources/suggestion.d.ts +0 -7
- package/resources/suggestion.d.ts.map +0 -1
- package/resources/suggestion.js +0 -21
- package/resources/suggestion.js.map +0 -1
- package/resources/suggestion.mjs +0 -17
- package/resources/suggestion.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/resources/top-level.d.ts +0 -2
- package/resources/top-level.d.ts.map +0 -1
- package/resources/top-level.js.map +0 -1
- package/resources/top-level.mjs.map +0 -1
- package/resources/webhooks.d.ts +0 -6
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js +0 -15
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs +0 -11
- package/resources/webhooks.mjs.map +0 -1
- package/resources/workflow.d.ts +0 -8
- package/resources/workflow.d.ts.map +0 -1
- package/resources/workflow.js +0 -21
- package/resources/workflow.js.map +0 -1
- package/resources/workflow.mjs +0 -17
- package/resources/workflow.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 -1236
- 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/file.ts +0 -20
- package/src/resources/oauth/authorization.ts +0 -13
- package/src/resources/oauth/index.ts +0 -4
- package/src/resources/oauth/oauth.ts +0 -63
- package/src/resources/suggestion.ts +0 -20
- package/src/resources/ticket.ts +0 -30
- package/src/resources/webhooks.ts +0 -13
- package/src/resources/workflow.ts +0 -21
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Lorikeet
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Lorikeet
|
|
1
|
+
# Lorikeet TypeScript API Library
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/@lorikeetai/node-sdk) 
|
|
3
|
+
[>)](https://npmjs.org/package/@lorikeetai/node-sdk) 
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the Lorikeet REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
@@ -23,11 +23,13 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
23
23
|
import Lorikeet from '@lorikeetai/node-sdk';
|
|
24
24
|
|
|
25
25
|
const client = new Lorikeet({
|
|
26
|
-
|
|
27
|
-
clientSecret: process.env['LORIKEET_CLIENT_SECRET'], // This is the default and can be omitted
|
|
26
|
+
clientID: process.env['LORIKEET_CLIENT_ID'], // This is the default and can be omitted
|
|
28
27
|
});
|
|
29
28
|
|
|
30
|
-
const response = await client.conversation.chat.start({
|
|
29
|
+
const response = await client.conversation.chat.start({
|
|
30
|
+
customerId: 'blah',
|
|
31
|
+
publicKey: 'publicKey',
|
|
32
|
+
});
|
|
31
33
|
|
|
32
34
|
console.log(response.conversationId);
|
|
33
35
|
```
|
|
@@ -41,12 +43,16 @@ This library includes TypeScript definitions for all request params and response
|
|
|
41
43
|
import Lorikeet from '@lorikeetai/node-sdk';
|
|
42
44
|
|
|
43
45
|
const client = new Lorikeet({
|
|
44
|
-
|
|
45
|
-
clientSecret: process.env['LORIKEET_CLIENT_SECRET'], // This is the default and can be omitted
|
|
46
|
+
clientID: process.env['LORIKEET_CLIENT_ID'], // This is the default and can be omitted
|
|
46
47
|
});
|
|
47
48
|
|
|
48
|
-
const params: Lorikeet.Conversation.ChatStartParams = {
|
|
49
|
-
|
|
49
|
+
const params: Lorikeet.Conversation.ChatStartParams = {
|
|
50
|
+
customerId: 'blah',
|
|
51
|
+
publicKey: 'publicKey',
|
|
52
|
+
};
|
|
53
|
+
const response: Lorikeet.Conversation.ChatStartResponse = await client.conversation.chat.start(
|
|
54
|
+
params,
|
|
55
|
+
);
|
|
50
56
|
```
|
|
51
57
|
|
|
52
58
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
@@ -132,8 +138,10 @@ Note that requests which time out will be [retried twice by default](#retries).
|
|
|
132
138
|
### Accessing raw Response data (e.g., headers)
|
|
133
139
|
|
|
134
140
|
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
|
|
141
|
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
|
|
135
142
|
|
|
136
143
|
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
|
|
144
|
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
|
|
137
145
|
|
|
138
146
|
<!-- prettier-ignore -->
|
|
139
147
|
```ts
|
|
@@ -152,6 +160,59 @@ console.log(raw.headers.get('X-My-Header'));
|
|
|
152
160
|
console.log(response.conversationId);
|
|
153
161
|
```
|
|
154
162
|
|
|
163
|
+
### Logging
|
|
164
|
+
|
|
165
|
+
> [!IMPORTANT]
|
|
166
|
+
> All log messages are intended for debugging only. The format and content of log messages
|
|
167
|
+
> may change between releases.
|
|
168
|
+
|
|
169
|
+
#### Log levels
|
|
170
|
+
|
|
171
|
+
The log level can be configured in two ways:
|
|
172
|
+
|
|
173
|
+
1. Via the `LORIKEET_LOG` environment variable
|
|
174
|
+
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
178
|
+
|
|
179
|
+
const client = new Lorikeet({
|
|
180
|
+
logLevel: 'debug', // Show all log messages
|
|
181
|
+
});
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Available log levels, from most to least verbose:
|
|
185
|
+
|
|
186
|
+
- `'debug'` - Show debug messages, info, warnings, and errors
|
|
187
|
+
- `'info'` - Show info messages, warnings, and errors
|
|
188
|
+
- `'warn'` - Show warnings and errors (default)
|
|
189
|
+
- `'error'` - Show only errors
|
|
190
|
+
- `'off'` - Disable all logging
|
|
191
|
+
|
|
192
|
+
At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
|
|
193
|
+
Some authentication-related headers are redacted, but sensitive data in request and response bodies
|
|
194
|
+
may still be visible.
|
|
195
|
+
|
|
196
|
+
#### Custom logger
|
|
197
|
+
|
|
198
|
+
By default, this library logs to `globalThis.console`. You can also provide a custom logger.
|
|
199
|
+
Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
|
|
200
|
+
|
|
201
|
+
When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
|
|
202
|
+
below the configured level will not be sent to your logger.
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
206
|
+
import pino from 'pino';
|
|
207
|
+
|
|
208
|
+
const logger = pino();
|
|
209
|
+
|
|
210
|
+
const client = new Lorikeet({
|
|
211
|
+
logger: logger.child({ name: 'Lorikeet' }),
|
|
212
|
+
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
213
|
+
});
|
|
214
|
+
```
|
|
215
|
+
|
|
155
216
|
### Making custom/undocumented requests
|
|
156
217
|
|
|
157
218
|
This library is typed for convenient access to the documented API. If you need to access undocumented
|
|
@@ -176,9 +237,8 @@ parameter. This library doesn't validate at runtime that the request matches the
|
|
|
176
237
|
send will be sent as-is.
|
|
177
238
|
|
|
178
239
|
```ts
|
|
179
|
-
client.
|
|
180
|
-
|
|
181
|
-
bar: 12,
|
|
240
|
+
client.conversation.chat.start({
|
|
241
|
+
// ...
|
|
182
242
|
// @ts-expect-error baz is not yet public
|
|
183
243
|
baz: 'undocumented option',
|
|
184
244
|
});
|
|
@@ -198,69 +258,85 @@ validate or strip extra properties from the response from the API.
|
|
|
198
258
|
|
|
199
259
|
### Customizing the fetch client
|
|
200
260
|
|
|
201
|
-
By default, this library
|
|
261
|
+
By default, this library expects a global `fetch` function is defined.
|
|
202
262
|
|
|
203
|
-
If you
|
|
204
|
-
(for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
|
|
205
|
-
add the following import before your first import `from "Lorikeet"`:
|
|
263
|
+
If you want to use a different `fetch` function, you can either polyfill the global:
|
|
206
264
|
|
|
207
265
|
```ts
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
import Lorikeet from '@lorikeetai/node-sdk';
|
|
266
|
+
import fetch from 'my-fetch';
|
|
267
|
+
|
|
268
|
+
globalThis.fetch = fetch;
|
|
212
269
|
```
|
|
213
270
|
|
|
214
|
-
|
|
215
|
-
|
|
271
|
+
Or pass it to the client:
|
|
272
|
+
|
|
273
|
+
```ts
|
|
274
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
275
|
+
import fetch from 'my-fetch';
|
|
276
|
+
|
|
277
|
+
const client = new Lorikeet({ fetch });
|
|
278
|
+
```
|
|
216
279
|
|
|
217
|
-
###
|
|
280
|
+
### Fetch options
|
|
218
281
|
|
|
219
|
-
|
|
220
|
-
which can be used to inspect or alter the `Request` or `Response` before/after each request:
|
|
282
|
+
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
221
283
|
|
|
222
284
|
```ts
|
|
223
|
-
import { fetch } from 'undici'; // as one example
|
|
224
285
|
import Lorikeet from '@lorikeetai/node-sdk';
|
|
225
286
|
|
|
226
287
|
const client = new Lorikeet({
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const response = await fetch(url, init);
|
|
230
|
-
console.log('Got response', response);
|
|
231
|
-
return response;
|
|
288
|
+
fetchOptions: {
|
|
289
|
+
// `RequestInit` options
|
|
232
290
|
},
|
|
233
291
|
});
|
|
234
292
|
```
|
|
235
293
|
|
|
236
|
-
|
|
237
|
-
This is intended for debugging purposes only and may change in the future without notice.
|
|
294
|
+
#### Configuring proxies
|
|
238
295
|
|
|
239
|
-
|
|
296
|
+
To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
|
|
297
|
+
options to requests:
|
|
240
298
|
|
|
241
|
-
|
|
299
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
242
300
|
|
|
243
|
-
|
|
301
|
+
```ts
|
|
302
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
303
|
+
import * as undici from 'undici';
|
|
304
|
+
|
|
305
|
+
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
306
|
+
const client = new Lorikeet({
|
|
307
|
+
fetchOptions: {
|
|
308
|
+
dispatcher: proxyAgent,
|
|
309
|
+
},
|
|
310
|
+
});
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
244
314
|
|
|
245
|
-
<!-- prettier-ignore -->
|
|
246
315
|
```ts
|
|
247
|
-
import
|
|
248
|
-
import { HttpsProxyAgent } from 'https-proxy-agent';
|
|
316
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
249
317
|
|
|
250
|
-
// Configure the default for all requests:
|
|
251
318
|
const client = new Lorikeet({
|
|
252
|
-
|
|
319
|
+
fetchOptions: {
|
|
320
|
+
proxy: 'http://localhost:8888',
|
|
321
|
+
},
|
|
253
322
|
});
|
|
323
|
+
```
|
|
254
324
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
325
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
326
|
+
|
|
327
|
+
```ts
|
|
328
|
+
import Lorikeet from 'npm:@lorikeetai/node-sdk';
|
|
329
|
+
|
|
330
|
+
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
331
|
+
const client = new Lorikeet({
|
|
332
|
+
fetchOptions: {
|
|
333
|
+
client: httpClient,
|
|
260
334
|
},
|
|
261
|
-
);
|
|
335
|
+
});
|
|
262
336
|
```
|
|
263
337
|
|
|
338
|
+
## Frequently Asked Questions
|
|
339
|
+
|
|
264
340
|
## Semantic versioning
|
|
265
341
|
|
|
266
342
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
@@ -275,12 +351,12 @@ We are keen for your feedback; please open an [issue](https://www.github.com/opt
|
|
|
275
351
|
|
|
276
352
|
## Requirements
|
|
277
353
|
|
|
278
|
-
TypeScript >= 4.
|
|
354
|
+
TypeScript >= 4.9 is supported.
|
|
279
355
|
|
|
280
356
|
The following runtimes are supported:
|
|
281
357
|
|
|
282
358
|
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
|
|
283
|
-
- Node.js
|
|
359
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
284
360
|
- Deno v1.28.0 or higher.
|
|
285
361
|
- Bun 1.0 or later.
|
|
286
362
|
- Cloudflare Workers.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.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/api-promise instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
+
//# sourceMappingURL=api-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/bin/cli
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const commands = {
|
|
6
|
+
migrate: {
|
|
7
|
+
description:
|
|
8
|
+
'Run migrations to update your code using @lorikeetai/node-sdk@1.8.1 to be compatible with @lorikeetai/node-sdk@2.0.0',
|
|
9
|
+
fn: () => {
|
|
10
|
+
const result = spawnSync(
|
|
11
|
+
'npx',
|
|
12
|
+
[
|
|
13
|
+
'-y',
|
|
14
|
+
'https://github.com/stainless-api/migrate-ts/releases/download/0.0.2/stainless-api-migrate-0.0.2-6.tgz',
|
|
15
|
+
'--migrationConfig',
|
|
16
|
+
require.resolve('./migration-config.json'),
|
|
17
|
+
...process.argv.slice(3),
|
|
18
|
+
],
|
|
19
|
+
{ stdio: 'inherit' },
|
|
20
|
+
);
|
|
21
|
+
if (result.status !== 0) {
|
|
22
|
+
process.exit(result.status);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function exitWithHelp() {
|
|
29
|
+
console.log(`Usage: lorikeetai-node-sdk <subcommand>`);
|
|
30
|
+
console.log();
|
|
31
|
+
console.log('Subcommands:');
|
|
32
|
+
|
|
33
|
+
for (const [name, info] of Object.entries(commands)) {
|
|
34
|
+
console.log(` ${name} ${info.description}`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
console.log();
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (process.argv.length < 3) {
|
|
42
|
+
exitWithHelp();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const commandName = process.argv[2];
|
|
46
|
+
|
|
47
|
+
const command = commands[commandName];
|
|
48
|
+
if (!command) {
|
|
49
|
+
console.log(`Unknown subcommand ${commandName}.`);
|
|
50
|
+
exitWithHelp();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
command.fn();
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pkg": "@lorikeetai/node-sdk",
|
|
3
|
+
"githubRepo": "https://github.com/optechai/node-sdk",
|
|
4
|
+
"clientClass": "Lorikeet",
|
|
5
|
+
"methods": [
|
|
6
|
+
{
|
|
7
|
+
"base": "ingest",
|
|
8
|
+
"name": "submit",
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"type": "param",
|
|
12
|
+
"key": "workflowId",
|
|
13
|
+
"location": "path"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "params",
|
|
17
|
+
"maybeOverload": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "options"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"oldParams": [
|
|
24
|
+
{
|
|
25
|
+
"type": "param",
|
|
26
|
+
"key": "toolId",
|
|
27
|
+
"location": "path"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "param",
|
|
31
|
+
"key": "ticketId",
|
|
32
|
+
"location": "path"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "param",
|
|
36
|
+
"key": "inputHash",
|
|
37
|
+
"location": "path"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "param",
|
|
41
|
+
"key": "workflowId",
|
|
42
|
+
"location": "path"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "options"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
package/client.d.mts
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
+
import * as API from "./resources/index.mjs";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
+
import { APIKeyCreateParams, APIKeyCreateResponse, APIKeyGetResponse, APIKeyListResponse, APIKeys } from "./resources/api-keys.mjs";
|
|
10
|
+
import { Ingest, IngestSubmitParams, IngestTestParams } from "./resources/ingest.mjs";
|
|
11
|
+
import { AttachmentDto, Conversation, TicketEvent, TicketMessageDto } from "./resources/conversation/conversation.mjs";
|
|
12
|
+
import { Customer, CustomerCreateParams, CustomerCreateResponse, CustomerGetParams, CustomerGetResponse, CustomerTokenParams, CustomerTokenResponse, CustomerUpdateParams, CustomerUpdateResponse } from "./resources/customer/customer.mjs";
|
|
13
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
14
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
15
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
16
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
17
|
+
export interface ClientOptions {
|
|
18
|
+
/**
|
|
19
|
+
* client identifier authentication associated with the account.
|
|
20
|
+
*/
|
|
21
|
+
clientID?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Secret key pulled from the Lorikeet App
|
|
24
|
+
*/
|
|
25
|
+
clientSecret?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
28
|
+
*
|
|
29
|
+
* Defaults to process.env['LORIKEET_BASE_URL'].
|
|
30
|
+
*/
|
|
31
|
+
baseURL?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
34
|
+
* from the server before timing out a single request.
|
|
35
|
+
*
|
|
36
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
37
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
38
|
+
*
|
|
39
|
+
* @unit milliseconds
|
|
40
|
+
*/
|
|
41
|
+
timeout?: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
44
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
45
|
+
*/
|
|
46
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Specify a custom `fetch` function implementation.
|
|
49
|
+
*
|
|
50
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
51
|
+
*/
|
|
52
|
+
fetch?: Fetch | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
55
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
56
|
+
*
|
|
57
|
+
* @default 2
|
|
58
|
+
*/
|
|
59
|
+
maxRetries?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Default headers to include with every request to the API.
|
|
62
|
+
*
|
|
63
|
+
* These can be removed in individual requests by explicitly setting the
|
|
64
|
+
* header to `null` in request options.
|
|
65
|
+
*/
|
|
66
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Default query parameters to include with every request to the API.
|
|
69
|
+
*
|
|
70
|
+
* These can be removed in individual requests by explicitly setting the
|
|
71
|
+
* param to `undefined` in request options.
|
|
72
|
+
*/
|
|
73
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Set the log level.
|
|
76
|
+
*
|
|
77
|
+
* Defaults to process.env['LORIKEET_LOG'] or 'warn' if it isn't set.
|
|
78
|
+
*/
|
|
79
|
+
logLevel?: LogLevel | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Set the logger.
|
|
82
|
+
*
|
|
83
|
+
* Defaults to globalThis.console.
|
|
84
|
+
*/
|
|
85
|
+
logger?: Logger | undefined;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* API Client for interfacing with the Lorikeet API.
|
|
89
|
+
*/
|
|
90
|
+
export declare class Lorikeet {
|
|
91
|
+
#private;
|
|
92
|
+
clientID: string;
|
|
93
|
+
clientSecret: string;
|
|
94
|
+
baseURL: string;
|
|
95
|
+
maxRetries: number;
|
|
96
|
+
timeout: number;
|
|
97
|
+
logger: Logger;
|
|
98
|
+
logLevel: LogLevel | undefined;
|
|
99
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
100
|
+
private fetch;
|
|
101
|
+
protected idempotencyHeader?: string;
|
|
102
|
+
private _options;
|
|
103
|
+
/**
|
|
104
|
+
* API Client for interfacing with the Lorikeet API.
|
|
105
|
+
*
|
|
106
|
+
* @param {string | undefined} [opts.clientID=process.env['LORIKEET_CLIENT_ID'] ?? undefined]
|
|
107
|
+
* @param {string | undefined} [opts.clientSecret=process.env['LORIKEET_CLIENT_SECRET'] ?? undefined]
|
|
108
|
+
* @param {string} [opts.baseURL=process.env['LORIKEET_BASE_URL'] ?? https://api.lorikeetcx.ai] - Override the default base URL for the API.
|
|
109
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
110
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
111
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
112
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
113
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
114
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
115
|
+
*/
|
|
116
|
+
constructor({ baseURL, clientID, clientSecret, ...opts }?: ClientOptions);
|
|
117
|
+
/**
|
|
118
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
119
|
+
*/
|
|
120
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
121
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
122
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
123
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
124
|
+
protected lorikeetClientIDAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
127
|
+
*/
|
|
128
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
129
|
+
private getUserAgent;
|
|
130
|
+
protected defaultIdempotencyKey(): string;
|
|
131
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
132
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
133
|
+
/**
|
|
134
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
135
|
+
*/
|
|
136
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
139
|
+
*
|
|
140
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
141
|
+
* the request properties, e.g. `method` or `url`.
|
|
142
|
+
*/
|
|
143
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
144
|
+
url: string;
|
|
145
|
+
options: FinalRequestOptions;
|
|
146
|
+
}): Promise<void>;
|
|
147
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
148
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
149
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
150
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
151
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
152
|
+
private methodRequest;
|
|
153
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
154
|
+
private makeRequest;
|
|
155
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
156
|
+
private shouldRetry;
|
|
157
|
+
private retryRequest;
|
|
158
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
159
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
160
|
+
retryCount?: number;
|
|
161
|
+
}): Promise<{
|
|
162
|
+
req: FinalizedRequestInit;
|
|
163
|
+
url: string;
|
|
164
|
+
timeout: number;
|
|
165
|
+
}>;
|
|
166
|
+
private buildHeaders;
|
|
167
|
+
private _makeAbort;
|
|
168
|
+
private buildBody;
|
|
169
|
+
static Lorikeet: typeof Lorikeet;
|
|
170
|
+
static DEFAULT_TIMEOUT: number;
|
|
171
|
+
static LorikeetError: typeof Errors.LorikeetError;
|
|
172
|
+
static APIError: typeof Errors.APIError;
|
|
173
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
174
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
175
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
176
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
177
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
178
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
179
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
180
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
181
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
182
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
183
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
184
|
+
static toFile: typeof Uploads.toFile;
|
|
185
|
+
conversation: API.Conversation;
|
|
186
|
+
customer: API.Customer;
|
|
187
|
+
ingest: API.Ingest;
|
|
188
|
+
apiKeys: API.APIKeys;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace Lorikeet {
|
|
191
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
192
|
+
export { Conversation as Conversation, type AttachmentDto as AttachmentDto, type TicketEvent as TicketEvent, type TicketMessageDto as TicketMessageDto, };
|
|
193
|
+
export { Customer as Customer, type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerGetParams as CustomerGetParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
194
|
+
export { Ingest as Ingest, type IngestSubmitParams as IngestSubmitParams, type IngestTestParams as IngestTestParams, };
|
|
195
|
+
export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyGetResponse as APIKeyGetResponse, type APIKeyCreateParams as APIKeyCreateParams, };
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAGO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACR;OACM,EAAE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE;OAChD,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,gBAAgB,EACjB;OACM,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB;OACM,EAAE,KAAK,KAAK,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAAE,cAAc,EAAE;OAEvC,EACL,KAAK,QAAQ,EACb,KAAK,MAAM,EAIZ;AAGD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEp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